author | lbessard |
Thu, 10 Apr 2008 19:24:36 +0200 | |
changeset 197 | 8023d02d78ed |
parent 196 | 54f5020531f6 |
child 198 | 4768050433b8 |
PLCControler.py | file | annotate | diff | comparison | revisions |
--- a/PLCControler.py Mon Apr 07 10:07:37 2008 +0200 +++ b/PLCControler.py Thu Apr 10 19:24:36 2008 +0200 @@ -1761,6 +1761,8 @@ words = tagname.split("::") if words[0] in ['P', 'T', 'A']: pou = self.Project.getpou(words[1]) + if not pou.interface: + pou.interface = plcopen.pou_interface() pou.addpouVar(type, name) def ChangeEditedElementPouVar(self, tagname, old_type, old_name, new_type, new_name):