Chapter 6 Instruction Details
XBC E-Type Main Unit 6-120 Ve r. 1
6.22.4 GX(P), GDX(P), (GEQ, GEQP, GGT, GGTP, GLT, GLTP, GGE, GGEP, GLE, GLEP, GNE, GNEP
, GDEQ, GDEQP, GDGT, GDGTP, GDLT, GDLTP, GDGE, GDGEP, GDLE, GDLEP, GDNE, GDNEP)
Instruction
Step
P M K F L T C S Z D.x
R.x
U D R
GX(P)
GDX(P)
4~6 O - -
Data or Data address to compare with S2
S2 Data address to compare with S1 WORD
Device area to save the result (1 word)
Number to execute Compare Instruction (0 ~ 16)
[Flag Set]
Flag Description
If N value exceeds applicable device’s area.
1) Word Data Group Compare Instruction
(1) Compares specified Compare Data S1 with N word data starting S2 1:1 to save in specified D number’s
lower bit up to Nth Bit.
(2) If Compare Condition is met, 1 will be saved in D.
(3) If Compare Condition is not met, 0 will be saved in D.
(4) It can input constant value from 0 to 65,535 in S1. Operation of instruction is as shown below.
means GEQ/GGT/GLT/GGE/GLE/GNE
P S2
D
NS1
S2
D
N
S1
P