ReadIdentification (FB)
FUNCTION_BLOCK ReadIdentification EXTENDS CBM.ETrigA
Reads the identification data from a EtherCAT slave
- 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 identifcation from 0,1.
udiTimeOutUDINTTimeout for operation in ms
xReadReg0x12BOOLFlag if register 0x12 (station alias) should be read
xReadReg0x134BOOLFlag if register 0x134 (explicit device identification) should be read
xReadRegAdoBOOLFlag if register Ado should be read
wAdoWORDThe address of the ado identification
Output
wStationAliasWORDResult for Register 0x12
wReg134WORDResult for 0x134
wAdoValueWORDResult für ADO identification