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
BuildAndEnqueueV3RequestUDINTAn UDINT representing the error code of the processing. 0 in case of success
Input
itfDatasourceIDatasources.IDatasourceAn instance of IDatasource, where the request will be enqueued.
itfCDSV3RequestBuilderAn instance of ICDSV3RequestBuilder, that is able to build the request
itfRequestCallbackIDatasources.ICustomRequestCallbackAn instance of ICustomRequestCallback, that will be informed if the result of the request is available
Output
eRemoteByteorderIDatasources.ByteOrderReturns the byte order of the PLC to which the request will be sent
xHasToSwapBOOLReturns TRUE if the PLC to which the request will be sent has a different byte order
itfCDSV3RequestIDatasources.ICDSV3RequestReturns the ICDSV3Request instance, that has to be released after the result was retrieved (in method RequestFinished by calling ICDSV3RequestHandling.ReleaseRequest)