7.8
String Processing Instructions
Comparing string data
LD$, AND$, OR$
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions compare string data as normally open contacts.
Ladder
LD
AND
OR
( is replaced by $=, $<>, $>, $<=, $<, or $>=.)
FBD/LD
EN
ENO
s1
s2
( is replaced by a combination of LDSTRING_, ANDSTRING_, or ORSTRING_ and EQ, NE, GT, LE, LT, or GE.)
*1 The engineering tool with version "1.035M" or later supports the ST.
*2 EQ indicates =, NE indicates <>, GT indicates >, LE indicates <=, LT indicates <, and GE indicates >=.
■Execution condition
Instruction
LD$, AND$, OR$
Setting data
■Description, range, data type
Operand
Description
(s1)
Comparison data or the start device where the comparison
data is stored
(s2)
Comparison data or the start device where the comparison
data is stored
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s1)
(s2)
RnSFCPU RnSFCPU
(Standard)
(Safety)
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
Execution condition
Every scan
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=LDSTRING_(EN,s1,s2);
ENO:=ANDSTRING_(EN,s1,s2);
ENO:=ORSTRING_(EN,s1,s2);
( is replaced by any of the following: EQ, NE, GT, LE, LT, GE.)
Range
Data type
String
String
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
*2
*2
Data type (label)
ANYSTRING_SINGL
E
ANYSTRING_SINGL
E
BOOL
BOOL
Constant
Others
specification
K, H E
$
7
631