11 - 408 11 - 408
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
• Specify which of the communication ports of the communication module is to be used in
<channel number>. The channel numbers correspond to the communication ports as
follows:
Channel number
Communication port
1
2
3
4
• • • •
• • • •
• • • •
• • • •
CH1 (RS-232C)
CH2 (RS-232C)
CH3 (RS-422)
CH4 (PARALLEL)
Note that a communication port that is to be set or whose status is to be read using the
ZCNTL instruction must be opened by the ZOPEN instruction in advance. If it is not
opened, an error occurs.
• Specify the processing code that corresponds to the processing to be performed and the
parameters required in the processing in <control table>, which must be an integer array
variable. Different <control table> configurations are used depending on the processing;
specify the elements according to the specifications of the individual processing code.
An array used for <control table> must always be defined using the DIM instruction, even if the
number of elements used is 10 or less.
If an array is not defined using the DIM instruction, an error occurs at the execution of the ZCNTL
instruction (usually, an array with 10 or fewer elements can be used without defining it).