11 - 114 11 - 114
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
KMODE
Instruction
Kanji MODE
• Performs conversion settings of Kanji code.
KMODE <conversion designation>
Syntax
<conversion designation>
• • • •
Specify enabling/disabling of Kanji code conversions
Examples
KMODE 1
• • • •
Performs Kanji code conversion using an interface
where Kanji conversion is allowed using the ZCNTL
instruction.
• The KMODE instruction specifies how the character codes for full-byte characters (Kanji
characters) are handled during communication with external devices.
The communication module uses the Shift-JIS Kanji code as the Kanji code. If the Kanji
code used by the external devices connected to the communication module is JIS Kanji
code instead of Shift JIS Kanji Code, the correct Kanji codes cannot be obtained. The
communication channel is used to perform Shift JIS
JIS code conversions to obtain the
Kanji correctly.
Kanji code conversions will not be performed on external devices that use the
ZSEND/ZRECEIVE instructions.
Shift JIS Kanji code
KI code
JIS Kanji code
KO code
Conversion
The KI (Kanji shift-in) and KO (Kanji shift-out) codes
differ between the external devices used. Therefore,
they are specified in the Kanji Shift-in, Shift-out code
settings ( process code 100 ) in the communication
channel of the ZCNTL instruction.
The following codes are set during BASIC startup.
KI “ESC$@” (1B
H
, 24
H
, 40
H
)
KO “ESC(H” (1B
H
, 28
H
, 48
H
)
• The following values are specified in <conversion settings>:
When Kanji code conversion is performed
• • • •
1
Description
When Kanji code conversion is not performed
• • • •
0