Download Print this page

Comparing 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Comparing 32-bit binary data

LDD(_U), ANDD(_U), ORD(_U)
These instructions perform a comparison operation between the 32-bit binary data in the device specified by (s1) and the 32-
bit binary data in the device specified by (s2). (Devices are used as NO contacts.)
Ladder diagram
LD
AND
OR
("D=(_U)", "D<>(_U)", "D>(_U)", "D<=(_U)", "D<(_U)", "D>=(_U)" enters .)
FBD/LD
LD
EN
ENO
s1
s2
("D_EQ(_U)", "D_NE(_U)", "D_GT(_U)", "D_LE(_U)", "D_LT(_U)", "D_GE(_U)" enters .)
*1 Supported by engineering tool version "1.035M" and later.
*2 EQ is =, NE is <>, GT is >, LE is <=, LT is <, and GT is >=.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
LDD,
Comparison data or head device where the
ANDD, ORD
comparison data is stored
LDD_U,
ANDD_U,
ORD_U
(s2)
LDD,
Comparison data or head device where the
ANDD, ORD
comparison data is stored
LDD_U,
ANDD_U,
ORD_U
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
AND
EN
ENO
s1
s2
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=LDD_(EN,s1,s2);
ENO:=ANDD_(EN,s1,s2);
ENO:=ORD_(EN,s1,s2);
("EQ", "NE", "GT", "LE", "LT", "GE" enters .)
OR
EN
ENO
s1
s2
*2
Range
Data type
-2147483648 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
7.1 Comparison Operation Instructions
ENO:=LDD__U(EN,s1,s2);
ENO:=ANDD__U(EN,s1,s2);
ENO:=ORD__U(EN,s1,s2);
*2
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
167
7

Hide quick links:

Advertisement

loading