|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.ClampActuatorModule
org.lsst.ccs.subsystems.fcs.drivers.CanOpenClampActuatorModule
public class CanOpenClampActuatorModule
This deviceErrorFile a model for the clamp actuator in the Single Filter Test. The actuator deviceErrorFile used to unlock or release a clamp. To unlock a clamp, the actuator must be ON and to release the clamp it has to be OFF. There deviceErrorFile 2 clamps actuators on the carousel : one for side X-, one for side X+ For the Single Filter Test the actuator will be Maxon Motor EPOS2 24/5. (cf EPOS2_Firmware_Specification_En.pdf) There deviceErrorFile many operation modes for this actuators. For the Single Filter Test, we will use VELOCITY mode or CURRENT mode.
| Nested Class Summary | |
|---|---|
static class |
CanOpenClampActuatorModule.ActuatorMode
|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable |
|---|
org.lsst.ccs.framework.Configurable.Environment |
| Field Summary | |
|---|---|
protected boolean |
enabling
|
| Fields inherited from class org.lsst.ccs.subsystems.fcs.ClampActuatorModule |
|---|
on, readValue, sentCurrentMaxValue, sentCurrentMinValue, sentValue |
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
CanOpenClampActuatorModule()
|
|
CanOpenClampActuatorModule(String nodeID,
int inputID,
String serial,
Motor motor)
|
|
| Method Summary | |
|---|---|
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). |
String |
displayErrorHistory()
|
String |
displayErrorRegister()
|
String |
displayMotorParameters()
|
String |
enable()
This methods enable the actuator : i.e. |
void |
faultReset()
|
String |
getMode()
|
int |
getMotor_continuousCurrentLimit()
|
int |
getMotor_maxSpeedInCurrentMode()
|
String |
getMotor_mode()
|
int |
getMotor_outputCurrentLimit()
|
int |
getMotor_polePairNumber()
|
int |
getMotor_thermalTimeConstantWinding()
|
int |
getMotor_type()
|
Motor |
getMotor()
|
String |
getNodeID()
|
int |
getPositionSensorType()
|
String |
getSerialNB()
|
String |
initializeHardware()
This methods write some configuration data on the hardware CPU. |
void |
initModule()
|
boolean |
isEnable()
|
boolean |
isInitalized()
|
boolean |
isNodeIdBootedAndOK()
|
String |
maintainUnclamped()
|
String |
off()
This method set to zero the current value and stops the motor motion. |
String |
on()
This methods enables the actuator and puts the motor on in sending the appropriate current value to the actuator. |
void |
quickStop()
|
String |
readControlWord()
Read the control world (index=6040, subindex=0,size=2) |
int |
readCurrent()
In Current Mode this methods returns the current actualy received by the motor. |
String[] |
readErrorHistory()
The error history holds errors that have occurred on the device and have been signalled via the emergency object. |
String |
readErrorRegister()
At index 1001 there deviceErrorFile an error register for the device. |
int |
readMotorData(String subindex)
This methods reads the parameters of the motor stored in the actuator. |
int |
readMotorType()
This command read the motor type on the actuator. |
int |
readNumberOfErrors()
Extract from the Maxon Motor firmware specification : Contains the number of actual errors that are recorded in the array starting at subindex 1. |
int |
readPositionSensorType()
This command read the position sensor type on the actuator. |
String |
readSDO(String index,
String subindex)
|
String |
readStatusword()
Read the status world (index=6041, subindex=0,size=2) |
int |
readVelocity()
|
String |
release()
This is the user name for the command off. |
Object |
restoreParameters()
|
Object |
saveParameters()
This method save the parameters in the actuator memory. |
void |
setMaxiAcceleration(int acceleration)
|
void |
setMaxiVelocity(int velocity)
|
void |
setMode(String modeInString)
|
void |
setMotor(Motor motor)
|
void |
setNodeID(String nodeID)
|
void |
setSerialNB(String serialNB)
|
void |
setVelocity()
|
String |
shutdown()
|
void |
stopCurrent()
In current mode this methods set to zero the value of the current sent to the motor. |
void |
stopVelocity()
|
void |
switchOnEnableOperation()
|
String |
toString()
|
String |
unclamp()
This is the user name of the command ON in single filter test. |
void |
updateReadValue()
|
void |
writeControlWord(String value)
Write a value in hexa in the control world (index=6040, subindex=0,size=2) |
void |
writeCurrent(int aValue)
In current mode this methods send a current to the motor. |
void |
writeMaxSpeed(int value)
|
protected void |
writeMotorData(String subindex,
String sizeInHexa,
int value)
This method writes the parameters for the motor on the actuator. |
void |
writeMotorParameters()
Write the values of the motor fields in the actuator memory. |
void |
writeMotorType(int value)
This command set the motor type on the actuator. |
void |
writePositionSensorType(int value)
|
String |
writeSDO(String index,
String subindex,
String length,
String newValue)
|
| Methods inherited from class org.lsst.ccs.subsystems.fcs.ClampActuatorModule |
|---|
getReadValue, getSentCurrentMaxValue, getSentCurrentMinValue, getSentValue, getStatusData, isOff, isOn, setSentCurrentMaxValue, setSentCurrentMinValue |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.PieceOfHardware |
|---|
getName |
| Field Detail |
|---|
protected volatile boolean enabling
| Constructor Detail |
|---|
public CanOpenClampActuatorModule()
public CanOpenClampActuatorModule(String nodeID,
int inputID,
String serial,
Motor motor)
| Method Detail |
|---|
public String getNodeID()
getNodeID in interface PieceOfHardwaregetNodeID in class ClampActuatorModulepublic void setNodeID(String nodeID)
receivedNodeID - the receivedNodeID to setpublic String getSerialNB()
getSerialNB in interface PieceOfHardwaregetSerialNB in class ClampActuatorModulepublic void setSerialNB(String serialNB)
serialNB - the serialNB to setpublic Motor getMotor()
public void setMotor(Motor motor)
motor - the motor to setpublic String getMode()
public void setMode(String modeInString)
mode - the mode to setpublic boolean isNodeIdBootedAndOK()
isNodeIdBootedAndOK in interface PieceOfHardwarepublic boolean isInitalized()
isInitalized in interface PieceOfHardware
public void updateReadValue()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestError
org.lsst.ccs.bus.BadCommandException
SDORequestErrorpublic int getMotor_continuousCurrentLimit()
getMotor_continuousCurrentLimit in class ClampActuatorModulepublic int getMotor_maxSpeedInCurrentMode()
getMotor_maxSpeedInCurrentMode in class ClampActuatorModulepublic String getMotor_mode()
getMotor_mode in class ClampActuatorModulepublic int getMotor_outputCurrentLimit()
getMotor_outputCurrentLimit in class ClampActuatorModulepublic int getMotor_polePairNumber()
getMotor_polePairNumber in class ClampActuatorModulepublic int getMotor_thermalTimeConstantWinding()
getMotor_thermalTimeConstantWinding in class ClampActuatorModulepublic int getMotor_type()
getMotor_type in class ClampActuatorModulepublic int getPositionSensorType()
getPositionSensorType in class ClampActuatorModulepublic void initModule()
initModule in class org.lsst.ccs.framework.Module
public String initializeHardware()
throws Exception
PieceOfHardware
initializeHardware in interface PieceOfHardwareException
public boolean isEnable()
throws SDORequestError
SDORequestError
public void faultReset()
throws SDORequestError
SDORequestError
public String enable()
throws SDORequestError
SDORequestError
public String shutdown()
throws SDORequestError
SDORequestError
public void switchOnEnableOperation()
throws SDORequestError
SDORequestError
public Object saveParameters()
throws SDORequestError
SDORequestError
public Object restoreParameters()
throws SDORequestError
SDORequestError
public void writeControlWord(String value)
throws SDORequestError
value - in hexa
SDORequestError
public String readControlWord()
throws SDORequestError
SDORequestError
public String readStatusword()
throws SDORequestError
SDORequestError
public void quickStop()
throws SDORequestError
SDORequestError
public String unclamp()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String on()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
on in interface Actuatoron in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String maintainUnclamped()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
maintainUnclamped in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String release()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String off()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
off in interface Actuatoroff in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String readErrorRegister()
throws SDORequestError
SDORequestError
public String displayErrorRegister()
throws SDORequestError
SDORequestError
public String[] readErrorHistory()
throws SDORequestError
SDORequestError
public String displayErrorHistory()
throws SDORequestError
SDORequestError
public int readNumberOfErrors()
throws SDORequestError
SDORequestError
public void writeMotorParameters()
throws SDORequestError
SDORequestError
public void writeMotorType(int value)
throws SDORequestError
SDORequestError
public int readMotorType()
throws SDORequestError
SDORequestError
public int readPositionSensorType()
throws SDORequestError
SDORequestError
public void writePositionSensorType(int value)
throws SDORequestError
SDORequestError
public void writeMaxSpeed(int value)
throws SDORequestError
SDORequestError
protected void writeMotorData(String subindex,
String sizeInHexa,
int value)
throws SDORequestError
subindex - sizeInHexa - size of the parameter in Can Openvalue - FORMAT=int the value of the parameter in decimal format
SDORequestError
public int readMotorData(String subindex)
throws SDORequestError
subindex -
SDORequestError
public boolean checkMotorParameters()
throws ClampMotorConfigurationError,
SDORequestError
MismatchMotorConfigurationError
ClampMotorConfigurationError
SDORequestError
public String displayMotorParameters()
throws SDORequestError
SDORequestError
public void writeCurrent(int aValue)
throws org.lsst.ccs.bus.BadCommandException,
SDORequestError
aValue - UNIT=mA / FORMAT=decimal the value of the current to be sent.
org.lsst.ccs.bus.BadCommandException
SDORequestError
public int readCurrent()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestError
org.lsst.ccs.bus.BadCommandException
SDORequestError
public void stopCurrent()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestError
org.lsst.ccs.bus.BadCommandException
SDORequestErrorpublic void setMaxiVelocity(int velocity)
public void setMaxiAcceleration(int acceleration)
public void setVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandException
public int readVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandException
public void stopVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandException
public String writeSDO(String index,
String subindex,
String length,
String newValue)
throws SDORequestError
SDORequestError
public String readSDO(String index,
String subindex)
throws SDORequestError
SDORequestErrorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||