beautypg.com

4 fc8 diagnostics, 4 fc16 write multiple register – VEGA VEGAPULS 68 (≥ 2.0.0 - ≥ 4.0.0) Modbus and Levelmaster protocol User Manual

Page 72

background image

72

11 Supplement

VEGAPULS 68 • Modbus and Levelmaster protocol

41370-EN-121011

Parameter

Length

Code/Data

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

2 Bytes

Data

Response:

Parameter

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

2 Bytes

Data

11.4 FC8 Diagnostics

With this function code different diagnostic functions can be triggered or diagnostic values read out.
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.

11.4 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