2 CPU MODULE INSTRUCTION
2.3 Application instruction
63
2
■Deleting/inserting data from/to the data table
Character string operation instruction
■Comparing character strings
*1 The following shows comparison conditions for comparing character strings.
- Match: All characters in the strings must match
- Larger string: In case of different character strings, character string with the larger character code
(If character string lengths are different, the longer character string)
- Smaller string: In case of different character strings, character string with the smaller character code
(If character string lengths are different, the shorter character string)
■Concatenating character strings
■Transferring character strings
Instruction symbol Description Reference
FINS Page 357
FINSP
FDEL Page 359
FDELP
Instruction symbol Description Reference
LD$=, AND$=, OR$= Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] = [Character string (s2)]: Conductive state
[Character string (s1)] [Character string (s2)]: Non-Conductive state
Page 361
LD$<>, AND$<>, OR$<> Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] [Character string (s2)]: Conductive state
[Character string (s1)] = [Character string (s2)]: Non-Conductive state
LD$>, AND$>, OR$> Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] > [Character string (s2)]: Conductive state
[Character string (s1)] [Character string (s2)]: Non-Conductive state
LD$<=, AND$<=, OR$<= Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] [Character string (s2)]: Conductive state
[Character string (s1)] > [Character string (s2)]: Non-Conductive state
LD$<, AND$<, OR$< Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] < [Character string (s2)]: Conductive state
[Character string (s1)] [Character string (s2)]: Non-Conductive state
LD$>=, AND$>=, OR$> Compares the character string (s1) with the character string (s2) one character at a time.
*1
[Character string (s1)] [Character string (s2)]: Conductive state
[Character string (s1)] < [Character string (s2)]: Non-Conductive state
Instruction symbol Description Reference
$+ • In case of 2 operands
Connect the character string specified by (s) to the end of the character string specified by (d), and
store in (d).
Page 364
$+P
$+ • In case of 3 operands
Connect the character string specified by (s2) to the end of the character string specified by (s1),
and store in (d).
Page 366
$+P
Instruction symbol Description Reference
$MOV Transfer the character strings specified by (s) to the devices specified by (d) onwards. Page 368
$MOVP
(d)
(s)
(d)
Number of stored data Number of stored data +1
Specify by (n)
(d)
(s)
(d)
Number of stored data Number of stored data -1
Specify by (n)