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

The following example for the DegToRad instruction is for when In is REAL#45. The value of the
REAL variable abc will be REAL#0.785398.
LD
REAL#45
Additional Information
Use the CheckReal instruction (page 2-209) to see if Out is positive infinity, negative infinity, or nonnu-
meric data.
Precautions for Correct Use
• If the absolute value of the conversion result exceeds the maximum value of the data type of Out, the
value of Out will be positive or negative infinity.
• If the absolute value of the conversion result is lower than the minimum value of the data type of Out,
the value of Out will be 0.
• Make sure that the data type of Out is equal to or larger than the data type of In.
• If the value of In is positive infinity, negative infinity, or nonnumeric data, the value of Out is as shown
below.
Value of In
+∞
−∞
Nonnumeric data Nonnumeric data
• If you pass an integer parameter to In, the data type is converted as follows:
Data type of parameter that is
passed to In
USINT, UINT, SINT, or INT
UDINT or DINT
ULINT or LINT

NJ-series Instructions Reference Manual (W502)

DegToRad
EN
ENO
abc
In
Value of Out
+∞
−∞
Data type of In
REAL
LREAL
A building error will occur.
2 Instruction Descriptions
ST
abc:=DegToRad(REAL#45);
2
2-173

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents