diff -r 5f8e02717560 -r cd639725fba5 plcopen/structures.py --- a/plcopen/structures.py Thu Aug 29 19:48:29 2013 +0200 +++ b/plcopen/structures.py Fri Aug 30 09:18:41 2013 +0200 @@ -42,7 +42,7 @@ return mylist def generate_block(generator, block, block_infos, body, link, order=False, to_inout=False): - body_type = body.getcontent()["name"] + body_type = body.getcontent().getLocalTag() name = block.getinstanceName() type = block.gettypeName() executionOrderId = block.getexecutionOrderId()