Fixed one more sequel of 5f79b194fa63 'SVGHMI: filter out temporary variables created while generating ST code out of FBD.' svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 24 Oct 2019 11:20:04 +0200
branchsvghmi
changeset 2804 a6be58a1a8b7
parent 2803 f48121cf31b6
child 2805 e521e0d133d5
Fixed one more sequel of 5f79b194fa63 'SVGHMI: filter out temporary variables created while generating ST code out of FBD.'
editors/Viewer.py
--- a/editors/Viewer.py	Thu Oct 24 10:02:07 2019 +0200
+++ b/editors/Viewer.py	Thu Oct 24 11:20:04 2019 +0200
@@ -1006,7 +1006,7 @@
                     if connectorname == "":
                         iec_path = "%s.%s%d" % (instance_path, block.GetType(), block.GetId())
                     else:
-                        iec_path = "%s.%s%d_%s" % (instance_path, block.GetType(), block.GetId(), connectorname)
+                        iec_path = "%s._TMP_%s%d_%s" % (instance_path, block.GetType(), block.GetId(), connectorname)
             elif isinstance(block, FBD_Variable):
                 iec_path = "%s.%s" % (instance_path, block.GetName())
             elif isinstance(block, FBD_Connector):