Home › Forums › TinyG › TinyG Support › Unexpected Motor LED operation
- This topic has 9 replies, 4 voices, and was last updated 10 years, 11 months ago by cmcgrath5035.
-
AuthorPosts
-
December 3, 2013 at 9:43 am #5005cmcgrath5035Moderator
I have a TinyG V7 running TinyG FW 0.96/380.08.
Running a job yesterday, noticed unexpected behavior watching the green Motor LEDs while the machine was running.
My setup (a dual-Y ShapeOko):
Motor 1 – X axis (normal Polarity)
Motor 2 – Y axis (normal Polarity)
Motor 3 – Z axis (normal Polarity)
Motor 4 – Y axis (reverse Polarity)My expectation is that the Motor 2 and 4 LEDs would track on/off in lockstep, as they are both driving the Y axis.
My current job is engraving a wide (along the X axis) rectangle.
Engraving results are working OK.
Watching the LEDs, I see:
A. When moving from X=10 to X=150, constant Y and constant Z, Motor 2 LED ON and Motor 4 LED ON (or sometime reversed, off-on)
B. When moving from X=150 to X = 10 after Y increments by 10, z constant, both Motor 2 and Motor 4 LEDs onThis make sense? Not to me
December 4, 2013 at 6:30 am #5007aldenMemberIf you told me the machining (engraving) was not working it would be an issue, but the lights are truly advisory. You shouldn’t care too much about what’s happening. Here’s my take on what’s going on.
There is no simple “indicator light” function on the stepper drivers, so the LED is just wired across one of the motor phases (A phase). The indexer inside the stepper chip decides exactly where the phase outputs are. There are multiple states the phases can be in and still get correct stepping. The indexer can be set to a known starting point by a HOME signal to the chip, but we don’t do this as it’s not necessary for proper operation and would take a valuable IO line to do it. So what you are seeing (I suspect) are the indexers on the 2 Y axis chips being out of sync with each other. This does not affect the stepping, but does affect the LEDs.
December 4, 2013 at 7:33 am #5008cmcgrath5035ModeratorLEDs – OK, thanks, understand.
I am having some issues with the machine – One particular program (Gcode) seems to somewhat randomly loose track of X axis zero point at the same point late in the run. I have no reason to suspect overheating, everything running cool.
I realize that is a needle in the haystack, so am continuing to debug with various experiments and will be back with something for you to maybe look at when I have better info.December 4, 2013 at 12:37 pm #5010jm82792MemberNearing 8 months ago I had my Z axis stall on with my old stepper drivers which were only 30 volts and weren’t enough for my machine.
In the end the machine was was cutting 1″ thick MDF in one pass with a .25″ endmill, nicked my Y axis slides, and the acme drive screw. Everything is working nicely with some sanding and buffing, however, I’m if stalls are bad I can’t think of what a controller fault could do !December 4, 2013 at 12:43 pm #5012aldenMember@cmcgrath5035 Please post the file you are having issues with and your settings ($$). If you can link to these on dropbox or some other file site, great. Also, please remind me what kind of machine you are running? If home built then a description would be useful. Thanks –Alden
December 5, 2013 at 8:27 pm #5026cmcgrath5035ModeratorAlden
I have a ShapeOKO V1, with extended Y axis, Dual Y Motors, Double X, ACME screw upgrade for Z and retrofit to V2 Motor plates.The job I am running is engraving on plastic laminated material, 4 labels for a boat I am building
Here is what it looks like in “physical space”
The design is in QCAD3, and QCAD/CAM generated the G Code.
I manually added the comments.What happens is when Gcode line N14120 executes, the tool moves to a position less than X=7.938mm. The termination of that line of code is at the tip of the red arrow above.
Then line N14140 executes, and since it is a relative move, the left end of the lower boarder box (blue arrow)is offset by that amount.
I have run several times, the error is somewhat random but always small.
It is interesting that the end after the word Anchor is aligned with the end above it, as it should be.GCode is here
Settings are here
My next debug will be just to run the 4 “bounding boxes”, no text, to see if that makes a difference.
Also, I note that after termination of the program, if I issue a G0 X0 Y0 from the command line (using tgFX), the tool moves to a new (0,0) point that is offset by the same error as the vertical line at the end of the blue arrow.
If you have any other debugging suggestions let me know.
December 6, 2013 at 3:38 pm #5027cmcgrath5035ModeratorOK, new and interesting additional results.
I created a Gcode set for just the four bounding boxes.
They are now machined from bottom to top, rather than top to bottom.
For some reason the Gcode generates this way.Here is the Gcode
And the parameters again
I ran the Gcode twice and happened to catch the error on the tgFX display, here is a partial tgFX display
On the first run, the lower bounding box drew correctly.
The tool then moved up , Gcode line N140; see red arrow above.
Then for some reason, Arc commands on N160 and N180 got skipped and a vertical line was drawn along X=4.842 rather than rounding back to X=3.175. The bottom of the second bounding box is correct, as is the remainder of the program.When it completed, I issued G00 X0 Y0 and reran the program, this time it ran correctly start to finish on both the engraved result and tgFX. The two tgFX traces are overlayed.
With the tgFX display actually catching the error (via the status updates), I am now more suspicious of a TinyG computation error. I am hoping you will see something obvious or non-optimum in my settings that could be the culprit.
- This reply was modified 10 years, 11 months ago by cmcgrath5035.
- This reply was modified 10 years, 11 months ago by cmcgrath5035.
December 8, 2013 at 10:13 am #5034cmcgrath5035ModeratorHere is an additional bit of information/results.
I ran this GCode File
Same TinyG parameters as previous post
With these results
I am overall impressed with the results, with the exception of the highlighted areas, Some of the diagonal lines are not properly spaced and one arc of the side-by-side laege diameter circles has a slight error.
I like this particular test because the GCode draws in a rather random fashion, so and errors such as belt slips/skips would be very obvious.
The job runs for 15 minutes plus, and from start to finish the intersection precision is very good, except in those two areas.Comments and suggestions welcome.
- This reply was modified 10 years, 11 months ago by cmcgrath5035.
December 16, 2013 at 3:32 pm #5082MakerboostMemberCould this be attributed to backlash? Do you have MXL or GT2 timing belts? MXL belts are designed for linear motion in one direction only, and gives you some backlash when reversed. GT2 belts are better for bidirectional movement because the teeth are round and fit snugly into the pulley groves.
December 16, 2013 at 7:10 pm #5083cmcgrath5035ModeratorThanks for the input – frankly I don’t think so but it could be belt related.
Primary reason I don’t think so is that the problem, when it appears, is always in the same area of the workpiece. There are several identical areas on the design, not at all clear why backlash would not be a somewhat random event or, perhaps, very unique intersection.
I would particularly expect to see more areas on the last piece I posted, the SpapeOko Test, since the cutting is VERY random (not well ordered) so I would expect to see issues in more locations.
I am using the stock MXL belts, where does one find the GT2?
-
AuthorPosts
- You must be logged in to reply to this topic.