Closedown
This commit is contained in:
21
plugins/RobotModbus.java
Normal file
21
plugins/RobotModbus.java
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
|
||||
*/
|
||||
|
||||
import ch.psi.pshell.device.*;
|
||||
import ch.psi.pshell.modbus.*;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class RobotModbus extends ModbusTCP {
|
||||
|
||||
public RobotModbus(String name, String server) {
|
||||
super(name, server);
|
||||
}
|
||||
|
||||
public Object run() throws Exception{
|
||||
Thread.sleep(1000);
|
||||
return ("Done");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
from ch.psi.pshell.device import *
|
||||
from ch.psi.pshell.serial import *
|
||||
from ch.psi.pshell.modbus import *
|
||||
#from ch.psi.pshell.serial import *
|
||||
#from ch.psi.pshell.modbus import *
|
||||
|
||||
#TcpDevice
|
||||
class RobotTCP(DeviceBase):
|
||||
def __init__(self, server):
|
||||
def __init__(self):
|
||||
DeviceBase.__init__(self)
|
||||
|
||||
def do(self):
|
||||
|
||||
21
plugins/RobotTcp.java
Normal file
21
plugins/RobotTcp.java
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
|
||||
*/
|
||||
|
||||
import ch.psi.pshell.device.*;
|
||||
import ch.psi.pshell.serial.*;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class RobotTcp extends TcpDevice {
|
||||
|
||||
public RobotTcp(String name, String server) {
|
||||
super(name, server);
|
||||
}
|
||||
|
||||
public Object run() throws Exception{
|
||||
Thread.sleep(1000);
|
||||
return ("Done");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user