Merge branch 'master' of git.psi.ch:epics_ioc_modules/ecmc_plugin_safety
This commit is contained in:
BIN
iocsh/digital.png
Normal file
BIN
iocsh/digital.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
BIN
iocsh/velo.png
Normal file
BIN
iocsh/velo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
@@ -403,12 +403,20 @@ bool ecmcSS1SafetyGroup::checkAxesStandstill() {
|
||||
|
||||
// Check standstill axis
|
||||
bool ecmcSS1SafetyGroup::checkAxisStandstill(safetyAxis* axis) {
|
||||
double velo = 1;
|
||||
int err = getAxisTrajVelo(axis->axisId_, &velo);
|
||||
double traj = 1;
|
||||
|
||||
int err = getAxisTrajVelo(axis->axisId_, &traj);
|
||||
if(err) {
|
||||
return 0;
|
||||
}
|
||||
return std::abs(velo) <= axis->veloLimit_;
|
||||
|
||||
double enc = 1;
|
||||
err = getAxisEncVelo(axis->axisId_, &enc);
|
||||
if(err) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return std::abs(traj) <= axis->veloLimit_ && std::abs(enc) <= axis->veloLimit_;
|
||||
}
|
||||
|
||||
// Check standstill and disable
|
||||
@@ -469,7 +477,8 @@ void ecmcSS1SafetyGroup::addAxis(int axisId, double veloLimit,int standStillTime
|
||||
|
||||
|
||||
if(cfgDbgMode_) {
|
||||
printf("Safety %s: Added axis %d to safety group\n",sName_,axisId);
|
||||
printf("Safety %s: Added axis %d to safety group (velo limit = %lf, standstill filter : %d)\n"
|
||||
,sName_,axisId,veloLimit,standStillTimeMs);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user