
public class KeyenceG5001Device extends org.lsst.ccs.subsystem.monitor.Device implements KeyenceDevice
| Constructor and Description |
|---|
KeyenceG5001Device()
Constructor *
**************************************************************************
|
KeyenceG5001Device(String host,
int port)
KeyenceG5001Device constructor - put KeyenceG5001 in initial subsystem
state
|
| 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 |
commmode()
communications mode
**************************************************************************
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
void |
genmode()
general mode
**************************************************************************
|
int |
getcycles()
return the sampling cycle setting being used for the displacement measurements
**************************************************************************
|
String |
getError()
get errors
**************************************************************************
|
double[] |
getLast_read() |
int |
getmeasmode()
return the sensing mode
**************************************************************************
|
int |
getState() |
String |
getVersion()
gets version of the Ensemble controller *
**************************************************************************
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Initializes the device
**************************************************************************
|
void |
laser(boolean laserstate)
laser on/off
**************************************************************************
|
double |
read(int ikey)
read the distance from the Keyence head
**************************************************************************
|
double[] |
readAll()
read the distance from the Keyence head
**************************************************************************
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
reset()
reset
**************************************************************************
|
void |
setcycles(int cycles)
set the sampling cycle mode to be used for the displacement measurements
**************************************************************************
|
void |
setmeasmode(int mode)
set the sensing mode
0: Normal,
1: Translucent object,
2: Transparent object,
3: Transparent object 2,
4: Semi opaque
**************************************************************************
|
void |
setmindispunit(int dspu)
set the minimum display unit
**************************************************************************
|
void |
setState(int istate) |
addChannel, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpublic KeyenceG5001Device(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
host - device addressport - port or baud * * @param runBias CCD bias voltage while
runningorg.lsst.ccs.drivers.commons.DriverException - **************************************************************************public KeyenceG5001Device()
protected 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 KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="read", description="get keyence head measurement") public double read(@Argument(name="ikey",description="keyence head number") int ikey) throws org.lsst.ccs.drivers.commons.DriverException
read in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getcycles", description="get sampling cycle setting") public int getcycles() throws org.lsst.ccs.drivers.commons.DriverException
getcycles in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setcycles", description="set number of cycles") public void setcycles(@Argument(name="cycles",description="sampling cycle mode") int cycles) throws org.lsst.ccs.drivers.commons.DriverException
setcycles in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getmeasmode", description="get mode") public int getmeasmode() throws org.lsst.ccs.drivers.commons.DriverException
getmeasmode in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setmeasmode", description="set mode") public void setmeasmode(@Argument(name="mode",description="mode number") int mode) throws org.lsst.ccs.drivers.commons.DriverException
setmeasmode in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setmindispunit", description="set mode") public void setmindispunit(@Argument(name="dspu",description="(0: 0.01 mm, 1: 0.001 mm, 2: 0.0001 mm, 3: 0.00001 mm, 4: 0.1 um, 5: 0.01 um, 6: 0.001 um)") int dspu) throws org.lsst.ccs.drivers.commons.DriverException
setmindispunit in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="readAll", description="get keyence head measurement") public double[] readAll() throws org.lsst.ccs.drivers.commons.DriverException
readAll in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="communications mode") public void commmode() throws org.lsst.ccs.drivers.commons.DriverException
commmode in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="general mode") public void genmode() throws org.lsst.ccs.drivers.commons.DriverException
genmode in interface KeyenceDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="returns any axis fault messages") public String getError() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="clears all fault mesdsages") public void reset() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="sets lasers on/off") public void laser(@Argument(name="laserstate",description="false for laser off / true for on") boolean laserstate) throws org.lsst.ccs.drivers.commons.DriverException
laser in interface KeyenceDeviceorg.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.Devicepublic double[] getLast_read()
getLast_read in interface KeyenceDevice@Command(name="setstate", description="set KeyenceG5001 device status") public void setState(int istate)
@Command(name="getstate", description="get KeyenceG5001 device status") public int getState()
Copyright © 2017 LSST. All rights reserved.