EasyManua.ls Logo

Lovato DME CD - Modbus Functions 06, 07, 17

Default Icon
18 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Doc. AHIT101A0510.doc 10/02/2011 P. 5 / 18
FUNZIONE 06: PRESET SINGLE REGISTER
Questa funzione permette di scrivere nei registri.
Essa puo’ essere utilizzata solo con i registri di
indirizzo superiore a 1000 Hex. E’ possibile ad
esempio impostare i parametri del setup. Qualora il
valore impostato non rientri nel valore minimo e
massimo della tabella il DME_CD risponderà con un
messaggio di errore. Se viene richiesto un parametro
ad un indirizzo inesistente verrà risposto con un
messaggio di errore. L’indirizzo ed il range valido per
i vari parametri può essere trovato nelle Tabelle 5, 6
e 7.
Richiesta Master:
Indirizzo slave 08h
Funzione 06h
MSB Indirizzo registro 2Fh
LSB Indirizzo registro 0Fh
MSB Dato 00h
LSB Dato 0Ah
MSB CRC 31h
LSB CRC 83h
Risposta Slave:
La risposta è un eco della domanda, cioè viene
inviato al master l’indirizzo del dato da modificare e il
nuovo valore del parametro.
FUNZIONE 07: READ EXCEPTION STATUS
Tale funzione permette di leggere lo stato in cui si
trova il commutatore di linea.
Richiesta Master:
Indirizzo slave 08h
Funzione 07h
MSB CRC 47h
LSB CRC B2h
La tabella seguente riporta il significato del byte
inviato dal DME_CD come risposta:
BIT SIGNIFICATO
0 Verifica checksum memoria programma
1
2
3
4
5
6
7
FUNZIONE 17: REPORT SLAVE ID
Questa funzione permette di identificare il tipo di
multimetro.
Richiesta Master.
Indirizzo slave 08h
Funzione 11h
MSB CRC C6h
LSB CRC 7Ch
FUNCTION 06: PRESET SINGLE REGISTER
This function allows to write in the registers.
It can be used only with registers with address
higher than 1000 Hex. For instance, it is possible to
change setup parameters. If the value is not in the
correct range, the DME_CD will answer with an
error message. In the same way, if the parameter
address is not recognised, the DME_CD will send
an error response.
The address and the valid range for each parameter
are indicated in Tables 5, 6 and 7.
Master message:
Indirizzo slave 08h
Funzione 06h
MSB Indirizzo registro 2Fh
LSB Indirizzo registro 0Fh
MSB Dato 00h
LSB Dato 0Ah
MSB CRC 31h
LSB CRC 83h
Slave response:
The slave response is an echo to the query, that is
the slave sends back to the master the address and
the new value of the variable.
FUNCTION 07: READ EXCEPTION STATUS
This function allows to read the status of the
automatic transfer switch.
Master query:
Slave address 08h
Function 07h
MSB CRC 47h
LSB CRC B2h
The following table gives the meaning of the status
byte sent by the DME_CD as answer:
BIT MEANING
0 Checksum verify to program memory
1
2
3
4
5
6
7
FUNZIONE 17: REPORT SLAVE ID
This function allows to identify the multimeter type.
Master query.
Slave address 08h
Function 11h
MSB CRC C6h
LSB CRC 7Ch