Closedown

This commit is contained in:
gac-S_Changer
2016-07-21 12:02:04 +02:00
parent 1c449b9844
commit 2d5f7e042e
5 changed files with 53 additions and 5 deletions

View File

@@ -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|||

View File

@@ -1 +1,5 @@
RobotModbus.java=enabled
RobotTcp.java=enabled
Beeper.java=disabled
RobotTCP.py=disabled
gui.java=disabled

21
plugins/RobotModbus.java Normal file
View 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");
}
}

View File

@@ -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
View 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");
}
}