
public interface EPOSController extends PieceOfHardware
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
checkTargetReached()
check if target is reached in HOMING or PROFILE_POSITION commands and
throws an Exception if not.
|
default StatusDataPublishedByEPOSController |
createStatusDataPublishedByEPOSController()
Creates an object to be published on the STATUS bus by an EPOSController.
|
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.
|
void |
enable()
enable the controller.
|
default void |
enableAndWriteAbsolutePosition(int pos) |
void |
enableAndWriteCurrent(int aValue) |
default void |
enableAndWriteRelativePosition(int pos) |
void |
faultReset() |
String[] |
getErrorHistory() |
String |
getErrorRegister() |
EPOSEnumerations.EposMode |
getMode()
Return the EPOS mode stored in field mode.
|
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 |
isInMode(EPOSEnumerations.EposMode aMode)
return true if this controller is in the mode given as argument.
|
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 |
isTargetReached()
Throw an Exception if the target was not reached in the previous action.
|
boolean |
isTurnedOff()
Return true if the controller is turned OFF;
|
void |
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.
|
String |
readStatusWord() |
void |
shutdownEPOS()
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.
|
void |
writeParameter(EPOSEnumerations.Parameter parameter,
int position) |
void |
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.
|
checkBooted, checkInitialized, createStatusDataPublishedByHardware, getNodeID, getSerialNB, initializeAndCheckHardware, isBooted, isInitialized, printState, publishDataboolean isTurnedOff()
void off()
FcsHardwareExceptionboolean isParametersOK()
void 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 faultReset()
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=ACTION, level=1, description="Enable, set mode CURRENT and write current.") void enableAndWriteCurrent(int aValue)
int readPosition()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionint readSSIPosition()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionint readCurrent()
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionString readParameters(EPOSEnumerations.EposMode mode)
mode - FcsHardwareExceptionint readProfileVelocity()
FcsHardwareExceptionvoid enable()
FcsHardwareExceptionboolean isEnabled()
FcsHardwareExceptionEPOSEnumerations.EposMode readMode()
FcsHardwareExceptionvoid quickStop()
FcsHardwareExceptionvoid checkParameters(EPOSEnumerations.EposMode aMode) throws org.lsst.ccs.HardwareException
aMode - org.lsst.ccs.HardwareExceptionFcsHardwareExceptionvoid writeControlWord(String f)
f - FcsHardwareExceptionvoid shutdownEPOS()
FcsHardwareExceptionboolean isTargetReached()
FcsHardwareExceptionvoid checkTargetReached()
void switchOnEnableOperation()
FcsHardwareExceptionEPOSEnumerations.EposMode getMode()
boolean isEnabledToPublish()
boolean isInError()
String getErrorRegister()
String[] getErrorHistory()
void writeParameterInHexa(EPOSEnumerations.Parameter parameter, String string)
parameter - string - HEXADECIMAL format of the new value.FcsHardwareExceptionvoid disable()
FcsHardwareException@Command(type=ACTION, level=3, description="Enable controller and go to absolute position. Doesn\'t check condition. DANGER !!!! ") default void enableAndWriteAbsolutePosition(int pos)
@Command(type=ACTION, level=3, description="Enable controller and go to relative position. Doesn\'t check condition. DANGER !!!! ") default void enableAndWriteRelativePosition(int pos)
default StatusDataPublishedByEPOSController createStatusDataPublishedByEPOSController()
void writeParameter(EPOSEnumerations.Parameter parameter, int position)
String readStatusWord()
boolean isInMode(EPOSEnumerations.EposMode aMode)
aMode - Copyright © 2017 LSST. All rights reserved.