Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 70

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

Advertisement

Character string operation instruction
■Comparing character strings
Instruction symbol
LD$=, AND$=, OR$=
LD$<>, AND$<>, OR$<>
LD$>, AND$>, OR$>
LD$<=, AND$<=, OR$<=
LD$<, AND$<, OR$<
LD$>=, AND$>=, OR$>
*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
Instruction symbol
$+
$+P
$+
$+P
■Transferring character strings
Instruction symbol
$MOV
$MOVP
■Converting 16-bit/32-bit binary data to decimal ASCII
Instruction symbol
BINDA
BINDAP
BINDA_U
BINDAP_U
DBINDA
DBINDAP
DBINDA_U
DBINDAP_U
■Converting HEX code data to ASCII
Instruction symbol
ASCI
ASCIP
3 CPU MODULE INSTRUCTION
68
3.3 Application Instruction
Description
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)] = [Character string (s2)]: Conductive state
[Character string (s1)]  [Character string (s2)]: Non-Conductive state
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)]  [Character string (s2)]: Conductive state
[Character string (s1)] = [Character string (s2)]: Non-Conductive state
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)] > [Character string (s2)]: Conductive state
[Character string (s1)]  [Character string (s2)]: Non-Conductive state
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)]  [Character string (s2)]: Conductive state
[Character string (s1)] > [Character string (s2)]: Non-Conductive state
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)] < [Character string (s2)]: Conductive state
[Character string (s1)]  [Character string (s2)]: Non-Conductive state
Compares the character string (s1) with the character string (s2) one character at a time.
[Character string (s1)]  [Character string (s2)]: Conductive state
[Character string (s1)] < [Character string (s2)]: Non-Conductive state
Description
• 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).
• 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).
Description
Transfer the character strings specified by (s) to the devices specified by (d) onwards.
Description
Converts the 1 word binary value specified by (s) to 5 digits decimal ASCII value, and stores in the
word device specified by (d).
Converts the 2 word binary value specified by (s) to 10 digits decimal ASCII value, and stores in the
word device area specified by (d) onwards.
Description
Converts the (n) characters within the HEX code data specified by (s) to ASCII, and stores in the
device area specified by (d) onwards.
Reference
*1
Page 431
*1
*1
*1
*1
*1
Reference
Page 434
Page 436
Reference
Page 438
Reference
Page 440
Page 442
Reference
Page 444

Hide quick links:

Advertisement

loading