Basics
56
by the compiler.
All DUTs with exactly 32 members of the data type BOOL
Note:
These are automatically placed by the compiler in area R.
1.4.5.3 BCD_WORD
The data type BCD_WORD (binary-coded decimal) only occurs in the conversion functions
INT_TO_BCD_WORD (see page 243) and UINT_TO_BCD_WORD (see page 245). These conversion functions
use variables of the type WO
RD, which are interpreted as BCD numbers, e.g. the decimal number 654 is
interpreted as the hexadecimal number 16#0654.
1.4.5.4 WORD_BCD
The data type WORD_BCD (binary-coded decimal) only occurs in the conversion functions
WORD_BCD_TO_INT (see page 146) and WORD_BCD_TO_UINT (see page 158). These conversion functions
use variables of the type WO
RD, which are interpreted as BCD numbers, e.g. the decimal number 654 is
interpreted as the hexadecimal number 16#0654.
1.4.5.5 BCD_DWORD
The data type BCD_DWORD (binary-coded decimal) only occurs in the conversion functions
DINT_TO_BCD_DWORD (see page 244) and UDINT_TO_BCD_DWORD (see page 246). These conversion
functions use
variables of the type DWORD, which are interpreted as BCD numbers, e.g. the decimal number
654 is interpreted as the hexadecimal number 16#0654.
1.4.5.6 DWORD_BCD
The data type DWORD_BCD (binary-coded decimal) only occurs in the conversion functions
DWORD_BCD_TO_DINT (see page 169) and DWORD_BCD_TO_UDINT (see page 182). These conversion
functions use
variables of the type DWORD, which are interpreted as BCD numbers, e.g. the decimal number
654 is interpreted as the hexadecimal number 16#0654.
1.4.5.7 IPADDR
The data type IPADDR only occurs in the following conversion functions:
IPADDR_TO_STRING (see page 232)
IPADDR_TO_STRING_
NO_LEADING_ZEROS (see page 233)
STRING_TO_
IPADDR (see page 247)
STRING_TO_IPADDR_STEPSAVER (see page 248)
The
se conversion func
tions interpret variables of the type DWORD as strings in IPADDR format. This format
consists of four octal numbers (with or without leading zeros) separated by periods in opposite order, i.e. the
highest octal number in the IPADDR number will be the lowest octal number in the string.