![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498190.webp)
4 Using Protocol Macros
4-54
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Note
The Step End Error is used to see whether error processing was executed for an individual step in a
sequence, and not for the overall steps. Therefore, as shown in Example 2 above, after the Unit executes
error processing during a sequence (step No. 00), the flag will remain ON, even if the next step ends nor-
mally. Be sure to understand that it is not always possible to use this flag to determine whether the overall
sequence ended abnormally.
Example 1
Sequence
Error
Sequence ended
abnormally
Step No. 01
Error
Sequence ended
abnormally
Sequence ended
normally
Example 2
Sequence
Step No. 01
Step No. 02
Error
Sequence ended
abnormally
Sequence ended
normally
Sequence ended
normally
When the sequence ends normally
Sequence
executed
Sequence
completed
Sequence
re-executed
Protocol Macro
Executing Flag
Sequence End
Completion Flag
Step End Error
Error processing
for step No. 00
Step End Error
When the sequence ends normally
When the sequence ends abnormally
Sequence Abort
Completion Flag
When the sequence ends abnormally
Sequence
executed
Sequence
completed
Sequence
re-executed
Protocol Macro
Executing Flag
Sequence
executed
Sequence
completed
Sequence
re-executed
Protocol Macro
Executing Flag
Step End Error
Sequence Abort
Completion Flag
Sequence
executed
Sequence
completed
Sequence
re-executed
Protocol Macro
Executing Flag
Step End Error
Error processing
for step No. 00
Sequence End
Completion Flag
Step No. 00
Step No. 00
Error