# HG changeset patch # User lbessard # Date 1207848276 -7200 # Node ID 8023d02d78ede99bf09c71110d0a3fba1d22b7a0 # Parent 54f5020531f68ae7d4cc3a8414b9872c6c247442 Bug on adding block in a pou without previous interface fixed diff -r 54f5020531f6 -r 8023d02d78ed PLCControler.py --- 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):