Files
mxsc/script/local.py
2016-07-21 12:12:49 +02:00

17 lines
570 B
Python

###################################################################################################
# Deployment specific global definitions - executed after startup.py
###################################################################################################
from ch.psi.pshell.serial import TcpDevice
from ch.psi.pshell.modbus import ModbusTCP
#TcpDevice
class RobotTCP(TcpDevice):
def __init__(self, server):
DeviceBase.__init__(self, server)
def run(self):
print "Done"
add_device(RobotTCP("127.0.0.1:3333"), force = True)