DDEC
- 109 -
Program example
(1) Program to decrement the D0, 1 data by one when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 DDEC D0
DDEC
D0
M0
10
(pulse coding)
13
(2) Program to decrement 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 DDEC D3
M0
K6X10
DMOV10
D3
DDEC
D3
(pulse coding)
16