ReadEEpromData (FB)
FUNCTION_BLOCK ReadEEpromData EXTENDS CBM.ETrigA
Reads the first 56 Bytes of the EEprom and extract some data from the byte array
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xExecuteBOOLRising edge: Action startsFalling edge: Resets outputsIf 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,iError) are present at the outputs for exactly one cycle.ETrigA
xAbortBOOLTRUE: Action is stopped immediately and all outputs are reset to their initial values.ETrigA
Output
xDoneBOOLTRUE: Action successfully completedETrigA
xBusyBOOLTRUE: Function block activeETrigA
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrigA
xAbortedBOOLTRUE: Action aborted by userETrigA
Input
usiComUSINT1
index of master 1: first Ethercat master
wSlaveIndexWORDindex position to read eeprom data from 0,1…
udiTimeOutUDINTTimeout for operation in ms
Output
dwVendorIDDWORDthe vendor id for the slave
dwProductIDDWORDthe product id for the slave
dwRevisionIDDWORDthe revision id for the slave
dwSerialNoDWORDthe serial number for the slave
wAliasAddressWORDthe alias address for the slave (either eeprom 16#12 or with AL status register 16#134)
dwPortStatusDWORDPort Status of the slave (register 16#110 in upper word, register 16#0007 in lower word)
wRcvMbxOffsetWORDOffset of receive mailbox
wRcvMbxSizeWORDSize of receive mailbox
wSndMbxOffsetWORDOffset of send mailbox
wSndMbxSizeWORDSize of send mailbox
byMailboxProtocolBYTEFlags for mailbox (CoE, SoE etc.)