DEFR
- 71 -
Program example
(1) Program to turn Y0 ON for one scan when X9 turns ON.
X9 OFF
Y0 OFF
ON
ON
1 scan
(2) Program to execute MOV command once when X9 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD X9
11 ANDP M0
12 OUT Y0
X9
10
M0
Y0
13
Coding
No. of
steps
Com-
mand
Device
10 LD X9
11 ANDP M0
12 MOV K0 D10
D10
K0
X9
10
M0
MOV
15