PLCControler.py
changeset 1361 7158aa054226
parent 1360 ebfe9c22af2a
child 1367 324767a092dc
equal deleted inserted replaced
1360:ebfe9c22af2a 1361:7158aa054226
  3048 
  3048 
  3049     def GetEditedResourceVariables(self, tagname, debug = False):
  3049     def GetEditedResourceVariables(self, tagname, debug = False):
  3050         varlist = []
  3050         varlist = []
  3051         words = tagname.split("::")
  3051         words = tagname.split("::")
  3052         for var in self.GetConfigurationGlobalVars(words[1], debug):
  3052         for var in self.GetConfigurationGlobalVars(words[1], debug):
  3053             if var["Type"] == "BOOL":
  3053             if var.Type == "BOOL":
  3054                 varlist.append(var["Name"])
  3054                 varlist.append(var.Name)
  3055         for var in self.GetConfigurationResourceGlobalVars(words[1], words[2], debug):
  3055         for var in self.GetConfigurationResourceGlobalVars(words[1], words[2], debug):
  3056             if var["Type"] == "BOOL":
  3056             if var.Type == "BOOL":
  3057                 varlist.append(var["Name"])
  3057                 varlist.append(var.Name)
  3058         return varlist
  3058         return varlist
  3059 
  3059 
  3060     def SetEditedResourceInfos(self, tagname, tasks, instances):
  3060     def SetEditedResourceInfos(self, tagname, tasks, instances):
  3061         resource = self.GetEditedElement(tagname)
  3061         resource = self.GetEditedElement(tagname)
  3062         if resource is not None:
  3062         if resource is not None: