public class CanOpenDevice extends org.lsst.ccs.framework.Module implements PieceOfHardware
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
| 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, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, 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 PieceOfHardwareException@Command(type=ACTION,
level=3,
description="Write on the Can Open Device with a command wsdo.")
public String writeSDO(String index,
String subindex,
String length,
String newValue)
throws SDORequestException
SDORequestException@Command(type=QUERY,
level=3,
description="Reads the Can Open Device with a command rsdo.")
public String readSDO(String index,
String subindex)
throws SDORequestException,
ShortResponseToSDORequestException
public String readErrorRegister() throws SDORequestException, ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic String displayErrorRegister() throws SDORequestException, ShortResponseToSDORequestException
public String[] readErrorHistory() throws SDORequestException, ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic String displayErrorHistory() throws SDORequestException, ShortResponseToSDORequestException
public int readNumberOfErrors()
throws SDORequestException,
ShortResponseToSDORequestException
Copyright © 2014 LSST. All rights reserved.