Fc4 read input register, Fc6 write single register, Fc8 diagnostics – VEGA VEGABAR 82 Modbus and Levelmaster protocol - Operating Instructions Manuale d'uso

Pagina 74

Advertising
background image

74

10 Appendice

VEGABAR 82 • Protocollo Modbus e LevelMaster

46294-IT

-131205

Parametro

Lunghezza

Code/Data

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

FC4 Read Input Register

Tramite questo comando è possibile leggere un numero qualsiasi (1-127) di registri input. Vengono

trasmessi il registro iniziale, a partire dal quale va effettuta la lettura, e il numero di registri.
Request:

Parametro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

N*2 Bytes

1 to 127 (0x7D)

Response:

Parametro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

FC6 Write Single Register

Con questo codice di funzione è possibile scrivere un singolo holding register.
Request:

Parametro

Length

Code/Data

Function Code

1 Byte

0x06

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

2 Bytes

Data

Response:

Parametro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

2 Bytes

Data

FC8 Diagnostics

Con questo codice di funzione è possibile avviare diverse funzioni diagnostiche o leggere valori di

diagnosi.

Advertising