Fixed ST code generation problem (double declaration of FB params)
authoretisserant
Tue, 26 Feb 2008 15:15:27 +0100
changeset 170 5068ba721506
parent 169 393193e7590a
child 171 e3d47b4bbd5d
Fixed ST code generation problem (double declaration of FB params)
plcopen/structures.py
--- a/plcopen/structures.py	Tue Feb 26 15:10:58 2008 +0100
+++ b/plcopen/structures.py	Tue Feb 26 15:15:27 2008 +0100
@@ -75,7 +75,6 @@
                     parameter = variable.getformalParameter()
                     if body_type == "FBD" or body_type == "SFC":
                         value = generator.ComputeFBDExpression(body, connections[0], executionOrderId > 0)
-                        vars.append("%s := %s"%(parameter, generator.ExtractModifier(variable, value)))
                     elif body_type == "LD":
                         paths = generator.GenerateLDPaths(variable.connectionPointIn.getconnections(), body)
                         if len(paths) > 0: