Fixed one more sequel of marking temporary variables created while generating ST code out of FBD
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 24 Oct 2019 11:20:04 +0200
changeset 2639 62b5f7b909a9
parent 2638 f48dcd148209
child 2640 1b4b335e19ea
Fixed one more sequel of marking temporary variables created while generating ST code out of FBD
editors/Viewer.py
--- a/editors/Viewer.py	Wed Oct 09 09:04:35 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):