Chapter 8 Logic Instructions
8-161
the less-length data to corresponding bits of the greater-length data and setting the values of
the remaining bits of the greater-length data to 0.
The greater-length data is converted to the less-length data by revising the values of all bits of
the less-length data into the values of the corresponding bits of the greater-length data and the
values of the remaining bits of the greater-length data are not converted and have no impact
on the conversion.
If the lengths of the two data to convert are equal, all values of all bits of In are copied and
pasted to the corresponding bits of Out.
 The Bit-string data are converted into the Integer data as the following table shows.
The value of In corresponds to the value of Out
BYTE
SINT
0~127
DINT
0~255
WORD
UINT
0~65535
SINT
0~127
INT
DWORD
16#****_**00~16#****_**FF
16#****_0000~16#****_FFFF
UDINT
16#0000_0000~16#FFFF_FFF
F
0~4294967295
ULINT
16#0000_0000~16#FFFF_FFF
F
0~4294967295
SINT
16#****_**00~16#****_**7F
16#****_**80~16#****_**FF
INT
16#****_0000~16#****_7FFF
16#****_8000~16#****_FFFF
-32768~-1
DINT
16#0000_0000~16#7FFF_FFF
F
0~2147483647
16#8000_0000~16#FFFF_FFF
F
-2147483648~-1
LINT
16#0000_0000~16#FFFF_FFF
F
0~4294967295
LWORD
USINT
16#****_****_****_**00~
16#****_****_****_**FF
0~255
UINT
16#****_****_****_0000~
16#****_****_****_FFFF
0~65535