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

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

Advertisement

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 a BCD bit string to an integer, use a BCD_TO_** instruction (page 2-247).
• To convert an integer to a BCD bit string, use a **_TO_BCD_*** instruction (page 2-245).
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.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.

NY-series Instructions Reference Manual (W560)

Valid range for In
of Out
16#00 to 16#99 (BCD)
16#0000 to 16#0255 (BCD)
16#0000 to 16#9999 (BCD)
16#0000 to 16#0127 (BCD)
16#0000 to 16#9999 (BCD)
16#0000_0000 to 16#0000_0255 (BCD)
16#0000_0000 to 16#0006_5535 (BCD)
16#0000_0000 to 16#9999_9999 (BCD)
16#0000_0000 to 16#0000_0127 (BCD)
16#0000_0000 to 16#0003_2767 (BCD)
16#0000_0000 to 16#9999_9999 (BCD)
16#0000_0000_0000_0000 to
16#0000_0000_0000_0255 (BCD)
16#0000_0000_0000_0000 to
16#0000_0000_0006_5535 (BCD)
16#0000_0000_0000_0000 to
16#0000_0042_9496_7295 (BCD)
16#0000_0000_0000_0000 to
16#9999_9999_9999_9999 (BCD)
16#0000_0000_0000_0000 to
16#0000_0000_0000_0127 (BCD)
16#0000_0000_0000_0000 to
16#0000_0000_0003_2767 (BCD)
16#0000_0000_0000_0000 to
16#0000_0021_4748_3647 (BCD)
16#0000_0000_0000_0000 to
16#9999_9999_9999_9999 (BCD)
2 Instruction Descriptions
Valid range for Out
0 to 99
0 to 255
0 to 9999
0 to 127
0 to 9999
0 to 255
0 to 65535
0 to 99999999
0 to 127
0 to 32767
0 to 99999999
0 to 255
0 to 65535
0 to 4294967295
0 to 9999999999999999
0 to 127
0 to 32767
0 to 2147483647
0 to 9999999999999999
2
2-243

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents