changeset 197 | 8023d02d78ed |
parent 188 | d64037e17075 |
child 207 | b1144bb36605 |
--- 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):