11 - 426 11 - 426
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Specifying Kanji code conversion
Control table format definition
Element position
Item
Description
%(0)
Processing code
Specify the processing code.
Processing Code 96
%(1)
Conversion
specification
Specify whether to enable or disable the Kanji
code conversion.
• This processing code is used to specify how the Kanji code is treated in an open
communication channel. The communication module employs Shift JIS Kanji
code as the Kanji code. If the Kanji code used by an external device connected
to the communication module is not Shift JIS Kanji code, but JIS Kanji code, the
correct Kanji cannot be obtained. In this case it is necessary to convert the
codes from Shift JIS to JIS and vice versa to obtain the correct Kanji.
The Kanji code conversion is not performed during communication with an external device
that uses the ZSEND and ZRECEIVE instructions.
Shift JIS Kanji code
KI code
JIS Kanji code
KO code
The KI (Kanji shift in) and KO (Kanji shift out) codes varies depending on
the external device used. They are specified using Processing Code 100 ,
specifying the Kanji shift in/out codes of the communication channel.
See the description of Processing Code 100 for details.
The following codes are set as default when starting up BASIC.
KI "ESC $@" (1B
H
, 24
H
, 40
H
)
KO "ESC (H" (1B
H
, 28
H
, 48
H
)
Conversion
• The Kanji codes output from the communication module are converted only when
the code conversion is enabled (KMODE 1) by the KMODE instruction.
• See the description of the KMODE instruction for the differences between Shift JIS Kanji
code and JIS Kanji code.
• Specify 96 for the processing code.
• Enable/disable code conversion by setting %(1) to either of the following
values.
0 • • • Do not perform code conversion.
1 • • • Perform code conversion.
REMARK
See the ZCNTL instruction and processing code 100.