ETC_VoE_SendReceive (FB)ΒΆ
FUNCTION_BLOCK ETC_VoE_SendReceive
fuhction block to read and write VoE (Vendor over EtherCAT) specific mailbox requests
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLRising edge: ACTION starts Falling edge: Resets outputs If 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) are present at the outputs for exactly one cycle.
usiComUSINT1
index of master 1: first ETC master
uiDeviceUINTThe physical slave address to access the EtherCAT slave
usiChannelUSINT1
not used in the moment because channel is set automatically
udiVendorIDUDINTthe required vendor id for the VoE prototcol
uiVendorTypeUINTthe required vendor type for the VoE protocol
uiInputMaxLengthUINTsize of buffer for the input data (max 506 bytes)
pbyInputDataPOINTER TO BYTE
pointer to the input data
uiOutputLengthUINTsize of output data (max 506 bytes)
pbyOutputDataPOINTER TO BYTE
pointer to the output data
udiTimeoutUDINTthe timeout in milliseconds
Output
xDoneBOOLTRUE: Action successfully completed
xBusyBOOLTRUE: Function block active
xErrorBOOLTRUE: Error occurred, function block aborts action, FALSE: No error
xTimeoutErrorBOOLTRUE: request timed out
uiSizeReceivedUINTNumber of bytes received