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 - xExecute- BOOL- triggers the data transfer - usiCom- USINT- index of first EtherCAT master - uiDevice- UINT- physical slave address - usiChannel- USINT- channel number; set != 0 although it’s unused - udiVendorID- UDINT- vendor ID from device description - uiVendorType- UINT- vendor type from device description - uiInputMaxLength- UINT- maximal size of receive data; max 506 bytes - pbyInputData- POINTER TO BYTE - pointer to receive data - uiOutputLength- UINT- size of send data; max 506 bytes - pbyOutputData- POINTER TO BYTE - pointer to send data - udiTimeout- UDINT- timeout in ms for execution - Output - xDone- BOOL- communication is done - xBusy- BOOL- communication is still busy - xError- BOOL- an error occurred while communication - xTimeoutError- BOOL- communication timed out with the set timeout value - uiSizeReceived- UINT- size of received data 
