Doc. I317IGB12_19.doc 18/12/2019 P. 38 / 41
13) Comando REBOOT (indirizzo 2F01h)
Indirizzo slave 08h
Funzione 06h
MSB Indirizzo registro 2Fh
LSB Indirizzo registro 00h
MSB Dato 00h
LSB Dato 01h
LSB CRC 40h
MSB CRC 47h
LETTURA DATALOGGER
Per scaricare i dati contenuti nella memoria del datalogger occorre
eseguire le seguenti operazioni.
1) Lettura numero di record memorizzati (indirizzo 1C00H)
Richiesta master
Indirizzo slave 08h
Funzione 04h
MSB Indirizzo registro 1Bh
LSB Indirizzo registro FFh
MSB Numero registri 00h
LSB Numero registri 06h
LSB CRC 46h
MSB CRC 45h
Risposta slave (Es. 24 record memorizzati)
Indirizzo slave 08h
Funzione 04h
Numero di byte 0Ch
MSB Ultimo record memorizzato 00h
Ultimo record memorizzato 00h
Ultimo record memorizzato 00h
LSB Ultimo record memorizzato 18h
MSB Dimensione memoria flash 00h
Dimensione memoria flash 80h
Dimensione memoria flash 00h
LSB Dimensione memoria flash 00h
Not used 00h
Not used 00h
Not used 00h
Not used 00h
LSB CRC 77h
MSB CRC 79h
2) Se necessario: lettura stato datalogger (indirizzi 21F3h e 21F4h)
Richiesta master primo bit di stato (indirizzo 21F3h)
Indirizzo slave 08h
Funzione 04h
MSB Indirizzo registro 21h
LSB Indirizzo registro F2h
MSB Numero registri 00h
LSB Numero registri 01h
LSB CRC 9Ah
MSB CRC 9Ch
13) REBOOT command (2F01h)
Slave address 08h
Function 06h
MSB register address 2Fh
LSB register address 00h
MSB Data 00h
LSB Data 01h
LSB CRC 40h
MSB CRC 47h
DOWNLOAD DATA FROM DATALOGGER
Per scaricare i dati contenuti nella memoria del datalogger occorre
eseguire le seguenti operazioni.
1) Read the number of stored records (command 1C00H)
Master query
Slave address 08h
Function 04h
MSB address 1Bh
LSB address FFh
MSB register number 00h
LSB register number 06h
LSB CRC 46h
MSB CRC 45h
Slave answer (Exp. 24 stored records)
Slave address 08h
Function 04h
Byte number 0Ch
MSB Last stored record 00h
Last stored record 00h
Last stored record 00h
LSB Last stored record 18h
MSB Flash size 00h
Flash size 80h
Flash size 00h
LSB Flash size 00h
Not used 00h
Not used 00h
Not used 00h
Not used 00h
LSB CRC 77h
MSB CRC 79h
2) If required: read datalogger status (command 21F3h and 21F4h)
Master query: first status bit (command 21F3h)
Slave address 08h
Function 04h
MSB address 21h
LSB address F2h
MSB register number 00h
LSB register number 01h
LSB CRC 9Ah
MSB CRC 9Ch