
public class AerotechP165Device extends org.lsst.ccs.subsystem.monitor.Device implements AerotechDevice
| Constructor and Description |
|---|
AerotechP165Device()
Constructor *
**************************************************************************
|
AerotechP165Device(String host,
int port)
AerotechP165Device constructor - put AerotechP165 in initial subsystem
state
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
abort any motion
**************************************************************************
|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
void |
disableAxes()
disable axes
**************************************************************************
|
void |
enableAxes()
enable axes
**************************************************************************
|
void |
fullreset()
reset controller
**************************************************************************
|
String |
getError()
get errors
**************************************************************************
|
double |
getLastPos_x()
return last x position
**************************************************************************
|
double |
getLastPos_y()
return last y position
**************************************************************************
|
double |
getLastPos_z()
return last z position
**************************************************************************
|
double |
getPos_x()
get x position
**************************************************************************
|
double[] |
getPos_xyz()
get xyz position
**************************************************************************
|
double |
getPos_y()
get y position
**************************************************************************
|
double |
getPos_z()
get z position
**************************************************************************
|
int |
getState() |
String |
getVersion()
gets version of the Ensemble controller *
**************************************************************************
|
double |
getxOffset() |
double |
getyOffset() |
double |
getzOffset() |
void |
goHome()
go to home position
**************************************************************************
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Initializes the device
**************************************************************************
|
void |
moveAbs_x(double xpos)
*absolute move
**************************************************************************
|
void |
moveAbs_xy(double xpos,
double ypos)
*absolute move in x and y
**************************************************************************
|
void |
moveAbs_xyz(double xpos,
double ypos,
double zpos)
*absolute move in , y and z
**************************************************************************
|
void |
moveAbs_y(double ypos)
*absolute move
**************************************************************************
|
void |
moveAbs_z(double zpos)
*absolute move
**************************************************************************
|
void |
moveInc_x(double delta)
moveInc_x:
perform incremental move
**************************************************************************
|
void |
moveInc_xy(double dx,
double dy)
*incremental move in x and y
**************************************************************************
|
void |
moveInc_xyz(double dx,
double dy,
double dz)
moveInx_xyz:
incremental move in , y and z
**************************************************************************
|
void |
moveInc_y(double delta)
*incremental move
**************************************************************************
|
void |
moveInc_z(double delta)
*incremental move
**************************************************************************
|
void |
rampRate(double rate)
rampRate: step/s^2
**************************************************************************
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
reconnect()
reconnect
**************************************************************************
|
void |
reset()
acknowledge errors
**************************************************************************
|
void |
setSpeed(double velocity)
setSpeed: step/s
**************************************************************************
|
void |
setState(int istate) |
void |
setupHome(int mode)
setup homing
**************************************************************************
|
void |
setxOffset(double xOffset) |
void |
setyOffset(double yOffset) |
void |
setzOffset(double zOffset) |
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
void |
softHighLim(String axis,
int param)
setup high position limit
**************************************************************************
|
void |
softLowLim(String axis,
int param)
setup low position limit
**************************************************************************
|
addChannel, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, init, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic AerotechP165Device(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
host - device addressport - port or baudorg.lsst.ccs.drivers.commons.DriverException - **************************************************************************public AerotechP165Device()
@Command public double getxOffset()
getxOffset in interface AerotechDevice@Command public void setxOffset(double xOffset)
setxOffset in interface AerotechDevice@Command public double getyOffset()
getyOffset in interface AerotechDevice@Command public void setyOffset(double yOffset)
setyOffset in interface AerotechDevice@Command public double getzOffset()
getzOffset in interface AerotechDevice@Command public void setzOffset(double zOffset)
setzOffset in interface AerotechDeviceprotected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - **************************************************************************protected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Device@Command(description="return controller version") public String getVersion() throws org.lsst.ccs.drivers.commons.DriverException
getVersion in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="abort motion") public void abort() throws org.lsst.ccs.drivers.commons.DriverException
abort in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="enable axes") public void enableAxes() throws org.lsst.ccs.drivers.commons.DriverException
enableAxes in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="disable axes") public void disableAxes() throws org.lsst.ccs.drivers.commons.DriverException
disableAxes in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void Sleep(double secs)
@Command(description="setSpeed") public void setSpeed(@Argument(name="velocity",description="step / s") double velocity) throws org.lsst.ccs.drivers.commons.DriverException
setSpeed in interface AerotechDevicevelocity - org.lsst.ccs.drivers.commons.DriverException@Command(description="rampRate") public void rampRate(@Argument(name="rate",description="step / s2") double rate) throws org.lsst.ccs.drivers.commons.DriverException
rampRate in interface AerotechDevicerate - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in x") public void moveInc_x(@Argument(name="dx",description="amount to move in user units") double delta) throws org.lsst.ccs.drivers.commons.DriverException
moveInc_x in interface AerotechDevicedelta - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in y") public void moveInc_y(@Argument(name="dy",description="amount to move in user units") double delta) throws org.lsst.ccs.drivers.commons.DriverException
moveInc_y in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in z") public void moveInc_z(@Argument(name="dz",description="amount to move in user units") double delta) throws org.lsst.ccs.drivers.commons.DriverException
moveInc_z in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in x and y") public void moveInc_xy(@Argument(name="x",description="amount to move in x in user units") double dx, @Argument(name="y",description="amount to move in y in user units") double dy) throws org.lsst.ccs.drivers.commons.DriverException
moveInc_xy in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in x, y and z") public void moveInc_xyz(@Argument(name="x",description="amount to move in x in user units") double dx, @Argument(name="y",description="amount to move in y in user units") double dy, @Argument(name="z",description="amount to move in z in user units") double dz) throws org.lsst.ccs.drivers.commons.DriverException
moveInc_xyz in interface AerotechDevicedx - dy - dz - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x") public void moveAbs_x(@Argument(name="xpos",description="x position in user units") double xpos) throws org.lsst.ccs.drivers.commons.DriverException
moveAbs_x in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in y") public void moveAbs_y(@Argument(name="y",description="position in y in user units") double ypos) throws org.lsst.ccs.drivers.commons.DriverException
moveAbs_y in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in z") public void moveAbs_z(@Argument(name="z",description="position in z in user units") double zpos) throws org.lsst.ccs.drivers.commons.DriverException
moveAbs_z in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x and y") public void moveAbs_xy(@Argument(name="x",description="position in x in user units") double xpos, @Argument(name="y",description="position in y in user units") double ypos) throws org.lsst.ccs.drivers.commons.DriverException
moveAbs_xy in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x, y and z") public void moveAbs_xyz(@Argument(name="x",description="position in x in user units") double xpos, @Argument(name="y",description="position in y in user units") double ypos, @Argument(name="z",description="position in z in user units") double zpos) throws org.lsst.ccs.drivers.commons.DriverException
moveAbs_xyz in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in x, y and z") public double[] getPos_xyz() throws org.lsst.ccs.drivers.commons.DriverException
getPos_xyz in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in x") public double getPos_x() throws org.lsst.ccs.drivers.commons.DriverException
getPos_x in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in y") public double getPos_y() throws org.lsst.ccs.drivers.commons.DriverException
getPos_y in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in z") public double getPos_z() throws org.lsst.ccs.drivers.commons.DriverException
getPos_z in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getLastPos_x()
getLastPos_x in interface AerotechDevicepublic double getLastPos_y()
getLastPos_y in interface AerotechDevicepublic double getLastPos_z()
getLastPos_z in interface AerotechDevice@Command(description="returns any axis fault messages") public String getError() throws org.lsst.ccs.drivers.commons.DriverException
getError in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="goes to home position") public void goHome() throws org.lsst.ccs.drivers.commons.DriverException
goHome in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="setup homing mode") public void setupHome(int mode) throws org.lsst.ccs.drivers.commons.DriverException
setupHome in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="setup low position limit") public void softLowLim(String axis, int param) throws org.lsst.ccs.drivers.commons.DriverException
softLowLim in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="setup high position limit") public void softHighLim(String axis, int param) throws org.lsst.ccs.drivers.commons.DriverException
softHighLim in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="clears all fault messages") public void reset() throws org.lsst.ccs.drivers.commons.DriverException
reset in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="reset controller") public void fullreset() throws org.lsst.ccs.drivers.commons.DriverException
fullreset in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="reconnect") public void reconnect() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.DeviceExceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.Device@Command(name="setstate", description="set AerotechP165 device status") public void setState(int istate)
@Command(name="getstate", description="get AerotechP165 device status") public int getState()
Copyright © 2016 LSST. All rights reserved.