beautypg.com

Diagnostic message in ascii mode, Data transmission with modbus ascii – VEGA VEGACOM 557 Modbus protocol User Manual

Page 48

background image

48

VEGACOM 557 Modbus

Diagnostic message in ASCII mode

Function code 08 (diagnostics) enables diagnostics of the Modbus-participants through the
Modbus-Master. VEGACOM 557 supports the Diagnostic Code 0x0000 (return of the data). In
the field "Diagnostic Data“ any, approved data can be entered, which are returned unchanged
from a functioning VEGACOM 557.

Function 08 is implemented in the same manner for both VEGAMET and VEGALOG.

Example of a diagnostic telegram:
The Modbus participant with the Slave address 1 shall confirm the diagnostic data 0xA5,
0x37.

Start

Slave

address

Function

code

Diagnostic

Code

Diagnostic

Data

Error

Check

End

No. of

bytes

Value

range

Meaning

Structure of the diagnostic function from Modbus master to VEGACOM 557

ASCII enquiry telegram diagnostic (function code 08)

1

2

2

4

4

2

2

:

1 .. 247

08

0

0 ... 65.535

LRC

CR LF

No. of

bytes

Value

range

Meaning

Structure of the confirmation from VEGACOM 557 to Modbus master

ASCII confirmation telegram diagnostic (function code 08)

Data transmission with Modbus ASCII

:

0

1

0

8

0

0

0

0

A

5

3

7

X

X

CR

LF

Start

Slave

address

Function

code

Diagnostic

Code

Diagnostic

Data

Error

Check

End

1

2

2

4

4

2

2

:

1 .. 247

08

0

0 ... 65.535

LRC

CR LF

:

0

1

0

8

0

0

0

0

A

5

3

7

X

X

CR

LF