2 Instruction Descriptions
2-234
NJ-series Instructions Reference Manual (W502)
To convert data with any data type to integer data, use a TO_** (Integer Conversion Group) instruction
(page 2-277).
• Always use the correct instruction name for the data types of In and Out.
• If In is a signed integer and the data size of Out is larger than the data size of In, sign extension is
performed.
• If In is an unsigned integer and the data size of Out is larger than the data size of In, the upper digits
of Out will contain 0.
• If the data size of Out is smaller than the data size of In, the upper digits are truncated in Out.
LINT
USINT 0 to 255
UINT 0 to 65535
UDINT 0 to 4294967295
ULINT 0 to 9223372036854775807
SINT −128 to 127
INT −32768 to 32767
DINT −2147483648 to 2147483647
Additional Information
Precautions for Correct Use
Data type
of In
Data type
of Out
Valid range for In and Out