Port.Receive (METH) ¶ METHOD Receive : SysTypes.RTS_IEC_RESULT Tries to receive data from a socket; returns ERR_PENDING if there is no data to receive InOut: Scope Name Type Comment Return Receive SysTypes.RTS_IEC_RESULT Input pbyData POINTER TO BYTE Pointer to receive buffer diDataSize __XINT Size of the receive buffer Output udiIPFrom UDINT IP Address of the sender uiPortFrom UINT Destination Port diRecvSize __XINT Size of the received data eLogCode ErrorCode
Port.Receive2 (METH) ¶ METHOD Receive2 : SysTypes.RTS_IEC_RESULT Tries to receive data from a socket; returns ERR_PENDING if there is no data to receive InOut: Scope Name Type Comment Return Receive2 SysTypes.RTS_IEC_RESULT Input pbyData POINTER TO BYTE Pointer to receive buffer diDataSize __XINT Size of the receive buffer Output udiIPFrom UDINT IP Address of the sender uiPortFrom UINT Destination Port diRecvSize __XINT Size of the received data eSocketType SocketType eLogCode ErrorCode
Port.Send (METH) ¶ METHOD Send : SysTypes.RTS_IEC_RESULT Sends data to sIPAddressTo and uiPortTo InOut: Scope Name Type Comment Return Send SysTypes.RTS_IEC_RESULT Input udiIPTo UDINT Addr of the receiver uiPortTo UINT OPTIONAL: Port to send the data to (Property SendPort is the default) pbyData POINTER TO BYTE Pointer to user data diDataSize __XINT Size of the user data Output diSent __XINT Number of Bytes that have been sent eLogCode ErrorCode
Socket ¶ Bind (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) SetOption (Method)
UDPDriver (FB) ¶ FUNCTION_BLOCK UDPDriver UDP driver creates, maintains and closes sockets Methods: ClosePort CreatePort Select Structure: ClosePort (Method) CreatePort (Method) Select (Method)
UDPDriver.ClosePort (METH) ¶ METHOD ClosePort : SysTypes.RTS_IEC_RESULT Close the udp port InOut: Scope Name Type Comment Return ClosePort SysTypes.RTS_IEC_RESULT Input pPort POINTER TO Port Port to close Output eLogCode ErrorCode
IBusSpecificDataHandler.SyncdWriterSize (PROP) ¶ PROPERTY SyncdWriterSize : UDINT Property of type ‘UDINT’ to save the size of the writer buffer which is set by the standard RTS. This size is used to synchronize with the buffer size of the F-SPS because there is no writer’s interface yet to get the size
IBusSpecificDataHandler.TransmitDeviceSpecificData (METH) ¶ METHOD TransmitDeviceSpecificData : ERROR Method to transmit the content of a SNC service request to a specific F-SPS and to transform its reply as a SNC service reply InOut: Scope Name Type Comment Input eFSpsBusId FSPSBUSDRV F-SPS bus driver ID szSafetySvcDevAddr STRING device address to which the service should be directed pbySafetySvcData POINTER TO BYTE pointer to the specific safety service data udiSafetySvcDataSize UDINT size of this data hWriter RTS_IEC_HANDLE writer for the reply udiStdSpsBufferSize UDINT new synchronized size of the communication buffer of the standard SPS and the F-SPS Return TransmitDeviceSpecificData ERROR
ISncDevDesc (ITF) ¶ INTERFACE ISncDevDesc Interface for the device specific description of a F-SPS ability to get the F-SPS address as UDINT ability to get the complete device address of the F-SPS as STRING in the format <busAddr>:<FSpsAddr> ability to get the master index of the F-SPS ability to get the vendor ID of the F-SPS Properties: FSpsAddress FSpsDevAddress FSpsMasterIdx FSpsVendorID Structure: FSpsAddress (Property) FSpsDevAddress (Property) FSpsMasterIdx (Property) FSpsVendorID (Property)
ISncDevDesc.FSpsDevAddress (PROP) ¶ PROPERTY FSpsDevAddress : STRING Property of type ‘STRING’ to get the complete device address of the F-SPS in the format <busAddr>:<FSpsAddr>