beautypg.com

Ascii diagnostics – ProSoft Technology PLX31-EIP-SIE User Manual

Page 163

background image

PLX3x Series

ASCII Protocol

Ethernet and Serial Gateways

User Manual

ProSoft Technology, Inc.

Page 163 of 218

September 17, 2014

8.3

ASCII Diagnostics

8.3.1 PCB Diagnostics

The best way to troubleshoot this driver is to use ProSoft Configuration Builder to
access the diagnostic capabilities of the gateway through the Ethernet debug
port. For instructions on how to access Diagnostics, see

Using Diagnostics in

ProSoft Configuration Builder

(page 36).

8.3.2 ASCII Status Data in Upper Memory

Each ASCII port has an associated status data area located in the

gateway’s

upper memory. The Data Map functionality of the gateway can be used to map
this data into the normal user data range of the gateway

’s database. See

Using

the CommonNet Data Map

(page 25).

The following table lists the starting addresses in upper memory where the status
data for each ASCII port can be found.

Port

Gateway Starting Register for Status Data

1

13000

2*

13010

3*

13020

4*

13030

*Status data for Ports 2 through 4 are only present in 4-port ASCII gateways.

Port [x] Status Data

Status Register Offset

Description

0

Receive state:
-1 = Listening for data
1 = Receiving port data

1

Total receive character count

2

Total receive message count

3

Transmit state:
0 = Waiting for Data to Send
1 = RTS On
2 = RTS Timeout
3 = Sending data
4 = Waiting for RTS Off
5 = RTS turned off
30, 31, and 32 = Intercharacter Delay
100 and 101 = Message Delay before Transmit

4

Total transmit character count

5

Total transmit message count

6

Reserved

7 to 9

No valid data