PLCGenerator.py
changeset 1747 6046ffa2280f
parent 1744 69dfdb26f600
child 1751 c28db6f7616b
equal deleted inserted replaced
1746:45d6f5fba016 1747:6046ffa2280f
  1391 
  1391 
  1392     def GenerateSFCJump(self, jump, pou):
  1392     def GenerateSFCJump(self, jump, pou):
  1393         jump_target = jump.gettargetName()
  1393         jump_target = jump.gettargetName()
  1394         if not pou.hasstep(jump_target):
  1394         if not pou.hasstep(jump_target):
  1395             pname = pou.getname()
  1395             pname = pou.getname()
  1396             msg = _("SFC jump in pou \"{a1}\" refers to non-existent SFC step \"{a2}\"").format( a1=pname, a2=jump_target)
  1396             msg = _("SFC jump in pou \"{a1}\" refers to non-existent SFC step \"{a2}\"").format(a1=pname, a2=jump_target)
  1397             raise PLCGenException, msg
  1397             raise PLCGenException, msg
  1398         if jump.connectionPointIn is not None:
  1398         if jump.connectionPointIn is not None:
  1399             instances = []
  1399             instances = []
  1400             connections = jump.connectionPointIn.getconnections()
  1400             connections = jump.connectionPointIn.getconnections()
  1401             if connections is not None and len(connections) == 1:
  1401             if connections is not None and len(connections) == 1: