Contents Of Received Data; Precautions On Receiving Data - Panasonic FP7 User Manual

Cpu unit. com port communication
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

7.4.2 Contents of Received Data

When data are copied into a given data register, based on GPRECV command, the data are
saved in the following manner.
Example: The data "12345 CR" is transmitted from a device with RS-232C device.
 At the beginning of the data register, the No. of received bytes is saved.
 The received data are saved in ascending order from lower bytes to higher bytes, starting
with DT201.
DT203
Higher
byte
H0D
(CR)
KEY POINTS
The received data that are copied based on the GPRECV command do not
include a start code or end code.
It is also possible to receive binary data based on the GPRECV command.
In this case, the terminator should be specified using "Time".

7.4.3 Precautions on Receiving Data

 Reset communication ports
 If a communication abnormality has occurred, communication ports can be reset by turning
on the "Request to reset" signal (Y10, Y11, Y12) by the user program.
 Once reset is completed, (X10, X11, X12) turns ON. Subsequently, turn OFF the "Request to
reset" (Y10, Y11, Y12).
R100
DF
Request to
reset an error
Y10
Request to
reset CH1
 Procedure for repeated reception of data
For repeated reception of data, perform the following steps 1 to 4:
(1) Receive data.
(2) Turn on the "General-purpose communication reception done" flag (X0, X1, X2).
(3) Specify a port to receive data based on the UNITSEL command.
(4) Execute the GPRECV command and read the received data from the reception buffer.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
DT202
Lower
Higher
Lower
byte
byte
byte
H35
H34
H33
(5)
(4)
(3)
X10
CH1 error
reset done
DT201
Higher
Lower
Higher
byte
byte
byte
H32
H31
H0
(2)
(1)
Received No. of bytes
Y10
Request to
reset CH1
7.4 Receiving Operation
DT200
Lower
byte
H5
Reset CH1
of COM port
7-11

Advertisement

Table of Contents
loading

Table of Contents