plcopen/structures.py
changeset 354 20ccf1e5266e
parent 307 fd1f6ae26d4f
child 371 a69a5a72daa1
--- a/plcopen/structures.py	Fri May 22 09:26:35 2009 +0200
+++ b/plcopen/structures.py	Fri May 22 09:27:22 2009 +0200
@@ -133,7 +133,8 @@
             if not connectionPoint or block.getx() + blockPointx == connectionPoint.getx() and block.gety() + blockPointy == connectionPoint.gety():
                 output_info = (generator.TagName, "block", block.getlocalId(), "output", i)
                 return generator.ExtractModifier(variable, [("%s.%s"%(name, variable.getformalParameter()), output_info)], output_info)
-    raise ValueError, "No output variable found"
+    if link is not None:
+        raise ValueError, "No output variable found"
 
 def initialise_block(type, name, block = None):
     return [(type, name, None, None)]