![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114434.webp)
432
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
Processing details
• These instructions perform a comparison operation between the character string data specified by (s1) and the character
string data specified by (s2). (Devices are used as a normally open contact.)
• In the comparison operation, the ASCII codes of the character strings are compared one by one from the start of the
strings.
• Character strings in the devices specified by (s1) and (s2) to a device that stores 00H are compared.
• If the character string specified by (s1) or (s2) has more than 16383 characters, the operation result is the non-conductive
state.
• When all the character strings match, the comparison is considered as matched.
Instruction symbol in
Result
Instruction symbol in
Result
$=
Conductive state
$<=
Conductive state
$<>
Non-conductive state
$<
Non-conductive state
$>
Non-conductive state
$>=
Conductive state
• When the character strings are different, the string with a large character code is considered as the large one.
Instruction symbol in
Result
Instruction symbol in
Result
$=
Non-conductive state
$<=
Non-conductive state
$<>
Conductive state
$<
Non-conductive state
$>
Conductive state
$>=
Conductive state
• When the character strings are different, the magnitude relation between them is determined based on the size of the first different character code.
Instruction symbol in
Result
Instruction symbol in
Result
$=
Non-conductive state
$<=
Conductive state
$<>
Conductive state
$<
Conductive state
$>
Non-conductive state
$>=
Non-conductive state
• When the length of the character string data differs for (s1) and (s2), the relative sizes of the character strings are determined based on the size of the
first different character code.
Instruction symbol in
Result
Instruction symbol in
Result
$=
Non-conductive state
$<=
Non-conductive state
$<>
Conductive state
$<
Non-conductive state
$>
Conductive state
$>=
Conductive state
b15
(s1)
(s1)+1
(s1)+2
42H (B)
b8
41H (A)
b7
b0
=
43H (C)
44H (D)
45H (E)
00H
"ABCDE"
b15
(s2)
(s2)+1
(s2)+2
42H (B)
b8
41H (A)
b7
b0
43H (C)
44H (D)
45H (E)
00H
"ABCDE"
b15
(s1)
(s1)+1
(s1)+2
42H (B)
b8
41H (A)
b7
b0
43H (C)
44H (D)
46H (F)
00H
"ABCDF"
b15
(s2)
(s2)+1
(s2)+2
42H (B)
b8
41H (A)
b7
b0
43H (C)
44H (D)
45H (E)
00H
"ABCDE"
>
b15
(s1)
(s1)+1
(s1)+2
32H (2)
b8
31H (1)
b7
b0
33H (3)
34H (4)
35H (5)
00H
"12345"
b15
(s2)
(s2)+1
(s2)+2
32H (2)
b8
31H (1)
b7
b0
34H (4)
33H (3)
35H (5)
00H
"12435"
<
b15
(s1)
(s1)+1
(s1)+2
(s1)+3
32H (2)
b8
31H (1)
b7
b0
34H (4)
33H (3)
35H (5)
00H
36H (6)
00H
b15
b0
00H
"124356"
(s2)
(s2)+1
(s2)+2
(s2)+3
32H (2)
b8
31H (1)
b7
33H (3)
34H (4)
35H (5)
37H (7)
36H (6)
"1234567"
>
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......