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
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...