mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +00:00
fix: during safe-shutdown, trigger the connectionManager, to avoid interrupting the safe-shutdown
This commit is contained in:
parent
74673432a2
commit
4ed80fd0ea
1 changed files with 3 additions and 1 deletions
|
@ -642,9 +642,10 @@ class fsmPev():
|
|||
|
||||
def stateFunctionSafeShutDownWaitForChargerShutdown(self):
|
||||
# wait state, to give the charger the time to stop the current.
|
||||
self.connMgr.ApplOk() # Trigger the communication manager, so that it does not disturb our safe-shutdown.
|
||||
if (self.DelayCycles>0):
|
||||
self.DelayCycles-=1
|
||||
return
|
||||
return
|
||||
# Now the current flow is stopped by the charger. We can safely open the contactors:
|
||||
self.addToTrace("Safe-shutdown-sequence: opening contactors")
|
||||
self.hardwareInterface.setPowerRelayOff()
|
||||
|
@ -654,6 +655,7 @@ class fsmPev():
|
|||
|
||||
def stateFunctionSafeShutDownWaitForContactorsOpen(self):
|
||||
# wait state, to give the contactors the time to open.
|
||||
self.connMgr.ApplOk() # Trigger the communication manager, so that it does not disturb our safe-shutdown.
|
||||
if (self.DelayCycles>0):
|
||||
self.DelayCycles-=1
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue