--- a/plcopen/structures.py Fri Oct 05 18:11:51 2007 +0200
+++ b/plcopen/structures.py Wed Oct 17 17:50:27 2007 +0200
@@ -44,7 +44,7 @@
for variable in block.inputVariables.getVariable():
connections = variable.connectionPointIn.getConnections()
if connections and len(connections) == 1:
- if body_type == "FBD":
+ if body_type == "FBD" or body_type == "SFC":
value = generator.ComputeFBDExpression(body, connections[0])
elif body_type == "LD":
paths = generator.GenerateLDPaths(variable.connectionPointIn.getConnections(), body)
@@ -63,7 +63,7 @@
connections = variable.connectionPointIn.getConnections()
if connections and len(connections) == 1:
parameter = variable.getFormalParameter()
- if body_type == "FBD":
+ if body_type == "FBD" or body_type == "SFC":
value = generator.ComputeFBDExpression(body, connections[0])
vars.append("%s := %s"%(parameter, generator.ExtractModifier(variable, value)))
elif body_type == "LD":