SgxParameterRW (FB)
FUNCTION_BLOCK SgxParameterRW EXTENDS AbbLConC3
SgxParameterWrite function block is employed to read or write the internal parameter from either RAM or EEPROM
“ParameterID” represents the byte offset from the base address to the parameter block to be accessed
“Eeprom” is selectable between temporary storage and non-volatile data retention
A new read/write cycle is initiated by the rising edge of “Execute” signal
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
EnableBOOLFALSE
A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. Execution will continue forever until a falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConC3
Output
BusyBOOLFALSE
Operation is running (while output Error is FALSE)
AbbLConC3
ErrorBOOLFALSE
Operation is stopped with error (while output Busy is FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.
AbbLConC3
Input
SetBOOLFALSE
A rising edge starts a single operation of parameter read or write
ChannelInputBasePOINTER TO ARRAY [0..3] OF WORD
Base address of strain gauge channel, mapped address of state
ChannelOutputBasePOINTER TO ARRAY [0..3] OF WORD
Base address of strain gauge channel, mapped address of command
EepromBOOLFALSE
TRUE => read/write parameter data from/into both data RAM and flash memory, FALSE => read/write parameter data from/into RAM only
ReadWriteSelectionBOOLFALSE
FALSE => READ; TRUE => WRITE
DigitalOutputBOOLFALSE
Imaged digital output field when “general digital output” is configured
ParameterIDWORD0
Index number or address of parameter block
ParameterDataParameter data to be writen to strain gauge channel, valid to “parameter write” only
Output
CarryOutBOOLFALSE
0 => parameter read or write in progress; 1 => parameter read or write is carried out
ErrorIDERROR_ID.NO_ERROR
TURE => Error code returned
StateReturnWORD0
State of parameter read cycle returned, [0] => digital output state;[1] => DONE; [8] => ReadWriteSelection; [11] => EEPROM; [12:15] => fixed function code = 3
ParameterIDReturnWORD0
Parameter ID returned
ParameterDataReturnParameter data returned