# HG changeset patch
# User Edouard Tisserant
# Date 1565773517 -7200
# Node ID caa43c61f90cd09ea249c9bf7fb26d38dd5ea35e
# Parent  40c4449001dfe01bfbbdc9cd22ca834917858b80
Add marker to temporary variables created while generating ST code out of FBD, so that they can be recognized as such.

diff -r 40c4449001df -r caa43c61f90c PLCGenerator.py
--- a/PLCGenerator.py	Mon Aug 12 13:06:11 2019 +0200
+++ b/PLCGenerator.py	Wed Aug 14 11:05:17 2019 +0200
@@ -1160,7 +1160,7 @@
                             if variable.getformalParameter() == "":
                                 variable_name = "%s%d" % (type, block.getlocalId())
                             else:
-                                variable_name = "%s%d_%s" % (type, block.getlocalId(), parameter)
+                                variable_name = "_TMP_%s%d_%s" % (type, block.getlocalId(), parameter)
                             if self.Interface[-1][0] != "VAR" or self.Interface[-1][1] is not None or self.Interface[-1][2]:
                                 self.Interface.append(("VAR", None, False, []))
                             if variable.connectionPointOut in self.ConnectionTypes:
@@ -1253,7 +1253,7 @@
                     if output_parameter == "":
                         output_name = "%s%d" % (type, block.getlocalId())
                     else:
-                        output_name = "%s%d_%s" % (type, block.getlocalId(), output_parameter)
+                        output_name = "_TMP_%s%d_%s" % (type, block.getlocalId(), output_parameter)
                     output_value = [(output_name, output_info)]
                 return self.ExtractModifier(output_variable, output_value, output_info)
             if block_infos["type"] == "functionBlock":