11 - 451 11 - 451
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
ZODV
Instruction
Z Output DeVice
• Specifies the data output destination for the PRINT instruction, etc.
ZODV <channel number>
Syntax
channel number
• • • •
Specify the channel number of the communication
port to which a console or terminal is connected.
Examples
ZODV 1
• • • •
Outputs data of the PRINT instruction, etc. to the
terminal connected to CH1 (RS-232C).
Description
• The ZODV instruction specifies the data output destination for the PRINT instruction, etc.
The output destination of a printer can be
specified by the ZLDV instruction.
• The output destination specified by the ZODV instruction is valid only for the following
instructions/functions:
CLS PRINT USING
LOCATE SPC
PRINT TAB
• Specify the communication port to which the device used for data output is connected in
<channel number> using the values below:
Channel number
Communication port
0
1
2
3
4
• • • •
• • • •
• • • •
• • • •
• • • •
The console specified by the dip switch of the communication module
CH1 (RS-232C)
CH2 (RS-232C)
CH3 (RS-422/485)
CH4 (PARALLEL)
The communication channel specified by the ZODV instruction must be opened by the ZOPEN
instruction in advance.
This is not required if 0 is specified for <channel number>, however.
Note that if an output destination channel specified by the ZODV instruction is closed with
the ZCLOSE instruction, the output device for the PRINT instruction, etc. will automatically
change to the console specified by the dip switch of the communication module
(channel number 0).
REMARK
See the ZIDV, ZLDV and ZOPEN instructions, and Section 7.3.