6 - 2 6 - 2
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.1 Comparison Operation Instruction
6.1.1 BIN 16-bit data comparisons (=, < >, >, <=, <, >=)
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 =, < >, >, <=, <, or >=
LD
ND
R
S1
S2
S1
S2
S1
S2
[Set Data]
Set Data Meaning Data Type
S1
S2
Comparative data, or device number where comparative data is stored BIN 16 bits
[Functions]
(1) Treats BIN 16-bit data from device designated by
S1
and BIN 16-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
S1
S2 S1
S2
S1
S2
S1
S2
S1
S2 S1
S2
S1
S2
S1
S2
S1
S2 S1
S2
S1
S2
Continuity
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 (b15) will be 1 has been designated, the value
will be read as a negative BIN value number for purposes of the comparison.
6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com