public class CanOpenEPOSWithPDO extends CanOpenEPOS
| Modifier and Type | Field and Description |
|---|---|
protected int |
cobid1
define cobid to be able to read values from PDO data.
|
protected int |
cobid2 |
averageCurrent, controlWord, 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, tcpProxyalertSeparator| Constructor and Description |
|---|
CanOpenEPOSWithPDO() |
| Modifier and Type | Method and Description |
|---|---|
void |
doInitializePDOs()
Do nothing if this device doesn't send PDOs except log for debug purpose.
|
static int |
extractAverageCurrent(long pdo) |
static int |
extractAverageVelocity(long pdo) |
static int |
extractCurrent(long pdo) |
static int |
extractFollowingError(long pdo) |
static int |
extractPosition(long pdo) |
static int |
extractStatusWord(long pdo) |
int |
getCobid1()
for simulation only
|
int |
getCobid2()
for simulation only
|
long |
getPdo1()
for simulation
|
long |
getPdo2()
for simulation
|
void |
init() |
String |
printValuesUpdatedByPDOs()
For tests and debug
|
void |
setPdo1(long pdo1)
set a pdo1 for simulation
|
void |
setPdo2(long pdo2)
set a pdo2 for simulation
|
void |
updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
process PDOData to retrieve data from this device.
|
build, changeEPOSParameter, changeMode, checkFault, checkParameters, checkParameters, faultReset, getAverageCurrent, getCurrent, getEposState, getFollowingError, getMode, getPosition, getProfileAcceleration, getProfileDeceleration, getProfileVelocity, getStatusWord, getVelocity, initializeAndCheckHardware, isInError, isParametersOK, printControlWord, printPDOConfiguration, publishData, publishDataDuringMotion, readControlWord, readCurrent, readCurrentAverageValue, readFollowingError, readMode, readParameter, readStatusWord, readVelocity, restoreParameters, setCurrent, setEposState, setPosition, setProfileAcceleration, setProfileDeceleration, setProfileVelocity, setVelocity, updateStatusWord, 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, waitchangeProfileAcceleration, changeProfileDeceleration, changeProfileVelocity, checkEposMode, checkHomingDone, checkState, checkTargetReached, convertEPOSValue, createStatusDataPublishedByEPOSController, createStatusDataPublishedDuringMotionNoEncoder, createStatusDataPublishedDuringMotionWithEncoder, defineAbsolutePosition, defineHomingCurrentThresholdNegativeSpeed, definePositionFromNegativeLimitSwitch, disableOperation, disableVoltage, displayErrorHistory, enable, enableAndWriteAbsolutePosition, enableAndWriteCurrent, enableAndWriteRelativePosition, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, goToOperationEnable, goToSwitchOnDisabled, isEnabled, isFault, isHomingAttained, isInMode, isInState, isOperationEnabled, isQuickstop, isReadyToSwitchOn, isSwitchedOn, isSwitchOnDisabled, isTargetReached, printStatusWordInBinary, quickStop, readControllerStructure, readHomingMethod, readParameter, readParameters, readParametersForMode, readPosition, readPositionSensorType, readProfileAcceleration, readProfileDeceleration, readProfileVelocity, readSSIPosition, shutdownController, stopAction, stopPosition, stopVelocity, switchOnEnableOperation, updateDataDuringMotionFromSDO, updateEposState, updateEposState, updatePositionFromSDO, writeControlWord, writeParameters, writeParameterscheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, getName, getNodeID, getPath, getSerialNB, 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 void setPdo1(long pdo1)
pdo1 - public void setPdo2(long pdo2)
pdo2 - public long getPdo1()
public long getPdo2()
public int getCobid1()
public int getCobid2()
public 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 updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
updateFromPDO in interface PieceOfHardwareupdateFromPDO in class CanOpenDevicepdo - public static int extractStatusWord(long pdo)
pdo - public static int extractAverageCurrent(long pdo)
pdo - public static int extractPosition(long pdo)
pdo - public static int extractCurrent(long pdo)
pdo - public static int extractFollowingError(long pdo)
pdo - public static int extractAverageVelocity(long pdo)
pdo - Copyright © 2024 LSST. All rights reserved.