Character String Data Comparisons - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

Example
When judging the mismatch of E1.234567890123456+10 (Number of significant digits is 16) and the
double-precision floating-point data.
E1.23456789012345+10
Whether D0 to D3 is within this range is checked.(Values on boundaries are included.)
6.1.5
$=, $<>, $>, $<=, $<,

Character string data comparisons

$>=
6.1.5
$=, $<>, $>, $<=, $<, $>=
LD
AND
OR
,
: Data for comparison or head number of the devices where the data for comparison is stored (character string)
S1
S2
Setting
Internal Devices
Data
Bit
Word
––
S1
––
S2
Function
(1) Compares the character string data designated by
contact.
(2) A comparison operation involves the character-by-character comparison of the ASCII code of the first character in the
character string.
(3) The character string data of
number to the device number where "00
(a) If all character strings match, the comparison result will be matched.
b15
b8
b7
S1
(B)
42
41
H
S1
+1
44
(D)
43
H
S1
+2
00
45
H
"ABCDE"
Instruction Symbol in
$=
$<>
$>
E1.234567890123456+10
indicates an instruction symbol of
Command
Command Command
J
\
R, ZR
Bit
S1
and
for comparison refers to the data stored at the range from the designated device
S1
S2
" code is stored.
H
b0
b15
S2
(A)
H
S2
+1
(C)
H
(E)
S2
+2
H
Comparison Operation Result
Continuity
Non-continuity
Non-continuity
$=, $<>, $>, $<=, $<, $>=
High
Basic
performance
$
$
/
S1
S2
S1
S2
S1
S2
U
\G
Word
––
––
with the character string data designated by
b8
b7
b0
(B)
(A)
42
41
H
H
44
(D)
43
(C)
H
H
00
45
(E)
H
H
"ABCDE"
Instruction Symbol in
$<=
$<
$>=
E1.23456789012346+10
Process
Redundant Universal
LCPU
$
$
$
$
.
/
/
/
/
Constants
Zn
Other
$
as a normally-open
S2
Comparison Operation Result
Continuity
Non-continuity
Continuity
1
2
3
4
6
7
8
––
––
179

Advertisement

Table of Contents
loading

Table of Contents