--- a/plcopen/structures.py Tue Apr 05 19:06:00 2011 +0200
+++ b/plcopen/structures.py Tue Apr 05 19:08:22 2011 +0200
@@ -42,12 +42,11 @@
else :
return mylist
-def generate_block(generator, block, body, link, order=False):
+def generate_block(generator, block, block_infos, body, link, order=False):
body_type = body.getcontent()["name"]
name = block.getinstanceName()
type = block.gettypeName()
executionOrderId = block.getexecutionOrderId()
- block_infos = generator.GetBlockType(type)
if block_infos["type"] == "function":
output_variables = block.outputVariables.getvariable()
if not generator.ComputedBlocks.get(block, False) and not order: