Battery power registers
This commit is contained in:
parent
054bed735b
commit
8a925769bb
2 changed files with 12 additions and 2 deletions
|
@ -12,7 +12,9 @@ print(" Manufacturer: %s" % froniusreg.Mn.getValue(fronius1))
|
||||||
print(" Model: %s" % froniusreg.Md.getValue(fronius1))
|
print(" Model: %s" % froniusreg.Md.getValue(fronius1))
|
||||||
print(" Version: %s" % froniusreg.Vr.getValue(fronius1))
|
print(" Version: %s" % froniusreg.Vr.getValue(fronius1))
|
||||||
print(" SOC: %s%%" % froniusreg.scaledStateOfCharge.getValue(fronius1))
|
print(" SOC: %s%%" % froniusreg.scaledStateOfCharge.getValue(fronius1))
|
||||||
print(" Discharge Rate: %d%%" % froniusreg.scaledOutWRte.getValue(fronius1))
|
print("Max DCharg Rate: %d%%" % froniusreg.scaledOutWRte.getValue(fronius1))
|
||||||
print(" Charge Rate: %d%%" % froniusreg.scaledInWRte.getValue(fronius1))
|
print("Max Charge Rate: %d%%" % froniusreg.scaledInWRte.getValue(fronius1))
|
||||||
print(" Reserve: %d%%" % froniusreg.scaledReserve.getValue(fronius1))
|
print(" Reserve: %d%%" % froniusreg.scaledReserve.getValue(fronius1))
|
||||||
print("Max Charge rate: %dW" % froniusreg.scaledMaxChaRte.getValue(fronius1))
|
print("Max Charge rate: %dW" % froniusreg.scaledMaxChaRte.getValue(fronius1))
|
||||||
|
print(" Current charge: %dW" % froniusreg.scaledToBattery.getValue(fronius1))
|
||||||
|
print(" Current dCharg: %dW" % froniusreg.scaledFromBattery.getValue(fronius1))
|
||||||
|
|
|
@ -19,6 +19,12 @@ DA = froniusreg.FroniusReg(40069, froniusreg.uint16, 1, "Modbus Device Address")
|
||||||
InputID = froniusreg.FroniusReg(40304, froniusreg.uint16, 1, "Input ID")
|
InputID = froniusreg.FroniusReg(40304, froniusreg.uint16, 1, "Input ID")
|
||||||
InputIDString = froniusreg.FroniusReg(40305, froniusreg.string8, 1, "Input ID String")
|
InputIDString = froniusreg.FroniusReg(40305, froniusreg.string8, 1, "Input ID String")
|
||||||
|
|
||||||
|
module3DCW = froniusreg.FroniusReg(40325, froniusreg.uint16, 1, "When the battery is discharged the data-points of the charge input are set to 0")
|
||||||
|
|
||||||
|
module4DCW = froniusreg.FroniusReg(40345, froniusreg.uint16, 1, "When the battery is charged the data-points of the discharge input are set to 0")
|
||||||
|
|
||||||
|
DCW_SF = froniusreg.FroniusReg(40268, froniusreg.int16, 1, "DC Power Scaling factor")
|
||||||
|
|
||||||
OutWRte = froniusreg.FroniusReg(40366, froniusreg.int16, 1, "DischargeRate")
|
OutWRte = froniusreg.FroniusReg(40366, froniusreg.int16, 1, "DischargeRate")
|
||||||
InWRte = froniusreg.FroniusReg(40367, froniusreg.int16, 1, "ChargeRate")
|
InWRte = froniusreg.FroniusReg(40367, froniusreg.int16, 1, "ChargeRate")
|
||||||
WRteSF = froniusreg.FroniusReg(40379, froniusreg.int16, 1, "ScalingFactor for storage Watts")
|
WRteSF = froniusreg.FroniusReg(40379, froniusreg.int16, 1, "ScalingFactor for storage Watts")
|
||||||
|
@ -34,3 +40,5 @@ scaledInWRte = froniusreg.ScaledFroniusReg(InWRte, WRteSF)
|
||||||
scaledReserve = froniusreg.ScaledFroniusReg(MinRsvPct, MinRsvPct_SF)
|
scaledReserve = froniusreg.ScaledFroniusReg(MinRsvPct, MinRsvPct_SF)
|
||||||
scaledMaxChaRte = froniusreg.ScaledFroniusReg(MaxChaRte, MaxChaRte_SF)
|
scaledMaxChaRte = froniusreg.ScaledFroniusReg(MaxChaRte, MaxChaRte_SF)
|
||||||
scaledMaxWChaGra = froniusreg.ScaledFroniusReg(wChaGra, WChaDisChaGra_SF)
|
scaledMaxWChaGra = froniusreg.ScaledFroniusReg(wChaGra, WChaDisChaGra_SF)
|
||||||
|
scaledToBattery = froniusreg.ScaledFroniusReg(module3DCW, DCW_SF)
|
||||||
|
scaledFromBattery = froniusreg.ScaledFroniusReg(module4DCW, DCW_SF)
|
||||||
|
|
Loading…
Reference in a new issue