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

2 Instruction Descriptions
LD
EN
In1
INT#10
In2
INT#20
INT#30
In3
The functions of the MUL instruction and the * instruction are exactly the same. Use the form that is
easier to use.
Additional Information
When you calculate real numbers, use the CheckReal instruction (page 2-209) to see if Out is positive
infinity, negative infinity, or nonnumeric data.
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 multiplication result will fit in the valid range of Out.
Otherwise, the value of Out will be an illegal value. An error will not occur.
• If any of In1 to InN is a real number and the multiplication result will not fit in the valid range of Out,
the value of Out will be positive or negative infinity.
• The results for overflows in multiplication are different for ladder diagrams and ST. In a ladder dia-
gram, the calculation is performed within the range of the data type of the input variables. In ST, the
precision of the numbers is increased to perform the calculation.
• Multiplication results of positive or negative infinity are handled as follows for real number values.
Multiplication
+∞
times positive number
+∞
times negative number
−∞
times positive number
−∞
times negative number
+∞
+∞
times
−∞
−∞
times
−∞
+∞
times
+∞
times 0
−∞
times 0
• If any of the values of In1 to InN is nonnumeric data, the value of Out is nonnumeric data.
• You can multiply real numbers and integers. If you do, Out is a real number.
2-162
ST
abc:=INT#10*INT#20*INT#30;
MUL
ENO
abc
Multiplication result
+∞
−∞
−∞
+∞
+∞
+∞
−∞
Nonnumeric data
Nonnumeric data

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents