---
title: "Deye SUN-xK-SG04LP3-EU / SG05LP3-EU"
description: "Inverter ibrido Deye SG04LP3 via Modbus RTU: flusso di energia FV, consumo, rete e batteria, SoC, guasti, modalità di lavoro e Time of Use. Porta RJ45."
url: "https://taphome.com/it/compatibility/deye-sg04lp3-hybrid-inverter/"
language: it
lastmod: 2026-11-10
generator: hugo
ai:
  topics: ["modbus-rtu","rs485","inverter","hybrid-inverter","solar","battery-storage","3-phase","energy-monitoring","time-of-use"]
  questions: ["Come integrare l'inverter ibrido Deye SUN-xK-SG04LP3-EU con TapHome?","Cosa misura e controlla il template TapHome per Deye SG04LP3?","Come collegare l'inverter Deye SG04LP3 a TapHome tramite Modbus RTU?","Dove si imposta l'indirizzo Modbus su un inverter Deye SG04LP3?","Quale porta RJ45 del Deye SG04LP3 si usa per Modbus e qual è la sua piedinatura?","Perché il Deye SG04LP3 non risponde sulla porta Modbus?","TapHome può controllare la programmazione Time of Use di un inverter ibrido Deye?"]
---

# Deye SUN-xK-SG04LP3-EU / SG05LP3-EU

Comunicazione: Modbus RTU

## Guida all'integrazione

Il Deye SUN-xK-SG04LP3-EU è un inverter ibrido trifase (230 V / 400 V) a bassa tensione con ingresso batteria e due ingressi MPPT per il campo fotovoltaico; il manuale del produttore copre i modelli SUN-5K, 6K, 8K, 10K e 12K-SG04LP3-EU. TapHome comunica con l'inverter tramite **Modbus RTU** su RS-485 (9600 baud, 8N1), usando la porta RJ45 contrassegnata **Modbus** sulla scheda di comunicazione dell'inverter.

Il template legge la produzione FV, il consumo, il prelievo dalla rete e l'immissione in rete, la carica e la scarica della batteria e lo stato di carica della batteria, e fornisce i sette dispositivi del flusso di energia TapHome. Legge inoltre i valori di batteria, rete, stringhe FV e uscita dell'inverter, decodifica lo stato di funzionamento, gli avvisi e i codici di guasto dell'inverter in notifiche TapHome e scrive la modalità di gestione energetica, la carica da rete, i limiti di corrente della batteria, l'uso della porta generatore e la programmazione Time of Use (TOU) a sei fasce orarie.

## Collegamento hardware

> [!WARNING]
> Solo personale qualificato può installare e cablare l'inverter. Le porte di comunicazione si trovano nel vano di cablaggio dietro il coperchio metallico; prima di iniziare il lavoro, i circuiti AC e DC vanno scollegati separatamente, come descritto nel manuale del produttore.

### Porte di comunicazione

Le porte di comunicazione RJ45 si trovano sul lato destro della scheda di comunicazione: **Parallel_A**, **Parallel_B**, **Meter-485**, **Modbus**, **BMS** e **DRM**.

