public class SimuClampActuatorModule extends org.lsst.ccs.framework.Module implements EPOSController
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
boolean |
on |
int |
readCurrentValue |
int |
sentCurrentMaxValue |
int |
sentCurrentMinValue |
int |
sentCurrentValue |
| Constructor and Description |
|---|
SimuClampActuatorModule() |
| Modifier and Type | Method and Description |
|---|---|
String |
changeMode(CanOpenEPOS.EposMode newMode)
This methods changes the mode to the new mode given as an argument.
|
boolean |
checkMotorParameters()
This methods read the parameters of the motor stored in the actuator
(hardware configuration)and compare with the configuration stored in the
Configuration Data Base (software configuration).
|
void |
defineAbsolutePosition(int position)
Defines the actual position as the absolute position which value is given as an argument.
|
String |
enable() |
int |
getReadCurrentValue() |
int |
getSentCurrentMaxValue() |
int |
getSentCurrentMinValue() |
int |
getSentCurrentValue() |
StatusDataPublishedByClampActuator |
getStatusData() |
void |
initModule() |
boolean |
isOff() |
boolean |
isOn() |
boolean |
isTargetPositionReached(int position) |
String |
maintainUnclamped() |
String |
off() |
String |
on() |
void |
publishActuatorData()
Deprecated.
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
int |
readCurrent() |
String |
readMode() |
int |
readPosition() |
void |
setOn(boolean on) |
void |
tick() |
String |
toString() |
void |
writeCurrent(int aValue)
In current mode this methods send a current to the motor.
|
void |
writeParameters(CanOpenEPOS.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.
|
alias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected static final org.lsst.ccs.utilities.logging.Logger fcslog
public boolean on
public int readCurrentValue
public int sentCurrentValue
public int sentCurrentMinValue
public int sentCurrentMaxValue
public int getReadCurrentValue()
getReadCurrentValue in interface Actuatorpublic int getSentCurrentMinValue()
getSentCurrentMinValue in interface Actuatorpublic int getSentCurrentMaxValue()
getSentCurrentMaxValue in interface Actuatorpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic String on() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
public String off() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
public int getSentCurrentValue()
getSentCurrentValue in interface Actuatorpublic void tick()
tick in class org.lsst.ccs.framework.Modulepublic String maintainUnclamped() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic StatusDataPublishedByClampActuator getStatusData()
@Deprecated public void publishActuatorData()
public void publishData()
public void setOn(boolean on)
setOn in interface EPOSControllerpublic String changeMode(CanOpenEPOS.EposMode newMode) throws SDORequestException
EPOSControllerchangeMode in interface EPOSControllerSDORequestExceptionpublic boolean checkMotorParameters()
throws EPOSConfigurationException,
SDORequestException,
ShortResponseToSDORequestException
EPOSControllercheckMotorParameters in interface EPOSControllerEPOSConfigurationExceptionSDORequestExceptionShortResponseToSDORequestExceptionpublic void defineAbsolutePosition(int position)
throws SDORequestException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
EPOSControllerdefineAbsolutePosition in interface EPOSControllerSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void writeParameters(CanOpenEPOS.EposMode mode) throws SDORequestException, org.lsst.ccs.bus.ErrorInCommandExecutionException
EPOSControllerwriteParameters in interface EPOSControllerSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic void writeTargetPosition(int aValue)
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
EPOSControllerwriteTargetPosition in interface EPOSControlleraValue - UNIT=mA / FORMAT=decimal the value of the current to be sent.org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic void writeParameters(Map<String,Integer> paramMap) throws SDORequestException
EPOSControllerwriteParameters in interface EPOSControllerSDORequestExceptionpublic void writeCurrent(int aValue)
throws org.lsst.ccs.bus.BadCommandException,
EPOSConfigurationException,
SDORequestException
EPOSControllerwriteCurrent in interface EPOSControlleraValue - UNIT=mA / FORMAT=decimal the value of the current to be sent.org.lsst.ccs.bus.BadCommandExceptionEPOSConfigurationExceptionSDORequestExceptionpublic boolean isTargetPositionReached(int position)
throws SDORequestException
isTargetPositionReached in interface EPOSControllerSDORequestExceptionpublic int readPosition()
throws SDORequestException,
ShortResponseToSDORequestException
readPosition in interface EPOSControllerSDORequestExceptionShortResponseToSDORequestExceptionpublic int readCurrent()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
readCurrent in interface EPOSControllerorg.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic String enable() throws SDORequestException
enable in interface EPOSControllerSDORequestExceptionpublic String readMode() throws SDORequestException
readMode in interface EPOSControllerSDORequestExceptionCopyright © 2014 LSST. All rights reserved.