Commit Graph

2745 Commits

Author SHA1 Message Date
Mark Rivers 58354556aa Fixed soft_init: it is passed an int, not a (void *). 2018-09-08 14:04:15 -05:00
Mark Rivers 8b5d5f92bd Added note at the end that the file is incomplete 2018-08-25 17:14:47 -05:00
Kevin Peterson f6e9f26209 Merge pull request #109 from kmpeters/issue100
Don't set "stop" field true if driver returns RA_PROBLEM true

Partially reverts commit 303a9208e3

Fixes issue #100:
> There have been multiple problems caused by the motor record sending a stop when the problem bit is set.
>
>    One problem is discussed here:
>    https://epics.anl.gov/tech-talk/2018/msg01338.php
>
>    The commit that introduced the stop is 303a920. I vaguely recall the change being a workaround for less-than-idea behavior of a motor controller, but neither @rsluiter nor I remember which controller that was.
>
>    Motor drivers should be modified to send the stop command when the condition that triggers the setting of the problem bit is detected, if needed.
2018-08-21 12:34:24 -05:00
kpetersn 26771f23dc Added a comment about reverting the change from .69 2018-08-21 12:05:30 -05:00
kpetersn 95c0a4caa2 Don't set "stop" field true if driver returns RA_PROBLEM true. It is
the driver's responsiblity to stop a motor if the condition that results
in the RA_PROBLEM bit being set doesn't result in the motor
automatically stopping.

This partially reverts commit 303a9208e3
2018-08-21 11:56:25 -05:00
Kevin Peterson 741d4292cd Merge pull request #108 from kmpeters/issue27
Set LVIO=1 if DLLM > DHLM
2018-08-21 09:59:42 -05:00
kpetersn 270347dfb3 Set LVIO=1 if DLLM > DHLM, since at least one limit being violated 2018-08-20 17:41:34 -05:00
Kevin Peterson a21b1ccbd6 Merge pull request #99 from EuropeanSpallationSource/JOG_LVIO_JOG_nolockup
motorRecord.cc: Jogging against to LVIO in LVIO

This change resets the JOGF/JOGR fields to zero when a limit violation occurs, rather than when the JOGF/JOGR fields get reset to zero by the user.
2018-08-20 14:50:07 -05:00
Kevin Peterson c09b49c245 Merge pull request #107 from lnls-sol/fixAero
Add devAerotechSeq.dbd to WithAsyn example
2018-08-20 12:10:00 -05:00
Torsten Bögershausen 9e5b54323a motorRecord.cc: Jogging against to LVIO in LVIO
When jogging has stopped because the motor is close to a softlimit,
the record seems to be locked up when the same jog button is pressed again.

The user must release the jog button, before doing any other action.
STOP doesn't help, neither does jog into the opposite direction work.

Solution:
Clear the JOGF and JOGR button in the record.
2018-08-20 09:08:22 +02:00
Gabriel Fedel 36a9351dba Add devAerotechSeq.dbd to WithAsyn example
This change allow to use Trajector Scan state machine from Aerotech.
2018-08-17 14:38:00 -03:00
Kevin Peterson 000082b55a Merge pull request #105 from kmpeters/XPS_mutex_id_init
Fix for segfault when XPSConfigAxis isn't called before using a motor (Fixes #104)
2018-08-10 12:22:59 -05:00
kpetersn 1477975057 Patch from Takashi Nakamoto of the National Astronomical Observatory of
Japan:

"While I was developing an EPICS application on the top of the motor
module, my application died for segmentation fault. The reason was my
mistake: I forgot to call XPSConfigAxis before I start to use that axis,
but it took time for me to find it out (e.g. compiled the motor module
and my application with debug option, running gdb, ...). So, I thought
it would be nice if an error message is shown in the console instead of
sudden death only with segmentation fault message, and the attached
patch does it."
2018-08-10 10:47:02 -05:00
kpetersn c0c5b5b351 Multiple improvements to the Aerotech A3200 driver from Ron Sluiter:
* .04 03-15-18 rls - Restored "Task number" argument to
A3200AsynConfig.
* .05 05-01-18 rls - Do not check the limit switches of virtual axes.
*                  - Added "single-axis" (MOVE{ABS/INC} or "multi-axis"
(LINEAR) user selectable move option.
2018-08-08 16:27:33 -05:00
kpetersn 6fb6f171de Bug fix for ImsMDrivePlusMotorController.cpp from Ron Sluiter on
2018-07-16
2018-08-08 16:22:06 -05:00
kpetersn 4fb9e1c934 Changes to motor_notes.txt from Ron Sluiter on 2018-01-10 2018-08-08 16:18:48 -05:00
Kevin Peterson 548a013a38 Merge pull request #103 from kmpeters/ensemble-stuck-on-limit-fix
Ron's fix for ensemble-stuck-on-limit problem
2018-08-06 16:32:07 -05:00
kpetersn 8e8e559606 Changes from Ron Sluiter on 2018-06-28:
"If disabling torque due to a fault, clear motorAxisProblem so that user
can Jog off limit switch."
2018-08-06 16:09:51 -05:00
kpetersn 70b489f2de Corrected my email address. 2018-08-03 09:51:53 -05:00
kpetersn 58976fa288 Corrected path to new docs directory in README.md 2018-08-01 13:52:03 -05:00
Kevin Peterson 09fcb5986c Merge pull request #101 from kmpeters/github-pages-docs
Make motor documentation compatible with github pages
2018-08-01 13:41:26 -05:00
kpetersn d739f5c1dd Use github pages links instead of htmlpreview links 2018-08-01 13:37:13 -05:00
kpetersn 3b75e3096f Renamed motor.html to index.html so that it can be used with github pages. 2018-08-01 13:26:17 -05:00
kpetersn fd4641f267 Renamed documentation directory so that it can be used with github pages. 2018-08-01 13:23:40 -05:00
Kevin Peterson 3683d3f0ea Merge pull request #56 from EuropeanSpallationSource/JOG_stopped
Record recognizes motor stop while jogging.

Text from the pull request:

'The following situation came up while debugging soft limits in a
motion controller which had different values then the record.

The motor is at position 50mm (RBV=50), the low soft limit is 15 (LLM=15),
jogging velocity is 10 mm/sec (JVEL=10).

The motion controller has an internal soft limit which is 35 mm, which
we want to test.
Set JOGR to 1, the motor will move backwards.
(Side note: it would be stopped by the record once it passed 25mm).

Before that, the motion controller stops the motor internally and reports DONE.
The state machine in the record is not prepared to handle this and JOGR stays 1.
The expected behavior is that JOGR returns to 0.
Because this is an unexpected stop, reset even pending home requests.
In other words: call clear_buttons(pmr)

Whether or not an alarm is raised may be another question.
The natural thing would be to set LVIO to 1, but we don't know why the controller
stopped the motion.
Unless we add a bit in MSTA like "RA_LVIO"...
But in any case this can and should go into a separate commit.'
2018-07-03 09:11:27 -05:00
Torsten Bögershausen 9c8a8e8c35 Record recognizes motor stop while jogging
The following situation came up while debugging soft limits in a
motion controller which had different values then the record.

The motor is at position 50mm (RBV=50), the low soft limit is 15 (LLM=15),
jogging velocity is 10 mm/sec (JVEL=10).

The motion controller has an internal soft limit which is 35 mm, which
we want to test.
Set JOGR to 1, the motor will move backwards.
(Side note: it would be stopped by the record once it passed 25mm).

Before that, the motion controller stops the motor internally and reports DONE.
The state machine in the record is not prepared to handle this and JOGR stays 1.
The expected behavior is that JOGR returns to 0.
Because this is an unexpected stop, reset even pending home requests.
In other words: call clear_buttons(pmr)

Whether or not an alarm is raised may be another question.
The natural thing would be to set LVIO to 1, but we don't know why the
controller stopped the motion.
Unless we add a bit in MSTA like "RA_LVIO"...
But in any case this can and should go into a separate commit.
2018-06-29 11:38:31 +02:00
Kevin Peterson a002988622 Merge pull request #98 from kmpeters/encoder_ratio_fix
Modified drivers that expect unsigned encoder ratio parameters, as discussed in issue #82.  This change preserves the behavior of the device support for the MM3000 and OMS controllers before pull request #84.
2018-06-27 12:24:18 -05:00
Kevin Peterson 7a758b7238 Merge pull request #84 from mp49/encoder_ratio_fix
Keep the sign information on the MRES and ERES used to calculate the encoder ratio. This fixes issue #82.
2018-06-27 12:21:22 -05:00
kpetersn c185b99ea9 Modified MM3000 and OMS device support to handle signed components of the encoder ratio. 2018-06-27 11:39:00 -05:00
Pete R Jemian d7a85d2833 Note issue #55 is active for participation now 2018-06-27 11:08:20 -05:00
Kevin Peterson 0dc3a09a0b Merge pull request #36 from rokvintar/ls_status_update_fix
Status of limit switches updated independent of movement direction.  Fixes #35
2018-06-26 15:45:59 -05:00
Kevin Peterson 31e0afe6a7 Merge pull request #93 from softwareschneiderei/oms_encoder_sync
OMS: Synchronize motor position with encoder position before every move.
2018-06-21 12:18:00 -05:00
Marius Elvert d061e913c3 Removed version control info from file 2018-06-21 09:55:12 +02:00
kpetersn 6529abb0cf Added links for upcoming 6-10-1 release 2018-06-06 15:09:29 -05:00
sluiter 74a8cedc28 Update CountsPerUnit everytime torque is enabled to reduce IOC reboots 2018-05-31 16:47:44 -05:00
sluiter acf0d00496 Update home search from EPICS docs. 2018-05-31 16:45:41 -05:00
klang 4938a51ce4 Few more wrong casts 2018-05-29 16:18:47 -05:00
Kevin Peterson 53cea7fad9 Merge pull request #79 from keenanlang/master
Keenan added Scriptable Motor Controller support (depends on the lua module: https://github.com/epics-modules/lua)
2018-05-02 13:04:36 -05:00
kpetersn 4bbba98bd5 Minor improvements to documentation:
* Use APS links instead of github preview links until the
  release contains the relevant documentation (motor.html)
  * Changed one instance of 6-9 to 6-10 (motorRecord.html)
2018-05-02 09:49:13 -05:00
Kevin Peterson 2cfd494c16 Merge pull request #96 from kmpeters/R6-10-documentation
Added R6-10 documentation
2018-05-01 15:17:48 -05:00
kpetersn 497bdac0c9 Added a notice to the README 2018-05-01 15:08:00 -05:00
kpetersn 55a92186c2 Removed reverted change from README 2018-05-01 15:04:33 -05:00
kpetersn 7d2c337c0a Removed duplicate Known-problems entries. Added link to github issues. 2018-05-01 15:03:41 -05:00
kpetersn bbc0b5019f Added Problems.html, which contains the history of the problems of motor releases before the transition to github. 2018-05-01 13:34:24 -05:00
kpetersn ad2d96b230 Corrected links 2018-05-01 12:16:36 -05:00
kpetersn 8c0f68488d Removed Ron as the person responsible for the motor module. Kevin wishes him a git-free impending retirement. 2018-05-01 11:45:07 -05:00
kpetersn 5619f875e2 Added support motors and documentation for the IGSET field. 2018-05-01 10:59:45 -05:00
kpetersn 67526774ff Added release notes for 6-10 2018-05-01 10:25:02 -05:00
Kevin Peterson 90bb52f3c6 Merge pull request #60 from EuropeanSpallationSource/record-DLYandSTOP-problem
Record: motor record DLY and STOP problem
2018-05-01 09:51:03 -05:00
kpetersn e99981c71d Added R6-10 to 'Required Modules' section 2018-04-30 11:48:12 -05:00