Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

INT data
In
INT#1234
The following table shows the valid ranges for In and Out according to their data types.
Data type
Data type
of In
REAL
USINT
LREAL
REAL
UINT
LREAL
REAL
UDINT
LREAL
REAL
ULINT
LREAL
REAL
SINT
LREAL
REAL
INT
LREAL
REAL
DINT
LREAL
REAL
LINT
LREAL
Additional Information
• To convert a real number to an integer, use a **_TO_*** (Real Number-to-Integer Conversion Group)
instruction (page 2-276).
• To convert data with any data type to a real number, use a TO_** (Real Number Conversion Group)
instruction (page 2-310).
Precautions for Correct Use
• Always use the correct instruction name for the data types of In and Out.
• Depending on the data types of In and Out, rounding will be performed for the effective digits of the
real number. This will cause error between the values before and after conversion. The following
table lists the data types that result in error.
Data type
of In
DINT
REAL
LINT
UDINT
REAL
ULINT
LINT
LREAL
ULINT
LREAL

NY-series Instructions Reference Manual (W560)

REAL data
Out=abc
1.234e+3
Valid range for In
of Out
0 to 255
0 to 65535
0 to 4294967295
0 to 18446744073709551615
−128 to 127
−32768 to 32767
−2147483648 to 2147483647
−9223372036854775808 to
9223372036854775807
Data type
Values for which error occurs
of Out
−16777216 or lower, or 16777216 or higher
16777216 or higher
−9007199254740992 or lower, or 9007199254740992 or
higher
9007199254740992 or higher
2 Instruction Descriptions
Valid range for Out
0 to 2.55e+2
0 to 6.5535e+4
0 to 4.294967e+9
0 to 4.294967295e+9
0 to 1.844674e+19
0 to 1.84467440737095e+19
−1.28e+2 to 1.27e+2
−3.2768e+4 to 3.2767e+4
−2.147483e+9 to 2.147483e+9
−2.147483648e+9 to 2.147483647e+9
−9.223372e+18 to 9.223372e+18
−9.22337203685477e+18 to
9.22337203685477e+18
2
2-269

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents