Mitsubishi QD51 Programming Manual page 270

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
JIS$
Function
• Returns the Kanji code of a full-byte character.
JIS$ ( <character string expression> )
Syntax
character string expression
A$=JIS$ ("@")
Examples
• The JIS$ function returns a character string of 4-digit hexadecimal number for the first full-
Description
byte character of <character string expression>.
• While the JIS$ function returns the Kanji code of a full-byte character, it returns a character
string of 4-digit hexadecimal number for the first two characters if the first character of
<character string expression> is not a full-byte character.
• An "Illegal function call" error occurs if the contents of <character string expression> is an
empty character (" ") or one half-byte character.
Program Example
10 ' Checks the Kanji code
20 A$="@"
30 B$=JIS$(A$)
40 PRINT "Kanji =";A$
50 PRINT "Kanji code =";B$
60 END
RUN
Kanji =@
Kanji code =4929
OK
11 - 100
JIS (Japanese Industrial Standard) $
• • • •
• • • •
REMARK
See the KNJ$ function and Section 3.13.
Specify a full-byte character to return the Kanji code.
Assigns Kanji code 3441
:
' Defines a Kanji
:
' Converts into a Kanji code
MELSEC-Q
of "@" to A$.
H
11 - 100

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents