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

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

Advertisement

WORD data
In
WORD#16#1234
The following table shows the valid ranges for In and Out according to their data types.
Data type
Data type
of In
USINT
UINT
UDINT
ULINT
BYTE
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
WORD
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
DWORD
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
LWORD
SINT
INT
DINT
LINT
Additional Information
• To convert an integer to a bit string, use a **_TO_*** (Integer-to-Bit String Conversion Group) instruc-
tion (page 2-265).
• To convert data with any data type to a bit string, use a TO_** (Bit String Conversion Group) instruc-
tion (page 2-308).
Precautions for Correct Use
• Always use the correct instruction name for the data types of In and Out.
• If 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.

NY-series Instructions Reference Manual (W560)

INT data
Out=abc
Valid range for In
of Out
16#00 to 16#FF
16#00 to 16#FF
16#0000 to 16#FFFF
16#00 to 16#FF
16#0000 to 16#FFFF
16#00 to 16#FF
16#0000 to 16#FFFF
16#0000_0000 to 16#FFFF_FFFF
16#00 to 16#FF
16#0000 to 16#FFFF
16#0000_0000 to 16#FFFF_FFFF
16#00 to 16#FF
16#0000 to 16#FFFF
16#0000_0000 to 16#FFFF_FFFF
16#0000_0000_0000_0000 to
16#FFFF_FFFF_FFFF_FFFF
16#00 to 16#FF
16#0000 to 16#FFFF
16#0000_0000 to 16#FFFF_FFFF
16#0000_0000_0000_0000 to
16#FFFF_FFFF_FFFF_FFFF
4660
0 to 255
−128 to 127
0 to 255
0 to 65535
−128 to 127
−32768 to 32767
0 to 255
0 to 65535
0 to 4294967295
−128 to 127
−32768 to 32767
−2147483648 to 2147483647
0 to 255
0 to 65535
0 to 4294967295
0 to 18446744073709551645
−128 to 127
−32768 to 32767
−2147483648 to 2147483647
-9223372036854775808 to
9223372036854775807
2 Instruction Descriptions
Valid range for Out
2
2-271

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents