Bin 32-Bit Data Comparisons (D=, D<>, D>, D<=, D<, D>=) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

D=, D< >, D>, D<=, D<, D>=
6.1.2
BIN 32-bit data comparisons (D=, D<>, D>, D<=, D<, D>=)
D=, D< >, D>, D<=, D<, D>=
LD
AND
OR
Function
(1) Treats BIN 32-bit data from device designated by
designated by
(2) The results of the comparison operations for the individual instructions are as follows:
Instruction
Symbol in
D =
D <>
D >
D <=
D <
D >=
(3) When
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.
6-4
6.1 Comparison Operation Instruction
6.1.2 BIN 32-bit data comparisons (D=, D<>, D>, D<=, D<, D>=)
Command
Command Command
,
: Data for comparison or start number of the devices where the data for comparison is stored (BIN 32 bits)
S1
S2
Internal Devices
Set
Data
Bit
Word
S1
S2
as an a normally-open contact, and performs comparison operation.
S2
Comparison
Condition
Operation Result
S2
S1
=
S1
S2
S1
S2
>
Continuity
S1
S2
S1
S2
<
S1
S2
and
are assigned by a hexadecimal constant and the numerical value (8 to F)
S1
S2
indicates "D= / D< > / D> / D<= / D< / D>=".
S1
S2
S1
S2
S1
S2
Constants
Others
K, H
––
––
and BIN 32-bit data from device
S1
Instruction
Condition
Symbol in
D =
S1
D <>
S2
=
D >
S1
D <=
S1
>
D <
S1
D >=
S1
<
Comparison
Operation Result
S2
S1
S2
Non-continuity
S2
S2
S2

Advertisement

Table of Contents
loading

Table of Contents