Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

WORD data
In
WORD#16#8000
The following table shows the valid ranges for In and Out according to their data types.
Data
Data type
type of
In
REAL
BYTE
LREAL
REAL
WORD
LREAL
REAL
DWORD
LREAL
REAL
LWORD
LREAL
Additional Information
• To convert a real number to a bit string, use a **_TO_*** (Real Number-to-Bit String Conversion
Group) instruction (page 2-249).
• To convert data with any data type to a real number, use a TO_** (Real Number Conversion Group)
instruction (page 2-281).
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
DWORD
LWORD

NJ-series Instructions Reference Manual (W502)

REAL data
Out=abc
3.2768e+4
Valid range for In
of Out
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
Data type
Values for which error occurs
of Out
REAL
16#0100_0000 or higher
LREAL
16#0002_0000_0000_0000 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
2
2-245

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents