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)
Constants (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant HeaderTagStandard UINT 16#CD55 TAG_GeneralError UINT 16#FF7F TAG_ExtendedErrorInfo UINT 16#FF7E
Errors (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant ERR_PLCS_UNKNOWN_PROTOCOL UDINT 16#1011 ERR_PLCS_ALIGNMENT UDINT 16#1010 ERR_TSW_NOTCREATED UDINT 16#1000 ERR_TSR_NOMORETAGS UDINT 16#1040 ERR_TSR_NOCONTAINERTAG UDINT 16#1041 ERR_TSR_NODATATAG UDINT 16#1042 ERR_TSR_ENDOFTAG UDINT 16#1043 ERR_TSR_READONWRONGTAG UDINT 16#1044 ERR_TSR_NOTCREATED UDINT 16#1045 The service reader object was not created completely or not created at all
ICDSV3RequestBuilder (ITF) ¶ INTERFACE ICDSV3RequestBuilder This interface is implemented by function blocks, that are able to build the CDSV3 service requests Methods: BuildRequest GetDataBuffer GetDataBufferSize GetService GetServiceGroup RequestEnqueued Structure: BuildRequest (Method) GetDataBuffer (Method) GetDataBufferSize (Method) GetService (Method) GetServiceGroup (Method) RequestEnqueued (Method)
ICDSV3RequestBuilder.BuildRequest (METH) ¶ METHOD BuildRequest : UDINT Method is called to build the request. InOut: Scope Name Type Comment Return BuildRequest UDINT The error code Input itfServiceWriter IServiceWriter An instance of IServiceWriter, that has to be used to build the request xHasToSwap BOOL TRUE if the PLC the request will be sent to, has a different byte order
ICDSV3RequestBuilder.GetDataBuffer (METH) ¶ METHOD GetDataBuffer : POINTER TO BYTE Returns a pointer to the buffer, where the request to send to the PLC will be built InOut: Scope Name Type Return GetDataBuffer POINTER TO BYTE
ICDSV3RequestBuilder.GetDataBufferSize (METH) ¶ METHOD GetDataBufferSize : UDINT Returns the size of the buffer, that is returned by method GetDataBuffer InOut: Scope Name Type Return GetDataBufferSize UDINT
ICDSV3RequestBuilder.GetService (METH) ¶ METHOD GetService : UINT Returns the service identifying the request InOut: Scope Name Type Comment Return GetService UINT an UINT representing the service
ICDSV3RequestBuilder.GetServiceGroup (METH) ¶ METHOD GetServiceGroup : UINT Returns the service group the request belongs to InOut: Scope Name Type Comment Return GetServiceGroup UINT an UINT representing the service group
ICDSV3RequestBuilder.RequestEnqueued (METH) ¶ METHOD RequestEnqueued : UDINT This method is a simple notification, that will be called, after the request was enqueued and will be sent soon. InOut: Scope Name Type Comment Return RequestEnqueued UDINT An UDINT representing the error code of the processing. 0 in case of success