6-73
DINC(P),DDEC(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))
Program Example
(1) The following program adds 1 to the data at D0 and D1 when X0 is ON.
[Ladder Mode] [List Mode]
(2) The following program adds 1 to the data set at X10 to X27 when X0 goes ON, and stores
the result at D3 and D4.
[Ladder Mode] [List Mode]
(3) The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
[Ladder Mode] [List Mode]
(4) The following program subtracts 1 from the data set at X10 to X27 when X0 goes ON, and
stores the result at D3 and D4.
[Ladder Mode] [List Mode]
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device