Script execution

This commit is contained in:
gac-S_Changer
2017-01-27 11:10:04 +01:00
parent 83302c856f
commit 270a0dcc20

View File

@@ -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):