public class CanOpenDevice extends org.lsst.ccs.framework.Module implements PieceOfHardware
| Constructor and Description |
|---|
CanOpenDevice(String aName,
int aTickMillis,
String nodeID,
String serialNB) |
| Modifier and Type | Method and Description |
|---|---|
String |
displayErrorHistory() |
String |
displayErrorRegister() |
String |
getNodeID() |
String |
getSerialNB() |
String |
initializeHardware()
This methods has to be overridden if there is some initialization to do for the device.
|
void |
initModule() |
boolean |
isInitalized() |
boolean |
isNodeIdBootedAndOK() |
String[] |
readErrorHistory()
The error history holds errors that have occurred on the device and
have been signalled via the emergency object.
|
String |
readErrorRegister()
At index 1001 there deviceErrorFile an error register for the device.
|
int |
readNumberOfErrors()
Extract from the Maxon Motor firmware specification :
Contains the number of actual errors that are recorded in the array starting
at subindex 1.
|
String |
readSDO(String index,
String subindex) |
String |
toString() |
String |
writeSDO(String index,
String subindex,
String length,
String newValue) |
alias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic String getSerialNB()
getSerialNB in interface PieceOfHardwarepublic String getNodeID()
getNodeID in interface PieceOfHardwarepublic boolean isNodeIdBootedAndOK()
isNodeIdBootedAndOK in interface PieceOfHardwarepublic boolean isInitalized()
isInitalized in interface PieceOfHardwarepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic String initializeHardware() throws Exception
initializeHardware in interface PieceOfHardwareExceptionpublic String writeSDO(String index, String subindex, String length, String newValue) throws SDORequestException
SDORequestExceptionpublic String readSDO(String index, String subindex) throws SDORequestException
SDORequestExceptionpublic String readErrorRegister() throws SDORequestException
SDORequestExceptionpublic String displayErrorRegister() throws SDORequestException
SDORequestExceptionpublic String[] readErrorHistory() throws SDORequestException
SDORequestExceptionpublic String displayErrorHistory() throws SDORequestException
SDORequestExceptionpublic int readNumberOfErrors()
throws SDORequestException
SDORequestExceptionCopyright © 2014 LSST. All Rights Reserved.