public class CanOpenEPOS extends CanOpenDevice implements Actuator
| Modifier and Type | Class and Description |
|---|---|
static class |
CanOpenEPOS.EposMode |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabling |
protected CanOpenEPOS.EposMode |
mode |
protected Motor |
motor |
boolean |
on |
int |
readValue |
int |
sentValue |
| Constructor and Description |
|---|
CanOpenEPOS(String aName,
int aTickMillis,
String nodeID,
String serialNB,
Motor aMotor,
String aModeInString) |
| 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 |
displayMotorParameters() |
String |
enable()
This methods enable the actuator : i.e.
|
void |
faultReset() |
int |
getMotor_continuousCurrentLimit() |
int |
getMotor_maxSpeedInCurrentMode() |
int |
getMotor_outputCurrentLimit() |
int |
getMotor_polePairNumber() |
int |
getMotor_thermalTimeConstantWinding() |
int |
getMotor_type() |
int |
getReadValue() |
int |
getSentCurrentMaxValue() |
int |
getSentCurrentMinValue() |
int |
getSentValue() |
String |
initializeHardware()
This methods has to be overridden if there is some initialization to do for the device.
|
void |
initModule() |
boolean |
isEnable() |
boolean |
isOff() |
boolean |
isOn() |
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.
|
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 |
readPositionSensorType()
This command read the position sensor type on the actuator.
|
String |
readStatusWord()
Read the status world (index=6041, subindex=0,size=2)
|
int |
readVelocity() |
Object |
restoreParameters() |
Object |
saveParameters()
This method save the parameters in the actuator memory.
|
void |
setMaxiAcceleration(int acceleration) |
void |
setMaxiVelocity(int velocity) |
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() |
void |
updateReadValue()
Reads the current value or the velocity value stored in the EPOS and updates the readValue field.
|
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) |
displayErrorHistory, displayErrorRegister, getNodeID, getSerialNB, isInitalized, isNodeIdBootedAndOK, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, toString, writeSDOalias, 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 boolean on
public int readValue
public int sentValue
protected CanOpenEPOS.EposMode mode
protected final Motor motor
protected volatile boolean enabling
public int getReadValue()
getReadValue in interface Actuatorpublic int getSentValue()
getSentValue in interface Actuatorpublic int getSentCurrentMinValue()
getSentCurrentMinValue in interface Actuatorpublic int getSentCurrentMaxValue()
getSentCurrentMaxValue in interface Actuatorpublic int getMotor_continuousCurrentLimit()
public int getMotor_maxSpeedInCurrentMode()
public int getMotor_outputCurrentLimit()
public int getMotor_polePairNumber()
public int getMotor_thermalTimeConstantWinding()
public int getMotor_type()
public void updateReadValue()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic void initModule()
initModule in class CanOpenDevicepublic String initializeHardware() throws Exception
CanOpenDeviceinitializeHardware in interface PieceOfHardwareinitializeHardware in class CanOpenDeviceExceptionpublic 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 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 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.BadCommandExceptionCopyright © 2013 LSST. All Rights Reserved.