11 - 435 11 - 435
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
ZLDV
Instruction
Z Line printer DeVice
• Selects a communication port for a printer.
ZLDV <channel number>
Syntax
channel number
• • • •
Specify the communication port to which the printer
is connected.
Examples
ZLDV 4
• • • •
Selects the printer connected to the parallel interface
to be the target printer with the printer output
instructions.
Description
• The ZLDV instruction specifies to which communication port the printer is connected when
the LLIST, LPRINT, and LFILES instructions are executed.
• Specify the communication port to which the printer is connected in <channel number> in
the following manner.
Channel number
Communication port
0
1
2
3
4
• • • •
• • • •
• • • •
• • • •
• • • •
A printer connected to a peripheral device (the printer set by the basic
utility of the peripheral device is selected.)
CH1 (RS-232C)
CH2 (RS-232C)
CH3 (RS-422/485)
CH4 (PARALLEL)
The communication channel specified by the ZLDV instruction must be opened by the ZOPEN
instruction in advance.
This is not required when 0 is specified for <channel number>, however.
Note that if an output destination channel specified by the ZLDV is closed via the ZCLOSE instruction,
the output destination for the print output instructions will automatically change to the printer set by
the basic utility of the peripheral device.
REMARK
See the ZIDV, ZODV and ZOPEN instructions, and Section 7.3.