public class Test84
extends org.lsst.ccs.drivers.ascii.TestAscii
| Constructor and Description |
|---|
Test84()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeVentValve()
Close vent valve (in on-command mode, setVentOperation above)
|
void |
enableSpeedRead(boolean value)
Enable/disable pump-speed reading after Stop
|
void |
open(String ident)
Opens connection to a device.
|
void |
openVentValve()
Open vent valve (in on-command mode, setVentOperation above)
|
String |
readActiveStop()
Read active-stop setting
|
String |
readAll()
Read all settings and data from pump controller.
|
String |
readBool(TwisTorr84.CmndBool quantity)
Generic read command for boolean quantities
|
String |
readErrorCode()
Read error code (bits show reason for pump failure)
|
String |
readNumeric(TwisTorr84.CmndNumeric quantity)
Generic read command for numberic (integer) quantities
|
TwisTorr84.PumpStatus |
readStatus()
Read and decode pump status
|
String |
readTemp()
Read pump temperature
|
void |
resetPumpHoursCyclesIRREVERSIBLE(boolean confirm)
Reset pump lifetime and cycles
|
void |
selectAnalog(int value)
choice of programmable analog output
|
void |
setActiveStop(boolean value)
Select active stop (with braking) vs.
|
void |
setBaudRate(int value)
Select baud rate, 600 to 9600 (default)
|
void |
setGasType(boolean value)
Select gas load type
|
void |
setInterlockType(boolean value)
Set signal-type for interlock
|
void |
setLowFreq(int value)
Set low-speed roational frequency
|
void |
setLowSpeedMode(boolean value)
Select speed mode (low vs.
|
void |
setpointDelay(int value)
setpoint delay
|
void |
setpointHyst(int value)
setpoint hysteresis (for frequency, power, orpressure)
|
void |
setpointLevel(boolean value)
setpoint level
|
void |
setpointType(int value)
Commands related to programmable setpoint and analog output (on J1)
/**
setpoint type
|
void |
setpointValue(int value)
setpoint value (other than for pressure)
|
void |
setRemote(boolean value)
Select "Remote" (I/O) mode vs.
|
void |
setRotFreq(int value)
Set normal roational frequency
|
void |
setSoftStart(boolean value)
Select soft start vs.
|
void |
setVentDelay(int value)
Set vent-valve opening delay in automatic mode
|
void |
setVentOpenTime(int value)
Set vent-valve open time in automatic mode
|
void |
setVentOperation(boolean value)
Vent valve automatic or by command (openVentValve, closeVentValve)
|
void |
setWaterCooling(boolean value)
Set water cooling on or off
|
void |
startPump()
Start pump
|
void |
stopPump()
Stop pump
|
String |
testErrorCode(int testcode)
Test error code (bits show reason for pump failure)
|
String |
timestamp()
Determines current time
|
@Command(name="timestamp",
description="Prints current time")
public String timestamp()
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="ident",description="Identification")
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
ident - The identification (serial port name)org.lsst.ccs.drivers.commons.DriverException@Command(name="readAll",
description="Read all controller settings and data")
public String readAll()
@Command(name="readBool",
description="Read specified boolean quantity")
public String readBool(@Argument(name="enum quantity",description="name of boolean quantity")
TwisTorr84.CmndBool quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Enumerated - command nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="readNumeric",
description="Read specified numeric quantity")
public String readNumeric(@Argument(name="enum quantity",description="name of numeric quantity")
TwisTorr84.CmndNumeric quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Enumerated - command nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="readTemp",
description="Read pump temperature in degrees C")
public String readTemp()
throws org.lsst.ccs.drivers.commons.DriverException
Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverException@Command(name="readActiveStop",
description="Read active-stop setting")
public String readActiveStop()
throws org.lsst.ccs.drivers.commons.DriverException
Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverException@Command(name="readStatus",
description="Get pump status, including operating modes and failure")
public TwisTorr84.PumpStatus readStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readErrorCode",
description="Read pump error code")
public String readErrorCode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="testErrorCode",
description="Test decoding of error code")
public String testErrorCode(@Argument(name="testcode",description="code to test, 0 to 0xff")
int testcode)
Test - code (0 to 0xff) to be decoded@Command(name="startPump",
description="Start the pump")
public void startPump()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="stopPump",
description="Stop the pump")
public void stopPump()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setLowSpeedMode",
description="Low-speed mode on/off")
public void setLowSpeedMode(@Argument(name="<true|false>",description="Low-speed mode true or false")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True for low-speed mode, false for normal mode.org.lsst.ccs.drivers.commons.DriverException@Command(name="setSoftStart",
description="Soft-start mode on/off")
public void setSoftStart(@Argument(name="<true|false>",description="Soft-start mode true or false")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True for soft-start mode, false for normal mode.org.lsst.ccs.drivers.commons.DriverException@Command(name="setActiveStop",
description="Active-stop mode on/off")
public void setActiveStop(@Argument(name="<true|false>",description="Active-stop mode true or false")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True for active-stop mode, false for normal-stop mode.org.lsst.ccs.drivers.commons.DriverException@Command(name="setRemote",
description="Select remote vs. serial mode")
public void setRemote(@Argument(name="<true|false>",description="Remote I/O mode (true) vs. Serial mode (false)")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True for remote mode, false for serial mode.org.lsst.ccs.drivers.commons.DriverException@Command(name="setWaterCooling",
description="Water cooling on/off")
public void setWaterCooling(@Argument(name="<true|false>",description="Water cooling true or false")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True/false for water cooling on/offorg.lsst.ccs.drivers.commons.DriverException@Command(name="setInterlockType",
description="Interlock signal continuos vs. impulse")
public void setInterlockType(@Argument(name="<true|false>",description="Continuous (true, default) or impulse (false)")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True/false for continuous signal / impulse signalorg.lsst.ccs.drivers.commons.DriverException@Command(name="enableSpeedRead",
description="Enable/disable pump-speed read after Stop")
public void enableSpeedRead(@Argument(name="<true|false>",description="Enable (true) or disable(false, default)")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True/false for enable/disableorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGasType",
description="Select gas load type")
public void setGasType(@Argument(name="<int>",description="false for N2, true for Ar")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 0 for N, 1 for Arorg.lsst.ccs.drivers.commons.DriverException@Command(name="setBaudRate",
description="Select baud rate")
public void setBaudRate(@Argument(name="<int>",description="0 to 4 for 600, 1200, 2400, 4800, 9600 (default)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 0 to 4 for 600, 1200, 2400, 4800, 9600org.lsst.ccs.drivers.commons.DriverException@Command(name="setRotFreq",
description="Set rotational frequency")
public void setRotFreq(@Argument(name="<int>",description="1100 to 1350 (default) Hz")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 1100 to 1350 (default)org.lsst.ccs.drivers.commons.DriverException@Command(name="setLowFreq",
description="Set low-speed rotational freq.")
public void setLowFreq(@Argument(name="<int>",description="1100 Hz (default) to normal freq.")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 1100 (default) to normal frequencyorg.lsst.ccs.drivers.commons.DriverException@Command(name="setVentOperation",
description="Vent valve operation")
public void setVentOperation(@Argument(name="<true|false>",description="On-command (true) vs. Automatic (false, default)")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - True/false for on-command / automatic (default)org.lsst.ccs.drivers.commons.DriverException@Command(name="openVentValve",
description="Open vent valve")
public void openVentValve()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="closeVentValve",
description="Close vent valve")
public void closeVentValve()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setVentDelay",
description="Vent valve-open delay")
public void setVentDelay(@Argument(name="<int>",description="Opening delay after stop in auto mode, unit 0.2 s")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - Delay time in units of 0.2 secorg.lsst.ccs.drivers.commons.DriverException@Command(name="setVentOpenTime",
description="Vent valve-open time")
public void setVentOpenTime(@Argument(name="<int>",description="Open-time in automatic mode, unit 0.2 s, 0 for infinity")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - Time open in units of 0.2 sec or 0 for infinityorg.lsst.ccs.drivers.commons.DriverException@Command(name="setpointType",
description="Quantity for setpoint")
public void setpointType(@Argument(name="<int>",description="setpoint on frequency (0, default), power (1), time (2), normal (3), pressure (4)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 0,1,2,3,4 for frequency, power, time, normal, pressureorg.lsst.ccs.drivers.commons.DriverException@Command(name="setpointValue",
description="setpoint value")
public void setpointValue(@Argument(name="<int>",description="setpoint value in Hz, W or s (default = 867)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - Value in hz, W or sorg.lsst.ccs.drivers.commons.DriverException@Command(name="setpointLevel",
description="setpoint active level")
public void setpointLevel(@Argument(name="<true|false>",description="Active on low-level (true, default) vs. high-level (false)")
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
value - Active on high level (false) or low-level (true)org.lsst.ccs.drivers.commons.DriverException@Command(name="setpointDelay",
description="setpoint-check delay")
public void setpointDelay(@Argument(name="<int>",description="Seconds after pump start (default 0)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - Time (s) between pump start and setpoint checkorg.lsst.ccs.drivers.commons.DriverException@Command(name="setpointHyst",
description="setpoint hysteresis")
public void setpointHyst(@Argument(name="<int>",description="Hysteresis in % of value (default = 2)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - In percent of setpoint valueorg.lsst.ccs.drivers.commons.DriverException@Command(name="selectAnalog",
description="select analog output")
public void selectAnalog(@Argument(name="<int>",description="Select analog output (0 to 3, default = 0, frequency)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - 0 to 3 for frequency, power, pump temp., pressureorg.lsst.ccs.drivers.commons.DriverException@Command(name="resetPumpHoursCyclesIRREVERSIBLE",
description="resets pump total hours and count of cycles")
public void resetPumpHoursCyclesIRREVERSIBLE(@Argument(name="<true|false>",description="true to confirm command")
boolean confirm)
throws org.lsst.ccs.drivers.commons.DriverException
confirm - true to confirm user really wants to do thisorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.