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.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...