POULibrary.py
changeset 772 98786137232d
parent 732 c4b0f117e106
child 1511 91538d0c242c
equal deleted inserted replaced
770:131110501214 772:98786137232d
     1 from PLCControler import PLCControler
       
     2 from weakref import ref
     1 from weakref import ref
     3 
     2 
     4 class POULibrary:
     3 class POULibrary:
     5     def __init__(self, CTR, LibName, TypeStack):
     4     def __init__(self, CTR, LibName, TypeStack):
       
     5         from PLCControler import PLCControler
     6         self.CTR = ref(CTR)
     6         self.CTR = ref(CTR)
     7         self.LibName = LibName
     7         self.LibName = LibName
     8         self.LibraryControler = PLCControler()
     8         self.LibraryControler = PLCControler()
     9         self.LibraryControler.OpenXMLFile(self.GetLibraryPath())
     9         self.LibraryControler.OpenXMLFile(self.GetLibraryPath())
    10         self.LibraryControler.ClearConfNodeTypes()
    10         self.LibraryControler.ClearConfNodeTypes()