7 - 4 7 - 4
MELSEC-Q
7 COMMUNICATION WITH EXTERNAL DEVICES
• Break character • • • Specify this parameter when using the ZCNTL instruction.
It is possible to terminate data reception when receiving data designated as a break
character while receiving data from an external device.
The break character is meaningless unless the character sent by the transmission
side and the character recognized by the communication module match.
• Handling of Kanji code • • • Specify this parameter when using the ZCNTL and
KMODE instructions.
Specify whether or not the Kanji code conversion should be performed when
communicating Kanji data with a terminal or a printer.
The communication module uses Shift-JIS Kanji code as Kanji code. Correct Kanji
cannot be displayed if this Shift-JIS Kanji code is output to a terminal or printer that
uses JIS Kanji code.
This conversion between Shift-JIS and JIS Kanji codes is automatically performed by
specifying to convert the Kanji codes using the ZCNTL and KMODE instructions.
Please check which
Kanji code is used.
No Kanji conversion is performed when communicating
with external devices using the ZSEND and ZRECEIVE
instructions.
Shift-JIS Kanji code
A
D51H
(Terminal)
Devices that use JIS Kanji code
(Printer)
Kanji code
conversion
7.2.2 Control table
Since many parameters are specified in the ZOPEN and ZCNTL instructions, the
‘control table’ concept is used. A control table is a table in memory for storing the
parameters used to notify the necessary information of the processing to the
communication module’s system when carrying out the above-mentioned processing in
the BASIC program. The BASIC program stores the necessary parameters in an array,
and passes the parameters to the communication module’s system by specifying only
the name of the array in the instruction.