Thread: At last, found the bug
-
Taken over a week to find that critter
My new stepper driver had a gremlin in it. It would buffer commands from the PC in the command buffer, upack them as steps in the step buffer, then extract steps on the interupt and move the motor.
Sounds simple enough, but every once in a while it would go dead slow.. That was the bug
I had traps and flags all over the shop but everything looked fine and dandy, UNTIL I idly started dumping out the timer delay when it wasn't actually supposed to be doing anything
An easy mistake... If you want to slam in to reverse at 10 revs/second you have to have accelerations and decellerations. I was turning on and applying the accelerations BEFORE step data actually reached the interrupt. Result, the timer delay overflowed and the delay went from very small to enormous
These things are amazingly easy to fix once you know what they are
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Just a little video i found
By totts in forum General DiscussionReplies: 5Last Post: 18-04-2014, 09:37 AM -
Found this spindle supplier
By EddyCurrent in forum Marketplace DiscussionReplies: 0Last Post: 01-10-2013, 10:15 PM -
WANTED: FOUND: RM1605 ballscrew, at least 365mm (ish)
By Jonathan in forum Items WantedReplies: 4Last Post: 08-09-2013, 02:01 AM -
eBay: Found a new machine on eBay
By bigdazza18 in forum Items On eBay UKReplies: 13Last Post: 05-03-2012, 10:53 PM -
Found Timing Belts
By GeorgeD in forum Gantry/Router Machines & BuildingReplies: 2Last Post: 14-07-2010, 07:36 PM
Bookmarks