Panasonic FP-E Programming Manual page 598

Fp series
Table of Contents

Advertisement

High−level Instructions
Program
When reception of data from an external device has been completed, the reception completed flag (R9038)
goes on and further reception of data is not allowed.
To receive more data, an F144 (TRNS) instruction must be executed to turn off the reception completed flag (R9038) and
clear the byte number to zero.
R0
DF
F144 TRNS, DT100, K 0
To repeat reception only, set to K0.
R9038 will also go off when the number of transmission bytes is
set and transmission is carried out.
Operation
When the reception completed flag (9038) is off and data is sent from an external device, operation will
proceed as follows. (After RUN, R9038 is off during the first scan.)
1) The data received is stored in order in the reception data storage area of reception buffer beginning
from the lower byte of the second word of the area.
Start and end codes will not be stored.
With each one byte received, the value in the leading address of the reception buffer is incremented
by 1.
Received data
Number of bytes
received
on
R9038
off
Trigger R0
on
off
F144 (TRNS)
execution
2) When an end code is received, the reception completed flag (R9038) goes on. After this, no further
reception of data is allowed.
3) When an F144 (TRNS) instruction is executed, the reception completed flag (R9038) goes off and
the number of received data bytes is cleared to zero. Further data received is stored in order in the
reception data storage area beginning from the lower byte of the second word of the area.
Note
For repeated reception of data, refer to the following procedure 1)
to 5).
1) Receive data
2) Reception completed (R9038: on, Reception: not allowed)
3) Process received data
4) Execute F144 (TRNS) instruction (R9038: off, Reception: enable)
5) Receive further data
3 − 334
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Reception operation
start
B ... T
A
C
(
)
R
...
0
1
2
20
Reception
Reception
possible
not
possible
Reopening
...
U
V
...
0
1
2
Reception
possible
FP2/FP2SH/FP10SH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents