32-Bit Data Comparisons: D=, D<, D - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
5.4.2 32-bit data comparisons: D=, D<, D>
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 32-bit data from device designated by (S1) and BIN 32-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
D=
(S1) = (S2)
D<
(S1) < (S2)
D>
(S1) > (S2)
(3) When (S1) and (S2) are assigned by a hexadecimal constant and the numerical
value (8 to F) whose most significant bit (b31) is "1" is designated as a constant,
the value is considered as a negative BIN value in comparison operation.
(4) Data used for comparison should be designated by a 32-bit instruction (DMOV
instruction, etc.). If designation is made with a 16-bit instruction (MOV instruction,
etc.), comparisons of large and small values cannot be performed correctly
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 32 bits)
Comparison
operation result
Continuity
5 - 29
Constant
Pointer
Level
K
H
P
N
indicates an instruction symbol of "D=, D<, D>"
Description
Instruction
Condition
symbol
D=
(S1) ≠ (S2)
D<
(S1) ≥ (S2)
D>
(S1) ≤ (S2)
Digit
desig-
Index
nation
: Usable
Comparison
operation result
Non-continuity

Advertisement

Table of Contents
loading

Table of Contents