Chapter 6 Basic Instructions; Comparison Operation Instructions; Comparing 16-Bit Binary Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

6
BASIC INSTRUCTIONS
6.1

Comparison Operation Instructions

Comparing 16-bit binary data

LD(_U), AND(_U), OR(_U)
These instructions perform a comparison operation between the 16-bit binary data in the device specified by (s1) and the 16-
bit binary data in the device specified by (s2). (Devices are used as NO contacts.)
Ladder diagram
LD
AND
OR
( is to be replaced by any of the following: =(_U), <>(_U), >(_U), <=(_U),
<(_U), >=(_U).)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
LD, AND,
Comparison data or device where the
OR
comparison data is stored
LD_U,
AND_U,
OR_U
(s2)
LD, AND,
Comparison data or device where the
OR
comparison data is stored
LD_U,
AND_U,
OR_U
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
Structured text
Not supported
Range
Data type
-32768 to +32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
-32768 to +32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
6.1 Comparison Operation Instructions
Data type (label)
ANY16
ANY16_U
ANY16
ANY16_U
Constant
Others
K, H
E
$
6 BASIC INSTRUCTIONS
145
6

Advertisement

Table of Contents
loading

Table of Contents