
public class A1000Device
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CURRENT
Constants
|
static int |
CHAN_FREQUENCY
Constants
|
static int |
CHAN_VOLTAGE
Constants
|
static int |
NUM_CHANS
Constants
|
| Constructor and Description |
|---|
A1000Device() |
| 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 |
close()
Closes the connection.
|
void |
enterParameters() |
double |
getFrequency()
Gets the frequency.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
void |
initParams() |
boolean |
isEnterRequired() |
boolean |
isFaultDetected() |
boolean |
isReversePermitted() |
boolean |
isRunCmndFwdRev() |
double |
readBusVoltage() |
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
double |
readCurrent() |
double |
readFrequency() |
String |
readRegister(int number) |
String |
readRegisters(int number,
int count) |
double |
readVoltage() |
void |
runForward() |
void |
runReverse() |
void |
saveParameters() |
void |
setAccessLevel(org.lsst.ccs.drivers.yaskawa.A1000.AccessLevel level) |
void |
setBaudRate(org.lsst.ccs.drivers.yaskawa.A1000.BaudRate baudRate) |
void |
setControlMode(org.lsst.ccs.drivers.yaskawa.A1000.ControlMode mode) |
void |
setEnterRequired(boolean required) |
void |
setErrorAction(org.lsst.ccs.drivers.yaskawa.A1000.ErrorAction action) |
void |
setFaultDetected(boolean detect) |
void |
setFreqRefSrc(org.lsst.ccs.drivers.yaskawa.A1000.FreqRefSrc source) |
void |
setFrequency(double freq)
Sets the frequency.
|
void |
setInputVoltage(double voltage) |
void |
setNodeAddress(int address) |
void |
setParity(org.lsst.ccs.drivers.yaskawa.A1000.Parity parity) |
void |
setReversePermitted(boolean permit) |
void |
setRunCmndFwdRev(boolean fwdRev) |
void |
setRunCmndSrc(org.lsst.ccs.drivers.yaskawa.A1000.RunCmndSrc source) |
void |
setRunProg(org.lsst.ccs.drivers.yaskawa.A1000.RunProg runProg) |
void |
setStopMethod(org.lsst.ccs.drivers.yaskawa.A1000.StopMethod method) |
void |
setVfSelection(org.lsst.ccs.drivers.yaskawa.A1000.VfSelection select) |
void |
setVoltageUnits(org.lsst.ccs.drivers.yaskawa.A1000.VoltageUnits units) |
org.lsst.ccs.drivers.yaskawa.A1000.AccessLevel |
showAccessLevel() |
String |
showBaudRate() |
org.lsst.ccs.drivers.yaskawa.A1000.ControlMode |
showControlMode() |
String |
showDriveStatus() |
org.lsst.ccs.drivers.yaskawa.A1000.ErrorAction |
showErrorAction() |
org.lsst.ccs.drivers.yaskawa.A1000.FreqRefSrc |
showFreqRefSrc() |
double |
showFrequency() |
double |
showFrequencyApp() |
double |
showInputVoltage() |
int |
showNodeAddress() |
org.lsst.ccs.drivers.yaskawa.A1000.Parity |
showParity() |
org.lsst.ccs.drivers.yaskawa.A1000.RunCmndSrc |
showRunCmndSrc() |
org.lsst.ccs.drivers.yaskawa.A1000.RunProg |
showRunProg() |
org.lsst.ccs.drivers.yaskawa.A1000.StopMethod |
showStopMethod() |
org.lsst.ccs.drivers.yaskawa.A1000.VfSelection |
showVfSelection() |
org.lsst.ccs.drivers.yaskawa.A1000.VoltageUnits |
showVoltageUnits() |
void |
stop() |
void |
writeRegisters(int number,
int... values) |
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic static final int CHAN_FREQUENCY
public static final int CHAN_CURRENT
public static final int CHAN_VOLTAGE
public static final int NUM_CHANS
protected 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.Devicepublic void setFrequency(double freq)
throws RefrigException
freq - The value to setRefrigExceptionpublic double getFrequency()
protected 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 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.@Command(description="Initialize parameters") public void initParams() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read a register") public String readRegister(@Argument(description="Register to read") int number) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read a set of registers") public String readRegisters(@Argument(description="First register to read") int number, @Argument(description="Number of registers to read") int count)
@Command(description="Show node address") public int showNodeAddress() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show baud rate") public String showBaudRate() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show parity") public org.lsst.ccs.drivers.yaskawa.A1000.Parity showParity() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show access level") public org.lsst.ccs.drivers.yaskawa.A1000.AccessLevel showAccessLevel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show control mode") public org.lsst.ccs.drivers.yaskawa.A1000.ControlMode showControlMode() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show whether enter required") public boolean isEnterRequired() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show communications error action") public org.lsst.ccs.drivers.yaskawa.A1000.ErrorAction showErrorAction() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show whether fault detected") public boolean isFaultDetected() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show frequency reference source") public org.lsst.ccs.drivers.yaskawa.A1000.FreqRefSrc showFreqRefSrc() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show input voltage") public double showInputVoltage() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show whether reverse permitted") public boolean isReversePermitted() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show whether run command style is forward/reverse") public boolean isRunCmndFwdRev() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show run command source") public org.lsst.ccs.drivers.yaskawa.A1000.RunCmndSrc showRunCmndSrc() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show run/program interaction") public org.lsst.ccs.drivers.yaskawa.A1000.RunProg showRunProg() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the stop method") public org.lsst.ccs.drivers.yaskawa.A1000.StopMethod showStopMethod() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show V/f profile selection") public org.lsst.ccs.drivers.yaskawa.A1000.VfSelection showVfSelection() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show voltge units") public org.lsst.ccs.drivers.yaskawa.A1000.VoltageUnits showVoltageUnits() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the reference frequency") public double showFrequency() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the applied reference frequency") public double showFrequencyApp() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read the frequency") public double readFrequency() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read the current") public double readCurrent() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read the voltage") public double readVoltage() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read the bus voltage") public double readBusVoltage() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the drive status") public String showDriveStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Write a set of registers") public void writeRegisters(@Argument(description="First register to write") int number, @Argument(description="Values to write") int... values) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Enter parameters") public void enterParameters() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Save parameters") public void saveParameters() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set node address") public void setNodeAddress(@Argument(description="Node address") int address) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set baud rate") public void setBaudRate(@Argument(description="Baud rate enum") org.lsst.ccs.drivers.yaskawa.A1000.BaudRate baudRate) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set parity") public void setParity(@Argument(description="Parity enum") org.lsst.ccs.drivers.yaskawa.A1000.Parity parity) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set access level") public void setAccessLevel(@Argument(description="Access level enum") org.lsst.ccs.drivers.yaskawa.A1000.AccessLevel level) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set control mode") public void setControlMode(@Argument(description="Control mode enum") org.lsst.ccs.drivers.yaskawa.A1000.ControlMode mode) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set whether enter required") public void setEnterRequired(@Argument(description="Whether enter required") boolean required) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set communications error action") public void setErrorAction(@Argument(description="Error action enum") org.lsst.ccs.drivers.yaskawa.A1000.ErrorAction action) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set whether fault detected") public void setFaultDetected(@Argument(description="Whether fault detected") boolean detect) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set frequency reference source") public void setFreqRefSrc(@Argument(description="Freq refc source enum") org.lsst.ccs.drivers.yaskawa.A1000.FreqRefSrc source) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set the input voltage") public void setInputVoltage(@Argument(description="The voltage") double voltage) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set whether reverse permitted") public void setReversePermitted(@Argument(description="Whether reverse permitted") boolean permit) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set whether run command style is forward/reverse") public void setRunCmndFwdRev(@Argument(description="Whether forward/reverse") boolean fwdRev) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set run command source") public void setRunCmndSrc(@Argument(description="Run cmnd source enum") org.lsst.ccs.drivers.yaskawa.A1000.RunCmndSrc source) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set run/program interaction") public void setRunProg(@Argument(description="Run/program enum") org.lsst.ccs.drivers.yaskawa.A1000.RunProg runProg) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set the stop method") public void setStopMethod(@Argument(description="Stop method enum") org.lsst.ccs.drivers.yaskawa.A1000.StopMethod method) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set V/f profile selection") public void setVfSelection(@Argument(description="V/f selection enum") org.lsst.ccs.drivers.yaskawa.A1000.VfSelection select) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Set voltage units") public void setVoltageUnits(@Argument(description="Voltage units enum") org.lsst.ccs.drivers.yaskawa.A1000.VoltageUnits units) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Run the motor forwards") public void runForward() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Run the motor in reverse") public void runReverse() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(level=50, description="Stop the motor") public void stop() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2020 LSST. All rights reserved.