5 - 17 5 - 17
MELSEC-Q/QnA
5 SEQUENCE INSTRUCTIONS
[Operation Errors]
(1) There are no operation errors associated with the EGP or EGF instructions.
[Program Example]
(1) A program containing a subroutine program using an EGP instruction
[Ladder Mode] [List Mode]
1
2
Steps
Instruction
Device
[Operation]
2
OFF
ON
ON
Turns ON when X0
turns from OFF to ON.
Turns ON when X1 turns from OFF to ON.
Turns OFF as X0 remains ON.
Turns OFF as X1 remains ON.
END processing
0
ON
OFF
1
ON
OFF
0
ON
OFF
1
OFF
ON
D0
1
D1
1
1
2
1
2
1
2
1
2
1
2
POINTS
(1) Since EGP and EGF instructions are executed according to the results of operation
performed immediately before the EGP/EGF instruction, these instructions must be used in
the same position as the AND instruction (refer to 5.1.1.).
An EGP and EGF instruction cannot be used at the position of an LD or OR instruction.
(2) EGP and EGF instructions cannot be used at the circuit block positions shown below.
M0
X0 X1
SET
X2
M0
X0 X1
SET
X2
V0Z0 V0Z0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com