PLCControler.py
changeset 98 ec5d7af033d8
parent 97 28337cd092fd
child 99 2b18a72dcaf0
equal deleted inserted replaced
97:28337cd092fd 98:ec5d7af033d8
  1453         if words[0] in ["P","T","A"]:
  1453         if words[0] in ["P","T","A"]:
  1454             pou = self.Project.getPou(words[1])
  1454             pou = self.Project.getPou(words[1])
  1455             for type, varlist in pou.getVars():
  1455             for type, varlist in pou.getVars():
  1456                 for var in varlist.getVariable():
  1456                 for var in varlist.getVariable():
  1457                     if var.getName() == varname:
  1457                     if var.getName() == varname:
  1458                         return var.getType()
  1458                         return var.getType().getValue()
  1459         return ""
  1459         return ""
  1460     
  1460     
  1461     def SetConnectionWires(self, connection, connector):
  1461     def SetConnectionWires(self, connection, connector):
  1462         wires = connector.GetWires()
  1462         wires = connector.GetWires()
  1463         idx = 0
  1463         idx = 0