![Porte di comunicazione del Deye SG04LP3-EU: connettori RJ45 Parallel_A, Parallel_B, Meter-485, Modbus, BMS e DRM con le rispettive funzioni.](https://taphome.com/images/compatibility/deye-sg04lp3-hybrid-inverter/ports-layout_hu_aeac3891ac9c016.jpg)

| Porta | Funzione secondo il produttore |
|------|-----------------------------------|
| Parallel_A, Parallel_B | Comunicazione in parallelo tra inverter (interfaccia CAN) |
| Meter-485 | Comunicazione con il contatore di energia esterno (ad esempio CHNT DTSU666 o Eastron SDM630) |
| Modbus | Contrassegnata "Reserved"; l'appendice sulla piedinatura la descrive come porta per il monitoraggio remoto |
| BMS | Comunicazione con la batteria (CAN / RS-485) |
| DRM | Segnali di ingresso digitali esterni |
| WIFI/RS232 (porta separata a 9 pin) | Datalogger Wi-Fi |

TapHome si collega alla porta **Modbus**. Non usare la porta Meter-485 (serve al contatore di energia) né la porta BMS (serve alla batteria).

> [!WARNING]
> Il produttore contrassegna la porta Modbus come **"Reserved"** e avverte che **su alcune versioni hardware questa porta non è utilizzabile**. Prima di posare il cavo, verifica che la porta Modbus dell'inverter specifico risponda; se non risponde, il template non può comunicare attraverso di essa.

### Piedinatura della porta Modbus

![Piedinatura RJ45 delle porte BMS, Meter-485 e Modbus dell'inverter Deye SG04LP3-EU; la porta Modbus usa i pin 1/8 come 485_B, 2/7 come 485_A e 3/6 come GND_485.](https://taphome.com/images/compatibility/deye-sg04lp3-hybrid-inverter/wiring-rs485-pinout_hu_6afed0daae2db4b4.jpg)

| Pin RJ45 (porta Modbus) | Segnale | Bus RS-485 TapHome |
|------------------------|--------|--------------------|
| 1, 8 | 485_B | B |
| 2, 7 | 485_A | A |
| 3, 6 | GND_485 | GND |
| 4, 5 | Non utilizzato | — |

Crimpa un connettore RJ45 su un cavo a doppino intrecciato e collega 485_A al morsetto A e 485_B al morsetto B del bus RS-485 TapHome. Per tratte di cavo più lunghe è consigliato un collegamento GND comune (GND_485).

> [!NOTE]
> Sulla linea RS-485 collegata alla porta Modbus può interrogare l'inverter un solo master Modbus. Se sulla stessa linea è cablato un altro dispositivo di monitoraggio Modbus, scollegalo oppure usa uno splitter o un hub RS-485. Il datalogger Wi-Fi del produttore usa la propria porta WIFI/RS232.

## Configurazione

### Impostazione dell'indirizzo Modbus

L'indirizzo Modbus è il campo **Modbus SN** sul display dell'inverter:

1. Nella schermata principale, premi l'icona **System Setup**.
2. Apri **Advanced Function** e vai alla pagina con **Parallel**, **Modbus SN** ed **EX_Meter For CT** (Paral. Set3).
3. Imposta **Modbus SN** e conferma con il pulsante con la spunta.

Il parametro di importazione del template **Modbus Slave ID** (predefinito **1**) deve corrispondere al Modbus SN. La schermata del manuale per un singolo inverter mostra `00`; imposta un valore diverso da zero, perché l'indirizzo Modbus 0 è riservato al broadcast. In un sistema in parallelo il manuale assegna a ogni inverter un proprio Modbus SN (01, 02, 03), quindi ogni inverter richiede una propria importazione del template con il proprio Slave ID.

### Parametri di comunicazione

| Parametro | Valore |
|-----------|-------|
| Baud rate | 9600 |
| Bit di dati | 8 |
| Parità | Nessuna |
| Bit di stop | 1 |
| Codici funzione | 0x03 (lettura), 0x10 (scrittura di più registri) |
| Modbus Slave ID | 1 (deve corrispondere al Modbus SN) |

Le operazioni di scrittura usano il codice funzione 0x10; l'inverter non supporta il codice funzione 0x06 (scrittura di un singolo registro).

In TapHome aggiungi un'interfaccia Modbus RTU con questi parametri sul bus RS-485 a cui è cablato l'inverter e importa il template con il Modbus Slave ID corrispondente.

> [!WARNING]
> Non scrivere mai nei registri 80, 81, 91 e 92 (accensione e spegnimento dell'inverter, ripristino delle impostazioni di fabbrica, EEPROM) né nei registri del tipo e della protezione della batteria (98–103, 111). Il template espone solo registri configurabili dall'utente.

## Funzionalità del dispositivo

### Flusso di energia

Il template fornisce i sette dispositivi che TapHome usa per un flusso di energia solare completo:

- **Produzione fotovoltaica** — somma delle potenze degli ingressi FV (registri 672–675) in kW, energia totale dal contatore a 32 bit nei registri 534–535.
- **Consumo** — potenza totale del carico (registro 653) e consumo totale (registri 527–528).
- **Dalla rete** e **Alla rete** — la potenza di rete con segno (registro 625) viene suddivisa: i valori positivi alimentano Dalla rete, i valori negativi (come numeri positivi) alimentano Alla rete. Energia totale dai registri 522–523 (dalla rete) e 524–525 (verso la rete).
- **Dalla batteria** e **Alla batteria** — la potenza della batteria con segno (registro 590) viene suddivisa allo stesso modo. Energia totale dai registri 518–519 (scarica) e 516–517 (carica).
- **Batteria (SOC)** — stato di carica della batteria, registro 588, 0–100 %.

> [!TIP]
> Per la smart rule Energy Manager seleziona il contatore **Grid - power balance**. Riporta la potenza di rete con segno (registro 625): positiva durante il prelievo dalla rete, negativa durante l'immissione del surplus. Dalla rete e Alla rete non sono mai negativi e non vanno usati come contatore dell'Energy Manager.

### Batteria

- **Battery - temperature** — registro 586, formula `(raw − 1000) / 10`.
- **Battery - voltage** — registro 587; corrente della batteria (registro 591) e potenza della batteria (registro 590) come attributi di servizio.
- **Battery - charge today** — registro 514; energia scaricata oggi (registro 515) come attributo di servizio.

### Rete

- **Grid - power balance** — potenza di rete totale con segno (registro 625); potenza di rete su L1, L2 e L3 (registri 622–624) ed energia acquistata e venduta oggi (registri 520 e 521) come attributi di servizio.
- **Grid - voltage L1** — registro 598; tensione di rete su L2 e L3 (registri 599 e 600) e frequenza di rete (registro 609) come attributi di servizio.

### FV e consumo

- **PV1 - voltage** e **PV2 - voltage** — registri 676 e 678; corrente di stringa (registri 677 e 679) e potenza di stringa (registri 672 e 673) come attributi di servizio.
- **PV - production today** — registro 529.
- **Load - consumption today** — registro 526; potenza del carico su L1, L2 e L3 (registri 650–652) come attributi di servizio.

### Inverter

- **Inverter - output power total** — registro 636; potenza di uscita per fase (registri 633–635), tensione di uscita per fase (registri 627–629) e frequenza di uscita (registro 638) come attributi di servizio.
- **Backup - output power** — registro 643.
- **Generator port - power** — registro 667.
- **DC transformer temperature** (registro 540) e **Heat sink temperature** (registro 541).

### Stato, avvisi e guasti

Il modulo mostra come attributi di servizio il **Running state** (registro 500: Standby, Self-check, Normal, Alarm, Fault, Activating), il tipo di dispositivo (registro 0) e la potenza nominale (registri 20–21). Lo stato di funzionamento Alarm genera un avviso e Fault genera un errore.

Le parole di avviso (registri 553–554) vengono decodificate in avvisi con nome: avviso della ventola, sequenza delle fasi di rete errata, guasto di comunicazione con il contatore, batteria al litio persa e qualità della comunicazione in parallelo. Le parole di guasto (registri 555–558) vengono decodificate in errori con nome per i codici di guasto F07, F10, F13, F18, F20, F22–F24, F26, F29, F35, F41, F42, F46–F49, F56, F58 e F62–F64; il significato di ciascun codice e il rimedio indicato dal produttore si trovano nella tabella dei guasti del manuale dell'inverter.

### Impostazioni operative

- **Settings - energy management mode** — Selling first, Zero export to load o Zero export to CT (registro 142). Secondo il manuale, Zero export to CT richiede i trasformatori di corrente esterni sugli ingressi CT-L1, CT-L2 e CT-L3.
- **Settings - solar sell** — consente di vendere alla rete l'energia FV in eccesso nelle modalità a immissione zero (registro 145).
- **Settings - max sell power** (registro 143) e **Settings - max solar sell power** (registro 340).
- **Settings - grid charging** — carica della batteria da rete attivata o disattivata (registro 130) e **Settings - grid charge current** (registro 128).
- **Settings - max battery charge current** (registro 108) e **Settings - max battery discharge current** (registro 109). Il manuale indica l'intervallo consentito per modello: 0–120 A (5 kW), 0–150 A (6 kW), 0–190 A (8 kW), 0–210 A (10 kW) e 0–240 A (12 kW).
- **Settings - generator port use** — Generator input, Smart load output o Micro-inverter input (registro 133).

### Programmazione Time of Use

La programmazione Time of Use dell'inverter ha sei fasce orarie. Per ogni fascia W1–W6 il template espone:

- **TOU W1–W6 - start time** — valore HHMM (ad esempio 1430 = 14:30), registri 148–153.
- **TOU W1–W6 - target SoC** — stato di carica obiettivo della batteria come cursore 0–100 %, registri 166–171.
- **TOU W1–W6 - grid charging** — carica da rete durante la fascia attivata o disattivata; il template modifica solo il bit 0 dei registri 172–177 e mantiene gli altri bit.

**TOU - enable** attiva o disattiva l'intera programmazione tramite il bit 0 del registro 146 e mantiene la selezione dei giorni della settimana (bit 1–7).

> [!NOTE]
> Secondo il manuale, l'inverter interpreta il valore della batteria di ogni fascia come tensione o come stato di carica a seconda della scelta **Use Batt V** / **Use Batt %** nel menu Battery Setting. I dispositivi target SoC sono percentuali, quindi l'inverter va impostato su Use Batt %. Quando la rete è presente, la batteria si scarica solo se Time of Use è spuntato.

## Risoluzione dei problemi

**Nessun dato / errore di comunicazione**

- Verifica che il cavo sia nella porta **Modbus**, non in Meter-485 o BMS.
- Verifica la polarità A/B (pin 2/7 = 485_A, pin 1/8 = 485_B) e il collegamento GND.
- Verifica che il Modbus Slave ID del template corrisponda al **Modbus SN** in Advanced Function e che il Modbus SN non sia 0.
- Verifica che sulla stessa linea RS-485 non sia attivo un altro master Modbus.
- Il produttore dichiara che su alcune versioni hardware la porta Modbus non è utilizzabile. Se cablaggio e indirizzo sono corretti e l'inverter continua a non rispondere, la porta su quella versione hardware potrebbe non essere utilizzabile.

**Valori sfasati di 1000× o privi di senso**

Verifica che l'inverter sia una variante a bassa tensione (LV) SG04LP3 o SG05LP3. La famiglia ad alta tensione SG01HP3 usa una scala diversa per tensione della batteria, potenza della batteria e potenza di ingresso FV; il template è previsto solo per la scala LV.

**Batteria (SOC) bloccata a 0 %**

Il registro 588 restituisce 0 durante alcuni stati di autodiagnosi. Attendi che il Running state raggiunga Normal; lo stato di carica si aggiorna entro il successivo intervallo di interrogazione.

**Impostazioni Time of Use non applicate**

Assicurati che **TOU - enable** sia attivo e che almeno una fascia abbia un orario di inizio diverso da zero. Se i valori target SoC sembrano ignorati, verifica che l'inverter sia impostato su Use Batt %.

**Avviso di guasto di comunicazione con il contatore**

L'avviso è segnalato dall'inverter stesso (parola di avviso, registro 553) e non significa che la connessione TapHome non sia riuscita. Il contatore di energia è collegato alla porta Meter-485; controlla il suo cablaggio e, quando si usa un contatore esterno con EX_Meter For CT, l'impostazione **Meter Select** (CHNT o Eastron) in Advanced Function.

## Dispositivi disponibili 49

Questi dispositivi compaiono in TapHome dopo l'importazione.

Deye SUN-xK-SG04LP3-EU Modulo

Attributi di servizio

|               |
|---------------|
| Running state |
| Device type   |
| Rated power   |

Lettura (modulo)

```taphome
VAR state := MODBUSR(H, 500, UInt16);
IF(state = 3, ADDWARNING(64, "Inverter alarm (running state 3)"));
IF(state = 4, ADDERROR(65, "Inverter fault (running state 4)"));

VAR w1 := MODBUSR(H, 553, UInt16);
IF(GETBIT(w1, 1), ADDWARNING(1, "Fan warning"));
IF(GETBIT(w1, 2), ADDWARNING(2, "Grid phase sequence wrong"));
IF(GETBIT(w1, 3), ADDWARNING(3, "Meter communication failure"));

VAR w2 := MODBUSR(H, 554, UInt16);
IF(GETBIT(w2, 14), ADDWARNING(14, "Lithium battery lost"));
IF(GETBIT(w2, 15), ADDWARNING(15, "Parallel communication quality"));

VAR f1 := MODBUSR(H, 555, UInt16);
IF(GETBIT(f1, 6), ADDERROR(6, "F07 DC/DC soft-start fault"));
IF(GETBIT(f1, 9), ADDERROR(9, "F10 Auxiliary power supply fault"));
IF(GETBIT(f1, 12), ADDERROR(12, "F13 Working mode changed"));

VAR f2 := MODBUSR(H, 556, UInt16);
IF(GETBIT(f2, 1), ADDERROR(17, "F18 AC over-current"));
IF(GETBIT(f2, 3), ADDERROR(19, "F20 DC over-current"));
IF(GETBIT(f2, 5), ADDERROR(21, "F22 Emergency stop - inverter locked"));
IF(GETBIT(f2, 6), ADDERROR(22, "F23 Leakage current fault"));
IF(GETBIT(f2, 7), ADDERROR(23, "F24 PV insulation resistance fault"));
IF(GETBIT(f2, 9), ADDERROR(25, "F26 DC bus unbalanced"));
IF(GETBIT(f2, 12), ADDERROR(28, "F29 Parallel CAN bus fault"));

VAR f3 := MODBUSR(H, 557, UInt16);
IF(GETBIT(f3, 2), ADDERROR(34, "F35 No AC grid"));
IF(GETBIT(f3, 8), ADDERROR(40, "F41 Parallel system stop"));
IF(GETBIT(f3, 9), ADDERROR(41, "F42 AC line low voltage"));
IF(GETBIT(f3, 13), ADDERROR(45, "F46 Backup battery fault"));
IF(GETBIT(f3, 14), ADDERROR(46, "F47 AC over-frequency"));
IF(GETBIT(f3, 15), ADDERROR(47, "F48 AC under-frequency"));

VAR f4 := MODBUSR(H, 558, UInt16);
IF(GETBIT(f4, 0), ADDERROR(48, "F49 Backup battery fault"));
IF(GETBIT(f4, 7), ADDERROR(55, "F56 DC bus voltage too low"));
IF(GETBIT(f4, 9), ADDERROR(57, "F58 BMS communication fault"));
IF(GETBIT(f4, 13), ADDERROR(61, "F62 DRM stop"));
IF(GETBIT(f4, 14), ADDERROR(62, "F63 Arc fault"));
IF(GETBIT(f4, 15), ADDERROR(63, "F64 Heat sink temperature too high"));
```

Attributi di servizio

Running state

```taphome
IF(MODBUSR(H, 500, UInt16) = 0, "Standby", IF(MODBUSR(H, 500, UInt16) = 1, "Self-check", IF(MODBUSR(H, 500, UInt16) = 2, "Normal", IF(MODBUSR(H, 500, UInt16) = 3, "Alarm", IF(MODBUSR(H, 500, UInt16) = 4, "Fault", "Activating")))))
```

Device type

```taphome
TOSTRING(MODBUSR(H, 0, UInt16))
```

Rated power

```taphome
TOSTRING(MODBUSR(H, 20, LittleEndianUint32) / 10, "F1") + " W"
```

${deviceType\_PVProduction} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 534, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
(MODBUSR(H, 672, UInt16) + MODBUSR(H, 673, UInt16) + MODBUSR(H, 674, UInt16) + MODBUSR(H, 675, UInt16)) / 1000
```

${deviceType\_PVLoad} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 527, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
MODBUSR(H, 653, Int16) / 1000
```

${deviceType\_PVFromGrid} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 522, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
MAX(MODBUSR(H, 625, Int16), 0) / 1000
```

${deviceType\_PVToGrid} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 524, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
MAX(-MODBUSR(H, 625, Int16), 0) / 1000
```

${deviceType\_PVFromBattery} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 518, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
MAX(MODBUSR(H, 590, Int16), 0) / 1000
```

${deviceType\_PVToBattery} Contatore elettrico

Lettura consumo totale

```taphome
MODBUSR(H, 516, LittleEndianUint32) / 10
```

Lettura domanda

```taphome
MAX(-MODBUSR(H, 590, Int16), 0) / 1000
```

${deviceType\_BatterySOC} Ingresso analogico

Lettura livello ingresso

```taphome
MODBUSR(H, 588, UInt16) / 100
```

Battery - temperature Sensore di temperatura

Lettura temperatura

```taphome
(MODBUSR(H, 586, UInt16) - 1000) / 10
```

Battery - voltage Variabile

Attributi di servizio

|                 |
|-----------------|
| Battery current |
| Battery power   |

Lettura

```taphome
MODBUSR(H, 587, UInt16) / 100
```

Attributi di servizio

Battery current

```taphome
TOSTRING(MODBUSR(H, 591, Int16) / 100, "F2") + " A"
```

Battery power

```taphome
TOSTRING(MODBUSR(H, 590, Int16), "F0") + " W"
```

Battery - charge today Variabile

Attributi di servizio

|                         |
|-------------------------|
| Battery discharge today |

Lettura

```taphome
MODBUSR(H, 514, UInt16) / 10
```

Attributi di servizio

Battery discharge today

```taphome
TOSTRING(MODBUSR(H, 515, UInt16) / 10, "F1") + " kWh"
```

Grid - voltage L1 Variabile

Attributi di servizio

|                 |
|-----------------|
| Grid voltage L2 |
| Grid voltage L3 |
| Grid frequency  |

Lettura

```taphome
MODBUSR(H, 598, UInt16) / 10
```

Attributi di servizio

Grid voltage L2

```taphome
TOSTRING(MODBUSR(H, 599, UInt16) / 10, "F1") + " V"
```

Grid voltage L3

```taphome
TOSTRING(MODBUSR(H, 600, UInt16) / 10, "F1") + " V"
```

Grid frequency

```taphome
TOSTRING(MODBUSR(H, 609, UInt16) / 100, "F2") + " Hz"
```

Grid - power balance Contatore elettrico

Attributi di servizio

|                          |
|--------------------------|
| Grid power L1            |
| Grid power L2            |
| Grid power L3            |
| Grid energy bought today |
| Grid energy sold today   |

Lettura domanda

```taphome
MODBUSR(H, 625, Int16) / 1000
```

Attributi di servizio

Grid power L1

```taphome
TOSTRING(MODBUSR(H, 622, Int16)) + " W"
```

Grid power L2

```taphome
TOSTRING(MODBUSR(H, 623, Int16)) + " W"
```

Grid power L3

```taphome
TOSTRING(MODBUSR(H, 624, Int16)) + " W"
```

Grid energy bought today

```taphome
TOSTRING(MODBUSR(H, 520, UInt16) / 10, "F1") + " kWh"
```

Grid energy sold today

```taphome
TOSTRING(MODBUSR(H, 521, UInt16) / 10, "F1") + " kWh"
```

PV1 - voltage Variabile

Attributi di servizio

|             |
|-------------|
| PV1 current |
| PV1 power   |

Lettura

```taphome
MODBUSR(H, 676, UInt16) / 10
```

Attributi di servizio

PV1 current

```taphome
TOSTRING(MODBUSR(H, 677, UInt16) / 10, "F1") + " A"
```

PV1 power

```taphome
TOSTRING(MODBUSR(H, 672, UInt16)) + " W"
```

PV2 - voltage Variabile

Attributi di servizio

|             |
|-------------|
| PV2 current |
| PV2 power   |

Lettura

```taphome
MODBUSR(H, 678, UInt16) / 10
```

Attributi di servizio

PV2 current

```taphome
TOSTRING(MODBUSR(H, 679, UInt16) / 10, "F1") + " A"
```

PV2 power

```taphome
TOSTRING(MODBUSR(H, 673, UInt16)) + " W"
```

PV - production today Variabile

Lettura

```taphome
MODBUSR(H, 529, UInt16) / 10
```

Load - consumption today Variabile

Attributi di servizio

|               |
|---------------|
| Load power L1 |
| Load power L2 |
| Load power L3 |

Lettura

```taphome
MODBUSR(H, 526, UInt16) / 10
```

Attributi di servizio

Load power L1

```taphome
TOSTRING(MODBUSR(H, 650, Int16)) + " W"
```

Load power L2

```taphome
TOSTRING(MODBUSR(H, 651, Int16)) + " W"
```

Load power L3

```taphome
TOSTRING(MODBUSR(H, 652, Int16)) + " W"
```

Inverter - output power total Variabile

Attributi di servizio

|                     |
|---------------------|
| Inverter output L1  |
| Inverter output L2  |
| Inverter output L3  |
| Inverter voltage L1 |
| Inverter voltage L2 |
| Inverter voltage L3 |
| Inverter frequency  |

Lettura

```taphome
MODBUSR(H, 636, Int16)
```

Attributi di servizio

Inverter output L1

```taphome
TOSTRING(MODBUSR(H, 633, Int16)) + " W"
```

Inverter output L2

```taphome
TOSTRING(MODBUSR(H, 634, Int16)) + " W"
```

Inverter output L3

```taphome
TOSTRING(MODBUSR(H, 635, Int16)) + " W"
```

Inverter voltage L1

```taphome
TOSTRING(MODBUSR(H, 627, UInt16) / 10, "F1") + " V"
```

Inverter voltage L2

```taphome
TOSTRING(MODBUSR(H, 628, UInt16) / 10, "F1") + " V"
```

Inverter voltage L3

```taphome
TOSTRING(MODBUSR(H, 629, UInt16) / 10, "F1") + " V"
```

Inverter frequency

```taphome
TOSTRING(MODBUSR(H, 638, UInt16) / 100, "F2") + " Hz"
```

Backup - output power Variabile

Lettura

```taphome
MODBUSR(H, 643, UInt16)
```

Generator port - power Variabile

Lettura

```taphome
MODBUSR(H, 667, Int16)
```

DC transformer temperature Sensore di temperatura

Lettura temperatura

```taphome
(MODBUSR(H, 540, UInt16) - 1000) / 10
```

Heat sink temperature Sensore di temperatura

Lettura temperatura

```taphome
(MODBUSR(H, 541, UInt16) - 1000) / 10
```

Settings - energy management mode Interruttore multivalore

Valori / Stati: Selling first · Zero export to load · Zero export to CT

Lettura stato interruttore

```taphome
MODBUSR(H, 142, UInt16)
```

Scrittura stato interruttore

```taphome
MODBUSWNE(H, 142, UInt16, Mu)
```

Settings - solar sell Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
MODBUSR(H, 145, UInt16)
```

Scrittura stato interruttore

```taphome
MODBUSWNE(H, 145, UInt16, St)
```

Settings - max sell power Variabile

Lettura

```taphome
MODBUSR(H, 143, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 143, UInt16, Va)
```

Settings - max solar sell power Variabile

Lettura

```taphome
MODBUSR(H, 340, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 340, UInt16, Va)
```

Settings - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
MODBUSR(H, 130, UInt16)
```

Scrittura stato interruttore

```taphome
MODBUSWNE(H, 130, UInt16, St)
```

Settings - grid charge current Variabile

Lettura

```taphome
MODBUSR(H, 128, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 128, UInt16, Va)
```

Settings - max battery charge current Variabile

Lettura

```taphome
MODBUSR(H, 108, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 108, UInt16, Va)
```

Settings - max battery discharge current Variabile

Lettura

```taphome
MODBUSR(H, 109, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 109, UInt16, Va)
```

Settings - generator port use Interruttore multivalore

Valori / Stati: Generator input · Smart load output · Micro-inverter input

Lettura stato interruttore

```taphome
MODBUSR(H, 133, UInt16)
```

Scrittura stato interruttore

```taphome
MODBUSWNE(H, 133, UInt16, Mu)
```

TOU - enable Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 146, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 146, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 146, UInt16, reg)
```

TOU W1 - start time Variabile

Lettura

```taphome
MODBUSR(H, 148, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 148, UInt16, Va)
```

TOU W1 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 166, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 166, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W1 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 172, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 172, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 172, UInt16, reg)
```

TOU W2 - start time Variabile

Lettura

```taphome
MODBUSR(H, 149, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 149, UInt16, Va)
```

TOU W2 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 167, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 167, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W2 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 173, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 173, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 173, UInt16, reg)
```

TOU W3 - start time Variabile

Lettura

```taphome
MODBUSR(H, 150, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 150, UInt16, Va)
```

TOU W3 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 168, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 168, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W3 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 174, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 174, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 174, UInt16, reg)
```

TOU W4 - start time Variabile

Lettura

```taphome
MODBUSR(H, 151, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 151, UInt16, Va)
```

TOU W4 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 169, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 169, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W4 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 175, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 175, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 175, UInt16, reg)
```

TOU W5 - start time Variabile

Lettura

```taphome
MODBUSR(H, 152, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 152, UInt16, Va)
```

TOU W5 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 170, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 170, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W5 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 176, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 176, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 176, UInt16, reg)
```

TOU W6 - start time Variabile

Lettura

```taphome
MODBUSR(H, 153, UInt16)
```

Scrittura

```taphome
MODBUSWNE(H, 153, UInt16, Va)
```

TOU W6 - target SoC Dimmer

Lettura livello

```taphome
LINEAR(MODBUSR(H, 171, UInt16), 0, 0, 100, 1)
```

Scrittura livello

```taphome
MODBUSWNE(H, 171, UInt16, LINEAR(Le, 0, 0, 1, 100))
```

TOU W6 - grid charging Interruttore

Valori / Stati: ON · OFF

Lettura stato interruttore

```taphome
GETBIT(MODBUSR(H, 177, UInt16), 0)
```

Scrittura stato interruttore

```taphome
VAR reg := MODBUSR(H, 177, UInt16);
reg := SETBIT(reg, 0, St);
MODBUSWNE(H, 177, UInt16, reg)
```

**Connessione:** Modbus RTU • 9600 baud• 8N1 • Slave ID: $\[SlaveId]

## Parametri di importazione

Inserisci questi valori quando importi l'XML.

| Richiesto nell'app | Predefinito |
|--------------------|-------------|
| Modbus Slave ID    | `1`         |

## Documentazione correlata

- [Modbus Integration](https://taphome.com/it/compatibility/modbus-guide/)
- [Modbus - Configurazione](https://taphome.com/it/docs/integration/modbus/)
- [Configurazione semplice utilizzando modelli](https://taphome.com/it/docs/integration/modbus/templates/)
- [Script Modbus e prefetch](https://taphome.com/it/docs/script/modbus-scripts/)
- [Funzioni Modbus](https://taphome.com/it/docs/script/modbus/)
- [Tipi di dati Modbus](https://taphome.com/it/docs/script/modbus-data-types/)

