Using Protocol Macros

Section 5-7

Example 1

Example 2

Sequence

Sequence

Step No. 00

Step No. 00

Error

 

Error

Sequence ended

 

 

abnormally

 

 

Step No. 01

Step No. 01

Step No. 02

Sequence ended

 

 

abnormally

 

Se-

 

 

quence

Error

 

Error ended

 

 

abnor-

 

 

mally

 

 

Sequence ended

 

 

 

 

 

Sequence ended

 

Sequence ended

 

 

normally

 

 

 

 

 

normally

 

normally

 

 

 

 

When the Sequence Ends Normally

 

 

 

 

When the Sequence Ends Normally

 

 

 

 

Protocol Macro

 

 

 

 

 

 

 

 

Protocol Macro

 

 

 

 

 

 

 

 

 

 

Executing Flag

 

 

 

 

 

 

 

 

Executing Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequence

 

Sequence

Sequence

 

 

 

 

 

 

 

 

 

 

 

Sequence

 

Sequence

Sequence

 

executed

 

 

completed

 

 

re-executed

 

 

 

 

executed

 

completed

 

 

re-executed

Sequence End

 

 

 

 

 

 

 

 

Sequence End

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Completion Flag

 

 

 

 

 

 

 

 

Completion Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error processing

 

 

 

 

Step Error

 

 

 

 

 

 

 

 

Step Error

 

 

for step No. 00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Processing

 

 

 

 

 

 

 

 

 

 

Processing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag

 

 

 

 

 

 

 

 

 

 

Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When the Sequence Ends Abnormally

 

 

 

 

When the Sequence Ends Abnormally

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Protocol Macro

 

 

 

 

 

 

 

 

Protocol Macro

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Executing Flag

 

 

 

 

 

 

 

 

 

 

Executing Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequence

 

 

Sequence

 

 

Sequence

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequence

Sequence

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequence

 

executed

 

 

completed

 

 

 

re-executed

 

 

 

executed

 

completed

 

 

 

re-executed

 

Sequence Abort

 

 

 

 

 

 

 

Sequence Abort

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Completion Flag

 

 

 

 

 

 

 

Completion Flag

 

 

 

 

 

 

 

 

 

 

Step Error

Processing

Flag

Error processing for step No. 00

Step Error

Processing Flag

Note The Step Error Processing Flag is used to see whether error processing has been executed for an individual step in a sequence, and not for the overall steps. Therefore, as shown in Ex- ample 2 above, after executing error processing during a sequence (step No. 00), the flag will remain ON, even if the next step ends normally. Care is therefore required because it is not always possible to use this flag to determine whether the overall sequence has ended abnor- mally.

94

Page 105
Image 105
Omron CQM1H-SCB41 operation manual Example