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