4 modbus rtu commands, 4 fc3 read holding register, 4 fc4 read input register – VEGA VEGAPULS 66 (≥ 2.0.0 - ≥ 4.0.0) Modbus and Levelmaster protocol User Manual

Page 66: 4 fc6 write single register

Advertising
background image

66

11 Supplement

VEGAPULS 66 • Modbus and Levelmaster protocol

41366-EN-121011

Unit Code

Measurement Unit

48

Centimeters

49

Millimeters

111

Cubic Yards

112

Cubic Feet

113

Cubic Inches

11.4 Modbus RTU commands

11.4 FC3 Read Holding Register

With this command, any number (1-127) of holding registers can be read out. The start register,

from which the readout should start, and the number of registers are transmitted.
Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x03

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

2 Bytes

1 to 127 (0x7D)

Response:

Parameter

Length

Code/Data

Function Code

1 Byte

0x03

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

11.4 FC4 Read Input Register

With this command, any number (1-127) of input registers can be read out. The start register, from

which the readout should start, and the number of registers are transmitted.
Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

N*2 Bytes

1 to 127 (0x7D)

Response:

Parameter

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

11.4 FC6 Write Single Register

With this function code an individual holding register can be written.

Advertising