EasyManua.ls Logo

Panasonic AFPX-C30T - Page 165

Panasonic AFPX-C30T
544 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Receiving data from external devices
Data input from the COM port is stored in the
receive buffer specified by the system register,
and the reception doneflag goes on. If the
reception doneflag is off, data can be received
at any time.
Data table for reception (receive buffer)
This is the state when the above program is executed.
DT200 to DT204 are used as the receive
buffer. System register settings are as follows:
- System register 416: K200
- System register 417: K5
Sample program for receiving data
10-byte data received in the receive buffer through COM1 port are copied to DT0.
The program described above is executed in the following sequence.
1) The data sent from external devices is stored in the receive buffer.
2) The reception donecontact R9038 (R9048) is turned on.
3) The received data is sent from the receive buffer to the area starting with data register DT0.
4) The F159 (MTRN) instruction is executed with no data to reset the buffer writing point and to turn off
the reception done contact R9038 (R9048). The system is now ready to receive the next data.
(The data in the receive buffer is not cleared.)
Note:
Be aware that the reception doneflag R9038 or R9048 changes even while a scan is in progress
(e.g., if the reception doneflag is used multiple times as an input condition, there is a possibility of
different statuses existing within the same scan.) To prevent multiple read access to the special internal
relay you should generate a copy of it at the beginning of the program.
Explanatory diagram
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Table of Contents

Related product manuals