586,114 active members*
3,279 visitors online*
Register for free
Login
IndustryArena Forum > WoodWorking Machines > DIY CNC Router Table Machines > Xaxis starts to "jump" during routing
Page 1 of 2 12
Results 1 to 20 of 21
  1. #1
    Join Date
    Aug 2011
    Posts
    0

    Question Xaxis starts to "jump" during routing

    Hi, so I just finished building my first custom CNC router based loosely on the Buildyourowncnc.com machines and running off a G540/Keling setup with mach3 and CAMBAM (In trial modes till I get things working) and most everything seems to be fine, except...

    When I am using mutiple depth passes on a profile cut the lower levels will start to shift slightly so that they are offset in the Xaxis direction. Then, if I cut for too long (maybe 8min) the Xaxis offset will go from shifting less than a millimeter between passes to shifting an inch or more! My hand spends most of the time hovering over the eswitch! My motors get pretty hot by that point (not too hot to touch, just too hot to hold for more than 6-7sec.) especially my Xaxis. Also, this is only happening on the X-axis, the y and z never falter that I can tell.

    all my stepper motors are the keling 381oz/in, I'm using a 1/4" upspiral bit, and my feedrate is only 30-40 ipm at 0.08" depth per pass. Please help! Is it hardware, software or what?
    Attached Thumbnails Attached Thumbnails CNC Router.jpg   Xaxis motor.jpg   Xaxis Motor 2.jpg   Problem.jpg  

    Problem gets worse.jpg   Problem becomes OMG WTF!.jpg  

  2. #2
    Join Date
    May 2007
    Posts
    60
    Hi,
    My guess would be to start by reducing the x axis acceleration in mach 3, out of curiosity what is it currently set at.
    Daniel
    If it can't be fixed with a hammer it must be an electrical problem!

  3. #3
    Join Date
    Aug 2008
    Posts
    1166
    I assume you would have noticed this, but do the shapes you're cutting appear on the mach3 preview screen correctly (in other words, check that the g-code is not to blame).

    If you write a short little program that just moves the x back and forth and use a dial indicator or just make some reference marks somewhere, does it always come back to the same point? If it is repeatable, start reducing the feedrate. Go really low, like 0.1ipm. See if it starts having problems moving correctly. If so your parallel port probably can't source enough current to drive the G540.
    CNC mill build thread: http://www.cnczone.com/forums/vertical_mill_lathe_project_log/110305-gantry_mill.html

  4. #4
    Join Date
    Mar 2008
    Posts
    177
    try climbcut.

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    What is your pulse width set to in motor tuning?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  6. #6
    I had the exact same issue and slowed the feed speed down to 15 max 20 ipm.
    And had the X axis a bit too tight. The heat issue was completely gone and the cut staid true. As soon as I played around with settings and the heat came back, so did the offset in the cut.

  7. #7
    Join Date
    Aug 2011
    Posts
    0
    Thanks for your replies everyone!

    Daniel233, my x-axis max speed was set at about 120ipm, acceleration was at about 30ipm/sec/sec. I'll try reducing it to 15ipm/sec/sec?

    jsheerin, yes, I did check the gcode, everything looks fine in both cambam and Mach3. I'll try reducing the super-low feedrate test and see.

    EBC, is climbcut a cambam or mach3 setting?

    ger21, the pulse width is set to 2us in all axis.

    S3MIH3MI, I'll try to slow down the feedrate on my cuts a lot and see if I can avoid the heat up. Does that mean my motor is underpowered and I should potentially bump it up to like a 900oz/in NEMA 34?

    Since it seems like everyone is saying "try slowing down" I'll give it a try. Slow is fine with me right now as long as the cuts are accurate.

  8. #8
    Join Date
    Aug 2011
    Posts
    0
    *UPDATE*
    So I reduced the feed-rate and xaxis acceleration and that seems to have taken care of my slight offset shifts between layers (edges look nice and clean) and the motors are definitely cooler, but while I was doing some test runs I found out how the large offsets were occurring. It would seem that during the cut, mach3 will start a movement (I can see the tool point change in the mach3 visual window) but the real tool point stays still. So that when it starts to move again, the cutting tip is in a different position in reality than where mach3 thinks it is. Oddly, this problem only seems to occur when making a movement in the X-axis, and seems to occur almost randomly, although once it starts, it keeps happening till I hit the eswitch.

  9. #9
    Join Date
    Aug 2011
    Posts
    0
    So I also tested repeatability by moving the xaxis at very low speeds (1 ipm and 0.1 ipm) and then zeroing the axis out at 20 to 40 ipm where I had previously observed good results. It was way off. It also made distinct clicking and thumping sounds at low speeds. If this means my computer can't source the current to run the gecko over the parallel (I'm using the motherboard port) then would using an add-on parallel port card solve this problem or would I need a new computer or an easystepper?

  10. #10
    Join Date
    Aug 2008
    Posts
    1166
    You might try the same thing with your other axes - run them at really slow speeds and see if they behave erratically. With my machine, I don't remember it making odd noises at the very low speeds - it just didn't move consistently. Sometimes it would move and sometimes it wouldn't. It would only have problems on the Z at normal speeds, but iirc at very slow speeds all the axes had problems. However, the noises you describe sound more like the motor is stalling. The motor shouldn't stall at low speeds though - it should be making max torque there. All the suggestions to reduce feed rate and acceleration would help with that, but it should still run okay at very low speeds as well... You might remove the motor and try turning the x axis by hand to make sure it's not binding anywhere. If it's not binding and other axes have issues at very low speed, I'd suspect the LPT port, and read on.

    Here's the thread where I was figuring this out, see post 17 or so and on:
    http://www.cnczone.com/forums/gecko_...g_problem.html
    Unfortunately my old website disappeared a while ago and the images in that thread are gone, so I'll repost them here. The first two pics are screwy step pulses from my onboard LPT port. The last shot is from my add on port and what the first two pulses should have looked like. The pulses should have a height of about 5V, rising up from 0V which is 1 division above the bottom of the scope screen. My solution from post 21 in that thread was this, which also describes the last attached scope trace:
    I installed a Rosewill pci parallel port card and this fixed my motion problem at low speeds. It's sourcing 8.2mA of current in this setup - 4.6V into a 560ohm resistor. The downside to this card is that it can't source enough current from pins 1 and 17 (only about 1mA available) to be able to control the general purpose outputs of the G540. Under load the voltage sags down to ~0.58V from 5V. Luckily there are two ports on one card, so I'm working on a cable to use some of the 'good' pins from the second port to drive pins 1 and 17 on the db25 connector going to the G540. So I'm seeing the light at the end of the tunnel.

    To add to this, what I ended up doing was going to Radioshack, buying some 25 pin connectors, and using them along with some CAT5 cable to make a sort of y cable that used some pins from each of the two LPT ports of the Rosewill card and combined them into one connector at the other end for the G540. It's a pretty cheap fix to try, but without a scope to look at what your current port is doing, it's tough to say that's what the problem is with 100% certainty.
    Attached Thumbnails Attached Thumbnails 091016_lpt_step_pulse_down.jpg   091016_lpt_step_pulse_up.jpg   091022_step_pulse_rosewill_lpt_card.jpg  
    CNC mill build thread: http://www.cnczone.com/forums/vertical_mill_lathe_project_log/110305-gantry_mill.html

  11. #11
    Join Date
    Aug 2011
    Posts
    0
    Thank you, I'll try testing the other axis at low speeds first. I already checked the x-axis and everything runs smoothly with no binding. I do have a generic looking Manhattan PCI Parallel port card I could install and test as well. It may not solve my problem (wish I had an oscilloscope) but since its a free, easy mod, I might as well try it.

  12. #12
    Join Date
    Aug 2008
    Posts
    1166
    An easy way to test your parallel port would be to assign pins to an output that you can hold high. For example a direction pin or a pin to turn on your spindle, flood coolant, etc. Then toggle whatever setting in mach 3 to make the LPT pin go high. With a DC volt meter, you should measure 5V between that pin and ground. Then connect the pin to ground with a 560 ohm resistor. Measure the voltage across the resistor. If it's fallen a lot (like below 3V or so), your LPT port is probably causing problems. If it's still high (like say 4V or higher), you're probably fine. You can calculate the current from I=V/R, and I believe you need 5mA to drive the opto-isolators on the G540's inputs.
    CNC mill build thread: http://www.cnczone.com/forums/vertical_mill_lathe_project_log/110305-gantry_mill.html

  13. #13
    Join Date
    Aug 2011
    Posts
    0

    Talking

    Well, I checked my pins for my two relay outputs and my direction output on my x and y axis with my digital multimeter, and they are all reading at about 4.39v, with or without a resister. The test resister I used was 460ohms, which would make my current about 9.5milliamps. So I guess that's that's allright. I might install my new port anyway just to see. I was also thinking about changing my xaxis on the gecko over to the A-axis to see if its the xaxis controller.

    jsheerin, I was reading on your thread http://www.cnczone.com/forums/gecko_...g_problem.html about increasing the pulse width, do you think that is worth a shot?

    Also, I was reading about optimizing your pc for mach3. I did everything in the setup manual, but I do have antivirus and chrome installed since there is an internet connection (which I like so I can transfer design files from my design PC), and I never bothered to go through the manual start-up program removal process. Could this be causing a problem?

    I plan on trying these and any other ideas that come to mind as I have time until this is fixed. but thoughts and guidence are very much appreciated as I feel I am learning/guessing a lot right now

  14. #14
    Join Date
    Aug 2008
    Posts
    1166
    My understanding is that increasing the pulse width is bandaid, not a real fix, but you can try it.

    I'm surprised at the results of your LPT port measurements. I would expect the voltage to drop somewhat when you added the resistor... If that's correct, it should be fine though. I suppose there is a possibility that different pins behave differently. My add on board did that, although given that the ones you measured were so good, I'd think it less likely.

    While I'm not the mach3 expert by any means, I'd definitely try unplugging your internet connection and turning off your antivirus.
    CNC mill build thread: http://www.cnczone.com/forums/vertical_mill_lathe_project_log/110305-gantry_mill.html

  15. #15
    Join Date
    Aug 2011
    Posts
    0
    So just an update,
    I poked around at a whole bunch of solutions on my free-time, replacing components and the like, then I thought to touch my G540 controller. It was really hot. So I added three 48v case fans and the problem stopped, Lets hear it for simple explanations.

  16. #16
    Join Date
    Aug 2011
    Posts
    0
    Anyway, so after I got my system working, I started doing various projects and cuts, and everything looked good until I pushed the IPM speed back up out of "test" range (like 10-15ipm). I'm at 30-40ipm now and I'm starting to get misalignment issues within the work. It's only in the x axis but it results in pieces cutting into one another and misaligned holes. I tested each axis and found that the screw-driven z axis will flex a piece of 1/2" MDF good without any stalling, and the y axis (chain and sprocket) will tear a line across the top of the board with a stationary bit that is pretty deep before stalling, but I can stall the X axis pretty easily. Conclusion: I have an under-powered X-axis stepper motor. It's in the Y axis support beam and drives chains on both sides with 5/16" extension rods and sprockets. The gantry itself is a pretty hefty chunk of MDF and metal (my z-axis even has a 10lb counterbalance weight) so I guess my 381 oz/in stepper just cant handle pushing it and cutting through wood while at anything other than it's highest torque setting down at it's lowest speed. So I'm going to drop it down to it's lowest speed setting, and order one of those 900 or 1200 oz/in steppers from kelinginc.net. Might get one for the y axis just to be safe, I can always use the 381's for a pcb mill or something later on. I don't know why I went with the smaller motors in the first place, the 900's are only twice as much. Amazing how much smaller an amount $100 is now then when I was first planing my system

  17. #17
    Join Date
    Jan 2008
    Posts
    853
    Bigger motors are not always better, especially with high-speed devices like chain drives. Your G540 can only run to 50V; and I am guessing that the stronger motors have higher inductances, which means they need higher supply voltages to get their full power output. Bottom line : you may get even less power in use than what you have now.

    My X,Y chain drives look like yours, similar layout, and the system runs cool with no evidence of lost steps. It can rapid scarey fast. Does your gantry move smoothly by hand? It should be easy to move when the power is off. And while a counterweight reduces the up/down asymmetry to Z motion, it adds to the mass, and slows down the acceleration (F=mass x acceleration; Force is motor limited).

    The two X chains must be 'in-phase' with each other, or the two sides are going to be trying to twist the gantry. Plus, if the two sides have different tensions or different number of links across the working travel, then one side will have to move farther/faster than the other as you move X from one limit to the other, and this too will cause racking. Since one link is only 0.25", I think that it is easy to get one or two links too many on one side, especially with an MDF frame.

  18. #18
    Join Date
    Mar 2003
    Posts
    35538
    I agree. The 381 oz motor should easily get you 10-15 times more speed than your seeing.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  19. #19
    Join Date
    Jan 2008
    Posts
    853
    Quote Originally Posted by Firestar View Post
    I did everything in the setup manual, but I do have antivirus and chrome installed since there is an internet connection (which I like so I can transfer design files from my design PC), and I never bothered to go through the manual start-up program removal process. Could this be causing a problem?
    My garage PC is wireless connected to the router so I can get the files just as you say; I have never had a problem. I have antivirus software running always, automatic updates set to manual install,; no browser running with M3, but some keypad extensions are. I tried using a USB-Camera to record the cutting, but started to see some fits and starts when recording to disk (still cut well, but clearly not as smooth) so I got rid of the camera. I am running a 2 core XP-machine.

    One oddity with using M3 in this way is that for some reason M3 keeps the Gcode file open, even when it has loaded the file. If you go back to the computer that is sourcing the gcode file, and try to modify it, you get a 'File in Use' message, even after the cuts are complete. Seems like an oversight in M3; it should open the file to read then close it as soon as possible afterwards.
    Cheers!

  20. #20
    Join Date
    Oct 2008
    Posts
    1147
    Your stepper motors should not be the problem. Your wiring could be. What Ohm resister are you using with those motors? If you already posted forgive me.

Page 1 of 2 12

Similar Threads

  1. ACME Threaded Rod, 1/2"-10, 5 Starts, 6 Feet
    By elwoodbeauchamp in forum Canadian Club House
    Replies: 2
    Last Post: 06-02-2009, 02:10 PM
  2. Too many "M00"s. stops and starts
    By mike hide in forum SheetCam
    Replies: 3
    Last Post: 09-16-2008, 12:04 AM
  3. My "S.H.I.G." router build starts
    By picbits in forum CNC Wood Router Project Log
    Replies: 21
    Last Post: 05-12-2008, 06:48 PM
  4. Question on using "plasma" table for routing
    By Red Earth in forum Waterjet General Topics
    Replies: 1
    Last Post: 04-09-2007, 06:04 AM
  5. 12"x12" for precision routing
    By AndyL in forum DIY CNC Router Table Machines
    Replies: 3
    Last Post: 12-19-2005, 03:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •