MOD GEN4 TOU Register Map (Holding Registers 3038–3059)
TOU slots 1–4 (currently active)
EMS / gate controls
TOU slots 5–9 (new in v0.6.8)
Register 3049 — prerequisite gate
3038
Period 1 Start
3039
Period 1 End
3040
Period 2 Start
3041
Period 2 End
3042
Period 3 Start
3043
Period 3 End
3044
Period 4 Start
3045
Period 4 End
bit15=enable
bit13-14=priority
hour·256+min
3046
(reserved)
3047
EMS Discharge%
3048
EMS Stop SOC
3049
Allow Grid Charge
⚠ MUST BE 1
Gap 3046–3049: EMS controls (not TOU slots)
3050
Period 5 Start
3051
Period 5 End
3052–3053
Period 6
3054–3055
Period 7
3056–3057
Period 8
3058–3059
Period 9
Start register format: bit15=enable · bit14=Grid First · bit13=Battery First · bit8-12=hour · bit0-7=minute