beautypg.com

Pre-set multiple registers (function 10 hex), Exception responses – West Control Solutions 8700+ User Manual

Page 131

background image

1

/

4

-DIN,

1

/

8

-DIN &

1

/

16

- DIN Controllers & Indicators - Product Manual


Page 126

Modbus Communications

59305, Issue 7

– March 2014

Pre-Set Multiple Registers (Function 10 Hex)

Writes a consecutive word (two-byte) value to the specified address range.

Table 38. Pre-Set Multiple Registers (Modbus Function 10 Hex)

QUERY

Function

1

st

Word

Address

Number of

Words

Number of

Query Bytes

First value to write

10

HI

LO

HI

LO

HI

LO

RESPONSE

Function

1st Word Address

Number of Words

10

HI

LO

HI

LO

Note:

The number of consecutive words that can be written is limited to 1.

Exception Responses

When a QUERY is sent that the instrument cannot interpret then an Exception RESPONSE
is returned. Possible exception responses are:

Table 39. Modbus Exception Responses

Exception

Code

Error Condition

Interpretation

00

Unused

None.

01

Illegal function

Function number out of range.

02

Illegal Data Address

Write functions: Parameter number out of range or not
supported. (for write functions only).
Read Functions: Start parameter does not exist or end
parameter greater than 65536.

03

Illegal Data Value

Attempt to write invalid data / required action not
executed.


The format of an exception response is:

RESPONSE

Function

Exception Code

Original Function code with its

Most

Significant Bit

(MSB) set.

as detailed above

Note:

In the case of multiple exception codes for a single QUERY the Exception code returned is
the one corresponding to the first parameter in error.

This manual is related to the following products: