Commit Graph

2962 Commits

Author SHA1 Message Date
kpetersn 35ac98f133 Specify base speed and homing timeout when configuring axis 2018-03-27 14:50:36 -05:00
kpetersn 9c90d24fb8 Fix for OpMode_ 2018-03-27 14:25:21 -05:00
kpetersn a877f4c188 Parse the config string and store some info about the axes. This can be done better in the future. 2018-03-27 13:49:12 -05:00
kpetersn 70d252c44a Added writeReg32Array method. Made the default output asyn port use array writes. Eliminated the conf asyn port. 2018-03-26 15:25:49 -05:00
kpetersn dc09abbd14 Improved report output 2018-03-23 17:10:07 -05:00
kpetersn 5f819fb8a1 Added more todo comments. 2018-03-23 16:53:26 -05:00
kpetersn d8c24ee12b Added todo comment 2018-03-23 16:48:30 -05:00
kpetersn 6b447ffdc9 Removed non-array write methods. 2018-03-23 16:44:03 -05:00
kpetersn c70152574c Implemented home with array writes. Causes a command error with my test configuration. 2018-03-23 16:30:15 -05:00
kpetersn 192b396a99 Made the setClosedLoop function do nothing. Tried to send the clear command error command,but that caused a command error from which I couldn't recover (presumably reconfiguring the axis would have resolved that problem. 2018-03-23 16:21:49 -05:00
kpetersn 3fa5f9fadf Added a comment about the jog command 2018-03-23 15:45:33 -05:00
kpetersn be825dd688 Modified the stop method to use array writes. 2018-03-23 15:44:35 -05:00
kpetersn db987bd349 Implement the jog functionality with the move method, rather than duplicating code. 2018-03-23 15:29:15 -05:00
kpetersn 2d3dc8abfa Moved poll periods to poller call. Require numModules and axesPerModule instead of numAxes for the CreateController call. 2018-03-23 14:09:04 -05:00
kpetersn 798a7336f5 Fixed the autosave problem by requiring the poller to be explicitly started after iocInit. 2018-03-23 11:46:53 -05:00
kpetersn 079779cf13 Tried more things that don't fix the autosave problem 2018-03-22 17:10:10 -05:00
kpetersn 687cccb554 Modifed reconfig to accept a position. Use a dedicated array of zeros for clearing controller registers (doesn't solve the failure-to-autosave-every-other-time problem). 2018-03-22 16:43:26 -05:00
kpetersn 53b7b23b4a Print fewer things 2018-03-22 15:43:02 -05:00
kpetersn 6c500efd32 Added an unsuccessful attempt to get autosave to work. 2018-03-22 15:39:25 -05:00
kpetersn 892225f1fc Cleaned up the setPosition method 2018-03-22 15:09:58 -05:00
kpetersn 11ee7839bb Shortened many delays. Don't print as much info at startup. 2018-03-22 15:05:00 -05:00
kpetersn ff2ac7196f Added macros for 32-bit registers 2018-03-22 14:45:02 -05:00
kpetersn 89cf615600 Cleaned up some of the code. 2018-03-22 11:51:04 -05:00
kpetersn 1fc33f95f9 Fixed the readReg32 calculation. Don't use registers_ for everything. Added zeroRegisters method. 2018-03-22 11:33:05 -05:00
Keenan Lang 75162d1fef Readded INIT due to iocsh interpretation issues 2018-03-21 17:55:33 -05:00
Keenan Lang 6998c37163 fix typos 2018-03-21 17:54:17 -05:00
kpetersn 1a4d1756b9 Corrected the max acceleration/deceleration 2018-03-21 15:07:55 -05:00
kpetersn 1f8e9d8a23 Added a reconfig routine. Corrected nElements after switching to modbus master branch on github. 2018-03-21 14:58:37 -05:00
kpetersn 5eef01248c Removed configBits 2018-03-20 14:57:17 -05:00
kpetersn 758f6fcc8b Print more info. Try to write/read registers for axis 2 (currently doesn't work properly). 2018-03-20 13:47:56 -05:00
kpetersn fae911bc35 Uncommented lines that zeroed the command register before a move (required for every move after the first after power-on to succeed) 2018-03-19 15:33:32 -05:00
kpetersn 2c269bb69f Also set all the registers when setting the position. Allows a single move to succeed after each setPosition call. 2018-03-16 16:30:06 -05:00
kpetersn 13ee3d23e4 Only configure the axis once 2018-03-16 15:37:30 -05:00
kpetersn d792f9afe7 Send all the registers when setting the configuration (fixes failure-to-configure problem after an error occurs). Also try to send move data with all 10 registers (fails in the same way as setting the registers independently) 2018-03-16 15:16:03 -05:00
kpetersn aaae2e642a Zeroing the CMD_MSW doesn't fix the unable-to-move problem 2018-03-16 13:50:41 -05:00
kpetersn 65dea5b7d2 Added a GetInfo that results in the getInfo() axis method being called. 2018-03-16 13:02:41 -05:00
kpetersn a05f47f96c Cleaned up code. Reduced delays added for testing. 2018-03-14 11:18:25 -05:00
kpetersn faba02a442 Set the configuration bits with array writes 2018-03-14 10:28:05 -05:00
Marius Elvert 58ed8b4efd Synchronize motor position with encoder position before every move 2018-03-13 10:16:09 +01:00
kpetersn 43c8eee384 Added a port to enable atomic writes of the config data 2018-03-09 15:54:00 -06:00
kpetersn 5651f7071e Added some variables and methods to troubleshoot init problems. Unsuccessful so far. 2018-03-09 14:37:00 -06:00
kpetersn 751905b275 Removed some print statements. Added more report info. 2018-03-08 15:55:46 -06:00
kpetersn 646b5fb87d Added support for the ANF2. Code compiles without error but hasn't been tested yet. 2018-03-08 11:41:19 -06:00
sluiter c1c4407644 Replaced invalid LT_EPICSBASE logic with working logic from SSCAN. Since EPICS_VERSION_INT defined in EPICSbase 3.15, added EPICS_PATCH_LEVEL argument. 2018-01-04 14:52:05 -06:00
Mark Rivers 60aa414b37 Add missing include files stdLib.h and errlog.h 2017-12-06 17:45:20 -06:00
Mark Rivers 8409249849 Added missing includes for stdLib.h and errlog.h, needed for base 7.0 2017-12-04 18:21:47 -06:00
kpetersn 73e076be46 Added R6-10 to documentation 2017-11-30 14:27:20 -06:00
rsluiter 691d375f0a Merge pull request #87 from epics-modules/gcc-fix
After testing these changes in MotorSrc and several drivers, this looks good to me.
R6-10
2017-11-30 11:10:51 -06:00
rsluiter 5245991323 Merge pull request #88 from epics-modules/fix-esp300
Fix problems with devESP300 and drvESP300
2017-11-27 10:21:34 -06:00
Mark Rivers 91b2e335d2 Set deceleration the same as acceleration for SET_ACCEL command; previously the default controller decleration was always used 2017-11-22 15:50:33 -06:00