138
EGP, EGF
P
r
og
ram
E
xamp
l
e
(1) A program using the EGP instruction in the subroutine program using the EGD instruction
[Ladder Mode]
[List Mode]
[Operation]
1. The EGP or EGF instruction operates based on the operation result performed starting from the LD instruction immediately
before the EGP or EGF instruction to immediately before the EGP or EGF instruction. Therefore, use them at the same
position as that of the AND instruction.
(Refer to Page 124, Section 5.1.1.)
The EGP and EGF instruction cannot be used at the position of the LD or OR instruction.
2. EGP and EGF instructions cannot be used at the ladder block positions shown below.
Step
Instruction
Device
EN
D
pr
o
cessin
g
X0
O
N
O
FF
X1
O
N
O
FF
(1)
(2)
(1)
(2)
(1)
(2)
V
0
O
N
O
FF
V
1 O
FF
O
N
D0
1
D1
1
(1)
(2)
(1)
(2)
2
O
FF
O
N
O
N
Turns
O
N at the lea
d
in
g
e
dg
e
o
f
X0
.
Turns
O
N at the lea
d
in
g
e
dg
e
o
f
X1
.
Turns
O
FF as
X0
remains
O
N.
Turns
O
FF as
X1
remains
O
N.
X0
X1
X2
V
0
M0
S
ET