Fc8 diagnostics, Fc16 write multiple register, Fc17 report slave id – VEGA VEGAPULS 63 (≥ 2.0.0 - ≥ 4.0.0) Modbus and Levelmaster protocol User Manual

Page 68

Advertising
background image

68

12 Supplement

VEGAPULS 63 • Modbus and Levelmaster protocol

41364-EN-130228

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.

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.

Advertising