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 |
booted, bridge, initialized, nodeID, serialNB, tcpProxy| 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, writeSDOgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, 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, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected 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,
FcsHardwareException
modeInString - SDORequestExceptionFcsHardwareExceptionpublic String changeMode(CanOpenDigitaxVariator.DigitaxMode newMode) throws SDORequestException, FcsHardwareException
newMode - SDORequestExceptionFcsHardwareExceptionpublic String readMode() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic static String displayListParameters(String modeInString)
modeInString - public static String displayListParameters()
public int readTorque_actual_value()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
public String writeTorque(int value) throws SDORequestException, FcsHardwareException
public String readParameters(String modeInString) throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
modeInString - SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic String readParameters() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
public int readParameter(String parameterName) throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
parameterName - SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic int readParameter(CanOpenDigitaxVariator.Parameter param) throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
param - SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic 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, FcsHardwareException
SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void writeParameters(CanOpenDigitaxVariator.DigitaxMode mode) throws SDORequestException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
mode - SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void writeParameters(Map<String,Integer> paramMap) throws SDORequestException, FcsHardwareException
paramMap - SDORequestExceptionFcsHardwareException@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,
FcsHardwareException
parameterName - the name of the parametervalue - in decimalSDORequestExceptionFcsHardwareExceptionpublic String writeParameter(CanOpenDigitaxVariator.Parameter param, int value) throws SDORequestException, FcsHardwareException
public String initializeAndCheckHardware() throws FcsHardwareException
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDeviceFcsHardwareExceptionpublic boolean isEnable()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
public void faultReset()
throws SDORequestException,
FcsHardwareException
public String enable() throws SDORequestException, FcsHardwareException
SDORequestExceptionFcsHardwareExceptionpublic String shutdown() throws SDORequestException, FcsHardwareException
public void switchOnEnableOperation()
throws SDORequestException,
FcsHardwareException
public Object saveParameters() throws SDORequestException, FcsHardwareException
saveParameters in class CanOpenDeviceSDORequestExceptionFcsHardwareExceptionpublic Object restoreParameters() throws SDORequestException, FcsHardwareException
public void writeControlWord(String value) throws SDORequestException, FcsHardwareException
value - in hexaSDORequestExceptionFcsHardwareExceptionpublic String readControlWord() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic String readStatusWord() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic void quickStop()
throws SDORequestException,
FcsHardwareException
public static void main(String[] args)
args - the command line argumentsCopyright © 2016 LSST. All rights reserved.