Fixed sequel of earlier commit in PLCGenerator.py. Some ref to temporary variables are still not using the _TMP_ prefix. They are quite hard to find, so to be continued...
authorEdouard Tisserant
Thu, 05 Sep 2019 08:35:33 +0200
changeset 2633 fecdb71e7514
parent 2632 534387caf43d
child 2634 4de945ddc223
Fixed sequel of earlier commit in PLCGenerator.py. Some ref to temporary variables are still not using the _TMP_ prefix. They are quite hard to find, so to be continued...
PLCGenerator.py
--- a/PLCGenerator.py	Mon Aug 26 08:54:02 2019 +0200
+++ b/PLCGenerator.py	Thu Sep 05 08:35:33 2019 +0200
@@ -935,7 +935,7 @@
             if invar.getformalParameter() == "EN":
                 if len(invar.getconnectionPointIn().getconnections()) > 0:
                     if blk.getinstanceName() is None:
-                        var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId())
+                        var_name = "_TMP_%s%d_ENO" % (blk.gettypeName(), blk.getlocalId())
                     else:
                         var_name = "%s.ENO" % blk.getinstanceName()
                     return var_name