DWORD_TO_BCD (FUN) ¶ FUNCTION DWORD_TO_BCD : DWORD Converts one DWORD in binary code into one DWORD in BCD code Use BCD_TO_DWORD for the reverse conversion. InOut: Scope Name Type Comment Return DWORD_TO_BCD DWORD Value in BCD code for the input X Input X DWORD Value in binary code. Valid range: 0..99999999
INT_TO_BCD (FUN) ¶ FUNCTION INT_TO_BCD : BYTE Converts an INT value into a byte in BCD code Example in ST: i := INT_TO_BCD ( 49 ); (* Result is 73 *) k := BCD_TO_INT ( 97 ); (* Result is 151 *) l := BCD_TO_INT ( 100 ); (* Error! Output: 255 *) InOut: Scope Name Type Comment Return INT_TO_BCD BYTE Value in BCD code for the input I Input I INT Value as INT. A wrong value (<0 or >99) causes a return of 255.
Port.LeaveGroup (METH) ¶ METHOD LeaveGroup : SysTypes.RTS_IEC_RESULT Leave a multicast group InOut: Scope Name Type Comment Return LeaveGroup SysTypes.RTS_IEC_RESULT Input udiGroupAddress UDINT Address of the group to leave udiInterfaceAddress UDINT IP Address of the NIC which shall leave this group Output eLogCode ErrorCode
Port.SetInterface (METH) ¶ METHOD SetInterface : SysTypes.RTS_IEC_RESULT Defines the interface which shall be used to send multicast packets InOut: Scope Name Type Comment Return SetInterface SysTypes.RTS_IEC_RESULT Input udiIPAddress UDINT IP Address of the NIC which shall be used for sending multicast packets. Output eLogCode ErrorCode
Port.IPAddress (PROP) ¶ PROPERTY IPAddress : UDINT IP Address the port shall be bound to
Port.ReceivePort (PROP) ¶ PROPERTY ReceivePort : UINT Port on which messages are expected
Port.SendPort (PROP) ¶ PROPERTY SendPort : UINT Port through wich messages shall be sent.
Port.Socket (PROP) ¶ PROPERTY Socket : SysTypes.RTS_IEC_HANDLE
Port.Bind (METH) ¶ METHOD Bind : UDINT Bind the socket to a certain (local) address. InOut: Scope Name Type Comment Return Bind UDINT Input udiIPAddress UDINT Local IP Address the port shall be bound to.
Port.FdIsSet (METH) ¶ METHOD FdIsSet : BOOL Returns TRUE if the port’s socket is part of the file descriptor set InOut: Scope Name Type Return FdIsSet BOOL Input socketFD_SET SysSocket.SOCKET_FD_SET