5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
5.4 Function Instructions
5.4.1 16-bit data comparisons: =, <, >
Setting
data
X
Y
M
(S1)
(S2)
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
LD
AND
OR
Setting data
(S1)
(S2)
(1) Treats BIN 16-bit data from device designated by (S1) and BIN 16-bit data from
device designated by (S2) as an a normally-open contact, and performs
comparison operation.
(2) The results of the comparison operations for the individual instructions are as
follows:
Instruction
Condition
symbol
=
(S1) = (S2)
<
(S1) < (S2)
>
(S1) > (S2)
(3) When and (S1) are (S2) assigned by a hexadecimal constant and the numerical
value (8 to F) whose most significant bit (b15) is "1" is designated as a constant,
the value is considered as a negative BIN value in comparison operation.
Usable device
Word device
W
T
C
SD
Z
(S1)
(S2)
(S1)
(S2)
(S1)
(S2)
(Note):
Data for comparison or head number of the devices where the data for
comparison is stored (BIN 16 bits)
Comparison
operation result
Continuity
5 - 28
Constant
Pointer
Level
K
H
P
N
indicates an instruction symbol of "=, <, >"
Description
Instruction
Condition
symbol
=
(S1) ≠ (S2)
<
(S1) ≥ (S2)
>
(S1) ≤ (S2)
Digit
desig-
Index
nation
: Usable
Comparison
operation result
Non-continuity