plcopen/structures.py
changeset 1297 cd639725fba5
parent 1283 f3cfe1ff917e
child 1298 f034fb2b1aab
equal deleted inserted replaced
1296:5f8e02717560 1297:cd639725fba5
    40         return reduce(lambda x, y: x + separator + y, mylist)
    40         return reduce(lambda x, y: x + separator + y, mylist)
    41     else :
    41     else :
    42         return mylist
    42         return mylist
    43 
    43 
    44 def generate_block(generator, block, block_infos, body, link, order=False, to_inout=False):
    44 def generate_block(generator, block, block_infos, body, link, order=False, to_inout=False):
    45     body_type = body.getcontent()["name"]
    45     body_type = body.getcontent().getLocalTag()
    46     name = block.getinstanceName()
    46     name = block.getinstanceName()
    47     type = block.gettypeName()
    47     type = block.gettypeName()
    48     executionOrderId = block.getexecutionOrderId()
    48     executionOrderId = block.getexecutionOrderId()
    49     input_variables = block.inputVariables.getvariable()
    49     input_variables = block.inputVariables.getvariable()
    50     output_variables = block.outputVariables.getvariable()
    50     output_variables = block.outputVariables.getvariable()