588,225 active members*
4,648 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Stepper Motors / Drives > Z-axis problem: missing steps - tried everything, completely lost
Page 1 of 3 123
Results 1 to 20 of 58

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Posts
    25

    Z-axis problem: missing steps - tried everything, completely lost

    hello,

    it's been several weeks now that i'm trying to solve this problem:

    When i'm doing 3d finishing passes (Parallel Finishing from Rhinocam) at the moment when the Z axis retracts after finishing one part and before transfering to the next. The z-axis 'grinds' and i'm losing steps so the Z0 is not at the same height anymore and therefter the tool digs in deeper than it should making the parts useless.

    Here's what i tried until now:

    • bought a power conditioner
    • reinstalled Windows from scratch on an SSD and optimised it
    • upgraded Mach3 to the latest version
    • cleaned and greased the z-axis parts
    • tripple-checked and tried out all possible and imaginable settings/combinations in Mach3 and Rhinocam
    • changed the Step and Dir lengths
    • inverted the Step and Dir low/high active
    • read all related threads in various forums and tried out any remotely related suggestions
    • edited the Gcodes to insert a G4 Dwell before the problematic retract movement
    • tried with or without Rapid movement
    • tried adding a radial exit of the toolpath before retract
    • tried all possible and imaginable combinations of speed/velocity



    I think the PC is not at fault, Mach3 driver test shows 'System Excellent' for all kernel speeds including 100kHz

    I also think it's not a speed/acceleration problem since i tried out everything from speed: 100mm/min to 3500mm/min with Acceleration of 10-2500mm/sec2

    the problem persits, here is a video of it (with a 10sec G04 just before the problematic retract): Untitled Document

    in this video you see the Z go up at 200mm/min .. when i test in motor tuning or jog i can get up to 2000mm/min without any problems and really smooth and speedy motion, even when i'm operation all 3 axes at the same time

    most related forum threads i found pointed towards a speed/acceleration problem that's why i spent several days testing out all possible combinations. the problem is always the same, always only on the Z and always when retracting after a parallel finishing.

    what's really strange is that the finishing pass itself runs without any problems, even at 2500mm/min, it's only the retract that blocks ... in the specs of the machine the max speed is quoted as 4500mm/min .. i tried everything .. slow speed, slow acceleration, slow speed, fast acceleration, fast speed slow acceleration, fast with fast and at least a hundred setings combinations in between

    what's even stranger is that a horizontal roughing pass where there is much more radical movement and alsop a lot of Z retracts, it runs without any problems .. even at 2000mm/min


    from what a friend who is an expert in mechatronics the machine itself is in good mechanical condition .. and he also can't figure out whats wrong

    the machine is a Gravograph VX2 connected via an octocupler to the parallel port of a pretty high-end (for the time) IBM Thinkcentre. I'm using the original motors and onboard drivers and the machine has done me good service for almost 2 years now. I've tried opening up old GCodes which i know did not exhibit this problem (since i managed to finish the products without problems) and the problem is also present in those files which used to run fine

    i'm really completely lost .. possibly more than the steps on my Z

  2. #2
    Join Date
    Aug 2010
    Posts
    599

    Re: Z-axis problem: missing steps - tried everything, completely lost

    I had the same problem with my mill. It drove me nuts. I swapped the axis drive with a different axis and the problem followed the drive to the new axis. I determined it was something wrong with the driver and replaced it. Haven't had the problem again.
    warmachinellc.com

  3. #3
    Join Date
    Mar 2003
    Posts
    35538

    Re: Z-axis problem: missing steps - tried everything, completely lost

    I think the PC is not at fault, Mach3 driver test shows 'System Excellent' for all kernel speeds including 100kHz
    The System Excellent message in the driver test is meaningless.
    What kernel speed are you running at? Is the line in driver test perfectly flat, or are there large steps?

    What kind of drives are you using?
    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)

  4. #4
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    yes the line in the driver test is completely flat, one or two tiny spikes when it takes over but then totally flat ... i have been running for years at 25k kernel speed .. i just tested the other kernel speeds to see if it changes anything but it doesn't .. the line is also completely flat for all kernel speeds

    the drivers are the original Gravograph drivers built into the machine, i don't have more info than this: http://www.e-engraving.com/machines/...h_VX2_Spec.jpg

    This is the driver board, but it's much cleaner and dustfree now it's a photo from when i first got it:

    Attachment 245302

    i also forgot to mention in my initial post that when the Z grinds and loses steps and i stop the machine, re-zero the axis and then scroll back a couple of hundred lines before the critical retract point and do a 'Run from here' the problem doesn't happen .. the Z axis retracts without grinding or loosing steps ... even at speeds of 2300mm/min .. if i then do a rewind and run the code from start the problem is back .. totally weird

    i'm also starting to think that the driver is at fault somehow ... it's just weird that it only happens under these precise conditions (retract before transfer on a parallel finishing), in motor tuning or jog everything is hunky dory

  5. #5
    Join Date
    Apr 2004
    Posts
    5757

    Re: Z-axis problem: missing steps - tried everything, completely lost

    You might try doing what Swath did - turn everything off and wait a while for the capacitors to discharge, then swap the Z axis to another driver and see if the problem goes away, or transfers to the other axis. I doubt you can still get replacement drivers for that 1986-vintage machine, but you can always contact Gravograph Engraving material and supplies - Gravograph - Laser Engraving Systems, engraving software - New Hermes engraving machine and see what they recommend. If worst comes to worst, you can probably just replace the whole thing with new drivers and breakout board, maybe a G-540, which is pretty popular here.
    Andrew Werby
    Website

  6. #6
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    so .. the plot thickens .. once again

    i did as you suggested and swapped the cables for Z and Y ... unfortunately the problem persists

    as for Gravograph, i contacted the european headquarters when i first got the machine and they weren't very helpfull, they just said it wasn't a supported machine anymore and that it was impossible to make this machine work easily with a modern computer (there was an old DOS PC which controlled it originally). They said that they still had a control unit for sale which 'might' work .. the price was 13k - and all it really needed was a cable and it could be directly connected to a parallel port PC with Mach3 .. there was another guy in the UK who had such a box for around 1.5k but at least he was so honest to tell me that all it needed was a custom cable and even gave me advice and some of the pinouts to do it

  7. #7
    Join Date
    Apr 2004
    Posts
    5757

    Re: Z-axis problem: missing steps - tried everything, completely lost

    So the problem remained with the Z axis? That's actually good news, since it means that the problem is probably a mechanical one, wiring, noise, or a settings issue and not the fault of your controller or driver. If it's just faulting when you do a rapid upward move and you're sure your velocity and acceleration settings are correct, that points to stiction of some kind - check again to make sure there's no binding at the top of the stroke. Check to see if any wires are stressed in these upward moves, or if they could be losing their ground connections. There could also be some kind of noise coming from your spindle. To check that, try running the problematic part of your program with the spindle turned off.
    Andrew Werby
    Website

  8. #8
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by awerby View Post
    check again to make sure there's no binding at the top of the stroke. Check to see if any wires are stressed in these upward moves, or if they could be losing their ground connections. There could also be some kind of noise coming from your spindle. To check that, try running the problematic part of your program with the spindle turned off.
    sorry english is not my native language .. what do you mean by 'binding' ?

    i'm already doing all the tests with the spindle off

  9. #9
    Join Date
    Apr 2004
    Posts
    5757

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Binding is when the axis gets stuck for mechanical reasons. It could be misalignment in the rails, or between the rails and the screws, or failure of lubrication, etc.
    Andrew Werby
    Website

  10. #10
    Join Date
    Jun 2007
    Posts
    190

    Re: Z-axis problem: missing steps - tried everything, completely lost

    The first thing I would do is try to narrow down problem. I would start by making sure it has nothing to do with the over heating.

    Replace the dwell you inserted with a stop. Run the program and when it stops, give the controller a good 15 minutes to cool down. Then check that everything did cool down and resume.

    If the problem goes away you still need to run it again, this time restarting it immediately to see if it was the cool-down or if adding the stop fixed it. If adding the stop fixes it then it's probably a very sneaky software bug.

    If the problem did not go away then you need see if it is a mechanical problem. For this you need to monitor the drive signals being applied to the stepper motor. This requires some test equipment to monitor the drive signals going to the motor. An oscilloscope with isolated differential probes is ideal if you have one but a set of headphones and a resistor will work just fine.

    All you need to find out is whether or not the motor is stopping because some step signals were missing. If you have the oscilloscope you just connect to the motor drive leads and see if the pulses become erratic causing the motor to skips steps. With the headphones you just listen to the pulses to accomplish the same thing.

    To use headphone to monitor the signals you need to connect a resistor to cut down the signal level. The value of the resistor isn't critical. We just would rather not blow out either the headset or our eardrums. Some ballpark math to come up with a reasonable resistor value:

    A 1 volt signal is pretty loud in a headset and the stepper drive is probably around 50 volts so we want to cut the volume about 50 times.

    A typical headphone element is 40 ohms. 40 x 50 = 2000 so a 2K Ohm resistor in series is about right.

    The headphone plug has 3 contacts:
    Tip - Left channel
    Ring - Right channel
    Sleeve - Common ground for both channels

    I find it easiest to wrap one lead of the resistor around the sleeve ground and poke the other lead into the housing, touching one of the pins. Then use the tip like a probe to connect to another pin. With this you will be able to hear if missing step signals are causing the problem.

    After that you will at least have some idea where to look.

    Pete

  11. #11
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    still not progressed much ...

    good news is i bought a new stepper motor and managed to connect it so it works (wasn't easy since i didn't have the pinout of the old motor so i had to determine which lead is which first)
    bad news is: it wasn't the stepper, still losing steps with the new one

    so it's something downstream from the stepper. I doubt it's the cable since it's really well attached and there is no movement of the cable at all when the machine is running since the stepper transmits through a belt. I will try to double check it but it'll be hard since it's channeled through the underside of the machine.

    being a musician i'd quite like to try out listening to the signal in audio
    i'm not sure i completely understand the instructions.

    Quote Originally Posted by probinson View Post
    To use headphone to monitor the signals you need to connect a resistor to cut down the signal level. The value of the resistor isn't critical. We just would rather not blow out either the headset or our eardrums.

    The headphone plug has 3 contacts:
    Tip - Left channel
    Ring - Right channel
    Sleeve - Common ground for both channels

    I find it easiest to wrap one lead of the resistor around the sleeve ground and poke the other lead into the housing, touching one of the pins. Then use the tip like a probe to connect to another pin. With this you will be able to hear if missing step signals are causing the problem.
    After that you will at least have some idea where to look.
    Pete
    poke into which housing ? i have all the leads coming from the driver (4 leads) going into clip connectors so it's easy to connect .. but not completely sure what to connect to what ...

    in any case ... since the problem seems to be in the old electronics of the machine i think i will stop troubleshooting this at this point and completely eliminate the old electronics and power stage. i'll probably buy 3 new power stages from Leadshine, a good power supply and if i have to an interfaceboard but i have this super cheap chinese 6-axis USB board lying around which i'll try first.

    thx everyone for your help with this .. i'll keep you posted when the new electronics are up

  12. #12
    Join Date
    Jun 2007
    Posts
    190

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by cncvirgin View Post
    poke into which housing ? i have all the leads coming from the driver (4 leads) going into clip connectors so it's easy to connect .. but not completely sure what to connect to what ...
    Guess I got sidetracked and didn't actually answer the question. Sorry.

    Your phases don't seem to be labeled on the PCB so you need to pull the plug and use an ohm meter to find out which wires connect to the motor coils. You don't need to know polarity, just which pair of wires are used for each motor coil.

    The motor plugs are all wired the same so just choose the easiest one to work with. Measure between the plug contacts (the cable end that goes to the motor not the PCB pins) to find out which pair of wires are connected to each coil. The wires that read a low resistance to each other are on the same motor coil so that is where you will connect your probes. You want the speaker element in parallel with the motor coil (with a resistor in series with the element to limit the power, of course).

    Pete

    Oh, the 2K resistor value limits the power to the headphone element to around 25mW. The power dissipated by the resistor, however, could be on the order of 1.5W if it is connected to a drive with no motor loading the output. A 1/4 Watt resistor should be fine with a motor connected but you need higher Wattage and/or resistance it you want to listen to the unloaded driver output.

  13. #13
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    hey, thx so much for the detailed explanations .. and with all this talk about probing i finally understood the deeper meaning of your forum alias

    so .. sorry to be so thick about this ... my knowledge in electronics tends towards total ignorance, and before attempting any type of electric connections i'm always afraid to electrocute myself so i prefer to ask again to make sure i completely understood ... btw, can i electrocute myself with the current coming out of the motor cables ? can i break the stepper motor or driver PCB if i hook sth up wrong ?

    so to take things from the top, this is my pinout:

    Attachment 246908

    i decided to hook up the new motor in series since it draws the least amount of power .. i really have no idea how much power the machine can supply but in series the motor draws 2A/phase (Unipolar:2.8;Parallel:4.0) and the resistance with this wiring is closest to what it says on the sticker of the old motor: 2Ohms (Unipolar:1;Parallel:0.5) .. but as you know i don't have a clue so this was just a guess . i don't mind losing torque at high speed with this connection cause i'm not running super high feeds and am mostly cutting very soft materials.

    if i understood your instructions correctly then this would be the wiring for the headphone probe:

    Attachment 246910

    is this correct ? this would be connecting the headphones without the motor .. how would i connect it with the motors ?

    Quote Originally Posted by probinson View Post
    Oh, the 2K resistor value limits the power to the headphone element to around 25mW. The power dissipated by the resistor, however, could be on the order of 1.5W if it is connected to a drive with no motor loading the output. A 1/4 Watt resistor should be fine with a motor connected but you need higher Wattage and/or resistance it you want to listen to the unloaded driver output.
    so 2kOhms is not the right resistor ? again my lack of knowledge in these matters is striking: 1/4 Watt resistor ??? Aren't resistors measured in Ohms ?

  14. #14
    Join Date
    Jan 2005
    Posts
    15362

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by cncvirgin View Post
    I doubt it's the cable since it's really well attached and there is no movement of the cable at all when the machine is running since the stepper transmits through a belt.
    Your cable I know is what the manufacture used, it is neither Twisted Pair or Shielded, which still could be the problem, so this does point to either the cable or your drive, try this Z axes with a different drive X or Y Drive, if it does the same thing then it is the cable, get a shielded cable & Ground the Shield at the input end
    Mactec54

  15. #15
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by mactec54 View Post
    Your cable I know is what the manufacture used, it is neither Twisted Pair or Shielded, which still could be the problem, so this does point to either the cable or your drive, try this Z axes with a different drive X or Y Drive, if it does the same thing then it is the cable, get a shielded cable & Ground the Shield at the input end
    thx for this advice, now that my connections are on clip connectors this will be easy to test.

    the way i understand it, since the problem remained after switching the cables to different drivers, it is either a software bug or all 3 drivers have the same problem .. or a problem with the power (or power supply) .. but you're right, it might just be the cable ...

    should i get a cable like this:

    Attachment 247006

    with all 4 cables in one, or do i need a single shielded cable for each of the 4 motor/driver connections ?
    when you say 'input side' do you mean the side with the motor or on the driver/pcb side ?

  16. #16
    Join Date
    Jan 2005
    Posts
    15362

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by cncvirgin View Post
    thx for this advice, now that my connections are on clip connectors this will be easy to test.

    the way i understand it, since the problem remained after switching the cables to different drivers, it is either a software bug or all 3 drivers have the same problem .. or a problem with the power (or power supply) .. but you're right, it might just be the cable ...

    should i get a cable like this:

    Attachment 247006

    with all 4 cables in one, or do i need a single shielded cable for each of the 4 motor/driver connections ?
    when you say 'input side' do you mean the side with the motor or on the driver/pcb side ?
    You should use a separate cable for each motor, of the same wire size, that was used by the manufacture, just add shield

    Connect the shield at the PCB side to Ground which can be direct to the control box, the shorter this shield wire connection to ground the better, don't add a wire to the shield, you can use also a small copper saddle as well, just over the shield, just remove the insulation around the wire, clamp the saddle tight over the shield, check to see that the power control Box has a good Ground also
    Mactec54

  17. #17
    Join Date
    Jul 2004
    Posts
    240

    Re: Z-axis problem: missing steps - tried everything, completely lost

    As before was mentioned... the problem did not move, with the switching the drive... thus the problem is either in the cabling... when it is in a certain position. Or as seems more likely, something in the bearings, and sliding up and down.
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  18. #18
    Join Date
    Apr 2012
    Posts
    11

    Re: Z-axis problem: missing steps - tried everything, completely lost


  19. #19
    Join Date
    Jul 2004
    Posts
    240

    Re: Z-axis problem: missing steps - tried everything, completely lost

    Quote Originally Posted by graffix11 View Post
    This may help
    Great video, this should help. Also don't change 3 things at once. Only do one change at a time. Then test. If that don't work. Reset to original, and try the next change. This way you will discover exactly what the problem is.

    Kind of like fixing a car... "I replaced the battery, the alternater, and the cables... and its fixed!" ? = What fixed it, the battery, the alternater, or the cables?? Answer: "I don't know...". If you replace one thing, and it don't fix it, then put it back, and try something else... till you discover exactly what it is.

    Hope you find it...
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  20. #20
    Join Date
    Aug 2010
    Posts
    25

    Re: Z-axis problem: missing steps - tried everything, completely lost

    great video indeed !!!

    so i did what he suggests, first disabled XY axis - still losing steps
    increased the pulse width to 15 for both step/dir - still loosing steps
    tried sherline mode - still loosing steps
    Tried very slow speed an acceleration - still loosing steps
    tried various speed/accel settings - still loosing steps
    pulled the Z motor, marked with a sharpie - still loosing steps

    here it is:

    Attachment 245594

    strangely enough it say SERVO on there ... how can i tell if this is a servo or a steper ? There is no info on the web on this motor and the manufacturer does not have any info on this product anymore since it was a long time ago and it was from a different manufacturer just rebranded.

    so at least i know now that it's not a mechanical/binding problem on the Z axis
    so it means the problem is either with the motor itself or it's in the path from stepper to computer which could mean either:

    drivers
    power supply
    optocoupler
    parallel port
    software (mach3)
    Gcode

    i guess the last two are probably not the problem, there doesn't seem to be anything weird in the Gcode and i went over all possible settings in Mach3 several times and wouldn't know what else to try in there

    the power supply and the drivers are on this old Gravograph board and since i'm not so good with electronics i wouldn't want to attempt replacing just one of the components so i'm thinking about swapping out the whole thing: new powersupply, new drivers ... and while i should probably change the stepper as well since it's 25 years old. this would also give me a feature upgrade with microstepping but it will cost 3-500€, still hoping to find the problem without needing to spend so much

    but i still can attempt what Probinson suggested, listening to the signal in audio seems like a good and fun idea

    not quite sure yet where else to go from here ...

    BTW .. thanks so much everyone for helping me with this !!!!!

Page 1 of 3 123

Similar Threads

  1. my x axis is missing steps but I found the problem
    By xspyke in forum Gecko Drives
    Replies: 5
    Last Post: 11-07-2013, 02:57 AM
  2. Help please with axis missing steps.
    By jim1949 in forum Want To Buy...Need help!
    Replies: 0
    Last Post: 08-02-2011, 02:44 AM
  3. Missing steps when jogging in more than one axis
    By vonnieda in forum Benchtop Machines
    Replies: 31
    Last Post: 08-05-2009, 06:23 PM
  4. z axis sticking / missing steps
    By 725franky in forum Taig Mills / Lathes
    Replies: 65
    Last Post: 04-06-2009, 11:07 PM
  5. Motor speed problem/missing steps
    By rich_cree in forum Taig Mills / Lathes
    Replies: 4
    Last Post: 02-17-2009, 06:22 PM

Tags for this Thread

Posting Permissions

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