Script execution
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user