Omron CQM1H-SCB41 Computer Hardware User Manual


 
5-7SectionUsing Protocol Macros
93
troller. When sequence execution has been completed, the PV is transferred to
words to store it.
Execution
condition
Protocol Macro Exe-
cuting Flag
Protocol Macro
Executing Flag
Transfer Step Error
Processing Flag
Transfer Step Error
Processing Flag
If IR 20708 is OFF when the execution condition
turns ON, sequence #000 is executed and the PV is
stored in DM 0201.
When IR 20708 changes from ON to OFF, IR 00100
will turn ON for one cycle.
If IR 00100 is ON, IR 20708 is OFF, and IR 20709 is
OFF, the PV in DM 0201 is moved to DM 0300.
If IR 00100 is ON and IR 20709 is ON, an error will
have occurred in the sequence and a non-fatal error
is generated.
PMCR
#1000
DM 0100
DM 0200
DIFD (14) 00100
MOV (21)
DM 0201
DM 0300
FAL (07) 01
00000
20708
00100
20709
20708
20708 20709
Protocol Macro Exe-
cuting Flag
(IR 20708)
Transfer Step Error
Processing Flag
(IR 20709)
IR 00100
Transfer Step Error
Processing Flag
(IR 20709)
Sequence
executed
Sequence
completed
Sequence
executed
1 cycle
PV in DM 0201
moved to DM 0300
FAL executed
Sequence
executed nor-
mally:
Error in
sequence
execution:
1
0
1
0
1
0
1
0
Protocol Macro
Executing Flag
Processing When a Sequence Ends Abnormally
As shown in the following examples, if END is set when a sequence ends nor-
mally and ABORT is set when a sequence ends abnormally, it is possible to de-
termine whether each sequence has ended normally or abnormally by using the
Sequence End Completion Flag and the Sequence Abort Completion Flag.