Commit Graph

2157 Commits

Author SHA1 Message Date
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
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
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
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 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
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
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
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
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
Kevin Peterson f3d4e0fd1d Merge pull request #83 from mp49/autopower_fix
Fix issue with power being left on when using autoPower option in asy…
2018-04-27 10:42:03 -05:00
Kevin Peterson beba85f7b2 Merge pull request #94 from shadowguy/master
Added I/O flush before first query (Micronix MMC-x00)
2018-04-27 10:34:19 -05:00
rsluiter 6990911206 Merge pull request #95 from kmpeters/AMCI_ANF2
Added support for AMCI ANF controllers
2018-04-20 08:44:26 -05:00
Kevin Peterson ed95506bb1 Fix for building on Windows 2018-04-19 11:09:28 -05:00
kpetersn a827730f71 Updated the comment in the .h file. 2018-04-18 15:39:57 -05:00
kpetersn 35f5cf0849 Minor improvements to README_ANF2.md 2018-04-18 15:26:49 -05:00
kpetersn 12c6237ef1 Added README_ANF2.md 2018-04-18 15:23:22 -05:00
kpetersn c5316018b9 Only require user to specify numAxes so any combination of controller modules can be used. 2018-04-18 14:41:19 -05:00
kpetersn dad0f34037 Print somewhat helpful info in asyn traces. 2018-04-17 16:51:53 -05:00
sluiter 7493d50bc8 If URIP=Yes and reading RDBL causes LINK error, do not start a new target position move. 2018-04-10 14:30:50 -05:00
kpetersn a46564cc3c Initialize parameters to avoid asynTraceFlow errors. 2018-04-09 14:41:31 -05:00
kpetersn 2e49fb473d Removed unused getInfo() calls. 2018-04-09 13:25:40 -05:00
kpetersn 9b6764b0e0 Removed reconfig funcationlity (only useful for testing as written). 2018-04-09 13:20:58 -05:00
kpetersn 16141699d8 Improved report output 2018-04-09 13:07:47 -05:00
kpetersn 8f05579e82 Cleaned up the code somewhat 2018-04-09 11:29:56 -05:00
Scott Stubbs d254899446 Added I/O flush before first query 2018-04-09 01:33:44 -07:00
kpetersn 14bb36e0aa Read and set the direction. Read and clear command errors. Only set the limit if moving in that direction (doesn't solve the problem of being unable to absolute-move off a limit--jogging works though). 2018-03-29 16:28:18 -05:00
kpetersn f1aefccbeb Added comments about homing 2018-03-29 10:48:42 -05:00
kpetersn d760620579 Allow errors to be reset via a PV. 2018-03-28 11:02:33 -05:00
kpetersn c6a2b4ee0b Also allow UEIP=Yes when Diagnostic Feedback is used. 2018-03-28 10:43:29 -05:00
kpetersn 9e0b87ee74 Implement jogging using the actual jog command. Stopping a jog is different than a normal move, so the stop method had to get smarter. Removed the extra call to base class's writeInt32 that was resulting in double stop commands being sent. 2018-03-28 10:32:30 -05:00
kpetersn 021228e0e7 Improved asynReport output 2018-03-27 17:31:07 -05:00
kpetersn 860474c1ae Be quieter. 2018-03-27 16:45:42 -05:00
kpetersn dbdd1814df Enforce controller speed limits. Added an alternate jog implemention that doesn't work well (the ANF2 jog commands appear to require immediate stops, which don't play nicely with subsequent move commands). 2018-03-27 16:09:41 -05:00
kpetersn 0f52af42b2 Also read the encoder position, which isn't helpful with diagnostic feedback. 2018-03-27 15:15:05 -05:00
kpetersn 690281fd24 Correct the acceleration 2018-03-27 15:08:18 -05:00
kpetersn 3a231a90ef Remove item from todo list 2018-03-27 14:52:28 -05:00
kpetersn 35ac98f133 Specify base speed and homing timeout when configuring axis 2018-03-27 14:50:36 -05:00