Mitsubishi QD51 Programming Manual page 271

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
KACNV$
Function
• Converts a full-byte character to a half-byte character.
KACNV$ ( <character string expression> )
Syntax
character string expression
B$=KACNV$(A$)
Examples
• The KACNV$ function converts all full-byte characters in <character string expression> into
Description
half-byte characters. The half-byte characters in <character string expression> do not
change.
• Only the full-byte characters that correspond to the half-byte characters listed in Appendix
4.1 can be converted. An "Illegal function call" error occurs if full-byte characters other
than those are included.
• When full-byte characters that include a voiced sound symbol or semivoiced sound symbol
(@, @, etc.) are converted, Kana characters and voiced sound symbols or semivoiced
sound symbols are separated.
Program Example
10 ' Converts full-byte characters to half-byte characters
20 A$="@"
30 B$=KACNV$(A$)
40 PRINT "Before conversion-->";A$
50 PRINT "After conversion-->";B$
60 END
RUN
Before conversion-->@
After conversion-->@
OK
11 - 101
Kanji Ank CoNVert $
• • • •
• • • •
@ @ @ @ 0 1
AB
@ @ D@
REMARK
See the AKCNV$ function and Section 3.13.3.
Specify a character string to be processed.
Converts full-byte characters in A$ into half-byte
characters and assigns them to B$.
@
@ @ @ @
1
A$
C
@ E
F
@ @ @ @
A$
:
' Defines a character string
:
' Converts into half-byte characters
MELSEC-Q
0 1
1
B$
B$
11 - 101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents