Omron CQM1H-SCB41 Operation Manual page 107

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

Using Protocol Macros
Protocol Macro Exe
Execution
cuting Flag
condition
00000
20708
Protocol Macro
Executing Flag
20708
Protocol Macro
Transfer Step Error
Executing Flag
Processing Flag
00100
20708
Transfer Step Error
Processing Flag
20709
Sequence
executed nor
mally:
Error in
sequence
execution:
92
In the following ladder programming, sequence number 000 (E5@K Digital
Controller Read) is executed through PMCR( ) to read the PV from the Digi-
tal Controller. When sequence execution has been completed, the PV is
transferred to words to store it.
20709
Protocol Macro Exe-
cuting Flag
(IR 20708)
IR 00100
Transfer Step Error
Processing Flag
(IR 20709)
Transfer Step Error
Processing Flag
(IR 20709)
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
determine whether each sequence has ended normally or abnormally by
using the Sequence End Completion Flag and the Sequence Abort Comple-
tion Flag.
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.
MOV (21)
If IR 00100 is ON, IR 20708 is OFF, and IR 20709 is
DM 0201
OFF, the PV in DM 0201 is moved to DM 0300.
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
FAL (07) 01
is generated.
1
0
Sequence
Sequence
executed
completed
1
0
1 cycle
1
0
1
0
Section 5-7
Sequence
executed
PV in DM 0201
moved to DM 0300
FAL executed

Advertisement

Table of Contents
loading

Table of Contents