7 - 10 7 - 10
MELSEC-Q
7 COMMUNICATION WITH EXTERNAL DEVICES
7.3.3 Communicating with a printer
The following explains how to send data to a printer connected to the RS-232Cor RS-
422/RS-485 parallel interface of the communication module, as well as precautions
when carrying out the transmissions.
Items described in this section do not apply to a printer connected to an interface that
is designated as a console by the DIP switch of the communication module.
(1) Output to the printer connected to the console
Always 0 for the printer
connected to the A7PHP.
1) Switch the output destination to the printer connected to the console using the ZLDV instruction.
ZLDV 0
2) Use the following instructions to print on the printer:
IBM/AT compatible
personal computer
ZLDV 0
Use ZLDV 0 in order to print to
the printer connected
to the console.
LPRINT
Prints data on the specified printer.
LPRINT
USING
Prints data on the specified printer. (Format can be specified.)
LLIST
Prints a program list on the specified printer.
Note that the TAB and SPC functions can also be used with the LPRINT
instruction.
(2) Output to the printer connected to an interface of the
communication module
1) Open the interface and specify the communication parameters as well as
the Kanji code conversion according to the printer to be used.
ZOPEN # <channel number>, <control table>
ZCNTL # <channel number>, 0, <control table>
KMODE # <conversion specification>
It is not necessary to specify communication
parameters when the parallel interface is used.
Содержание 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...