diff --git a/script/local.py b/script/local.py index d5ba915..256df45 100644 --- a/script/local.py +++ b/script/local.py @@ -6,7 +6,7 @@ from ch.psi.pshell.serial import TcpDevice from ch.psi.pshell.modbus import ModbusTCP -""" + class RobotTCP(TcpDevice): def __init__(self, name, server): TcpDevice.__init__(self, name, server) @@ -19,15 +19,17 @@ class RobotTCP(TcpDevice): cmd = cmd + "\n" ret = "" try: - ret = robot.write(cmd) + ret = write(cmd) finally: self.getLogger().info(cmd + " ret = " + str(ret)) return ret def mount(self, puck, sample): return self.execute('1', '1', puck, sample) -add_device(RobotTCP("robot_tcp", "127.0.0.1:3333"), force = True) -""" +#add_device(RobotTCP("robot_tcp", "127.0.0.1:3333"), force = True) +add_device(RobotTCP("robot_tcp", "129.129.109.114:1000"), force = True) + + class RobotModbus(DeviceBase):