11 - 3 11 - 3
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
AKCNV$
Function
Ank Kanji CoNVert $
• Converts half-byte characters to full-byte characters.
AKCNV$ ( <character string expression> )
Syntax
character string expression
• • • •
Specify the character string to be converted.
A$=AKCNV$(A$)
• • • •
Converts half-byte characters in A$ to full-byte
characters and assigns them to B$.
Examples
A$
B$
ABC @ @ @@@@@
@
A B C
@ @ @ @ @
@
Description
• The AKCNV$ function converts half-byte characters in <character string expression> to
full-byte characters. The full-byte characters in <character string expression> are
unchanged.
Program Example
10 'Converts half-byte characters to full-byte characters
20 A$="AD51HMitsubishiPLC"
:
' Defines the character string
30 B$=AKCNV$(A$)
:
' Converts to full-byte characters
40 PRINT "Before conversion -->";A$
50 PRINT "After conversion -->";B$
60 END
RUN
Before conversion -->AD51HMitsubishiPLC
After conversion -->AD51HMitsubishiPLC
OK
REMARK
See the KACNV$ function.