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

SyncSendService

Error

An errorcode representing the result of this operation

Input

hPlcHandler

SysTypes.RTS_IEC_HANDLE

The instance of the PLCHandler to work on.

pbySend

POINTER TO BYTE

Pointer to the byte stream, which should be sent to the PLC

udiSendSize

UDINT

Length of the byte stream to send

ppbyRecv

POINTER TO POINTER TO BYTE

Points to the buffer, where the result of the call is available

pudiRecvSize

POINTER TO UDINT

Points to an UDINT variable, that contains the length of the PLC’s service reply