Mitsubishi QD51 Programming Manual page 272

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
KEXT$
Function
• Returns only full-byte characters or half-byte characters from a character expression.
KEXT$ ( <character string expression> , <function> )
Syntax
character string expression
function
B$=KEXT$(A$, 1)
Examples
C$=KEXT$(A$, 0)
• The KEXT$ function extracts either full-byte characters (Kanji) or half-byte characters from
Description
the character string.
• If 0 is specified to <function>, only half-byte characters are extracted from <character string
expression>.
• If 1 is specified to <function>, only full-byte characters are extracted from <character string
expression>.
• If there are no characters specified by <function>, an empty character string (" ") is
returned.
11 - 102
Kanji EXTract $
• • • •
Specify a character string to be processed.
• • • •
Specify to extract either full-byte characters or half-
byte characters by 0 or 1.
• • • •
Extracts only full-byte characters from A$ and
assigns them to B$.
AB
@ @ D@
C
@ E
F
A$
• • • •
Extracts only half-byte characters from A$ and
assigns them to C$.
AB
@ @ D@
C
@ E
F
A$
MELSEC-Q
@ @ @ @
B$
ABCD
EF
C$
11 - 102

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents