
Doc. I317IGB12_19.doc 18/12/2019 P. 39 / 41
Risposta
slave primo bit di stato
Indirizzo slave
08h
Funzione 04h
Numero di byte
02h
MSB attesa/registrazione
00h
LSB attesa/registrazione
01h
LSB CRC
A4h
MSB CRC
F1h
Richiesta master secondo bit di stato (indirizzo 21F4h)
Indirizzo slave
08h
Funzione 04h
MSB Indirizzo registro
21h
LSB Indirizzo registro
F3h
MSB Numero registri
00h
LSB Numero registri
01h
LSB CRC
CBh
MSB CRC
5Ch
Risposta
slave secondo bit di stato
Indirizzo slave
08h
Funzione
04h
Numero di byte
02h
MSB start/stop
00h
LSB start/stop
00h
LSB CRC
65h
MSB CRC
31h
Significato dei bit di stato
H21F3
(attesa o registrazione)
H21F4
(start o stop)
Stato datalogger
-
1
In STOP
1 0
In
ATTESA
0 0
REGISTRAZIONE
3) Abilitazione lettura record dal datalogger (indirizzo 3042H)
Indirizzo slave
08h
Funzione 06h
MSB Indirizzo registro
30h
LSB Indirizzo registro
41h
MSB Dato
00h
LSB Dato
01h
LSB CRC
17h
MSB CRC
87h
4)
Comando calcolo record da leggere nella ricerca per data
(comando 1FF2h)
Questo comando è necessario se si desidera scaricare i dati relativi ad
un periodo temporale. I passi 4, 5 e 6) sono da ripetere per l’inizio e la
fine della finestra temporale.
Es. 8 Luglio 2011 ore 15:50:48
Indirizzo slave
08h
Funzione 10h
MSB Indirizzo registro
1Fh
LSB Indirizzo registro
F1h
MSB Numero registri
00h
LSB Numero registri
02h
Numero byte
04h
MSB Data/Ora
28h
Data/Ora 78h
Data/Ora 89h
LSB Data/Ora
D8h
Slave answer: first status bit
Slave address
08h
Function 04h
Byte number
02h
MSB Wait/Recording
00h
LSB Wait/Recording
01h
LSB CRC
A4h
MSB CRC
F1h
Master query: second status bit (command 21F4h)
Slave address
08h
Function 04h
MSB address
21h
LSB address
F3h
MSB register number
00h
LSB register number
01h
LSB CRC
CBh
MSB CRC
5Ch
Slave answer: second status bit
Slave address
08h
Function
04h
Byte number
02h
MSB start/stop
00h
LSB start/stop
00h
LSB CRC
65h
MSB CRC
31h
Status bit decoding
H21F3
(wait or recording)
H21F4
(start or stop)
Datalogger status
-
1
STOP
1
0 WAITING
0
0 RECORDING
3) Enable records download from datalogger (command 3042H)
Slave address
08h
Function 06h
MSB register address
30h
LSB register address
41h
MSB Data
00h
LSB Data
01h
LSB CRC
17h
MSB CRC
87h
4)
Calculate the record index relevant to time/date information
(command 1FF2h)
Use this command if the interesting data are included in a time period
Repeat steps 4, 5 and 6) to get the first and the last record in the time
period.
Exp. July 8th, 2011 - 15:50:48
Slave address
08h
Function 10h
MSB register address
1Fh
LSB register address
F1h
MSB register number
00h
LSB register number
02h
Byte number
04h
MSB Date/Time
28h
Date/Time 78h
Date/Time 89h
LSB Date/Time
D8h