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
Содержание 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...