Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 166

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Precautions
■When specifying the same device in the source and destination
The same device number can be specified for both the source and the destination. In this case, note that the addition result
changes in every operation cycle if a continuous operation type ADD instruction is used.
X1
ADD
■Difference between ADD(P) instruction, +(P) instruction, and INC(P) instruction in a program
for adding "+1"
When ADD(P) instruction is used to add 1 to the contents of D0 every time X1 turns from OFF to ON, ADD(P) instruction is
similar to +(P) instruction and INC(P) instruction described later except for the contents shown in the table below
Flag (zero, borrow or carry)
Operation result
(s)+1=(d)
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
164
6.2 Arithmetic Operation Instructions
(D0)+25 → (D0)
D0
K25
D0
ADD(P) instruction
Operates
+32767  0  +1  +2 ...
+(P) instruction, INC(P) instruction
Does not operate
+32767  -32768  -32767 ...

Advertisement

Table of Contents
loading

Table of Contents