ProjectController.py
changeset 2744 577118ebd179
parent 2741 3cc5663af196
child 3302 c89fc366bebd
equal deleted inserted replaced
2743:748b96d71d62 2744:577118ebd179
   743                     # finally store into located variable list
   743                     # finally store into located variable list
   744                     locations.append(resdict)
   744                     locations.append(resdict)
   745         return locations
   745         return locations
   746 
   746 
   747     def GetConfNodeGlobalInstances(self):
   747     def GetConfNodeGlobalInstances(self):
   748         return self._GlobalInstances()
   748         LibGlobals = []
       
   749         for lib in self.Libraries:
       
   750             LibGlobals += lib.GlobalInstances()
       
   751         CTNGlobals = self._GlobalInstances()
       
   752         return LibGlobals + CTNGlobals
   749 
   753 
   750     def _Generate_SoftPLC(self):
   754     def _Generate_SoftPLC(self):
   751         if self._Generate_PLC_ST():
   755         if self._Generate_PLC_ST():
   752             return self._Compile_ST_to_SoftPLC()
   756             return self._Compile_ST_to_SoftPLC()
   753         return False
   757         return False