Closedown
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
robot=ch.psi.pshell.modbus.ModbusTCP|127.0.0.1|||
|
||||
temperature=ch.psi.pshell.modbus.AnalogInput|robot 0|||
|
||||
robot=RobotTcp|127.0.0.1:2222|||
|
||||
robot_modbus=RobotModbus|127.0.0.1|||
|
||||
dewar=ch.psi.pshell.modbus.ModbusTCP|127.0.0.1|||
|
||||
temperature=ch.psi.pshell.modbus.AnalogInput|dewar 0|||
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
RobotModbus.java=enabled
|
||||
RobotTcp.java=enabled
|
||||
Beeper.java=disabled
|
||||
RobotTCP.py=disabled
|
||||
gui.java=disabled
|
||||
|
||||
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