11 - 407 11 - 407
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
ZCNTL
Instruction
Z • CoNTroL
• Set communication parameter data for an open communication port and read the status of
a communication port.
Syntax
ZCNTL #<channel number>,0,<control table>
channel number
• • • •
Specify the communication port that is to be set or
whose status is to be read.
control table
• • • •
Specify the data to be set or the information to be
read.
Examples
ZCNTL #1,0,A%( )
• • • •
Sets the parameter data specified by the integer
array A% for CH1 (RS-232C) and reads the status of
the information specified by the array from CH1.
Description
• The ZCNTL instruction is used to perform the following settings and status reading for an
open communication channel.
• The content of the processing is specified by the processing code in the control table as
follows.
Processing
code
Description
RS-232C
RS-422
PARALLEL
16
Setting communication parameters
17
Reading communication parameters
18
Setting communication control parameters
19
Reading communication control parameters
22
Specifying break characters
23
Reading break characters
24
Specifying continuous break characters
25
Reading continuous break characters
32
Turning the RS (RTS) and DTR (ER)
control signals ON/OFF
33
Reading the ON/OFF status of the CS
(CTR), DSR (DR), RS (RTS), DTR (ER),
and CD control signals
64
Reading causes of reception errors
80
Reading the receive buffer size and the
number of characters
96
Specifying Kanji code conversion
100
Specifying Kanji shift in/out codes
128
Reading the printer status
136
Outputting an initialization signal to a printer