PLCControler.py
changeset 1328 a2f2981df9b0
parent 1326 e2c11668addf
child 1330 96b242e4c59d
equal deleted inserted replaced
1327:632780979432 1328:a2f2981df9b0
  1545                 if blocktype["type"] == "program":
  1545                 if blocktype["type"] == "program":
  1546                     blocktypes.append(blocktype["name"])
  1546                     blocktypes.append(blocktype["name"])
  1547         project = self.GetProject(debug)
  1547         project = self.GetProject(debug)
  1548         if project is not None:
  1548         if project is not None:
  1549             blocktypes.extend(
  1549             blocktypes.extend(
  1550                 [pou.getblockInfos()
  1550                 [pou.getname()
  1551                  for pou in project.getpous(filter=["program"])])
  1551                  for pou in project.getpous(filter=["program"])])
  1552         return blocktypes
  1552         return blocktypes
  1553 
  1553 
  1554     # Return Data Types checking for recursion
  1554     # Return Data Types checking for recursion
  1555     def GetDataTypes(self, tagname = "", basetypes = True, confnodetypes = True, only_locatables = False, debug = False):
  1555     def GetDataTypes(self, tagname = "", basetypes = True, confnodetypes = True, only_locatables = False, debug = False):