
public class CanOpenDigitaxVariator extends CanOpenDevice
| Modifier and Type | Class and Description |
|---|---|
static class |
CanOpenDigitaxVariator.DigitaxMode
Mode for the variator used in the scale1 prototype.
|
static class |
CanOpenDigitaxVariator.Parameter
Here are the parameters that we can set in an Digitax ST variator.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabling |
protected CanOpenDigitaxVariator.DigitaxMode |
mode |
fcslog| Constructor and Description |
|---|
CanOpenDigitaxVariator(String aName,
int aTickMillis,
String nodeID,
String serialNB,
Map<String,Integer> paramsForVelocity,
Map<String,Integer> paramsForTorque_Profile) |
| Modifier and Type | Method and Description |
|---|---|
String |
changeMode(CanOpenDigitaxVariator.DigitaxMode newMode)
This methods changes the mode to the new mode given as an argument.
|
String |
changeMode(String modeInString)
Changes the mode to the new mode given as a String argument.
|
static String |
displayListParameters()
Displays the list of parameters.
|
static String |
displayListParameters(String modeInString)
Displays the list of parameters that we have to define for a given mode.
|
String |
enable()
This methods enable the actuator : i.e.
|
void |
faultReset() |
String |
initializeAndCheckHardware()
This methods has to be overridden if there is some initialization to do for the device.
|
void |
initModule() |
boolean |
isEnable() |
static void |
main(String[] args) |
String |
printParameters(Map<String,Integer> paramMap)
Print the parameters map given as argument.
|
String |
printParameters(String modeInString)
Print the configured parameters for this Digitax for a mode name given in argument.
|
void |
quickStop() |
String |
readControlWord()
Read the control world (index=6040, subindex=0,size=2)
|
String |
readMode()
Reads the Digitax mode in the CPU of the Digitax device, updates the field mode and returns
the mode as a String.
|
int |
readParameter(CanOpenDigitaxVariator.Parameter param)
Reads in the Digitax Variator CPU the value of the Parameter.
|
int |
readParameter(String parameterName)
Reads in the Digitax Variator CPU the value of the Parameter which parameter
name is given as argument.
|
String |
readParameters() |
String |
readParameters(String modeInString)
This methods reads in the CPU of the Digitax Variator the values of the parameters for a given mode.
|
String |
readStatusWord()
Read the status world (index=6041, subindex=0,size=2)
|
int |
readTorque_actual_value() |
Object |
restoreParameters() |
Object |
saveParameters()
This method save the parameters in the actuator memory.
|
String |
shutdown() |
void |
switchOnEnableOperation() |
void |
writeControlWord(String value)
Write a value in hexa in the control world (index=6040, subindex=0,size=2)
|
String |
writeParameter(CanOpenDigitaxVariator.Parameter param,
int value) |
String |
writeParameter(String parameterName,
int value)
This method writes a parameter in the CPU of the Digitax Variator.
|
void |
writeParameters(CanOpenDigitaxVariator.DigitaxMode mode)
This methods writes in the CPU of the EPOS devis the values of the parameters set for the mode.
|
void |
writeParameters(Map<String,Integer> paramMap)
Write to the CPU of the Digitax Variator a map of parameters.
|
void |
writeParameters(String modeInString) |
String |
writeTorque(int value) |
displayErrorHistory, displayErrorRegister, getErrorHistoryNames, getNodeID, getSerialNB, isBooted, isInitialized, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, setBooted, toString, writeSDOalias, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNameprotected CanOpenDigitaxVariator.DigitaxMode mode
protected volatile boolean enabling
public void initModule()
initModule in class CanOpenDevice@Command(type=ACTION, level=3, description="Change Digitax variator mode .") public String changeMode(String modeInString) throws SDORequestException
modeInString - SDORequestExceptionpublic String changeMode(CanOpenDigitaxVariator.DigitaxMode newMode) throws SDORequestException
newMode - SDORequestExceptionpublic String readMode() throws SDORequestException, ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic static String displayListParameters(String modeInString)
modeInString - public static String displayListParameters()
public int readTorque_actual_value()
throws SDORequestException,
ShortResponseToSDORequestException
public String writeTorque(int value) throws SDORequestException
SDORequestExceptionpublic String readParameters(String modeInString) throws SDORequestException, ShortResponseToSDORequestException
modeInString - SDORequestExceptionShortResponseToSDORequestExceptionpublic String readParameters() throws SDORequestException, ShortResponseToSDORequestException
public int readParameter(String parameterName) throws SDORequestException, ShortResponseToSDORequestException
parameterName - SDORequestExceptionShortResponseToSDORequestExceptionpublic int readParameter(CanOpenDigitaxVariator.Parameter param) throws SDORequestException, ShortResponseToSDORequestException
param - SDORequestExceptionShortResponseToSDORequestExceptionpublic String printParameters(String modeInString)
modeInString - public String printParameters(Map<String,Integer> paramMap)
paramMap - public void writeParameters(String modeInString) throws SDORequestException, org.lsst.ccs.messaging.ErrorInCommandExecutionException
SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionpublic void writeParameters(CanOpenDigitaxVariator.DigitaxMode mode) throws SDORequestException, org.lsst.ccs.messaging.ErrorInCommandExecutionException
mode - SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionpublic void writeParameters(Map<String,Integer> paramMap) throws SDORequestException
paramMap - SDORequestException@Command(type=ACTION, level=3, description="Set Digitax Variator parameter with the value given as argument.") public String writeParameter(String parameterName, int value) throws SDORequestException
parameterName - the name of the parametervalue - in decimalSDORequestExceptionpublic String writeParameter(CanOpenDigitaxVariator.Parameter param, int value) throws SDORequestException
SDORequestExceptionpublic String initializeAndCheckHardware() throws FcsHardwareException
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDeviceFcsHardwareExceptionpublic boolean isEnable()
throws SDORequestException,
ShortResponseToSDORequestException
public void faultReset()
throws SDORequestException
SDORequestExceptionpublic String enable() throws SDORequestException
SDORequestExceptionpublic String shutdown() throws SDORequestException
SDORequestExceptionpublic void switchOnEnableOperation()
throws SDORequestException
SDORequestExceptionpublic Object saveParameters() throws SDORequestException
saveParameters in class CanOpenDeviceSDORequestExceptionpublic Object restoreParameters() throws SDORequestException
SDORequestExceptionpublic void writeControlWord(String value) throws SDORequestException
value - in hexaSDORequestExceptionpublic String readControlWord() throws SDORequestException, ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic String readStatusWord() throws SDORequestException, ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic void quickStop()
throws SDORequestException
SDORequestExceptionpublic static void main(String[] args)
args - the command line argumentsCopyright © 2015 LSST. All rights reserved.