Chapter 6 Basic Instructions; Comparison Operation Instructions; Bin 16-Bit Data Comparisons - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

=, <>, >, <=, <, >=
CHAPTER 6
6.1

Comparison Operation Instructions

6.1.1
=, <>, >, <=, <, >=

BIN 16-bit data comparisons

6.1.1
=, <>, >, <=, <, >=
LD
AND
OR
,
: Data for comparison or head number of the devices where the data for comparison is stored (BIN 16 bits)
S1
S2
Internal Devices
Setting
Data
Bit
Word
S1
S2
Function
(1) Treats BIN 16-bit data from device designated by
open contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:
Instruction
Condition
Symbol in
=
< >
S1
>
<=
S1
<
>=
S1
(3) When
and
are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit
S1
S2
(b15) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.
Operation Error
(1) There is no operation error in the
172
BASIC INSTRUCTIONS
Command
Command
Command
J
R, ZR
Bit
S1
Comparison
Operation Result
=
S2
S1
S2
>
S1
S2
Continuity
S2
<
S1
S2
S2
,
,
,
,
Basic
indicates an instruction symbol of
S1
S2
S1
S2
S1
S2
\
U
\G
Word
and BIN 16-bit data from device designated by
Instruction
Condition
Symbol in
=
S1
< >
=
S2
>
S1
<=
>
S1
<
S1
>=
<
S1
, or
instruction.
High
Process
Redundant Universal
performance
/
/
/
/
/
.
Constants
Zn
K, H
as an a normally-
S2
Comparison
Operation Result
S2
S1
S2
Non-continuity
S2
S2
S2
LCPU
Other
––
––

Advertisement

Table of Contents
loading

Table of Contents