ETC_ADS_IoLinkWrite (FB)ΒΆ
FUNCTION_BLOCK ETC_ADS_IoLinkWrite EXTENDS ETC_ADS_IoLink
Function block to write an IO-Link object from a EtherCAT IO-Link gateway
- 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
usiComUSINTIndex of master 1: first ETC master
ETC_ADS_IoLink
uiDeviceUINTThe physical slave address to access the EtherCAT slave
ETC_ADS_IoLink
usiChannelUSINT1
not used in the moment because channel is set automatically
ETC_ADS_IoLink
udiTimeoutUDINTTimeout for operation in ms
ETC_ADS_IoLink
usiPortUSINTPort of IO-Link Device
ETC_ADS_IoLink
uiIndexUINTIndex of the IOLink object
ETC_ADS_IoLink
usiSubIndexUSINTSubindex of the IOLink object
ETC_ADS_IoLink
udiSizeUDINTNumber of bytes of pbyData
ETC_ADS_IoLink
pbyDataPOINTER TO BYTE
Pointer to the data containing the data to be written or pointer to read data
ETC_ADS_IoLink
udiIndexGroupUDINT16#F302
Indexgroup of the Io-Link object
ETC_ADS_IoLink
Output
udiResponseErrorUDINTADS Response Error
ETC_ADS_IoLink
udiDataWrittenUDINTNumber of bytes successfully written