4 - 15 4 - 15
MELSEC-Q
4 ABOUT QD51 (-R24) FUNCTIONS
4.4.2 If data are received
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.
Receive Buffer
ZRECEIVE
INPUT$
Data reception
QD51(-R24)
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
Processing Contents
ZOPEN
Opens the interface and makes preparations for communications with
the external device.
ZCLOSE
Closes the interface.
ZCNTL
Sets the communications parameters in the currently open interface
and reads the interface status.
INPUT$
• Stores the data received from the interface in the designated
variable.
• Character code control codes (0
H
, 03
H
, 13
H
, 80
H
and FD
H
to
FF
H
)
cannot be handled as data.
ZRECEIVE
• Stores the data received from the interface in the designated
variable.
REMARK
Refer to the Programming Manual (Commands) concerning details of commands
and functions.
Summary of Contents for QD51
Page 1: ......
Page 2: ......
Page 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Page 159: ......
Page 160: ......