17 lines
586 B
Python
17 lines
586 B
Python
###################################################################################################
|
|
# Deployment specific global definitions - executed after startup.py
|
|
###################################################################################################
|
|
|
|
|
|
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)
|
|
|
|
def run(self):
|
|
print "Done"\
|
|
|
|
#add_device(RobotTCP("robot_tcp", "127.0.0.1:3333"), force = True) |