equal
deleted
inserted
replaced
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: |