DINC
- 105 -
Program example
(1) Program to increment the D0, 1 data by one when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 DINC D0
DINC D0
M0
10
(Pulse coding)
13
(2) Program to increment X10 to 27 data by one when M0 turns ON, and to store the results in D3, 4.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 DMOV K6X10 D3
14 DINC D3
K6X10
DMOV10
D3
M0
DINC D3
(Pulse coding)
16