ReadIdentification (FB)¶
FUNCTION_BLOCK ReadIdentification EXTENDS ETrigA
Reads the identification data from a EtherCAT slave
- 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 identifcation from 0,1.
udiTimeOut
UDINT
Timeout for operation in ms
xReadReg0x12
BOOL
Flag if register 0x12 (station alias) should be read
xReadReg0x134
BOOL
Flag if register 0x134 (explicit device identification) should be read
xReadRegAdo
BOOL
Flag if register Ado should be read
wAdo
WORD
The address of the ado identification
Output
wStationAlias
WORD
Result for Register 0x12
wReg134
WORD
Result for 0x134
wAdoValue
WORD
Result für ADO identification