6 - 4 6 - 4
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.1.2 BIN 32-bit data comparisons (D
=
, D
< >
, D
>
, D
<=
,D
<
, D
>=
)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S1
S2
[Instruction Symbol] [Execution Condition]
indicates the signs D
=
, D
< >
, D
>
, D
<=
,D
<
, or D>
=
S1
S2
S1
S2
S1
S2
LD
AND
OR
[Set Data]
Set Data Meaning Data Type
S1
S2
Comparative data, or device number where comparative data is stored BIN 32 bits
[Functions]
(1) Treats BIN 32-bit data from device designated by
S1
and BIN 32-bit data from device
designated by
S2
as an A contact, and performs comparison operation.
(2)The results of the comparison operations for the individual instructions are as follows:
Instruction
Symbol
in
Condition
Comparison
Operation
Result
Instruction
Symbol
in
Condition
Comparison
Operation
Result
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
Continuity
D
S1
S2
Non-continuity
(3) In cases where hexadecimal constants have been designated by
S1
and
S2
, or when a
numerical value (8 to F) where the highest bit (b31) will be 1 has been designated, the value
will be read as a negative BIN value number for the purposes of the comparison.
(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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com