ProSoft Technology 5202-DFNT-MCM4 User Manual

Page 36

Advertising
background image

MCM ♦ ProLinx Gateway

Serial Port Modbus Error and Status Data

Modbus Master/Slave

Driver Manual


Page 36 of 80

ProSoft Technology, Inc.

October 16, 2009

The STATE register may display any of the following values.

STATE Value Description

-2

Preparing port, Flushing all buffers, Scan for RTS-Off, or Waiting for port enable
signal

-1

Waiting for receipt of data

0 Undefined

state

1

Receiving a message from the Master

2

Building a slave response message

2000

Sending slave response to the Master

The COMM STATE register may display any of the following values.

COMM STATE

Value

Description

0

Port not sending data (Wait for send)

1

Setting up minimum Response Delay Timer

101

Waiting for Minimum Response Delay to timeout

2

Turning on RTS line and starting RTS-On Delay Timer

3

Waiting for RTS-On Delay timer to timeout

4 Sending

data

5

Waiting for all data to be sent and starting RTS-Off Delay Timer

6

Waiting for RTS-Off Delay timeout and then turning OFF RTS line after timeout

4.2.3 Master Port: Command List Errors

The individual command errors for each Master port are returned to the address
locations specified in the following table. Each port can have up to 100
commands configured. Each configured command will use one word of these
data areas to store a value representing the execution status from the most
recent command execution attempt.

Modbus Port Address Range

0

4410 to 4509

1

4810 to 4909

2

5210 to 5309

3

5610 to 5709

The first word in the defined register location contains the status/error code for
the first command in the port's Command List. Successive words in the
Command Error List are associated with corresponding commands in the list.

Refer to Error Codes (page 39) to interpret the status/error codes present in this
data area.

Advertising