If Data Are Received - Mitsubishi QD51-R24 User Manual

Melesec q series
Hide thumbs Also See for QD51-R24:
Table of Contents

Advertisement

4 ABOUT QD51 (-R24) FUNCTIONS

4.4.2 If data are received

4 - 15
Here, the way of thinking in the case of receiving data sent to the QD51 (-R24) from a
device other than a console or terminal is explained.
If data are received, the procedure is as follows.
1)
Open the interface.
2)
Data are received.
3)
The received data are saved to variables by the ZRECEIVE
Command/INPUT$ function.
4)
Close the interface.
User Program
BASIC
program
[Commands and functions used]
The commands and functions used in receiving data sent to the QD51 (-R24) from a
device other than a console or terminal are shown below.
Command, Function Name
ZOPEN
ZCLOSE
ZCNTL
INPUT$
ZRECEIVE
REMARK
Refer to the Programming Manual (Commands) concerning details of commands
and functions.
QD51(-R24)
Receive Buffer
ZRECEIVE
INPUT$
Processing Contents
Opens the interface and makes preparations for communications with
the external device.
Closes the interface.
Sets the communications parameters in the currently open interface
and reads the interface status.
• Stores the data received from the interface in the designated
variable.
• Character code control codes (0
cannot be handled as data.
• Stores the data received from the interface in the designated
variable.
MELSEC-Q
Data reception
, 03
, 13
, 80
and FD
FF
to
H
H
H
H
H
4 - 15
)
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd51

Table of Contents