update PLC status after initialization
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 07 Dec 2016 19:28:13 +0300
changeset 1598 1445457547f7
parent 1597 0e4182e9cc09
child 1599 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.
Beremiz_service.py
--- 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()