Using Protocol Macros

Section 5-7

troller. When sequence execution has been completed, the PV is transferred to words to store it.

Execution

Protocol Macro Exe-

condition

cuting Flag

 

00000

20708

 

Protocol Macro

 

Executing Flag

 

20708

 

 

Protocol Macro

Transfer Step Error

Executing Flag

Processing Flag

00100

20708

20709

PMCR

#1000

If IR 20708 is OFF when the execution condition

 

turns ON, sequence #000 is executed and the PV is

DM 0100

stored in DM 0201.

 

DM 0200

 

 

When IR 20708 changes from ON to OFF, IR 00100

 

DIFD (14) 00100

 

will turn ON for one cycle.

 

Transfer Step Error

Processing Flag

20709

Protocol Macro Exe- cuting Flag

(IR 20708)

MOV (21)

DM 0201

DM 0300

FAL (07) 01

1

0

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.

IR 00100

Sequence

executed nor- Transfer Step Error

mally:Processing Flag (IR 20709)

Error in sequence

execution: Transfer Step Error Processing Flag (IR 20709)

 

 

Sequence

Sequence

 

Sequence

 

 

executed

completed

 

executed

1

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 cycle

 

 

 

 

 

1

 

 

 

 

 

PV in DM 0201

 

 

 

 

 

moved to DM 0300

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FAL executed

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

93

Page 104
Image 104
Omron CQM1H-SCB41 operation manual Processing When a Sequence Ends Abnormally