4 receiving ascii characters from the client, 5 status information – Horner APG XL4 OCS HE-ETN300 User Manual
Page 94
CH.13
SUP0740-07
11/30/2009
Page 94 of 98
# 958
13.4 Receiving ASCII characters from the client
In above configuration dialog %R500 register is used for receiving data. The receive data register
format will be as below.
Sl.No
Register Address
Data Content
1
%R500
First Register contains number of byes (characters)
received.
2
%R501
User can provide valid termination character here (if any). If
there is no termination character set this register value to
zero.
3
%R502
Received data. Each Register can hold 2 bytes of data.
4 %R503
Received
data.
..
Received
data.
..
Received
data.
n %R(500+n-1) Received
data.
Note: Maximum 2K ASCII characters can be received in a single request.
13.5 Status Information
%R700 register is used for to display status information. Details of Status Register as below.
Bit No.
Description
1
Receive Data Overflow: Set when number received characters are more than
255.
2
Transmit Data Overflow: Set when transmit character count is more than 255.
3
Socket Creation Error: Set if there is any error in Socket creation.
4
Socket Allocate Error: Set if there is any internal memory allocation error for
transmitting data.
5
Socket Send Error: If error in transmitting TCP packet.
6 Reserved
7 Reserved
8 Reserved
9 Reserved
10 Reserved
11 Reserved
12 Reserved
13 Reserved
14 Reserved
15 Reserved
16
Receive Data indication Bit: Set when new packet is received. User can reset
this bit to ‘0’.