Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 179bd6aa22 | |||
| 377a28c95f | |||
| 8d4ea1e87c |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -20,3 +20,5 @@ tools/bin
|
|||||||
tools/lib
|
tools/lib
|
||||||
tools/lib64
|
tools/lib64
|
||||||
tools/pyvenv.cfg
|
tools/pyvenv.cfg
|
||||||
|
tools/.*
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ BUILDCLASSES = Linux
|
|||||||
ARCH_FILTER = deb10% deb12%
|
ARCH_FILTER = deb10% deb12%
|
||||||
|
|
||||||
# Run 7.0.6 for now
|
# Run 7.0.6 for now
|
||||||
EXCLUDE_VERSIONS+=3 7.0.5 7.0.6 7.0.7 7.0.9
|
EXCLUDE_VERSIONS+=3 7.0.5 7.0.6 7.0.7
|
||||||
|
|
||||||
IGNORE_MODULES += asynMotor
|
IGNORE_MODULES += asynMotor
|
||||||
IGNORE_MODULES += motorBase
|
IGNORE_MODULES += motorBase
|
||||||
@@ -17,7 +17,7 @@ USR_CXXFLAGS += -std=c++17
|
|||||||
OPT_CXXFLAGS_YES = -O3
|
OPT_CXXFLAGS_YES = -O3
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
ecmc_VERSION = 10.0
|
ecmc_VERSION = 11.0
|
||||||
|
|
||||||
# ethercat
|
# ethercat
|
||||||
# debian 12
|
# debian 12
|
||||||
|
|||||||
@@ -839,22 +839,22 @@ void ecmcMotionPlg::executeMotionObject() {
|
|||||||
|
|
||||||
// protect axis_ if axis object id is changed over asyn
|
// protect axis_ if axis object id is changed over asyn
|
||||||
epicsMutexLock(axisMutex_);
|
epicsMutexLock(axisMutex_);
|
||||||
ecmcAxisStatusType *tempAxisStat = axis_->getDebugInfoDataPointer();
|
ecmcAxisDataStatus *tempAxisStat = axis_->getAxisStatusStruct();
|
||||||
|
|
||||||
// Fill the buffers
|
// Fill the buffers
|
||||||
actPosBuffer_->addData(tempAxisStat->onChangeData.positionActual);
|
actPosBuffer_->addData(tempAxisStat->currentPositionActual);
|
||||||
setPosBuffer_->addData(tempAxisStat->onChangeData.positionSetpoint);
|
setPosBuffer_->addData(tempAxisStat->currentPositionSetpoint);
|
||||||
diffPosBuffer_->addData(tempAxisStat->onChangeData.positionError);
|
diffPosBuffer_->addData(tempAxisStat->cntrlError);
|
||||||
enableBuffer_->addData(tempAxisStat->onChangeData.statusWd.enable);
|
enableBuffer_->addData(tempAxisStat->statusWord_.enable);
|
||||||
enabledBuffer_->addData(tempAxisStat->onChangeData.statusWd.enabled);
|
enabledBuffer_->addData(tempAxisStat->statusWord_.enabled);
|
||||||
busyBuffer_->addData(tempAxisStat->onChangeData.statusWd.busy);
|
busyBuffer_->addData(tempAxisStat->statusWord_.busy);
|
||||||
executeBuffer_->addData(tempAxisStat->onChangeData.statusWd.execute);
|
executeBuffer_->addData(tempAxisStat->statusWord_.execute);
|
||||||
trajSourceBuffer_->addData(tempAxisStat->onChangeData.statusWd.trajsource);
|
trajSourceBuffer_->addData(tempAxisStat->statusWord_.trajsource);
|
||||||
encSourceBuffer_->addData(tempAxisStat->onChangeData.statusWd.encsource);
|
encSourceBuffer_->addData(tempAxisStat->statusWord_.encsource);
|
||||||
atTargetBuffer_->addData(tempAxisStat->onChangeData.statusWd.attarget);
|
atTargetBuffer_->addData(tempAxisStat->statusWord_.attarget);
|
||||||
errorIdBuffer_->addData(tempAxisStat->onChangeData.error);
|
errorIdBuffer_->addData(tempAxisStat->errorCode);
|
||||||
|
|
||||||
epicsInt32 *temp=(epicsInt32*)&(tempAxisStat->onChangeData.statusWd); // A bit nasty
|
epicsInt32 *temp=(epicsInt32*)&(tempAxisStat->statusWord_); // A bit nasty
|
||||||
statusWdBuffer_->addData(*temp);
|
statusWdBuffer_->addData(*temp);
|
||||||
|
|
||||||
xTime_+=xdt_;
|
xTime_+=xdt_;
|
||||||
@@ -870,24 +870,6 @@ void ecmcMotionPlg::executeMotionObject() {
|
|||||||
epicsMutexUnlock(axisMutex_);
|
epicsMutexUnlock(axisMutex_);
|
||||||
}
|
}
|
||||||
|
|
||||||
//void ecmcMotionPlg::setModeFFT(FFT_MODE mode) {
|
|
||||||
// cfgMode_ = mode;
|
|
||||||
// setIntegerParam(asynFFTModeId_,(epicsInt32)mode);
|
|
||||||
//}
|
|
||||||
//
|
|
||||||
//FFT_STATUS ecmcMotionPlg::getStatusFFT() {
|
|
||||||
// return status_;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//void ecmcMotionPlg::updateStatus(FFT_STATUS status) {
|
|
||||||
// status_ = status;
|
|
||||||
// setIntegerParam(asynFFTStatId_,(epicsInt32) status);
|
|
||||||
//
|
|
||||||
// setIntegerParam(asynElementsInBuffer_, (epicsInt32)elementsInBuffer_);
|
|
||||||
//
|
|
||||||
// callParamCallbacks();
|
|
||||||
//}
|
|
||||||
|
|
||||||
asynStatus ecmcMotionPlg::writeInt32(asynUser *pasynUser, epicsInt32 value) {
|
asynStatus ecmcMotionPlg::writeInt32(asynUser *pasynUser, epicsInt32 value) {
|
||||||
int function = pasynUser->reason;
|
int function = pasynUser->reason;
|
||||||
if( function == asynEnableId_ ) {
|
if( function == asynEnableId_ ) {
|
||||||
|
|||||||
@@ -579,7 +579,7 @@ class ecmcMtnMainGui(QtWidgets.QDialog):
|
|||||||
axId = axIdPV.get()
|
axId = axIdPV.get()
|
||||||
|
|
||||||
if axId > 0:
|
if axId > 0:
|
||||||
self.cmbBxSelectAxis.addItem(str(int(ax)))
|
self.cmbBxSelectAxis.addItem(str(int(axId)))
|
||||||
|
|
||||||
def changeAxisIndex(self,xxx):
|
def changeAxisIndex(self,xxx):
|
||||||
if self.cmbBxSelectAxis.currentData() is not None:
|
if self.cmbBxSelectAxis.currentData() is not None:
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ fi
|
|||||||
echo "Prefix=${P=c6025a-04}"
|
echo "Prefix=${P=c6025a-04}"
|
||||||
echo "plugin id=${ID=0}"
|
echo "plugin id=${ID=0}"
|
||||||
|
|
||||||
python ecmcMotionMainPyQtGraph.py ${P=c6025a-04} ${ID=0}
|
python3 ecmcMotionMainPyQtGraph.py ${P=c6025a-04} ${ID=0}
|
||||||
|
|||||||
Reference in New Issue
Block a user