2 Instruction Descriptions
2-202
NJ-series Instructions Reference Manual (W502)
• Refer to the descriptions of the functions of the ADD (+) instruction (page 2-152), SUB (−) instruction
(page 2-156), MUL (*) instruction (page 2-161), and DIV (/) instruction (page 2-166) for the calcula-
tion results when the value of In[] is positive infinity, negative infinity, or nonnumeric data.
• If In[] or Out is an integer, the decimal portion of the average is truncated.
• If you use a different data type for In[] and Out, make sure the valid range of Out includes the valid
range of In[].
• If the calculation result exceeds the valid range of Out, Out will contain an illegal value. An error will
not occur.
• If an intermediate value in the calculation process exceeds the valid range of IN[], Out will contain an
illegal value. An error will not occur.
• If the value of Size is 0, the value of Out is 0.
• An error occurs in the following case. ENO will be FALSE, and Out will not change.
• The value of Size exceeds the array area of In[].
Precautions for Correct Use