public class PlutoDevice
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
areas |
protected String |
node
Data fields.
|
protected org.lsst.ccs.drivers.pluto.Pluto |
plu |
| Constructor and Description |
|---|
PlutoDevice()
Constructor.
|
PlutoDevice(int nArea)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
checkHwLine(String name,
int line)
Checks an output line number.
|
protected void |
close()
Closes the connection.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected Boolean |
isHwLineSet(int line)
Gets the set state of an output line.
|
Boolean |
isPLCActive()
Gets whether the PLC is active.
|
Integer |
readAddBit(int area,
int bit)
Reads a bit value from an additional area.
|
Integer |
readAddInt(int area)
Reads the value from an additional area.
|
Integer |
readAddWord(int area,
int word)
Reads a signed word (16-bit) value from an additional area.
|
Integer |
readBit(int area,
int bit)
Reads a bit value.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all referenced channels.
|
protected void |
setHwLine(int line,
boolean on)
Sets an output line on or off.
|
void |
toggleBit(int area,
int bit)
Toggles a bit.
|
void |
writeBit(int area,
int bit,
int value)
Writes a bit value.
|
void |
writeRegister(int area,
int reg,
int value)
Writes a register value.
|
addLine, checkHardware, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getGroupForChannel, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setLine, setLineWarm, setOnline, setOutputLines, testOnline@ConfigurationParameter(category="Device",
isFinal=true)
protected String node
protected org.lsst.ccs.drivers.pluto.Pluto plu
public PlutoDevice()
public PlutoDevice(int nArea)
nArea - The number of additional areas to use, or -1 if the areas need to be configuredprotected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.protected void checkHwLine(String name, int line) throws Exception
checkHwLine in class org.lsst.ccs.monitor.Devicename - The name of the output line.line - The hardware line number of the output line.Exception - If line number is invalidprotected void setHwLine(int line,
boolean on)
setHwLine in class org.lsst.ccs.monitor.Deviceline - The output line number.on - The on state to set: true or falseprotected Boolean isHwLineSet(int line)
isHwLineSet in class org.lsst.ccs.monitor.Deviceline - The output line number.public Boolean isPLCActive()
public void toggleBit(int area,
int bit)
area - The area numberbit - The bit numberpublic void writeBit(int area,
int bit,
int value)
area - The area numberbit - The bit numbervalue - The bit valuepublic Integer readBit(int area, int bit)
area - The area numberbit - The bit numberpublic Integer readAddBit(int area, int bit)
area - The area numberbit - The bit number (0 - 31)public Integer readAddWord(int area, int word)
area - The area numberword - The word number (0 - 1)public Integer readAddInt(int area)
area - The area numberpublic void writeRegister(int area,
int reg,
int value)
area - The area numberreg - The register numbervalue - The register valueCopyright © 2020 LSST. All rights reserved.