equal
deleted
inserted
replaced
578 connectorname = wire.EndConnected.GetName() |
578 connectorname = wire.EndConnected.GetName() |
579 if blockname != "": |
579 if blockname != "": |
580 iec_path = "%s.%s.%s"%(self.InstancePath, block.GetName(), connectorname) |
580 iec_path = "%s.%s.%s"%(self.InstancePath, block.GetName(), connectorname) |
581 else: |
581 else: |
582 if connectorname == "": |
582 if connectorname == "": |
583 connectorname = "OUT" |
583 iec_path = "%s.%s%d"%(self.InstancePath, block.GetType(), block.GetId()) |
584 iec_path = "%s.%s%d_%s"%(self.InstancePath, block.GetType(), block.GetId(), connectorname) |
584 else: |
|
585 iec_path = "%s.%s%d_%s"%(self.InstancePath, block.GetType(), block.GetId(), connectorname) |
585 if self.Controler.SubscribeDebugIECVariable(iec_path.upper(), wire) is not None: |
586 if self.Controler.SubscribeDebugIECVariable(iec_path.upper(), wire) is not None: |
586 self.Subscribed[wire] = iec_path.upper() |
587 self.Subscribed[wire] = iec_path.upper() |
587 else: |
588 else: |
588 wire.SetValue("undefined") |
589 wire.SetValue("undefined") |
589 elif isinstance(block, FBD_Variable): |
590 elif isinstance(block, FBD_Variable): |