
public class CompPlutoDevice extends org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevice implements Compressor.SwitchDevice
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_COLD_SWITCHES
Constants.
|
static int |
NUM_CRYO_SWITCHES
Constants.
|
static int |
SW_ENABLE
Constants.
|
static int |
SW_HEATER
Constants.
|
static int |
SW_LIGHTS
Constants.
|
| Constructor and Description |
|---|
CompPlutoDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionState |
getConditionState(int cond)
Gets the state of a condition.
|
int |
getErrorCode()
Gets the PLC error code.
|
LatchState |
getLatchState(int cond)
Gets the state of a latched condition.
|
Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
void |
resetLatches()
Resets all latched conditions.
|
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
void |
setType(int type)
Sets the compressor type.
|
checkChannel, checkHwLine, close, initDevice, initialize, isHwLineSet, isPLCActive, readAddBit, readAddInt, readAddWord, readBit, readChannel, readChannelGroup, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkHardware, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic static final int SW_ENABLE
public static final int SW_LIGHTS
public static final int NUM_COLD_SWITCHES
public static final int SW_HEATER
public static final int NUM_CRYO_SWITCHES
public void setType(int type)
type - The type (cold or cryo)public void setSwitchOn(int sw,
boolean on)
setSwitchOn in interface Compressor.SwitchDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in interface Compressor.SwitchDevicesw - The switch number.public LatchState getLatchState(int cond)
cond - The condition numberpublic ConditionState getConditionState(int cond)
cond - The condition numberpublic void resetLatches()
public int getErrorCode()
Copyright © 2020 LSST. All rights reserved.