Panasonic FP0H User Manual page 86

Programmable controller
Hide thumbs Also See for FP0H:
Table of Contents

Advertisement

Instruction References
 Structure of receive data
Receive data is stored in the receive buffer (data register DT) specified in the system register.
The number of receive data bytes is stored in the starting word.
Example: When 8-byte data "ABCDEFGH" is received
Specify 200 for the "receive buffer starting number", and 5 for the "receive buffer capacity", in
the system register.
DT200
K8
H42(B)
H41(A)
DT201
H44(D)
H43(C)
DT202
H46(F)
H45(E)
DT203
DT204
H48(H)
H47(G)
Receive buffer at the time of reception complete
When the reception done flag is OFF, operation takes place as follows when data is sent from
an external device.
Items
Storage of receive
data
Reception done flag
ON
Execute F159
(MTRN) instruction
Storage of the
following receive data
 Flag operations
Name
Description
R9007
Turns ON when the area is exceeded in index modification
R9008
Turns ON when the data table exceeds the area in the specification of bytes in [n].
(ER)
8-18
For each data stored, the received
number of bytes is stored.
Data is transmitted in order from the
low order byte.
Description
Incoming data is stored in ascending 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.
When the terminator (end code) is received, the reception done flag turns ON.
Reception of any further data is prohibited.
When an F159 (MTRN) instruction is executed, the reception done flag turns
OFF. The number of received bytes in the receive buffer starting number is
cleared. Data in the receive buffer is not cleared.
Reception is enabled when the reception done flag turns OFF, and the storage of
receive data is restarted.

Advertisement

Table of Contents
loading

Table of Contents