68
3 CPU MODULE INSTRUCTION
3.3 Application Instruction
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
■
Converting 16-bit/32-bit binary data to decimal ASCII
■
Converting HEX code data to ASCII
Instruction symbol
Description
Reference
LD$=, AND$=, OR$=
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
LD$<>, AND$<>, OR$<>
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
LD$>, AND$>, OR$>
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
LD$<=, AND$<=, OR$<=
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
LD$<, AND$<, OR$<
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
LD$>=, AND$>=, OR$>
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
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).
$+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).
$+P
Instruction symbol
Description
Reference
$MOV
Transfer the character strings specified by (s) to the devices specified by (d) onwards.
$MOVP
Instruction symbol
Description
Reference
BINDA
Converts the 1 word binary value specified by (s) to 5 digits decimal ASCII value, and stores in the
word device specified by (d).
BINDAP
BINDA_U
BINDAP_U
DBINDA
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.
DBINDAP
DBINDA_U
DBINDAP_U
Instruction symbol
Description
Reference
ASCI
Converts the (n) characters within the HEX code data specified by (s) to ASCII, and stores in the
device area specified by (d) onwards.
ASCIP
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: ......