fixed code gen crash when using own FB/F in FBD
authoretisserant
Thu, 20 Sep 2007 17:38:27 +0200
changeset 100 4e3f5b320bc3
parent 99 2b18a72dcaf0
child 101 3f06a178b960
fixed code gen crash when using own FB/F in FBD
PLCControler.py
--- a/PLCControler.py	Wed Sep 19 17:23:15 2007 +0200
+++ b/PLCControler.py	Thu Sep 20 17:38:27 2007 +0200
@@ -843,7 +843,7 @@
                 if pou_type != "program":
                     block_infos = {"name" : pou_name, "type" : pou_type, "extensible" : False,
                                    "inputs" : [], "outputs" : [], "comment" : "",
-                                   "generate" : generate_block}
+                                   "generate" : generate_block, "initialise" : initialise_block }
                     if pou.getInterface():
                         for type, varlist in pou.getVars():
                             if type == "InOut":