SNCM_ETC_VoE_SendReceive (FB)¶
FUNCTION_BLOCK SNCM_ETC_VoE_SendReceive
Function block for an abstract SNCM vendor over EtherCAT communication
- InOut:
Scope
Name
Type
Comment
Input
xExecuteBOOLtriggers the data transfer
usiComUSINTindex of first EtherCAT master
uiDeviceUINTphysical slave address
usiChannelUSINTchannel number; set != 0 although it’s unused
udiVendorIDUDINTvendor ID from device description
uiVendorTypeUINTvendor type from device description
uiInputMaxLengthUINTmaximal size of receive data; max 506 bytes
pbyInputDataPOINTER TO BYTE
pointer to receive data
uiOutputLengthUINTsize of send data; max 506 bytes
pbyOutputDataPOINTER TO BYTE
pointer to send data
udiTimeoutUDINTtimeout in ms for execution
Output
xDoneBOOLcommunication is done
xBusyBOOLcommunication is still busy
xErrorBOOLan error occurred while communication
xTimeoutErrorBOOLcommunication timed out with the set timeout value
uiSizeReceivedUINTsize of received data