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
xExecute
BOOL
Rising 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
xAbort
BOOL
TRUE
: Action is stopped immediately and all outputs are reset to their initial values.ETrigA
Output
xDone
BOOL
TRUE
: Action successfully completedETrigA
xBusy
BOOL
TRUE
: Function block activeETrigA
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorETrigA
xAborted
BOOL
TRUE
: Action aborted by userETrigA
Input
usiCom
USINT
1
index of master 1: first Ethercat master
wSlaveIndex
WORD
index position to read eeprom data from 0,1…
udiTimeOut
UDINT
Timeout for operation in ms
Output
dwVendorID
DWORD
the vendor id for the slave
dwProductID
DWORD
the product id for the slave
dwRevisionID
DWORD
the revision id for the slave
dwSerialNo
DWORD
the serial number for the slave
wAliasAddress
WORD
the alias address for the slave (either eeprom 16#12 or with AL status register 16#134)
dwPortStatus
DWORD
Port Status of the slave (register 16#110 in upper word, register 16#0007 in lower word)
wRcvMbxOffset
WORD
Offset of receive mailbox
wRcvMbxSize
WORD
Size of receive mailbox
wSndMbxOffset
WORD
Offset of send mailbox
wSndMbxSize
WORD
Size of send mailbox
byMailboxProtocol
BYTE
Flags for mailbox (CoE, SoE etc.)