Commit Graph
26 Commits
Author SHA1 Message Date
Torsten Bögershausenandmathis_s c0d7142098 asynMotor: Introduce motorActVelocity
commit 11229ed6e56, 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
2026-03-24 14:19:24 +01:00
StefanMathisandmathis_s 820519484b Fixed RVEL bug
This PR fixes https://epics.anl.gov/tech-talk/2026/msg00212.php by writing the motor velocity into status_.velocity, where it is later read from when the motorRecord fields are populated.
2026-03-24 14:19:24 +01:00
Mark Rivers 5642bb1089 Initialize some parameters to avoid errors reading them 2020-01-28 16:32:56 -06:00
MarkRivers 102f74b584 Changed resolution, offset and direction parameters from being profile move parameters to being general parameters that any driver can have access to 2015-03-21 21:22:24 +00:00
mp49 36dfab4a78 MotorSrc: add parameters to asynMotorController to deal with automatic amplifier control via setClosedLoop. The amplifier enable is done in the writeFloat64 function with a configurable delay, and the disable is implemented in the poller function in asynMotorController. Added utilty functions to asynMotorAxis. Also add a parameter to use in the derived classes for post move delays. An example of this has been implemented in the motorSimDriver.cpp. Add example database for automatic amplifier control. 2015-03-09 20:19:53 +00:00
MarkRivers a466beeb2c Add destructor 2014-03-12 18:03:26 +00:00
mp49 e9e0eecd88 asynMotorAxis: added support for setting axis specific strings in the parameter library. 2013-07-18 19:55:05 +00:00
MarkRivers 83b63dcfa5 Fixed comment 2012-03-04 16:51:14 +00:00
MarkRivers 2f9195c5f6 Use per-axis pasynUser_ for asynPrint in new functions 2012-03-02 18:53:04 +00:00
MarkRivers b49a1f2285 Added implementation of new methods, e.g. setHighLimit, setPGain, etc.; changed all dummy methods to return asynSuccess rather than asynError, so derived classes don't need to implement them 2012-03-01 19:38:02 +00:00
MarkRivers 5af8dc064d Removed iostream function calls, don't exist on vxWorks-68040 2012-02-11 00:00:59 +00:00
MarkRivers 14d1f5914a Additional asynTrace statements for debugging 2011-09-20 01:53:32 +00:00
MarkRivers 9ada8b5300 Added asynPrint to defineProfile for debugging 2011-09-18 22:34:48 +00:00
MarkRivers eb26872ee9 Fixed comment 2011-09-18 22:33:07 +00:00
MarkRivers be1a141402 Fixed 2 compiler warnings 2011-08-30 18:58:16 +00:00
Ron Sluiter 4c7bbdc539 VxWorks 5.5.2 DOES support iostream. Backing out -r 13350 changes. 2011-08-30 17:43:33 +00:00
Ron Sluiter 757a5e20b4 VxWorks 5.5.2 does not support iostream. Replaced iostream calls with asynPrint and errlogPrintf calls. 2011-08-05 19:33:07 +00:00
mp49 a6f645919e motor: implemented framework for moveToHome functionality in model 3 asyn base classes. 2011-07-29 17:39:29 +00:00
mp49 8ee20230da motor: fixed problem with MSTA not being set at IOC startup for model 3 asyn drivers. 2011-07-29 10:48:48 +00:00
MarkRivers 717864037c Bug fix in float64Array callbacks 2011-04-08 03:48:19 +00:00
MarkRivers 21b9a9f0f8 Added abortProfile(); change argument to poll() from int to bool; fixes to readbackProfile 2011-04-07 02:08:09 +00:00
MarkRivers 25fc46bf02 Use size_t not int for number of points 2011-04-05 22:44:35 +00:00
MarkRivers 5df164ae3c Implemented readbackProfile 2011-04-04 21:54:03 +00:00
MarkRivers 8f256c9f9e Implements move, moveVelocity, home, poll and setPosition functions; implemented defineProfile to convert from user to controller units 2011-04-04 18:34:31 +00:00
MarkRivers e32f2eec20 Changes for profile moves 2011-04-02 15:06:54 +00:00
MarkRivers c92f7d7518 Broke asynMotorDriver into asynMotorController and asynMotorAxis 2011-04-01 20:00:31 +00:00