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

Communication cassette ethernet type fp7-series, cpu unit, extension cassettes ethernet x 1ch type
Table of Contents

Advertisement

General-Purpose Communication

6.3.2 Contents of Received Data

When data are copied into a given data register, based on GPRECV instruction, 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 instruction do not
include a start code or end code.
It is also possible to receive binary data based on the GPRECV instruction.
In this case, the terminator should be specified using "Time".

6.3.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) by the user program.
 Once reset is completed, (X10) turns ON. Subsequently, turn OFF the "Request to reset"
(Y10).
R100
DF
Request to
CH1 error
reset an error
reset done
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).
(3) Specify a port to receive data based on the UNITSEL instruction.
(4) Execute the GPRECV instruction 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
DT201
Higher
Lower
Higher
byte
byte
byte
H32
H31
H0
(2)
(1)
Received No. of bytes
Y10
Request to
reset CH1
DT200
Lower
byte
H5
Reset CH1
of COM port

Advertisement

Table of Contents
loading

This manual is also suitable for:

Afp7ccet1

Table of Contents