mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +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,6 +642,7 @@ class fsmPev():
|
||||||
|
|
||||||
def stateFunctionSafeShutDownWaitForChargerShutdown(self):
|
def stateFunctionSafeShutDownWaitForChargerShutdown(self):
|
||||||
# wait state, to give the charger the time to stop the current.
|
# 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):
|
if (self.DelayCycles>0):
|
||||||
self.DelayCycles-=1
|
self.DelayCycles-=1
|
||||||
return
|
return
|
||||||
|
@ -654,6 +655,7 @@ class fsmPev():
|
||||||
|
|
||||||
def stateFunctionSafeShutDownWaitForContactorsOpen(self):
|
def stateFunctionSafeShutDownWaitForContactorsOpen(self):
|
||||||
# wait state, to give the contactors the time to open.
|
# 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):
|
if (self.DelayCycles>0):
|
||||||
self.DelayCycles-=1
|
self.DelayCycles-=1
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue