11 - 434 11 - 434
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
ZIDV
Instruction
Z Input DeVice
• Specifies the data input device for the INPUT instruction, etc.
ZIDV <channel number>
Syntax
channel number
• • • •
Specify the channel number of the communication
port to which a console or terminal is connected.
Examples
ZIDV 1
• • • •
Performs data input using the INPUT instruction, etc.
from the terminal connected to CH1 (RS-232C).
Description
• The ZIDV instruction is used to specify the device from which data for the INPUT
instruction, etc. is input.
• The input device specified by the ZIDV instruction is valid only for the following instructions
and functions.
INPUT INKEY$
INPUT$ LINE INPUT
• Specify the communication port to which the device used for data input is connected in
<channel number>.
Channel number
Communication port
0
1
2
3
• • • •
• • • •
• • • •
• • • •
The console specified by the dip switch of the communication module
CH1 (RS-232C)
CH2 (RS-232C)
CH3 (RS-422/485)
The communication channel specified by the ZIDV 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 input destination channel specified by the ZIDV instruction is closed with
the ZCLOSE instruction, the input device used by the INPUT instruction, etc. will automatically
change to the console specified by the dip switch of the communication module (channel number 0).
REMARK
See the ZLDV, ZODV and ZOPEN instructions, and Section 7.3.