2 Instructions
2-148 CP1E CPU Unit Instructions Reference Manual(W483)
Function
Sample program
Operation of ++(590)/++L(591)
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO 0.00
is ON.
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO 0.00
is ON.
++
The ++(590) instruction adds 1 to the binary content
of Wd. The specified word will be incremented by 1
every cycle as long as the execution condition of
++(590) is ON. When the up-differentiated variation
of this instruction (@++(590)) is used, the specified
word is incremented only when the execution condi-
tion has gone from OFF to ON.
++L
The ++L(591) instruction adds 1 to the 8-digit hexa-
decimal content of Wd+1 and Wd. The content of the
specified words will be incremented by 1 every cycle
as long as the execution condition of ++L(591) is
ON. When the up-differentiated variation of this
instruction (@++L(591)) is used, the content of the
specified words is incremented only when the execu-
tion condition has gone from OFF to ON.
+1
Wd Wd
WdWd+1 Wd+1 Wd
+1
0 0 1 9
Wd: D100
0 0 1 A
Incremented every cycle
while CIO 0.00 is ON.
Wd: D100
++
D100
+1
0.00
0.00
Wd+1: D101 Wd: D100 Wd+1: D101 Wd: D100
Increment Increment Increment Increment
: Execution of ++(590) or ++L(591)
Incremented every cycle
while CIO 0.00 is ON.
+1
++L
D100
0.00
0000 FFFF 0001 0000