public class CanOpenEPOSCarousel extends CanOpenEPOS implements EPOSControllerForCarousel
| Modifier and Type | Field and Description |
|---|---|
protected int |
cobid1
define cobid to be able to read values from PDO data.
|
protected int |
cobid2 |
int |
positionSensorType |
averageCurrent, current, eposState, followingError, hasEncoder, mode, parametersOK, position, profileAcceleration, profileDeceleration, profileVelocity, simuEnabled, statusWord, velocitybooted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, path, serialNB, subs, tcpProxyFCSLOGalertSeparator| Constructor and Description |
|---|
CanOpenEPOSCarousel() |
| Modifier and Type | Method and Description |
|---|---|
StatusDataPublishedByCarouselController |
createStatusDataPublishedByCarouselController() |
StatusDataPublishedDuringMotionWithEncoderAndHoldingBrake |
createStatusDataPublishedDuringMotionWithEncoderAndHoldingBrake() |
void |
doInitializePDOs()
Do nothing if this device doesn't send PDOs except log for debug purpose.
|
static int |
extractCurrentAverage(long pdo) |
static int |
extractFollowingError(long pdo) |
static int |
extractPosition(long pdo) |
static int |
extractStatusWord(long pdo) |
static int |
extractVelocity(long pdo) |
void |
faultReset()
Clear faults on the controller and clear alarm that was raised for this
controller.
|
int |
getCobid1()
for simulation only
|
int |
getCobid2()
for simulation only
|
long |
getPdo1()
for simulation
|
long |
getPdo2()
for simulation
|
int |
getPositionSensorType() |
int |
getStatusWord() |
void |
init() |
boolean |
isHoldingBrakes() |
String |
printValuesUpdatedByPDOs()
For tests and debug
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
publishDataDuringMotion()
publish data during motion for trending data base.
|
void |
setHoldingBrakes(boolean holdingBrakes) |
void |
setPdo1(long pdo1)
set a pdo1 for simulation
|
void |
setPdo2(long pdo2)
set a pdo2 for simulation
|
void |
setPositionSensorType(int positionSensorType) |
void |
updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
process PDOData to retrieve data from this device.
|
void |
updateStatusWord() |
build, changeEPOSParameter, changeMode, checkFault, checkParameters, checkParameters, getAverageCurrent, getCurrent, getEposState, getFollowingError, getMode, getPosition, getProfileAcceleration, getProfileDeceleration, getProfileVelocity, getVelocity, initializeAndCheckHardware, isInError, isParametersOK, printControlWord, readControlWord, readCurrent, readCurrentAverageValue, readFollowingError, readMode, readParameter, readStatusWord, readVelocity, restoreParameters, setCurrent, setEposState, setPosition, setProfileAcceleration, setProfileDeceleration, setProfileVelocity, setVelocity, writeControlWord, writeCurrent, writeParameter, writeParameters, writeTargetPositionconfigAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayError, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getPath, getSerialNB, getSubsystem, getTcpProxy, isBooted, isInitialized, onEmergencyMessage, printSerialNumber, readDeviceType, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, toString, updateDeviceInfo, updateErrorHistory, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivatePowerSave, checkPositionSensorType, defineAbsolutePosition, disactivatePowerSave, doSetEncoderSSI, doSetSinusIncrementalEncoder, isTargetReached, readHoldingBrakes, setPositionSensorTypeEncoderSSI, setPositionSensorTypeSinusIncrementalEncoderchangeMode, changeProfileAcceleration, changeProfileDeceleration, changeProfileVelocity, checkEposMode, checkFault, checkHomingDone, checkParameters, checkState, checkTargetReached, convertEPOSValue, createStatusDataPublishedByEPOSController, createStatusDataPublishedDuringMotionNoEncoder, createStatusDataPublishedDuringMotionWithEncoder, defineHomingCurrentThresholdNegativeSpeed, definePositionFromNegativeLimitSwitch, disableOperation, disableVoltage, displayErrorHistory, enable, enableAndWriteAbsolutePosition, enableAndWriteCurrent, enableAndWriteRelativePosition, getAverageCurrent, getCurrent, getEposState, getErrorHistoryNB, getErrorRegister, getFollowingError, getLastErrorCode, getLastErrorName, getMode, getPosition, getProfileAcceleration, getProfileDeceleration, getProfileVelocity, getVelocity, goToOperationEnable, goToSwitchOnDisabled, isEnabled, isFault, isInError, isInMode, isInState, isOperationEnabled, isParametersOK, isQuickstop, isReadyToSwitchOn, isSwitchedOn, isSwitchOnDisabled, printStatusWordInBinary, quickStop, readControllerStructure, readControlWord, readCurrent, readCurrentAverageValue, readFollowingError, readHomingMethod, readMode, readParameter, readParameter, readParameters, readParameters, readParameters, readPosition, readPositionSensorType, readProfileAcceleration, readProfileDeceleration, readProfileVelocity, readSSIPosition, readStatusWord, readVelocity, setCurrent, setEposState, setPosition, setProfileAcceleration, setProfileDeceleration, setProfileVelocity, setVelocity, shutdownController, stopAction, stopPosition, stopVelocity, switchOnEnableOperation, updateDataDuringMotionFromSDO, updateEposState, updateEposState, updatePositionFromSDO, writeControlWord, writeCurrent, writeParameter, writeParameters, writeParameters, writeParameters, writeTargetPositioncheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, getName, getNodeID, getPath, getSerialNB, initializeAndCheckHardware, initializePDOs, isBooted, isInitialized, printState, raiseAlarmIfMissing, raiseWarningIfMissing, readDeviceType, setBooted, updateDeviceInfoonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertSeparator, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected int cobid1
protected int cobid2
public int positionSensorType
public void setHoldingBrakes(boolean holdingBrakes)
setHoldingBrakes in interface EPOSControllerForCarouselpublic boolean isHoldingBrakes()
isHoldingBrakes in interface EPOSControllerForCarouselpublic void setPdo1(long pdo1)
pdo1 - public void setPdo2(long pdo2)
pdo2 - public long getPdo1()
public long getPdo2()
public int getCobid1()
public int getCobid2()
public int getStatusWord()
getStatusWord in interface EPOSControllergetStatusWord in class CanOpenEPOSpublic int getPositionSensorType()
getPositionSensorType in interface EPOSControllerForCarouselpublic void setPositionSensorType(int positionSensorType)
setPositionSensorType in interface EPOSControllerForCarouselpublic void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class CanOpenEPOSpublic void doInitializePDOs()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenDevicedoInitializePDOs in interface PieceOfHardwaredoInitializePDOs in class CanOpenDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void faultReset()
CanOpenEPOSfaultReset in interface EPOSControllerfaultReset in class CanOpenEPOSpublic void updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
updateFromPDO in interface PieceOfHardwareupdateFromPDO in class CanOpenDevicepdo - @Command(type=QUERY, level=1, description="Update field statusWorld in reading a SDO (readStatusWord)") public void updateStatusWord()
updateStatusWord in interface EPOSControllerupdateStatusWord in class CanOpenEPOSpublic static int extractStatusWord(long pdo)
pdo - public static int extractCurrentAverage(long pdo)
pdo - public static int extractPosition(long pdo)
pdo - public static int extractFollowingError(long pdo)
pdo - public static int extractVelocity(long pdo)
pdo - @Command(type=QUERY, level=1, description="print values updated by PDOs to debug and test") public String printValuesUpdatedByPDOs()
public StatusDataPublishedByCarouselController createStatusDataPublishedByCarouselController()
public StatusDataPublishedDuringMotionWithEncoderAndHoldingBrake createStatusDataPublishedDuringMotionWithEncoderAndHoldingBrake()
public void publishData()
CanOpenEPOSpublishData in interface PieceOfHardwarepublishData in class CanOpenEPOSpublic void publishDataDuringMotion()
EPOSControllerpublishDataDuringMotion in interface EPOSControllerpublishDataDuringMotion in class CanOpenEPOSCopyright © 2023 LSST. All rights reserved.