Panasonic AFPX-C30R User Manual page 166

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

Advertisement

Explanation of data table
Data sent from an external device connected to the COM port is stored in the data registers that have
been set as the receive buffer.
Reception process
When the "reception done" flag R9038 (R9048) is off, operation takes place as follows when data is sent
from an external device. (The R9038 (R9048) flag is off during the first scan after RUN).
1. Incoming data is stored in order from the lower-order byte of the 2nd-word area of the receive buffer.
Header and terminator (start and end codes) are not stored.
2. When the terminator (end code) is received, the "reception done" flag R9038 (R9048) turns on.
Reception of any further data is prohibited. When the terminator has been set to "None", the "reception
done" flag does not turn on. Check the number of received bytes to judge whether the reception has
completed or not.
3. When an F159 (MTRN) instruction is executed, the "reception done" flag R9038 (R9048) turns off
(except the case when the terminator has been set to "None"), the number of received bytes is cleared,
and subsequent data is stored in order from the lower-order byte.
For repeated reception of data, perform the following steps:
1. Receive data
2. Reception done (R9038/R9048: on, reception prohibited)
3. Process received data
4. Execute F159 (MTRN) (R9038/R9048: off, reception possible)
5. Receive subsequent data
Prepare for reception
Key Point:
• The contact numbers in parentheses refer to COM2 port.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
• Specify the data registers in system register 416 to
419.
• The number of bytes of data received is stored in the
starting address of the receive buffer. The initial value
is 0.
• Received data is stored in the received data storage
area in order from the lower -order byte.
• The "reception done" flag R9038 (R9048) turns on when
data reception from the external device is completed.
Reception of any further data is prohibited.
• To receive subsequent data, you must execute the F159
(MTRN) instruction to turn off the "reception done" flag
R9038 (R9048).

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents