Home › Forums › TinyG › TinyG Support › A little confused and annoyed…
- This topic has 19 replies, 4 voices, and was last updated 10 years, 1 month ago by Zootalaws.
-
AuthorPosts
-
October 7, 2014 at 2:43 pm #6852RhinofartMember
Hey guys. I’m fairly new at this CNC thing, so please bear with me. I built an OpenBuilds OX, and am using the TinyG latest version. I received it just last week. Anyways, I’ve gone through and calibrated my X and Y axis ok. They work great, and are accurate. I did some calibrations for my Z axis and it moves accurately as well. But, when I go to send a gcode, my Z axis goes kind of squirrely. I made a part in Sketchup, and exported the gcode. I think all the settings in there are good, but like I said I’m a noob at this. Here is a link to my drop box. I have screenshots of the settings within tgFX, as well as the results of running $$ on CoolTerm. Any help you guys could give me for sorting out my Z issue would be greatly appreciated.
https://www.dropbox.com/sh/ll69wwon389gxbp/AAAVQ5lxE9SHIQcHdA2hpnepa?dl=0Thanks,
RhinoOctober 7, 2014 at 5:21 pm #6853cmcgrath5035ModeratorNice Dropbox data set.
I am not familiar with Ox, have only see the pictures on web site.
My initial reaction was that Z axis is ‘different’ (than Shapeoko).
Why do they use a 400 step per revolution motor? Just curious.
What really caught my eye was the Z movement – 16mm/rev.
A Shapeoko with ACME screw is 2.11 mm/rev. From the Pics, Ox looks like a direct drive to screw as well. Are you sure about 16mm/rev?X and Y axis travel / rev sort of high too, 60mm/rev vs 36.54 mm here.
NEMA23 motors on X and Y? X and Y velocities are high, but GCode may have a lower F speed.Might also help if you added your Gcode file to the Dropbox for a look-see.
Can you describe ‘squirly’ Z : can’t keep up, lags, intermittent, ??
Did you try to run the job ‘in air’ above the work, spindle off, just to remove machining load?
October 8, 2014 at 2:40 am #6855RhinofartMemberSorry for the long response time. Work got busy for me. I’ll try to address your questions in order. ;0)
400 step per rev motor? I really don’t know. It’s just what was sent to me when I ordered off the parts list that they provided.Yes, it’s basically a direct drive for the Rod. There is a flexible coupling that attaches to the motor shaft, and then to the threaded rod.
For the Z movement, that is what I was able to calculate based on a few internet “calculators” that took into account degrees per step, rod pitch, etc. I’m really new to this, so I’m trying to learn everything at the same time. The details on the threaded rod I have are:
•Tr8*8 No idea what this means
•4 Start No idea what this means
•Pitch 2mm Used in my calculations along with motor info.
•Lead 8mm Used in my calculations along with motor info.
But, yeah. I see what you mean. 1 complete revolution of the rod shouldn’t go 16mm now that I think of it. But strangely, when I do distance measurement testing, all 3 axis are spot on with the numbers I’ve entered.
When I was testing and calibrating the movement on the X and Y, that was the only number that got me accurate for my movement tests. Yes, my feed rates are a lot slower when it’s “performing it’s cut” I don’t have my spindle attached yet.I’ll upload the quick little G-Code I created in Sketchup / Sketchucam to my drop box.
Squirly Z. Well, when I start a job, It brings the Z axis up, moves over into the work area (It does this really really slowly I might add. It takes a few minutes to move the gantry. Slowly ramps up to a velocity of 50mm/minute until it gets to where it needs to drop the spindle) Then the Z goes down into the workspace, but goes down way too far, and bottoms out on the bed. If I pause the job, manually move my Z up, and resume, it goes about it’s business fine. I figure it’s got to be some sort of weird configuration / faulty end user issue, but I’m at a loss of where to start. I have some limit switches enroute, but they won’t be here for about a week. I plan to use them as limit, and limit/homing sensors. Do you think that would help my cause out?
Thanks a bunch for the help.
RhinoOctober 8, 2014 at 5:24 am #6856chmrMemberHi, I try to chime in with some info to clear things up:
Threaded rod: TR8*8/4-start means: TR=standardized trapezoidal screw; the first 8 is the outer diameter of the rod; the second 8 is the lead, 8mm per revolution; 4 start means there are really 4 threads on the rod, each with 2mm offset (pitch) to the previous. 4-start helps with max load and smoothness, and is important to match rod and nut, but it does not influence the calculation of lead. Your $3tr should really be 8.
Step angle: According to the parts list, both the Nema17 and Nema23 motors are 200 steps per revolution (1.8 deg step angle). Set your $3sa=1.8 . Because your $3tr was also wrong, it evened out to the same distance (when tinyg tried to move the Z axis 8 mm, it calculated that it needs 0.5 motor revolutions = 200 steps with the old settings; with the new settings, it uses 1 motor revolution = 200 steps). But this does not explain the squirrelyness.
X/Y travel: 60mm per revolution is correct according to the parts list (20 tooth pulley * 3mm belt pitch).
I ran your gcode circle files, both of them run “fine”. I noticed some things in the files:
1. You placed 4 tabs on the inner circle, but not on the outer circle. For the tabs, the machine has to decelerate x and y, lift Z up a bit, cut the tab, drop z down, accelerate x and y again.
2. The gcode assumes that Z=0 is at the top of the material (very common). That means that positive Z coordinates are in the air, negative ones are cutting in the material. If you set up the 0 coordinate at the top of the work bed (not the material), it would explain why the machine tries to cut into the workbed.Velocity: The feeds in your files and parameters seem to be quite fast (in fact, I think 5000 mm/min feedrate would be too fast for all except *very* soft materials). I cannot see the 50mm/min and slow speed to move the gantry. Did you do this test with a different file or different settings?
Limit/homing switches are a good thing, but I don’t think they would change anything about your problem.
Edit: Nearly forgot, another common issue with Z going to deep is when the Z axis actually goes too short when commanded to go up (caused by sticking/binding Z nut, over temperature of driver or motor, too fast max speed $zvm, slipping pulley/coupling, slack belt). I don’t think this is your problem, but you can try to send the Z axis up and down manually with “G0 Z35” and “G0 Z0”. If it does not stop at the same point every time, investigate further in this direction.
Btw, thank you for reminding me to download sketchUcam 1.2 🙂
- This reply was modified 10 years, 2 months ago by chmr.
October 8, 2014 at 8:16 am #6858cmcgrath5035ModeratorThanks for the comments, chmr. Hopefully Rhino will be able to report better results after a couple tweaks to parameters.
Chmr has more experience than do I, so I use this set of good information (in Rhino’s dropbox set) to pose a somewhat philosophical question:
Why compromise the torque gain one gets by using NEMA23 motors with large pulley diameters? There seems to be a bias toward speed of movement, rather than using the available torque to better control the spindle mass. And if precision is important to the end user, this 60mm/revolution machine is about half as accurate as a Shapeoko, at 36.54mm/revolution. There is no right or wrong here, and for light duty jobs (laser, 3D printer) these might be more optimal choice.
Likewise, the use of a “fast” lead screw on Z significantly reduces torque available to control the up/down motion of the spindle. Of course, choice of spindle is a free parameter in this situation.
There is not right or wrong answer here, more philosophy.Rhino: How did you create the Dropbox URL that you posted? Specifically, how does one get the ‘skin’ that allows switching between ‘list’ view and ‘thumbnail’ view? This is a very effective way to share information on issues such as this, given the limitations of the forum tool we have.
Cheers
October 9, 2014 at 12:43 am #6866RhinofartMemberYes, thank you very much Chmr! I’m finally starting to understand this stuff a little. When I get home tonight, and put the family to bed, I’ll go down to my garage, and go through everything. And, you’re welcome for the reminder! ;0)
The 5000 mm/min federate is just what I’m using for my “in the air testing”. It will definitely be slowed down accordingly for whatever materials I wind up cutting.
The 50mm/min issue has persisted through every file I try to send it. I will try again with different settings. Good thing I’m an insomniac.
Good thought on the Z going up short. I’ll check that out by trying out the G0 Z35 and G0 Z0 I saw somewhere about a G00 command. Is that a valid command to move things at maximum speed?
Thanks for everything so far guys, and I’ll be sure to report back when I’ve gotten it all sorted out and working. Hope to have a Youtube vid of some chips flying around soon.October 9, 2014 at 6:10 am #6869chmrMemberRhino, yes G0 (or G00) is a fast move, only limited by the setting of $xvm/yvm/zvm. G1 X100 Y100 Z30 F500 is a feed with 500mm/min (limited by $xfr/yfr/zfr), usually used for the actual cutting.
A good cheat-sheet for common gcode commands is at http://linuxcnc.org/docs/html/gcode.html
The issue with slow moves has me stumped — are you sure that you didn’t change any of the *vm or $fr settings from the dropbox settings?
Please post results, and when you have success, a video is always fun to watch 🙂Carl, a true philosophical question indeed. If you want real answers, you’d have to talk to teh Openbuilds guys. I *guess* that they did not intend to make the machine faster, but had to use the pulleys out of necessity: They wanted to run the belt inside the extrusion slots and dual-use their solid V wheels as belt-idlers. That means that the belt must be even narrower (5mm) than the GT2 belt on the Shapeoko2 (6.3mm), and it is already a limiting factor on the Shapeoko. They had to move to 3mm pitch (== thicker/stronger belt) to offset this. And to make sure that enough teeth are engaged, they had to use 20 tooth pulleys.
I’m inclined to call this a nifty idea with unwanted side effects. Although the *theoretical* accuracy of the Ox is 0.0375mm (60mm per revolution / 200 steps per revolution / 8 microsteps) is worse than that of the Shapeoko2 (36 / 200 / 8 = 0.0225), the *real* accuracy of both machines is limited by other factors (rigidity or lack thereof, backlash in belt, wheels, bearings, and chip-size of material).October 9, 2014 at 7:58 am #6875cmcgrath5035Moderatorchmr – You know the Ox design well. Thanks for comments. I’ll agree with your characterization “nifty idea with unwanted side effects”.
Rhino – When I play with CLI moves, I keep these in my head:
G0 moves are at max velocity
G1 moves are at F velocity
G2 and G3 moves are arcs, I don’t try them from CLISo, from a tiny G reset with the Z above the work surface, which sets current position at (0,0,0) , you could do
G1 Z10 F20
G1 Z0
G1 Z10 F40
G1 Z0
etc., incrementing velocity (Fxx) until it starts to misbehave.From where do you get the 50mm/min slow start velocity value? From tgFX? That velocity display is tgFX diplaying the status messages returning from tinyG, which are the results of the 3rd order calculation tinyG is doing. Not clear why this would be happening, your parameters seem reasonable (jerk, Vmax). If this persists, perhaps cut your $[xyz]vm and rerun, as an experiment.
Electro-mechanical considerations:
Z motor making any strange noises? Have you tried a run with current pots maxed out? You’ll need more torque from Z motor to move spindle up down with 8mm/rev speed.Are the Z motor to lead screw coupling set screws good and tight?
October 9, 2014 at 10:08 am #6878cmcgrath5035ModeratorRhino
After commenting, saw we have another Ox threadInterestingly, there the Z problem is opposite yours – Z moves uncontrollably fast.
There are likely parameter issues in that thread so may not apply here.But it triggered another thought on debug.
Try setting your $3tr=2mm.
To compensate, you would need a G0 Z40 command to get what G0 Z10 currently should do.
I know Z travel around 2mm/rev is well tested, there is a possibility that 8mm/rev is untested territory with other typical Z parameters.October 9, 2014 at 10:15 pm #6882RhinofartMemberHey guys.
Those settings in the config file are what I was running during the tests.
I did do a bunch of testing with the velocities, and feed rates on all 3 axis. I would adjust the Max Velocity, and Feed rate Velocity up by 1000 increments. Then I did a G1 f(insert number from 2000 – 10,000) x300 then G1 f(insert number from 2000 – 10,000) y500 and then G1 f(insert number up from 200 – 1000) Z29
Every single test worked perfectly fine all the way up to 10,000 even with my spindle attached. But, when I go and do a G0 command on ANY of the axis, it starts to move, motor makes a weird noise, and it looses all the steps. I have no clue as to where it is getting the velocity speed for the G0 command. I’ve gone through the $$ “printout” from within Coolterm, and tgFX. Seeing as I have a capture of the config file for reference, I may do a “factory reset” and try it all again. I’ll do up a quick little video showing what I did for the testing, and post it up. You guys would likely know by the sound of the motors and such what they are doing. I also did the AMP calibration on the motors as well.The $[xyz]vm is velocity maximum correct? Also, I’m not sure about the jerk rating. I’ve not been able to find a good explanation of what that kind of jerk is.
The 50 mm/min velocity value is unknown to me.
The lead screw to coupling is good and tight. It’s not spinning out at all.
Just out of curiosity, how easy should the gantry be able to move? Mine has a little bit of resistance to it, but I don’t think it’s too bad….
Wow! What a novel!
October 9, 2014 at 10:36 pm #6883RhinofartMemberWell now. Just for poops, and giggles I changed the power wire going from my powersupply to the 12V of the TinyG and WTF (Why The Face)! G0s now working fine. Was my TinyG actually starved for power? But starting up the job, I still get the slow traverse out into the work area, but it’s not as long. The GCode for that job is up on the drop box. It’s the one named Lotsoshapes.cnc Anything in the G-Code that sticks out, or any other weird $command it could possibly be that I can’t set from within tgFX??
October 10, 2014 at 7:21 am #6884cmcgrath5035ModeratorAre you running your tinyG(and motors) from a 12V supply?
Why? Is that what Ox recommends?Most folks run 24V, 4 to 6Amp capability, you can go higher V (tinyG rating 30V)if willing to deal with heat.
I’m thinking that NEMA23s are seriously starved for torque with 12V.
And use descent wire between your power supply and tinyG – 18ga suggested.See
On tinyG, 12V pins are for fans, NOT input.
Gantry should move with some resistance manually. Resistance depends A LOT on belt tension, which from chmr’s description sounds like a lot.
From your description, movements up to F10000are OK
A G1 X300 F8000 moves to X300 at velocity 8000mm/min
A G0 X300 moves to X300 at velocity $xvm, You have $xvm at 16000Try changing $xvm to 10000 and see if G0 X300 now works.
Your funky motor noises sound like not enough torque per step pulse.
Torque comes from current thru stepper winding. Twice as much current when pulses are 24V vs 12V.- This reply was modified 10 years, 2 months ago by cmcgrath5035.
October 10, 2014 at 11:42 am #6889RhinofartMemberYes, I’m running from a 12v supply right now. I have no problems going up to a 24v unit. I think I’ll actually pick one up. The 12v supply was just me being too cautious I think. But, as it stands right now everything is working since I changed my power wire going to the TinyG. I am definitely going to upgrade to a better powersupply. Need more volts & amps! ;0)
I have $[xy]vm at 10000, and $zvm at 1000, and everyone is doing max velocity G0 moves now with no problems.
Thank you guys so much for the help. I hope that I soon become knowledgeable enough to help pay it forward.Rhino.
October 10, 2014 at 12:47 pm #6891cmcgrath5035ModeratorTo summarize, when a simple linear move is requested, tinyG computes a move plan that starts at 0, accelerates as fast as possible toward $xvm (a G0 move) or current F setting(a G1 move), then decelerates to 0 at the far end. Jerk and other magic determine the shape of the actual speed profile. tinyG does not really know what the motor is doing, so can’t tell that there isn’t enough current to achieve the profile.
When running G code, tinyG is looking ahead to what it has to do next, as some next moves (consider a 179 degree change of direction) require different speed and accleration profiles.When in doubt, keep things slow at first, ramp them until a job breaks, then back off some on speed.
October 11, 2014 at 6:55 pm #6910RhinofartMemberFactory reset, and then re-configuring made everything work perfectly. No longer getting that slow movement to the cutting area. My lotsoshapes GCode file now takes under 2 minutes to do with no changes to the GCode. Pretty darn happy with this TinyG, and OX configuration. ;0) Time to make some sawdust!!!
-
AuthorPosts
- You must be logged in to reply to this topic.