RDT_Client.Error (PROP) ¶ PROPERTY Error : BOOL Error condition reached
RDT_Client.ErrorCode (PROP) ¶ PROPERTY ErrorCode : INT
RDT_Client.ExecCommand (METH) ¶ METHOD ExecCommand Execution of a command in Client side: command is sent to server InOut: Scope Name Type Comment Input uiCmd UINT Command pDataTrs __XWORD Pointer to the data to transmit diLen DINT Data length to transmit pDataRcv __XWORD Pointer where to write data received diSizeRcv DINT Maximum size of the above buffer Output xDone BOOL Operation done, with or without errors error INT Error uiAns UINT Answer diLenRcv DINT Data length received
RDT_Client.SetNewCertificate (METH) ¶ METHOD SetNewCertificate : INT Set the new certificate to use InOut: Scope Name Type Return SetNewCertificate INT Input hCert RTS_IEC_HANDLE
RDT_Client.ItfConnection (PROP) ¶ PROPERTY ItfConnection : NBS.IConnection
Private ¶ ConnectionTimeout (Property)
RDT_Client.ConnectionTimeout (PROP) ¶ PROPERTY ConnectionTimeout : TIME Timeout after which the connection setup aborts with active xError .
RDT_Client.TrsMessage (METH) ¶ METHOD TrsMessage It handles a complete transmisstion of a message InOut: Scope Name Type Comment Input psCom POINTER TO RdtProtStructCommPh Pointer to command phase header pDataTrs __XWORD Pointer to the data to transmit psRes POINTER TO RdtProtStructResPh Pointer where to write to result phase header pDataRcv __XWORD Pointer where to write data received diSizeRcv DINT Maximum size of the above buffer Output xDone BOOL Operation done, with or without errors errorProt INT Protocol error
RDT_ERROR (ENUM) ¶ TYPE RDT_ERROR : Attributes: qualified_only InOut: Name Initial Comment ERR_RDT_NO_ERROR 0 ERR_RDT_RESPH_KO 1000 The first error enumeration is the reported by NBS ERR_RDT_RESPH_KO_CMD Result phase not correct, command not correct ERR_RDT_BUFFER_SIZE Buffer not big enought ERR_RDT_RESCM_KO Command phase not correct ERR_RDT_RESCM_KO_TYPE Command phase not correct, protocol type ERR_RDT_NO_DATA No data in the queue ERR_RDT_TIME_OUT_TRS Transmission timeout ERR_RDT_TIME_OUT_REC Receiving timeout ERR_RDT_STATEM_ERR State machine general error ERR_RDT_WRONG_PARAMETER Wrong parameter
RDT_Server (FB) ¶ FUNCTION_BLOCK RDT_Server EXTENDS RDT_Base IMPLEMENTS IRdtProtServer Server FB that encapsulates NBS.TCP activities in Redundancy Data Transfer Sets up a server over the ip and port specified in “ipAddress” and “uiPort” in “Initialize” method. A server can handle several connections. The output “itfServer” of this function block can be used to establish a connection via |TCP_Connection| . Properties: Active Busy Enable Error ErrorCode IPAddress , inherited from RDT_Base Port , inherited from RDT_Base RcvTimeout , inherited from RDT_Base TrsTimeout , inherited from RDT_Base Methods: FB_exit RcvCommand RcvData TrsAnswer Create CyclicCall FlushRec , inherited from RDT_Base ReceiveBytes , inherited from RDT_Base RegisterCommand SendBytes , inherited from RDT_Base SetNewCertificate SetTLSContext , inherited from RDT_Base Structure: FB_exit (Method) IRdtProServer Active (Property) Busy (Property) Create (Method) CyclicCall (Method) Enable (Property) Error (Property) ErrorCode (Property) RegisterCommand (Method) SetNewCertificate (Method) RcvCommand (Method) RcvData (Method) TrsAnswer (Method)