11. Modbus TCP server

11. 6. “Write Single Register” (6) function

This Modbus request is used to write a given value (Preset Data) to the address supplied (Register Address).

Request format:

Byte

Meaning

0Function Code = 16#06

1Register Address Hi

2Register Address Lo

3Preset Data Hi

4Preset Data Lo

Response format:

Byte

Meaning

0Function Code = 16#06

1Register Address Hi

2Register Address Lo

3Preset Data Hi

4Preset Data Lo

Exception response format:

 

 

 

 

 

Byte

Meaning

With the VW3A3310d Ethernet card

0

Function Code = 16#86

 

 

 

 

01

(Illegal Function)

1

Exception Code

02

(Illegal Data Address)

03

(Illegal Data Value)

 

 

 

 

04

(Illegal Response Length)

 

 

 

 

36

Page 36
Image 36
Schneider Electric VW3A3310d user manual Write Single Register 6 function