public class KeyenceG5001DeviceSim extends KeyenceG5001Device
failedToInitialize, isconnected, kstate, last_read| Constructor and Description |
|---|
KeyenceG5001DeviceSim(String host,
int port)
KeyenceG5001Device constructor - put KeyenceG5001 in initial subsystem
state
|
| Modifier and Type | Method and Description |
|---|---|
void |
commmode()
communications mode
**************************************************************************
|
void |
genmode()
general mode
**************************************************************************
|
int |
getcycles()
return the sampling cycle setting being used for the displacement measurements
**************************************************************************
|
int |
getmeasmode()
return the sensing mode
**************************************************************************
|
String |
getVersion()
gets version of the Ensemble controller *
**************************************************************************
|
protected void |
initialize()
Initializes the device
**************************************************************************
|
String |
keyenceChat(String command)
Generic write operation followed by a read.
|
void |
laser(boolean laserstate)
laser on/off
**************************************************************************
|
double[] |
readAll()
read the distance from the Keyence head
**************************************************************************
|
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
**************************************************************************
|
checkChannel, close, getError, getLast_read, getState, initChannel, initDevice, read, readChannel, setStateaddChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic KeyenceG5001DeviceSim(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 - **************************************************************************protected void initialize()
initialize in class KeyenceG5001Device@Command(description="return controller version") public String getVersion() throws org.lsst.ccs.drivers.commons.DriverException
getVersion in interface KeyenceDevicegetVersion in class KeyenceG5001Deviceorg.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 KeyenceDevicegetcycles in class KeyenceG5001Deviceorg.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 KeyenceDevicesetcycles in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getmeasmode",
description="get mode")
public int getmeasmode()
throws org.lsst.ccs.drivers.commons.DriverException
getmeasmode in interface KeyenceDevicegetmeasmode in class KeyenceG5001Deviceorg.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 KeyenceDevicesetmeasmode in class KeyenceG5001Deviceorg.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 KeyenceDevicesetmindispunit in class KeyenceG5001Deviceorg.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 KeyenceDevicereadAll in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="communications mode")
public void commmode()
throws org.lsst.ccs.drivers.commons.DriverException
commmode in interface KeyenceDevicecommmode in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="general mode")
public void genmode()
throws org.lsst.ccs.drivers.commons.DriverException
genmode in interface KeyenceDevicegenmode in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="clears all fault mesdsages")
public void reset()
throws org.lsst.ccs.drivers.commons.DriverException
reset in class KeyenceG5001Deviceorg.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 KeyenceDevicelaser in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(description="generic write") public String keyenceChat(@Argument(name="command",description="The raw Keyence command") String command) throws org.lsst.ccs.drivers.commons.DriverException
keyenceChat in class KeyenceG5001Deviceorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.