public class AerotechP165Device extends org.lsst.ccs.monitor.Device implements AerotechDevice
| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
protected int |
port |
| Constructor and Description |
|---|
AerotechP165Device() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
abort any motion
|
String |
aerotechChat(String command)
Sends command to Aerotech
|
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 |
disableAxes()
disable axes
|
void |
enableAxes()
enable axes
|
void |
fullreset()
reset controller
|
String |
getError()
get errors
|
double |
getLastPosX()
return last x position
|
double |
getLastPosY()
return last y position
|
double |
getLastPosZ()
return last z position
|
double |
getPosX()
get x position
|
double[] |
getPosXYZ()
get xyz position
|
double |
getPosY()
get y position
|
double |
getPosZ()
get z position
|
int |
getState()
Gets the state.
|
String |
getVersion()
gets version of the Ensemble controller
|
double |
getxOffset() |
double |
getyOffset() |
double |
getzOffset() |
void |
goHome()
go to home position
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Fully initializes the device.
|
void |
moveAbsX(double x)
absolute move
|
void |
moveAbsXY(double x,
double y)
absolute move in x and y
|
void |
moveAbsXYZ(double x,
double y,
double z)
absolute move in x, y and z
|
void |
moveAbsY(double y)
absolute move
|
void |
moveAbsZ(double z)
absolute move
|
void |
moveIncX(double dx)
incremental move in x
|
void |
moveIncXY(double dx,
double dy)
incremental move in x and y
|
void |
moveIncXYZ(double dx,
double dy,
double dz)
moveInx_xyz: incremental move in x, y and z
|
void |
moveIncY(double dy)
incremental move in y
|
void |
moveIncZ(double dz)
incremental move in z
|
void |
rampRate(double rate)
rampRate: step/s^2
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
reconnect()
Reconnects.
|
void |
reset()
acknowledge errors
|
void |
setSpeed(double velocity)
setSpeed: step/s
|
void |
setState(int istate)
Sets the state.
|
void |
setupHome(int mode)
setup homing
|
void |
setxOffset(double xoff) |
void |
setyOffset(double yoff) |
void |
setzOffset(double zoff) |
void |
softHighLim(String axis,
int param)
setup high position limit
|
void |
softLowLim(String axis,
int param)
setup low position limit
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastPos_x, getLastPos_y, getLastPos_z, getPos_x, getPos_xyz, getPos_y, getPos_z, moveAbs_x, moveAbs_xy, moveAbs_xyz, moveAbs_y, moveAbs_z, moveInc_x, moveInc_xy, moveInc_xyz, moveInc_y, moveInc_zprotected String host
protected int port
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.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - hwChan - type - subtype - org.lsst.ccs.drivers.commons.DriverExceptionExceptionprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicechan - type - @Command(description="return the x offset") public double getxOffset()
getxOffset in interface AerotechDevice@Command(description="set the x offset")
public void setxOffset(@Argument(description="offset in user units")
double xoff)
setxOffset in interface AerotechDevice@Command(description="return the y offset") public double getyOffset()
getyOffset in interface AerotechDevice@Command(description="set the y offset")
public void setyOffset(@Argument(description="offset in user units")
double yoff)
setyOffset in interface AerotechDevice@Command(description="return the z offset") public double getzOffset()
getzOffset in interface AerotechDevice@Command(description="set the z offset")
public void setzOffset(@Argument(description="offset in user units")
double zoff)
setzOffset in interface AerotechDevice@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.DriverException@Command(description="setSpeed")
public void setSpeed(@Argument(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(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 moveIncX(@Argument(description="amount to move in user units")
double dx)
throws org.lsst.ccs.drivers.commons.DriverException
moveIncX in interface AerotechDevicedx - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in y")
public void moveIncY(@Argument(description="amount to move in user units")
double dy)
throws org.lsst.ccs.drivers.commons.DriverException
moveIncY in interface AerotechDevicedy - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in z")
public void moveIncZ(@Argument(description="amount to move in user units")
double dz)
throws org.lsst.ccs.drivers.commons.DriverException
moveIncZ in interface AerotechDevicedz - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in x and y")
public void moveIncXY(@Argument(description="amount to move in user units")
double dx,
@Argument(description="amount to move in user units")
double dy)
throws org.lsst.ccs.drivers.commons.DriverException
moveIncXY in interface AerotechDevicedx - dy - org.lsst.ccs.drivers.commons.DriverException@Command(description="move incrementally in x, y and z")
public void moveIncXYZ(@Argument(description="amount to move in user units")
double dx,
@Argument(description="amount to move in user units")
double dy,
@Argument(description="amount to move in user units")
double dz)
throws org.lsst.ccs.drivers.commons.DriverException
moveIncXYZ in interface AerotechDevicedx - dy - dz - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x")
public void moveAbsX(@Argument(description="x position in user units")
double x)
throws org.lsst.ccs.drivers.commons.DriverException
moveAbsX in interface AerotechDevicex - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in y")
public void moveAbsY(@Argument(description="y position in user units")
double y)
throws org.lsst.ccs.drivers.commons.DriverException
moveAbsY in interface AerotechDevicey - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in z")
public void moveAbsZ(@Argument(description="z position in user units")
double z)
throws org.lsst.ccs.drivers.commons.DriverException
moveAbsZ in interface AerotechDevicez - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x and y")
public void moveAbsXY(@Argument(description="x position in user units")
double x,
@Argument(description="y position in user units")
double y)
throws org.lsst.ccs.drivers.commons.DriverException
moveAbsXY in interface AerotechDevicex - y - org.lsst.ccs.drivers.commons.DriverException@Command(description="move absolutely in x, y and z")
public void moveAbsXYZ(@Argument(description="x position in user units")
double x,
@Argument(description="y position in user units")
double y,
@Argument(description="z position in user units")
double z)
throws org.lsst.ccs.drivers.commons.DriverException
moveAbsXYZ in interface AerotechDevicex - y - z - org.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in x, y and z")
public double[] getPosXYZ()
throws org.lsst.ccs.drivers.commons.DriverException
getPosXYZ in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in x")
public double getPosX()
throws org.lsst.ccs.drivers.commons.DriverException
getPosX in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in y")
public double getPosY()
throws org.lsst.ccs.drivers.commons.DriverException
getPosY in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns position in z")
public double getPosZ()
throws org.lsst.ccs.drivers.commons.DriverException
getPosZ in interface AerotechDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="generic write",
level=10)
public String aerotechChat(@Argument(name="command",description="The raw Aerotech command")
String command)
throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionpublic double getLastPosX()
getLastPosX in interface AerotechDevicepublic double getLastPosY()
getLastPosY in interface AerotechDevicepublic double getLastPosZ()
getLastPosZ 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 AerotechDevicemode - The homing modeorg.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 AerotechDeviceaxis - The axis nameparam - The limitorg.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 AerotechDeviceaxis - The axis nameparam - The limitorg.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 to controller") public void reconnect()
reconnect in interface AerotechDevice@Command(name="setstate",
description="set AerotechP165 device status")
public void setState(int istate)
istate - The state@Command(name="getstate",
description="get AerotechP165 device status")
public int getState()
Copyright © 2019 LSST. All rights reserved.