BCD_TO_BYTE (FUN) ¶ FUNCTION BCD_TO_BYTE : BYTE Converts one byte in BCD code into one byte in binary code Use BYTE_TO_BCD for the reverse conversion. InOut: Scope Name Type Comment Return BCD_TO_BYTE BYTE Value in binary code for the input B Input B BYTE Value in BCD code
BCD_TO_DWORD (FUN) ¶ FUNCTION BCD_TO_DWORD : DWORD Converts one DWORD in BCD code into one DWORD in binary code Use DWORD_TO_BCD for the reverse conversion. InOut: Scope Name Type Comment Return BCD_TO_DWORD DWORD Value in binary code for the input X Input X DWORD Value in BCD code
BCD_TO_INT (FUN) ¶ FUNCTION BCD_TO_INT : INT Converts one byte in BCD format into an INT value Example in ST: i := BCD_TO_INT ( 73 ); (* Result is 49 *) k := BCD_TO_INT ( 151 ); (* Result is 97 *) l := BCD_TO_INT ( 15 ); (* Output -1, because it is not in BCD format *) InOut: Scope Name Type Comment Return BCD_TO_INT INT Value as INT for the input B Input B BYTE Value in BCD code. If the value is not in the BCD format, then the output is -1.
BCD_TO_WORD (FUN) ¶ FUNCTION BCD_TO_WORD : WORD Converts one WORD in BCD code into one WORD in binary code Use WORD_TO_BCD for the reverse conversion. InOut: Scope Name Type Comment Return BCD_TO_WORD WORD Value in binary code for the input W Input W WORD Value in BCD code
BYTE_TO_BCD (FUN) ¶ FUNCTION BYTE_TO_BCD : BYTE Converts one byte in binary code in the range of 0..99 into one byte in BCD code Use BCD_TO_BYTE for the reverse conversion. InOut: Scope Name Type Comment Return BYTE_TO_BCD BYTE Value in BCD code for the input B Input B BYTE Value in binary code
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