11 - 452 11 - 452
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
ZOPEN
Instruction
Z OPEN
• Opens a communication channel of a communication port in preparation for performing
communication with an external device.
ZOPEN [#]<channel number>[<,control table>]
Syntax
channel number
• • • •
Specify the communication port that communicates
with the external device.
control table
• • • •
Specify various parameters for the communication
with the external device.
Examples
ZOPEN #1,A%( )
• • • •
Opens CH1 (RS-232C) of the communication
module with the parameters specified by the integer
array A%( ).
ZOPEN #4
• • • •
Opens the parallel interface port of the
communication module.
Description
• The ZOPEN instruction is used to open a communication port to enable communication
with an external device.
• Specify which communication port of the communication module should be used in
<channel number>. The correspondence between channel numbers and communication
ports are as follows.
Channel number
Communication port
1
2
3
4
• • • •
• • • •
• • • •
• • • •
CH1 (RS-232C)
CH2 (RS-232C)
CH3 (RS-422/485)
CH4 (PARALLEL)
• Specify various parameters for communication in <control table>. Note that it is not
necessary to specify <control table> for channel number 4 (parallel); in this case, <control
table> should be omitted.
• Specify the data using an integer array variable in <control table> as follows.
%(0)
• • • •
Specify the baud rate.
%(1)
• • • •
Specify the parity bit in the higher byte and the character length in the
lower byte.
%(2)
• • • •
Specify the stop bit.
Always define an array used in <control table> by the DIM instruction, even though only three array
elements are used.
If the array is not defined using the DIM instruction, an error occurs at the execution of the ZOPEN
instruction (usually, an array with 10 or fewer elements can be used without defining it using
the DIM instruction).
Содержание 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...