The following example is for when In1 is INT#18 and In2 is INT#5. The value of variable abc will be
INT#3.
LD
EN
In1
INT#18
In2
INT#5
Precautions for Correct Use
• Set the data type of Out to include the valid ranges of In1 and In2.
• An error occurs in the following case. ENO will be FALSE, and Out will not change.
• The value of In2 is 0.
NJ-series Instructions Reference Manual (W502)
ST
abc:=INT#18 MOD INT#5;
MOD
ENO
abc
2 Instruction Descriptions
2
2-169