Skip to content

Commit

Permalink
V1.19.03
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Jun 4, 2024
1 parent 314a573 commit bf7679e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions genmonlib/generac_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3632,34 +3632,36 @@ def GetEngineState(self, Reg0001Value=None):
# Cranking
# Cranking Warning
# Cranking Alarm
if self.BitIsEqual(RegVal, 0x000F0000, 0x00040000):
if self.BitIsEqual(RegVal, 0x001F0000, 0x00040000):
return "Exercising"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00090000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00090000):
return "Stopped"
# Note: this appears to define the state where the generator should start, it defines
# the initiation of the start delay timer, This only appears in Nexus and Air Cooled Evo
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00010000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00010000):
return "Startup Delay Timer Activated"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00020000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00020000):
if self.SystemInAlarm():
return "Cranking in Alarm"
else:
return "Cranking"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00050000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00050000):
return "Cooling Down"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00030000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00030000):
if self.SystemInAlarm():
return "Running in Alarm"
else:
return "Running"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00080000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00080000):
return "Stopped in Alarm"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00060000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00060000):
return "Running in Warning"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x00000000):
elif self.BitIsEqual(RegVal, 0x001F0000, 0x00000000):
return "Off - Ready"
elif self.BitIsEqual(RegVal, 0x000F0000, 0x000F0000): # added for Evo 4.5L
elif self.BitIsEqual(RegVal, 0x001F0000, 0x000F0000): # added for Evo 4.5L
return "Off - Remote Switch Off"
elif self.BitIsEqual(RegVal, 0x001F0000, 0x001F0000): # added for Evo 4.5L
return "Firmware Update in Progress"
else:
self.FeedbackPipe.SendFeedback(
"Unknown EngineState",
Expand Down

0 comments on commit bf7679e

Please sign in to comment.