BuildAndEnqueueV3Request (FUN)

FUNCTION BuildAndEnqueueV3Request : UDINT

This function can be used to build a CDSV3 request and enqueue it in a given datasource.

InOut:

Scope

Name

Type

Comment

Return

BuildAndEnqueueV3Request

UDINT

An UDINT representing the error code of the processing. 0 in case of success

Input

itfDatasource

IDatasources.IDatasource

An instance of IDatasource, where the request will be enqueued.

itfCDSV3RequestBuilder

ICDSV3RequestBuilder

An instance of ICDSV3RequestBuilder, that is able to build the request

itfRequestCallback

IDatasources.ICustomRequestCallback

An instance of ICustomRequestCallback, that will be informed if the result of the request is available

Output

eRemoteByteorder

IDatasources.ByteOrder

Returns the byte order of the PLC to which the request will be sent

xHasToSwap

BOOL

Returns TRUE if the PLC to which the request will be sent has a different byte order

itfCDSV3Request

IDatasources.ICDSV3Request

Returns the ICDSV3Request instance, that has to be released after the result was retrieved (in method RequestFinished by calling ICDSV3RequestHandling.ReleaseRequest)