Mitsubishi QD51 Programming Manual page 633

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ZSEND
Instruction
• Sends data from a communication port.
ZSEND #<channel number>,0,<control table>,<output element>
Syntax
channel number
control table
output element
ZSEND #1,0,A%( ),"TEST
Examples
DATA"
• The ZRECEIVE instruction receives data from the communication port specified in
Description
<channel number> according to the parameters specified in <control table> and stores it in
<input element>.
• 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
1
2
3
4
Note that a communication port that sends data via the ZSEND instruction must be
opened using the ZOPEN instruction in advance. An error occurs if it is not opened.
• <control table> specifies the number of bytes of data to be transmitted and a timeout value.
In addition, the number of bytes of data actually transmitted is stored at the completion of
the transmission.
<control table> uses the following integer array variables:
%(0)
%(1)
%(2)
11 - 463
Z SEND
• • • •
• • • •
• • • •
• • • •
Communication port
• • • •
CH1 (RS-232C)
• • • •
CH2 (RS-232C)
• • • •
CH3 (RS-422/485)
• • • •
CH4 (PARALLEL)
• • • •
Specifies the number of bytes requested to be sent.
• • • •
Stores the number of bytes transmitted after the completion of the
transmission.
• • • •
Specifies the timeout value.
Specify the communication port that is used to send
the data.
Specify various parameters for sending the data.
Specify the data to be sent.
Sends "TEST DATA" under the conditions specified
by integer array elements A%(0) and A%(2) via CH1
(RS-232C) and assigns the number of bytes
transmitted to A%(1).
MELSEC-Q
11 - 463

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents