beautypg.com

Fc16 write multiple register, Fc17 report slave id – VEGA VEGAFLEX 86 Modbus and Levelmaster protocol User Manual

Page 86

background image

86

11 Supplement

VEGAFLEX 86 • Modbus and Levelmaster protocol

41848-EN-130314

Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x08

Sub Function Code

2 Bytes

Data

N*2 Bytes

Data

Response:

Parameter

Length

Code/Data

Function Code

1 Byte

0x08

Sub Function Code

2 Bytes

Data

N*2 Bytes

Data

Implemented function codes:

Sub Function Code

Name

0x00

Return Data Request

0x0B

Return Message Counter

With sub function codes 0x00 only one 16 bit value can be written.

FC16 Write Multiple Register

With this function code, several holding registers can be writen. Only registers can be written in an

enquiry which are immediately consecutive. If there are gaps (registers do not exist) between the

registers, then they cannot be written in a telegram.
Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x10

Start Address

2 Bytes

0x0000 to 0xFFFF

Register Value

2 Bytes

0x0001 to 0x007B

Byte Number

1 Byte

2*N

Register Value

N*2 Bytes

Data

Response:

Parameter

Length

Code/Data

Function Code

1 Byte

0x10

Sub Function Code

2 Bytes

0x0000 to 0xFFFF

Data

2 Bytes

0x01 to 0x7B

FC17 Report Slave ID

With this function code, the Slave ID can be queried.
Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x11