beremiz

update PLC status after initialization

2016-12-07, Andrey Skvortsov
1445457547f7
Parents 0e4182e9cc09
Children 466c26b0cfc2
update PLC status after initialization

This is necessary especially if existed PLC program is loaded, but PLC
is not started automatically. In this case taskbar icon shows that PLC
isn't empty.
--- a/Beremiz_service.py Wed Dec 07 19:25:58 2016 +0300
+++ b/Beremiz_service.py Wed Dec 07 19:28:13 2016 +0300
@@ -445,6 +445,7 @@
if self.plcobj.GetPLCstatus()[0] != "Empty":
if self.autostart :
self.plcobj.StartPLC()
+ self.plcobj.StatusChange()
sys.stdout.flush()