PLCControler.py
changeset 100 4e3f5b320bc3
parent 99 2b18a72dcaf0
child 101 3f06a178b960
equal deleted inserted replaced
99:2b18a72dcaf0 100:4e3f5b320bc3
   841                 pou_name = pou.getName()
   841                 pou_name = pou.getName()
   842                 pou_type = pou.pouType.getValue()
   842                 pou_type = pou.pouType.getValue()
   843                 if pou_type != "program":
   843                 if pou_type != "program":
   844                     block_infos = {"name" : pou_name, "type" : pou_type, "extensible" : False,
   844                     block_infos = {"name" : pou_name, "type" : pou_type, "extensible" : False,
   845                                    "inputs" : [], "outputs" : [], "comment" : "",
   845                                    "inputs" : [], "outputs" : [], "comment" : "",
   846                                    "generate" : generate_block}
   846                                    "generate" : generate_block, "initialise" : initialise_block }
   847                     if pou.getInterface():
   847                     if pou.getInterface():
   848                         for type, varlist in pou.getVars():
   848                         for type, varlist in pou.getVars():
   849                             if type == "InOut":
   849                             if type == "InOut":
   850                                 for var in varlist.getVariable():
   850                                 for var in varlist.getVariable():
   851                                     block_infos["inputs"].append((var.getName(),var.getType().getValue(),"none"))
   851                                     block_infos["inputs"].append((var.getName(),var.getType().getValue(),"none"))