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

LD
INT#32767
INT#1
The functions of the AddOU instruction and the +OU instruction are exactly the same. Use the form that
is easier to use.
Related System-defined Variables
Name
P_CY
Additional Information
• When you calculate real numbers, use the CheckReal instruction (page 2-209) to see if Out is posi-
tive infinity, negative infinity, or nonnumeric data.
• Use the ADD (+) instruction (page 2-152) if there is no need for an overflow/underflow check. It will
reduce processing time.
Precautions for Correct Use
• Set the data type of Out to include the valid ranges of In1 to InN.
• If In1 to InN and Out are integers, make sure the addition result will fit in the valid range of Out. Oth-
erwise, the value of Out will be an illegal value. An error will not occur.
• If the data types of In1 to InN are different, calculations and processing of P_CY are performed with
the data type that includes all of the data types of In1 to InN. For example, if In1 is INT data and In2 is
DINT data, calculations and P_CY processing are performed with DINT data.
• If In1 to InN contains real data, the value of P_CY does not change.
• Addition results of positive or negative infinity are handled as follows for real number values.
Addition
+∞
plus number
−∞
plus number
+∞
+∞
plus
−∞
−∞
plus
−∞
+∞
plus
• If any of the values of In1 to InN is nonnumeric data, the value of Out is nonnumeric data.
• If the value of Out is positive infinity, negative infinity, or nonnumeric data, the value of P_CY does not
change.
• You can add real numbers and integers. If you do, Out is a real number.

NJ-series Instructions Reference Manual (W502)

ST
abc:=AddOU(INT#32767, INT#1);
AddOU
EN
ENO
abc
In1
In2
Meaning
Carry (CY) Flag
Addition result
+∞
−∞
+∞
−∞
Nonnumeric
data
Data type
BOOL
TRUE: There is an overflow or underflow.
FALSE: There is no overflow or underflow.
2 Instruction Descriptions
Description
2
2-155

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents