
Doc. I317IGB12_19.doc 18/12/2019 P. 27 / 41
PROTOCOLLO DI COMUNICAZIONE MODULI EXM1030 E
EXP1030
IMPOSTAZIONE DATALOGGER
Per impostare il datalogger, cioè per programmare quali misure
raccogliere, di che tipo, quanto frequentemente e per predisporre la
memoria flash, occorre eseguire in sequenza le seguenti operazioni.
1) Comando STOP LOGGER (indirizzo 21F3h)
La registrazione viene arrestata.
Indirizzo slave
08h
Funzione 06h
MSB Indirizzo registro
21h
LSB Indirizzo registro
F2h
MSB Dato
00h
LSB Dato
01h
LSB CRC
E3h
MSB CRC
5Ch
2) Comando RESET FLASH (indirizzo 21F4h)
Indirizzo slave
08h
Funzione 06h
MSB Indirizzo registro
21h
LSB Indirizzo registro
F3h
MSB Dato
00h
LSB Dato
01h
LSB CRC
B2h
MSB CRC
9Ch
3) Se necessario: impostazione RTC (indirizzo 28F0h)
Es. 4 Luglio 2011 ore 10:15:00s
Indirizzo slave
08h
Funzione 10h
MSB Indirizzo registro
28h
LSB Indirizzo registro
EFh
MSB Numero registri
00h
LSB Numero registri
06h
Numero byte
0Ch
MSB Anno
07h
LSB Anno
DBh
MSB Mese
00h
LSB Mese
07h
MSB Giorno
00h
LSB Giorno
04h
MSB Ore
00h
LSB Ore
0Ah
MSB Minuti
00h
LSB Minuti
0Fh
MSB Secondi
00h
LSB Secondi
00h
LSB CRC
F4h
MSB CRC
E0h
4) Se necessario: impostazione ora legale/solare
(comando 21F0h)
Legale
Solare
Indirizzo slave
08h
08h
Funzione 06h
06h
MSB Indirizzo registro
21h
21h
LSB Indirizzo registro
EFh
EFh
MSB Dato
00h
00h
LSB Dato
01h
00h
LSB CRC
73h
B2h
MSB CRC
5Ah
9Ah
EXM1030 AND EXP1030 COMMUNICATION PROTOCOL
DATALOGGER SETUP
In order to setup which measurements are to be collected, which types,
the sampling time and to prepare the flash memory to work, the
following operations must be done.
1) “STOP LOGGER” command (address 21F3h)
The data collection and storing is stopped
Slave address
08h
Function 06h
MSB register address
21h
LSB register address
F2h
MSB Data
00h
LSB Data
01h
LSB CRC
E3h
MSB CRC
5Ch
2) “RESET FLASH” command (address 21F4h)
Slave address
08h
Function 06h
MSB register address
21h
LSB register address
F3h
MSB Data
00h
LSB Data
01h
LSB CRC
B2h
MSB CRC
9Ch
3) If required: RTC setup (address 28F0h)
Exp. July, 4 – 2011, 10:15:00s
Slave address
08h
Function 10h
MSB register address
28h
LSB register address
EFh
MSB register number
00h
LSB register number
06h
Byte number
0Ch
MSB Year
07h
LSB Year
DBh
MSB Month
00h
LSB Month
07h
MSB Day
00h
LSB Day
04h
MSB Hours
00h
LSB Hours
0Ah
MSB Minutes
00h
LSB Minutes
0Fh
MSB Seconds
00h
LSB Seconds
00h
LSB CRC
F4h
MSB CRC
E0h
4) If required: daylight saving time enabling
(command 21F0h)
Enable
Disable
Slave address
08h
08h
Function 06h
06h
MSB register address
21h
21h
LSB register address
EFh
EFh
MSB Data
00h
00h
LSB Data
01h
00h
LSB CRC
73h
B2h
MSB CRC
5Ah
9Ah