47
Sample Program
Insert the program below before the END instruction in the program on page 45.
MOV (21)
103
DM0000
DIFD (14)
23300
KEEP(11)
23208
23301
25313
23208
23207
10608
23300
23307
MOV (21)
#1020
100
DIFD (14)
23302
23302
KEEP(11)
23303
23303
DIFD (14)
23304
10600
S
R
S
R
10701
(C200H)
10700
23301
0001
#1020
Normally ON
Read Loop 1 PV from IR103 to DM
0000.
Read operation is not affected by
SW2-1 and SW2-2 settings.
Write complete
Runs next Read command
when final write complete is
detected.
Normal
23307 repeatedly executes the Read
command when each Read Complete
is detected.
Wait for Read Complete
to read data
Read complete
Control output variable
monitor command
Bank number not required
Bit data:
Loop 1
Read
(A)
MOV (21)
105
DM0001
23304
Read data from IR105 to DM 0001.
(B)
DIFD (14)
23307
MOV (21)
#0000
2000
Programming