11 - 117 11 - 117
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
KNJ$
Function
KaNJi $
• Returns the full-byte character of the specified Kanji code.
KNJ$ ( <character string expression> )
Syntax
character string expression
• • • •
Specify a Kanji code.
Examples
A$=KNJ$(“3441”)
• • • •
Assigns the Kanji code 3441
H
( @) to A$.
Description
• The KNJ$ function handles the <character string expression> as a Kanji code and returns
one corresponding full-byte character.
• An “Illegal function call” error will be generated when the content of <character string
expression> does not correspond to an existing Kanji code.
Program Example
10 ' Converts Kanji code to full-byte character (Kanji)
20 A$=KNJ$("3441")
: 'Converts Kanji code 3441 to the
corresponding full-byte character (Kanji)
30 PRINT A$
: ' Displays full-byte character (Kanji)
40 END
RUN
@
OK
REMARK
• The JIS$ function is used to convert a Kanji code to a full-byte character.
• See the JIS$ function and Section 3.13.3.