Panasonic AFPX-C30R User Manual page 165

Fp-x series
Hide thumbs Also See for AFPX-C30R:
Table of Contents

Advertisement

Receiving data from external devices
Data table for reception (receive buffer)
This is the state when the above program is executed.
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 done" contact 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 done" flag R9038 or R9048 changes even while a scan is in progress
(e.g., if the "reception done" flag 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
Data input from the COM port is stored in the
receive buffer specified by the system register,
and the "reception done" flag goes on. If the
"reception done" flag is off, data can be received
at any time.
• DT200 to DT204 are used as the receive
buffer. System register settings are as follows:
- System register 416: K200
- System register 417: K5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents