public class CanOpenClampActuatorModule extends ClampActuatorModule implements PieceOfHardware
| Modifier and Type | Class and Description |
|---|---|
static class |
CanOpenClampActuatorModule.ActuatorMode |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabling |
on, readValue, sentCurrentMaxValue, sentCurrentMinValue, sentValue| Constructor and Description |
|---|
CanOpenClampActuatorModule() |
CanOpenClampActuatorModule(String nodeID,
int inputID,
String serial,
Motor motor) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getReadValue, getSentCurrentMaxValue, getSentCurrentMinValue, getSentValue, getStatusData, isOff, isOn, setSentCurrentMaxValue, setSentCurrentMinValuealias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic 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 PieceOfHardwarepublic void updateReadValue()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic 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.Modulepublic String initializeHardware() throws Exception
PieceOfHardwareinitializeHardware in interface PieceOfHardwareExceptionpublic boolean isEnable()
throws SDORequestException
SDORequestExceptionpublic void faultReset()
throws SDORequestException
SDORequestExceptionpublic String enable() throws SDORequestException
SDORequestErrorSDORequestExceptionpublic String shutdown() throws SDORequestException
SDORequestExceptionpublic void switchOnEnableOperation()
throws SDORequestException
SDORequestExceptionpublic Object saveParameters() throws SDORequestException
SDORequestErrorSDORequestExceptionpublic Object restoreParameters() throws SDORequestException
SDORequestExceptionpublic void writeControlWord(String value) throws SDORequestException
value - in hexaSDORequestExceptionpublic String readControlWord() throws SDORequestException
SDORequestExceptionpublic String readStatusword() throws SDORequestException
SDORequestExceptionpublic void quickStop()
throws SDORequestException
SDORequestExceptionpublic String unclamp() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String on() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
on in interface Actuatoron in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String maintainUnclamped() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
maintainUnclamped in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String release() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String off() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
off in interface Actuatoroff in class ClampActuatorModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String readErrorRegister() throws SDORequestException
SDORequestExceptionpublic String displayErrorRegister() throws SDORequestException
SDORequestExceptionpublic String[] readErrorHistory() throws SDORequestException
SDORequestExceptionpublic String displayErrorHistory() throws SDORequestException
SDORequestExceptionpublic int readNumberOfErrors()
throws SDORequestException
SDORequestExceptionpublic void writeMotorParameters()
throws SDORequestException
SDORequestErrorSDORequestExceptionpublic void writeMotorType(int value)
throws SDORequestException
SDORequestExceptionpublic int readMotorType()
throws SDORequestException
SDORequestExceptionpublic int readPositionSensorType()
throws SDORequestException
SDORequestExceptionpublic void writePositionSensorType(int value)
throws SDORequestException
SDORequestExceptionpublic void writeMaxSpeed(int value)
throws SDORequestException
SDORequestExceptionprotected void writeMotorData(String subindex, String sizeInHexa, int value) throws SDORequestException
subindex - sizeInHexa - size of the parameter in Can Openvalue - FORMAT=int the value of the parameter in decimal formatSDORequestExceptionpublic int readMotorData(String subindex) throws SDORequestException
subindex - SDORequestExceptionpublic boolean checkMotorParameters()
throws ClampMotorConfigurationException,
SDORequestException
MismatchMotorConfigurationErrorClampMotorConfigurationExceptionSDORequestExceptionpublic String displayMotorParameters() throws SDORequestException
SDORequestExceptionpublic void writeCurrent(int aValue)
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
aValue - UNIT=mA / FORMAT=decimal the value of the current to be sent.org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic int readCurrent()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic void stopCurrent()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic void setMaxiVelocity(int velocity)
public void setMaxiAcceleration(int acceleration)
public void setVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandExceptionpublic int readVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandExceptionpublic void stopVelocity()
throws org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.BadCommandExceptionpublic String writeSDO(String index, String subindex, String length, String newValue) throws SDORequestException
SDORequestExceptionpublic String readSDO(String index, String subindex) throws SDORequestException
SDORequestExceptionCopyright © 2013 LSST. All Rights Reserved.