public interface EPOSController extends PieceOfHardware
| Modifier and Type | Method and Description |
|---|---|
void |
activateBrake() |
String |
changeMode(EPOSEnumerations.EposMode newMode)
This methods changes the mode to the new mode given as an argument.
|
void |
checkFault() |
void |
checkParameters(EPOSEnumerations.EposMode aMode) |
void |
checkParameters(String modeInString)
For every parameter to be defined for this mode this method compares the
values in configuration with the value stored in controller CPU and
throws a HardwareException if these values are not equal.
|
boolean |
checkTargetReached() |
void |
defineAbsolutePosition(int position)
Defines the actual position as the absolute position which value is given
as an argument.
|
void |
disable() |
String |
displayErrorHistory() |
String |
enable() |
String[] |
getErrorHistory() |
String |
getErrorRegister() |
int |
getMaxCurrent() |
int |
getMaxPosition() |
int |
getMaxSpeed() |
int |
getMinCurrent() |
int |
getMinPosition() |
String |
getModeInString() |
Map<String,Integer> |
getParamsForCurrent() |
Map<String,Integer> |
getParamsForHoming() |
Map<String,Integer> |
getParamsForProfilePosition() |
boolean |
isEnabled() |
boolean |
isEnabledToPublish() |
boolean |
isInError() |
boolean |
isParametersOK()
This methods returns true if the values of parameters stored in CPU are
the same than those stored in the configuration system.
|
boolean |
isTargetPositionReached(int position) |
boolean |
isTurnedOff() |
String |
off() |
void |
quickStop() |
int |
readCurrent() |
EPOSEnumerations.EposMode |
readMode() |
int |
readNumberOfErrors() |
String |
readParameters(EPOSEnumerations.EposMode mode) |
int |
readPosition() |
int |
readProfileVelocity() |
int |
readSSIPosition() |
void |
releaseBrake() |
String |
shutdown() |
void |
switchOnEnableOperation() |
void |
writeControlWord(String f) |
void |
writeCurrent(int aValue)
In current mode this methods send a current to the motor.
|
String |
writeParameterInHexa(EPOSEnumerations.Parameter parameter,
String string) |
void |
writeParameters(EPOSEnumerations.EposMode 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 EPOS a map of parameters.
|
void |
writeTargetPosition(int aValue)
In PROFILE_POSITION mode this methods set the target position.
|
getName, getNodeID, getSerialNB, initializeAndCheckHardware, isBooted, isInitialized, setBootedboolean isTurnedOff()
String off() throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionint getMaxCurrent()
throws FcsHardwareException
FcsHardwareExceptionint getMinCurrent()
throws FcsHardwareException
FcsHardwareExceptionint getMaxSpeed()
throws FcsHardwareException
FcsHardwareExceptionint getMaxPosition()
throws FcsHardwareException
FcsHardwareExceptionint getMinPosition()
throws FcsHardwareException
FcsHardwareExceptionboolean isParametersOK()
String changeMode(EPOSEnumerations.EposMode newMode) throws SDORequestException, FcsHardwareException
newMode - SDORequestExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Defines the actual position as the absolute position which value is given as an argument.")
void defineAbsolutePosition(int position)
throws SDORequestException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
org.lsst.ccs.messaging.BadCommandException,
FcsHardwareException
position - SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionorg.lsst.ccs.messaging.BadCommandExceptionFcsHardwareExceptionint readNumberOfErrors()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
String displayErrorHistory() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
void checkFault()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
void writeParameters(EPOSEnumerations.EposMode mode) throws SDORequestException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
mode - SDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="In PROFILE_POSITION mode this methods set the target position.")
void writeTargetPosition(int aValue)
throws org.lsst.ccs.messaging.BadCommandException,
SDORequestException,
FcsHardwareException
aValue - UNIT=mA / FORMAT=decimal the value of the current to be
sent.org.lsst.ccs.messaging.BadCommandExceptionSDORequestExceptionFcsHardwareExceptionvoid writeParameters(Map<String,Integer> paramMap) throws SDORequestException, FcsHardwareException
paramMap - SDORequestExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="In current mode this methods send a current to the motor.")
void writeCurrent(int aValue)
throws org.lsst.ccs.messaging.BadCommandException,
EPOSConfigurationException,
SDORequestException,
FcsHardwareException
aValue - UNIT=mA / FORMAT=decimal the value of the current to be
sent.org.lsst.ccs.messaging.BadCommandExceptionEPOSConfigurationExceptionSDORequestExceptionFcsHardwareException@Command(type=QUERY,
level=1,
description="Return true if the target position has been reached.")
boolean isTargetPositionReached(int position)
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
int readPosition()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
int readSSIPosition()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
int readCurrent()
throws org.lsst.ccs.messaging.BadCommandException,
SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
org.lsst.ccs.messaging.BadCommandExceptionSDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionString readParameters(EPOSEnumerations.EposMode mode) throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
int readProfileVelocity()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
String enable() throws SDORequestException, FcsHardwareException
boolean isEnabled()
throws SDORequestException,
FcsHardwareException
EPOSEnumerations.EposMode readMode() throws SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
void quickStop()
throws SDORequestException,
FcsHardwareException
void checkParameters(String modeInString) throws org.lsst.ccs.HardwareException, FcsHardwareException, SDORequestException, ShortResponseToSDORequestException
modeInString - org.lsst.ccs.HardwareExceptionSDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionvoid checkParameters(EPOSEnumerations.EposMode aMode) throws org.lsst.ccs.HardwareException, FcsHardwareException, SDORequestException, ShortResponseToSDORequestException, FcsHardwareException
org.lsst.ccs.HardwareExceptionFcsHardwareExceptionSDORequestExceptionShortResponseToSDORequestExceptionvoid writeControlWord(String f) throws SDORequestException, FcsHardwareException
String shutdown() throws SDORequestException, FcsHardwareException
boolean checkTargetReached()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
void activateBrake()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
void releaseBrake()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
void switchOnEnableOperation()
throws SDORequestException,
FcsHardwareException
boolean isEnabledToPublish()
boolean isInError()
String getErrorRegister()
String[] getErrorHistory()
String getModeInString()
String writeParameterInHexa(EPOSEnumerations.Parameter parameter, String string) throws SDORequestException, FcsHardwareException
void disable()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
Copyright © 2016 LSST. All rights reserved.