public class KeyenceG5001Device extends org.lsst.ccs.monitor.Device implements KeyenceDevice
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failedToInitialize |
protected boolean |
isconnected |
protected MetrologyState.pwrstates |
kstate |
protected double[] |
lastRead |
| Constructor and Description |
|---|
KeyenceG5001Device() |
| 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()
Sets communications mode
|
void |
genmode()
Sets general mode
|
int |
getcycles()
Gets the sampling cycle setting being used for the displacement measurements
|
String |
getError()
Gets errors
|
double[] |
getLastRead() |
int |
getmeasmode(int ikey)
Gets the sensing mode.
|
int |
getState() |
protected void |
initDevice()
Initializes the Device instance
|
protected void |
initialize()
Initializes the device
|
String |
keyenceChat(String command)
Generic write operation followed by a read.
|
void |
laser(boolean laserstate)
Turns laser on/off
|
double |
read(int ikey)
Reads the distance from the Keyence head
|
double[] |
readAll()
Reads the distances from the Keyence heads
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setcycles(int cycles)
Sets the sampling cycle mode to be used for the displacement measurements
|
void |
setmeasmode(int ikey,
int mode)
Sets the sensing mode.
|
void |
setmindispunit(int dspu)
Sets the minimum display unit.
|
void |
setState(int istate) |
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, waitgetLast_readprotected MetrologyState.pwrstates kstate
protected boolean failedToInitialize
protected boolean isconnected
protected double[] lastRead
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 - Exceptionprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicechan - type - @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 KeyenceDeviceikey - org.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 KeyenceDevicecycles - org.lsst.ccs.drivers.commons.DriverException@Command(name="getmeasmode",
description="get mode")
public int getmeasmode(@Argument(name="ikey",description="keyence head number")
int ikey)
throws org.lsst.ccs.drivers.commons.DriverException
getmeasmode in interface KeyenceDeviceikey - org.lsst.ccs.drivers.commons.DriverException@Command(name="setmeasmode",
description="set mode")
public void setmeasmode(@Argument(name="ikey",description="keyence head number")
int ikey,
@Argument(name="mode",description="mode number")
int mode)
throws org.lsst.ccs.drivers.commons.DriverException
setmeasmode in interface KeyenceDeviceikey - mode - 0: Normal,
1: Translucent object,
2: Transparent object,
3: Transparent object 2,
4: Semi opaqueorg.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 KeyenceDevicedspu - org.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
getError in interface KeyenceDeviceorg.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 KeyenceDevicelaserstate - org.lsst.ccs.drivers.commons.DriverException@Command(description="generic write",
level=10)
public String keyenceChat(@Argument(name="command",description="The raw Keyence command")
String command)
throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getLastRead()
getLastRead 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 © 2019 LSST. All rights reserved.