Skip to main content

SunSpec starter library

A starter SunSpec mapping (spec §20.3) demonstrating the v0.4 constructs the SunSpec ecosystem needs: model-chain discovery with model-relative offsets, and register-referenced scale factors. Import as moddef:stdlib:sunspec:1.0.0. Covers the Common model (1) and the single-phase inverter model (103); more models are future work.

Synced from moddef/stdlib.

SunSpec Common Model (model 1)

PointNameStorageUnitOffset*
manufacturerManufacturerSTRING_ASCIInone2
modelModelSTRING_ASCIInone18
serial_numberSerial NumberSTRING_ASCIInone50

SunSpec Inverter Model 103 (model 103)

PointNameStorageUnitOffset*
ac_current_sfAC Current Scale FactorS16none6
ac_currentAC CurrentU16A2
ac_voltage_sfAC Voltage Scale FactorS16none13
ac_voltage_lnAC Voltage L-NU16V10
ac_power_sfAC Power Scale FactorS16none15
ac_powerAC PowerS16W14
frequency_sfFrequency Scale FactorS16none17
frequencyAC FrequencyU16Hz16

* Offset is relative to the model's ID register (spec §7.3).