PLCControler.py
changeset 310 ccb47adebe80
parent 307 fd1f6ae26d4f
child 349 96cc6179b918
equal deleted inserted replaced
309:aef88ffa5fbc 310:ccb47adebe80
  1557         return []
  1557         return []
  1558 
  1558 
  1559     # Return edited element transitions
  1559     # Return edited element transitions
  1560     def GetEditedElementActions(self, tagname, debug = False):
  1560     def GetEditedElementActions(self, tagname, debug = False):
  1561         pou = self.GetEditedElement(tagname, debug)
  1561         pou = self.GetEditedElement(tagname, debug)
  1562         if pou is None and pou.getbodyType() == "SFC":
  1562         if pou is not None and pou.getbodyType() == "SFC":
  1563             actions = []
  1563             actions = []
  1564             for action in pou.getactionList():
  1564             for action in pou.getactionList():
  1565                 actions.append(action.getname())
  1565                 actions.append(action.getname())
  1566             return actions
  1566             return actions
  1567         return []
  1567         return []