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