INC
- 103 -
Program example
(1) Example of addition counter program
INCP
D8
M38
= D8K100
M38
18
M38 turns ON when D8 = 100.
X8
Execute D8+1 at X8 OFF to ON
when M38 is OFF.
14
K0 D8
X7
10
MOV
Set D8 to 0 when X7 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD X7
11 MOV K0 D8
14 LD X8
15 PLS M5
17 LD M5
18 ANI M38
19 INC D8
21 LD= K100 D8
24 OUT M38
25