public interface EPOSController extends PieceOfHardware
| Modifier and Type | Method and Description |
|---|---|
void |
activateBrake()
Activate brake for controller who manages a brake.
|
String |
changeMode(EPOSEnumerations.EposMode newMode)
This methods changes the mode to the new mode given as an argument.
|
void |
checkFault()
Check if the controller is in fault.
|
void |
checkParameters(EPOSEnumerations.EposMode aMode)
Check parameters for a given EPOS mode : compare the values stored in the Configuration System and
the values stored in controller CPU.
|
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()
Throw an Exception if the target was not reached in the previous action.
|
void |
defineAbsolutePosition(int position)
Defines the actual position as the absolute position which value is given
as an argument.
|
void |
disable()
Disable controller.
|
String |
displayErrorHistory()
Return a printed list of errors that occured on this controller.
|
String |
enable()
enable the controller.
|
String[] |
getErrorHistory() |
String |
getErrorRegister() |
int |
getMaxCurrent()
Return the max value of current which can be sent to this controller.
|
int |
getMaxPosition()
Return the max position for the object moved by motor which is controlled by this controller.
|
int |
getMaxSpeed()
Return the min value of speed for the motor controlled by this controller.
|
int |
getMinCurrent()
Return the min value of current which can be sent to this controller.
|
int |
getMinPosition()
Return the min position for the object moved by motor which is controlled by this controller.
|
EPOSEnumerations.EposMode |
getMode()
Return the EPOS mode stored in field mode.
|
Map<String,Integer> |
getParamsForCurrent()
Return the list of parameters in Current mode that are in Configuration System for this controller.
|
Map<String,Integer> |
getParamsForHoming()
Return the list of parameters in Homing mode that are in Configuration System for this controller.
|
Map<String,Integer> |
getParamsForProfilePosition()
Return the list of parameters in Homing mode that are in Configuration System for this controller.
|
boolean |
isEnabled()
Return true if the controller is enabled and so ready to receive commands.
|
boolean |
isEnabledToPublish()
For GUI.
|
boolean |
isInError()
Return true if controller is enabled.
|
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)
Return true if the target position has been reached.
|
boolean |
isTurnedOff()
Return true if the controller is turned OFF;
|
String |
off()
Turn off controller.
|
void |
quickStop()
Send a quickStop command to the controller.
|
int |
readCurrent()
Read actual current on the controller CPU.
|
EPOSEnumerations.EposMode |
readMode()
read the EPOS mode on the controller CPU.
|
int |
readNumberOfErrors()
Return the number of errors that occured on this controller.
|
String |
readParameters(EPOSEnumerations.EposMode mode)
Read all the value of parameters for a given EPOS mode and return a printed list of this values.
|
int |
readPosition()
Read actual position on the controller CPU.
|
int |
readProfileVelocity()
Read ProfileVelocity on the controller CPU.
|
int |
readSSIPosition()
Read the SSS position on the controller CPU.
|
void |
releaseBrake()
Release brake for controller who manages a brake.
|
String |
shutdown()
Shutdown the controller.
|
void |
switchOnEnableOperation()
SwitchOn and enable controller.
|
void |
writeControlWord(String f)
Write controlWord to the controller.
|
void |
writeCurrent(int aValue)
In current mode this methods send a current to the motor.
|
String |
writeParameterInHexa(EPOSEnumerations.Parameter parameter,
String string)
Write on the CPU of the controller a value given in hexadecimal format for a parameter.
|
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.
|
getNodeID, getSerialNB, initializeAndCheckHardware, isBooted, isInitialized, printState, setBootedboolean isTurnedOff()
String off()
FcsHardwareExceptionint getMaxCurrent()
FcsHardwareExceptionint getMinCurrent()
FcsHardwareExceptionint getMaxSpeed()
FcsHardwareExceptionint getMaxPosition()
FcsHardwareExceptionint getMinPosition()
FcsHardwareExceptionboolean isParametersOK()
String changeMode(EPOSEnumerations.EposMode newMode)
newMode - SDORequestException@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)
position - SDORequestExceptionint readNumberOfErrors()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionString displayErrorHistory()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionvoid checkFault()
void writeParameters(EPOSEnumerations.EposMode mode)
mode - SDORequestException@Command(type=ACTION,
level=1,
description="In PROFILE_POSITION mode this methods set the target position.")
void writeTargetPosition(int aValue)
aValue - UNIT=mA / FORMAT=decimal the value of the current to be
sent.SDORequestExceptionvoid writeParameters(Map<String,Integer> paramMap)
paramMap - SDORequestException@Command(type=ACTION,
level=1,
description="In current mode this methods send a current to the motor.")
void writeCurrent(int aValue)
throws EPOSConfigurationException
aValue - UNIT=mA / FORMAT=decimal the value of the current to be
sent.EPOSConfigurationExceptionSDORequestException@Command(type=QUERY,
level=1,
description="Return true if the target position has been reached.")
boolean isTargetPositionReached(int position)
position - SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionint readPosition()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionint readSSIPosition()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionint readCurrent()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionString readParameters(EPOSEnumerations.EposMode mode)
mode - FcsHardwareExceptionint readProfileVelocity()
FcsHardwareExceptionString enable()
FcsHardwareExceptionboolean isEnabled()
FcsHardwareExceptionEPOSEnumerations.EposMode readMode()
FcsHardwareExceptionvoid quickStop()
FcsHardwareExceptionvoid checkParameters(String modeInString) throws org.lsst.ccs.HardwareException
modeInString - org.lsst.ccs.HardwareExceptionSDORequestExceptionShortResponseToSDORequestExceptionvoid checkParameters(EPOSEnumerations.EposMode aMode) throws org.lsst.ccs.HardwareException
aMode - org.lsst.ccs.HardwareExceptionFcsHardwareExceptionvoid writeControlWord(String f)
f - FcsHardwareExceptionString shutdown()
FcsHardwareExceptionboolean checkTargetReached()
FcsHardwareExceptionvoid activateBrake()
FcsHardwareExceptionvoid releaseBrake()
FcsHardwareExceptionvoid switchOnEnableOperation()
FcsHardwareExceptionMap<String,Integer> getParamsForCurrent()
Map<String,Integer> getParamsForHoming()
Map<String,Integer> getParamsForProfilePosition()
EPOSEnumerations.EposMode getMode()
boolean isEnabledToPublish()
boolean isInError()
String getErrorRegister()
String[] getErrorHistory()
String writeParameterInHexa(EPOSEnumerations.Parameter parameter, String string)
parameter - string - HEXADECIMAL format of the new value.FcsHardwareExceptionvoid disable()
FcsHardwareExceptionCopyright © 2016 LSST. All rights reserved.