Fc16 write multiple register, Fc17 report slave id – VEGA VEGABAR 82 Modbus and Levelmaster protocol - Operating Instructions Manuale d'uso

Pagina 75

Advertising
background image

75

10 Appendice

VEGABAR 82 • Protocollo Modbus e LevelMaster

46294-IT

-131205

Request:

Parametro

Length

Code/Data

Function Code

1 Byte

0x08

Sub Function Code

2 Bytes

Data

N*2 Bytes

Data

Response:

Parametro

Length

Code/Data

Function Code

1 Byte

0x08

Sub Function Code

2 Bytes

Data

N*2 Bytes

Data

Codici di funzione convertiti:

Sub Function Code

Name

0x00

Return Data Request

0x0B

Return Message Counter

Per il codice di sub-funzione 0x00 è possibile scrivere solamente un valore a 16 bit.

FC16 Write Multiple Register

Con questo codice di funzione è possibile scrivere più di un holding register. Possono essere scritti

solamente registri in diretta successione in una richiesta. Se vi sono intervalli tra i registri (i registri

non esistono), questi non possono essere scritti in un telegramma.
Request:

Parametro

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:

Parametro

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

Con questo codice di funzione può essere richiesta la slave ID.

Advertising