ETC_SoE_IDNWrite4 (FB)ΒΆ
FUNCTION_BLOCK ETC_SoE_IDNWrite4
Function block to write an IDN from an SoE EtherCAT Slave with 4 Bytes
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLRising edge: ACTION starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle.
xAbortBOOLFALSE
TRUE: Action is stopped immediately and all outputs are reset to their initial values.
usiComUSINT1
Index of master 1: first ETC master
uiDeviceUINTThe physical slave address to access the EtherCAT slave
usiChannelUSINT1
not used in the moment because channel is set automatically
wIDNWORDThe IDN to read
byElemBYTE0
2 Name, 3 Attribute, 4 Unit, 5 Minimum, 6 Maximum, 0 or 7 Value
udiTimeOutUDINTTimeout for operation in ms
abyDataARRAY [1..4] OF BYTE
Data to be written
usiDataLengthUSINTNumber of byte to be written
byDriveBYTE0
If the device is a multidrive with this input the drive number could be selected
Output
xDoneBOOLTRUE: Action successfully completed
xBusyBOOLTRUE: Function block active
xErrorBOOLTRUE: Error occurred, function block aborts action, FALSE: No error
eErrorIf xError is true then this output shows the error reason
udiSercosErrorUDINTError code as received from the EtherCAT slave