SyncSendService (FUN)
FUNCTION SyncSendService : Error
This function can be used to transfer any runtime system service to the PLC.
Important
Before this function can be used it is necessary to call GetDeviceInfo to retrieve information about the PLC.
- InOut:
Scope
Name
Type
Comment
Return
SyncSendServiceAn errorcode representing the result of this operation
Input
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance of the PLCHandler to work on.
pbySendPOINTER TO BYTE
Pointer to the byte stream, which should be sent to the PLC
udiSendSizeUDINTLength of the byte stream to send
ppbyRecvPOINTER TO POINTER TO BYTE
Points to the buffer, where the result of the call is available
pudiRecvSizePOINTER TO UDINT
Points to an UDINT variable, that contains the length of the PLC’s service reply