public class MpmSimPlutoDevice extends MpmPlutoDevice
NUM_SWITCHES, SW_BLOCK_COLD_HEAT, SW_BLOCK_COLD_REFG, SW_BLOCK_COOLANT, SW_BLOCK_CRYO_HEAT, SW_BLOCK_CRYO_REFG, SW_BLOCK_REB_POWER, SW_BLOCK_UT_POWER| Constructor and Description |
|---|
MpmSimPlutoDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
clearLatch(int cond)
Clears a latched condition.
|
protected void |
close()
Closes device connection.
|
int[] |
getTempLimits()
Gets the temperature limits.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
Boolean |
isConditionActive(int cond)
Gets whether a condition is active.
|
Boolean |
isLatchActive(int cond)
Gets whether a latched condition is active.
|
Boolean |
isLatchLatched(int cond)
Gets whether a latched condition is latched.
|
Boolean |
isPlcActive(int plc)
Tests whether a PLC is active
|
Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all referenced channels.
|
void |
setCondition(int cond,
boolean set) |
void |
setLatchActive(int cond) |
void |
setLatchLatched(int cond) |
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
checkHwLine, isHwLineSet, isPLCActive, readAddBit, readAddInt, readAddWord, readBit, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkHardware, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getGroupForChannel, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected void initDevice()
initDevice in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected void close()
close in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype)
checkChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringprotected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public Boolean isPlcActive(int plc)
isPlcActive in class MpmPlutoDeviceplc - The PLC numberpublic void setSwitchOn(int sw,
boolean on)
setSwitchOn in class MpmPlutoDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in class MpmPlutoDevicesw - The switch number.public Boolean isLatchActive(int cond)
isLatchActive in class MpmPlutoDevicecond - The condition numberpublic Boolean isLatchLatched(int cond)
isLatchLatched in class MpmPlutoDevicecond - The condition numberpublic void clearLatch(int cond)
clearLatch in class MpmPlutoDevicecond - The condition numberpublic Boolean isConditionActive(int cond)
isConditionActive in class MpmPlutoDevicecond - The condition numberpublic int[] getTempLimits()
getTempLimits in class MpmPlutoDevice@Command(type=ACTION)
public void setLatchActive(@Argument(description="Latched condition number")
int cond)
@Command(type=ACTION)
public void setLatchLatched(@Argument(description="Latched condition number")
int cond)
@Command(type=ACTION)
public void setCondition(@Argument(description="Running condition number")
int cond,
@Argument(description="Condition on state")
boolean set)
Copyright © 2019 LSST. All rights reserved.