public class A1000 extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
A1000.AccessLevel |
static class |
A1000.BaudRate |
static class |
A1000.ControlMode |
static class |
A1000.ErrorAction |
static class |
A1000.FreqRefSrc |
static class |
A1000.Language
Public constants.
|
static class |
A1000.Parity |
static class |
A1000.RunCmndSrc |
static class |
A1000.RunProg |
static class |
A1000.StopMethod |
static class |
A1000.VfSelection |
static class |
A1000.VoltageUnits |
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_ALARM |
static int |
STATUS_FAULT |
static int |
STATUS_FAULT_RESET |
static int |
STATUS_READY |
static int |
STATUS_REVERSE |
static int |
STATUS_RUNNING |
static int |
STATUS_SPEED_AGREE |
static int |
STATUS_ZERO_SPEED |
| Constructor and Description |
|---|
A1000()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to the device.
|
void |
enterParameters()
Makes new parameter values available.
|
A1000.AccessLevel |
getAccessLevel()
Gets the access level
|
A1000.BaudRate |
getBaudRate()
Gets the drive baud rate
|
A1000.ControlMode |
getControlMode()
Gets the control mode
|
int |
getDriveStatus()
Gets the drive status
|
A1000.ErrorAction |
getErrorAction()
Gets the communications error action
|
A1000.FreqRefSrc |
getFreqRefSrc()
Gets the frequency reference source
|
double |
getFrequency()
Gets the set frequency
|
double |
getFrequencyApp()
Gets the applied frequency
|
double |
getInputVoltage()
Gets the input voltage
|
String |
getModelName()
Gets the model name
|
int |
getNodeAddress()
Gets the node address.
|
A1000.Parity |
getParity()
Gets the drive parity.
|
double |
getRatedCurrent()
Gets the rated current
|
A1000.RunCmndSrc |
getRunCmndSrc()
Gets the run command source
|
A1000.RunProg |
getRunProg()
Gets the interaction between running and programming
|
A1000.StopMethod |
getStopMethod()
Gets the stop method
|
A1000.VfSelection |
getVfSelection()
Gets the V/f profile
|
A1000.VoltageUnits |
getVoltageUnits()
Gets the voltage units
|
boolean |
isEnterRequired()
Gets whether enter command is required for parameter application
|
boolean |
isFaultDetected()
Gets whether communications faults are detected
|
boolean |
isReversePermitted()
Gets whether reverse running is permitted
|
boolean |
isRunCmndFwdRev()
Gets whether run command is forward/reverse style
|
void |
open(String device)
Opens a connection to the device.
|
void |
open(String device,
int address)
Opens a connection to the device.
|
void |
open(String device,
int address,
int baudRate)
Opens a connection to the device.
|
void |
open(String device,
int address,
int baudRate,
int dataChar)
Opens a connection to the device.
|
double |
readBusVoltage()
Reads the bus voltage
|
double |
readCurrent()
Reads the current
|
double |
readFrequency()
Reads the frequency
|
int |
readRegister(short addr)
Reads a register.
|
short[] |
readRegisters(short addr,
short count)
Reads a set of registers.
|
double |
readVoltage()
Reads the voltage
|
void |
runForward()
Runs the motor forwards
|
void |
runReverse()
Runs the motor in reverse
|
void |
saveParameters()
Saves parameter values in EEPROM.
|
void |
setAccessLevel(A1000.AccessLevel level)
Sets the access level
|
void |
setBaudRate(A1000.BaudRate rate)
Sets the drive baud rate.
|
void |
setControlMode(A1000.ControlMode mode)
Sets the control mode
|
void |
setEnterRequired(boolean require)
Sets whether enter command is required for parameter application
|
void |
setErrorAction(A1000.ErrorAction action)
Sets the communications error action
|
void |
setFaultDetected(boolean detect)
Sets whether communications faults are detected
|
void |
setFreqRefSrc(A1000.FreqRefSrc src)
Sets the frequency reference source
|
void |
setFrequency(double freq)
Sets the frequency
|
void |
setInputVoltage(double voltage)
Sets the input voltage
|
void |
setLocalControl()
Sets control to be local.
|
void |
setNodeAddress(int address)
Sets the node address.
|
void |
setParity(A1000.Parity parity)
Sets the drive parity
|
void |
setRemoteControl()
Sets control to be remote.
|
void |
setReversePermitted(boolean permit)
Sets whether reverse running is permitted
|
void |
setRunCmndFwdRev(boolean fwdRev)
Sets whether run command is forward/reverse style
|
void |
setRunCmndSrc(A1000.RunCmndSrc src)
Sets the run command source
|
void |
setRunProg(A1000.RunProg runProg)
Sets the interaction between running and programming
|
void |
setStopMethod(A1000.StopMethod method)
Sets the stop method
|
void |
setVfSelection(A1000.VfSelection level)
Sets the V/f profile
|
void |
setVoltageUnits(A1000.VoltageUnits units)
Sets the voltage units
|
void |
stop()
Stops the motor
|
void |
writeRegister(short addr,
short value)
Writes a register.
|
void |
writeRegisters(short addr,
short[] value)
Writes a set of registers.
|
public static final int STATUS_RUNNING
public static final int STATUS_ZERO_SPEED
public static final int STATUS_REVERSE
public static final int STATUS_FAULT_RESET
public static final int STATUS_SPEED_AGREE
public static final int STATUS_READY
public static final int STATUS_ALARM
public static final int STATUS_FAULT
public void open(String device, int address, int baudRate, int dataChar) throws org.lsst.ccs.drivers.commons.DriverException
device - The serial device nameaddress - The slave addressbaudRate - The baud ratedataChar - The data characteristicsorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String device, int address, int baudRate) throws org.lsst.ccs.drivers.commons.DriverException
device - The serial device nameaddress - The slave addressbaudRate - The baud rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String device, int address) throws org.lsst.ccs.drivers.commons.DriverException
device - The serial device nameaddress - The slave addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String device) throws org.lsst.ccs.drivers.commons.DriverException
device - The serial device nameorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic short[] readRegisters(short addr,
short count)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addresscount - The number of registers to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readRegister(short addr)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeRegister(short addr,
short value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressvalue - The value to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeRegisters(short addr,
short[] value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addressvalue - The array of values to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void enterParameters()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void saveParameters()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setNodeAddress(int address)
throws org.lsst.ccs.drivers.commons.DriverException
address - The device address (1 - 255)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getNodeAddress()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setBaudRate(A1000.BaudRate rate) throws org.lsst.ccs.drivers.commons.DriverException
rate - The baud rate enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.BaudRate getBaudRate() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setParity(A1000.Parity parity) throws org.lsst.ccs.drivers.commons.DriverException
parity - The parity enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.Parity getParity() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getModelName() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getRatedCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setLocalControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRemoteControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setAccessLevel(A1000.AccessLevel level) throws org.lsst.ccs.drivers.commons.DriverException
level - Access level enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.AccessLevel getAccessLevel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setControlMode(A1000.ControlMode mode) throws org.lsst.ccs.drivers.commons.DriverException
mode - Control mode enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.ControlMode getControlMode() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFreqRefSrc(A1000.FreqRefSrc src) throws org.lsst.ccs.drivers.commons.DriverException
src - Frequency reference source enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.FreqRefSrc getFreqRefSrc() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRunCmndSrc(A1000.RunCmndSrc src) throws org.lsst.ccs.drivers.commons.DriverException
src - Run command source enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.RunCmndSrc getRunCmndSrc() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setStopMethod(A1000.StopMethod method) throws org.lsst.ccs.drivers.commons.DriverException
method - Stop method enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.StopMethod getStopMethod() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRunProg(A1000.RunProg runProg) throws org.lsst.ccs.drivers.commons.DriverException
runProg - Interaction enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.RunProg getRunProg() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setErrorAction(A1000.ErrorAction action) throws org.lsst.ccs.drivers.commons.DriverException
action - Error action enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.ErrorAction getErrorAction() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setReversePermitted(boolean permit)
throws org.lsst.ccs.drivers.commons.DriverException
permit - Whether reverse permittedorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isReversePermitted()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFaultDetected(boolean detect)
throws org.lsst.ccs.drivers.commons.DriverException
detect - Whether faults are detectedorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isFaultDetected()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setEnterRequired(boolean require)
throws org.lsst.ccs.drivers.commons.DriverException
require - Whether enter requiredorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isEnterRequired()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRunCmndFwdRev(boolean fwdRev)
throws org.lsst.ccs.drivers.commons.DriverException
fwdRev - Whether forward/reverse styleorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isRunCmndFwdRev()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageUnits(A1000.VoltageUnits units) throws org.lsst.ccs.drivers.commons.DriverException
units - The voltage units enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.VoltageUnits getVoltageUnits() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setInputVoltage(double voltage)
throws org.lsst.ccs.drivers.commons.DriverException
voltage - The input voltageorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getInputVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVfSelection(A1000.VfSelection level) throws org.lsst.ccs.drivers.commons.DriverException
level - The V/f profile enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic A1000.VfSelection getVfSelection() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFrequency(double freq)
throws org.lsst.ccs.drivers.commons.DriverException
freq - The frequency to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getFrequency()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getFrequencyApp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readFrequency()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readBusVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getDriveStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void runForward()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void runReverse()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void stop()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2020 LSST. All rights reserved.