PLCControler.py
changeset 286 67da12c94d2d
parent 275 acf474a94136
child 293 dbc366959daf
equal deleted inserted replaced
285:ed45a7118af1 286:67da12c94d2d
  1132     # Return Function Block types checking for recursion
  1132     # Return Function Block types checking for recursion
  1133     def GetFunctionBlockTypes(self, tagname = "", debug = False):
  1133     def GetFunctionBlockTypes(self, tagname = "", debug = False):
  1134         blocktypes = []
  1134         blocktypes = []
  1135         for category in BlockTypes + self.PluginTypes:
  1135         for category in BlockTypes + self.PluginTypes:
  1136             for block in category["list"]:
  1136             for block in category["list"]:
  1137                 if block["type"] != "function":
  1137                 if block["type"] == "functionBlock":
  1138                     blocktypes.append(block["name"])
  1138                     blocktypes.append(block["name"])
  1139         project = self.GetProject(debug)
  1139         project = self.GetProject(debug)
  1140         if project is not None:
  1140         if project is not None:
  1141             name = ""
  1141             name = ""
  1142             words = tagname.split("::")
  1142             words = tagname.split("::")