2 Instruction Descriptions
2-162
NJ-series Instructions Reference Manual (W502)
The functions of the MUL instruction and the * instruction are exactly the same. Use the form that is
easier to use.
When you calculate real numbers, use the CheckReal instruction (page 2-209) to see if Out is positive
infinity, negative infinity, or nonnumeric data.
• 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.
• 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.
Additional Information
Precautions for Correct Use
Multiplication Multiplication result
+∞ times positive number +∞
+∞
times negative number −∞
−∞
times positive number −∞
−∞
times negative number +∞
+∞
times +∞ +∞
−∞
times −∞ +∞
+∞
times −∞ −∞
+∞
times 0
Nonnumeric data
−∞ times 0
Nonnumeric data
abc:=INT#10*INT#20*INT#30;
LD ST
abc
INT#10
INT#20
INT#30
MUL
EN ENO
In1
In2
In3