Commit Graph

4 Commits

Author SHA1 Message Date
kpetersn e704f89f23 Added R6-11 documentation 2018-12-12 10:52:25 -06:00
kpetersn 2a7544a7a0 Corrected SPDB documentation in motorRecord.html. Added SPDB to basic_motor_settings.req 2018-12-12 10:40:44 -06:00
Torsten Bögershausen 0ea2d9ec87 Add field SPDB, "Set Point Dead Band"
This is from Matthew Pearson, pearsonmr@ornl.gov

A number of users and staff have requested that the motor record have a
setpoint deadband field (eg. SPDB), which prevents any motion from
happening if the readback position is within SPDB.
Without a SPDB we have issues with motors moving unnecessarily.

For example, if the RBV is 0.001 and we set VAL to 0.0, if we have a
non-zero backlash correction then the motor will move unnecessarily
to take out backlash.
Even without backlash correction we often enable and disable the
drive amplifier for no good reason.

Currently the effective setpoint deadband is equal to MRES,
but this is often too small to be an effective setpoint deadband.

The new SPDB field would default to 0.0

The new code hooks into do_work():
When the new setpoint is within DPDB, set too_small and don't move.

The new code does not use snipptes like "abs(npos - rpos)", these
already produce warnings on 64 bit sytems.
abs() is declared to work on int, but we feed long values.
Simply compare the coordinates in engineering units.
2018-11-20 08:51:49 +01:00
kpetersn fd4641f267 Renamed documentation directory so that it can be used with github pages. 2018-08-01 13:23:40 -05:00