Doc. I317IGB12_19.doc 18/12/2019 P. 40 / 41
LSB CRC 71h
MSB CRC F8h
Data/ora = numero secondi trascorsi dal 1/1/1990, 0h00m00s
5) Attesa fine ricerca(indirizzo 21F7h)
Richiesta master
Indirizzo slave 08h
Funzione 04h
MSB Indirizzo registro 21h
LSB Indirizzo registro F6h
MSB Numero registri 00h
LSB Numero registri 01h
LSB CRC 0Bh
MSB CRC 5Dh
Risposta slave
Indirizzo slave 08h
Funzione 04h
Byte letti 02h
MSB Indice registro 00h
LSB Indice registro 02h
LSB CRC E4h
MSB CRC F0h
6) Record calcolato (indirizzo 1C04h)
Richiesta master
Indirizzo slave 08h
Funzione 04h
MSB Indirizzo registro 1Ch
LSB Indirizzo registro 03h
MSB Numero registri 00h
LSB Numero registri 02h
LSB CRC 86h
MSB CRC C2h
Risposta slave
Indirizzo slave 08h
Funzione 04h
Byte letti 04h
MSB Indice registro 00h
Indice registro 00h
Indice registro 00h
LSB Indice registro 06h
LSB CRC E2h
MSB CRC 86h
7) Lettura di un record (Comando modbus 23)
Se si desidera leggere tutti i dati, questo comando va ripetuto a partire
dal primo record a quello restituito dal comando 1), altrimenti si
considerano gli indici delle due letture effettuate tramite i comandi 4, 5 e
6) per scaricare i dati in una finestra temporale.
Es. record numero 3
Richiesta master
Indirizzo slave 08h
Funzione 17h
MSB Indirizzo num. registri da ricevere 0Fh
LSB Indirizzo num. registri da ricevere 7Dh
MSB Numero registri/record 00h
LSB CRC 71h
MSB CRC F8h
Date/Time = number of seconds from Jenuary 1st, 1990 - 0h00m00s
5) Delay end index search(indirizzo 21F7h)
Richiesta master
Indirizzo slave 08h
Funzione 04h
MSB Indirizzo registro 21h
LSB Indirizzo registro F6h
MSB Numero registri 00h
LSB Numero registri 01h
LSB CRC 0Bh
MSB CRC 5Dh
Risposta slave
Indirizzo slave 08h
Funzione 04h
Byte letti 02h
MSB Indice registro 00h
LSB Indice registro 02h
LSB CRC E4h
MSB CRC F0h
6) Record index calculated by step 4) (command 1C04h)
Wait for 2 seconds between step 4) and 5).
Master query
Slave address 08h
Function 04h
MSB address 1Ch
LSB address 03h
MSB register number 00h
LSB register number 02h
LSB CRC 86h
MSB CRC C2h
Slave answer
Slave address 08h
Function 04h
Byte number 04h
MSB Register index 00h
Register index 00h
Register index 00h
LSB Register index 06h
LSB CRC E2h
MSB CRC 86h
7) Read a record (Modbus command 23)
If all the records are required, repeat this command starting from the
first record and the record got by command 1), otherwise use the
indexes got by commands 4,5 and 6) to consider only a time period.
Exp. record number 3
Master query
Slave address 08h
Function 17h
MSB Register to be read number 0Fh
LSB Register to be read number 7Dh
MSB Register number each record
00h