Skip to content

asynMotor: Introduce motorActVelocity#238

Merged
kmpeters merged 1 commit intoepics-modules:masterfrom
EuropeanSpallationSource:torsten/rvel-via-motoractvelocity
Feb 24, 2026
Merged

asynMotor: Introduce motorActVelocity#238
kmpeters merged 1 commit intoepics-modules:masterfrom
EuropeanSpallationSource:torsten/rvel-via-motoractvelocity

Conversation

@tboegi
Copy link
Contributor

@tboegi tboegi commented Feb 13, 2026

commit 11229ed, Fixed RVEL bug, made a change to be able to set the .RVEL field in the motorRecord from a model 3 driver. However, this mixes motorVelocity_,
which is a setpoint changed with every movement, with an actual value, which changes while the motor is moving.
And goes to 0.0 when the motor has stopped.
Or stays at 0.0 when the motor refuse to start.
This may be caused by an interlock, limit switch, power off or others.

In short: Introduce a new asynParameter to store the value.

Compatiblity considarations:
Since the .RVEL field has never been working for an asynMotor, we don't expect any.

If needed, code can be adopted at compile time, with something like this:

setDoubleParam(pC_->motorActVelocity_,
st_axis_status.fActVelocity);
#endif

@tboegi tboegi mentioned this pull request Feb 13, 2026
commit 11229ed, Fixed RVEL bug, made a change to be able
to set the .RVEL field in the motorRecord from a model 3 driver.
However, this mixes motorVelocity_,
which is a setpoint changed with every movement, with an actual value,
which changes while the motor is moving.
And goes to 0.0 when the motor has stopped.
Or stays at 0.0 when the motor refuse to start.
This may be caused by an interlock, limit switch, power off or others.

In short: Introduce a new asynParameter to store the value.

Compatiblity considarations:
Since the .RVEL field has never been working for an asynMotor,
we don't expect any.

If needed, code can be adopted at compile time, with something like this:
 #ifdef motorActVelocityString
   setDoubleParam(pC_->motorActVelocity_,
                  st_axis_status.fActVelocity);
 #endif
@tboegi tboegi force-pushed the torsten/rvel-via-motoractvelocity branch from 72a5242 to 314ef89 Compare February 13, 2026 14:58
@kmpeters kmpeters added this to the R7-4 milestone Feb 13, 2026
@kmpeters
Copy link
Member

@tboegi, thanks for this pull request.

@kmpeters kmpeters merged commit e81b4a4 into epics-modules:master Feb 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants