586,700 active members*
3,227 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 23
  1. #1
    Join Date
    May 2005
    Posts
    89

    Cool Latency, Jitters & Lost Steps

    I've read a few posts which mention that choice of hardware may be causing lost steps.
    I'm experiencing lost steps in both Y & Z using an old 486 Toshiba Laptop, and as I have a choice of Computers to use with TurboCNC I'm in a quandary as to which one to use.
    I've listed below, the spec's that TurboCNC gives on startup. These spec's are almost meaningless to me and I'd like to know which of these Computers would be the best one to use?



    OLD Toshiba Laptop, (preferred Computer)
    Timer Latency; 11.51 Microseconds
    Max is; 431.00
    Min is; 11.00
    10% Jitter is; 10363.0 Hz

    Pentium 166 ( 2nd choice Computer)
    Timer Latency; 3.87 Microseconds
    Max is; 116.00
    Min is; 3.00
    10% Jitter is; 30833.9 Hz

    Compaq Deskpro
    Timer Latency; 4.01 Microseconds
    Max is; 69.00
    Min is; 3.00
    10% Jitter is; 29775.9 Hz

    Thanks in advance.

  2. #2
    Join Date
    Apr 2003
    Posts
    361
    Either the P166 or the Compaq.

    The laptop may have low voltage on the parallel port which may cause some problem with CNC controller and the step rate is limited to about 10kHz. With 4 microstep/step, 200step/rev & 10tpi leadscrew, you max rapid is only 75ipm. The other PCs can triple that theoritical maximum to about 225ipm.
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P

  3. #3
    Join Date
    May 2005
    Posts
    89
    Quote Originally Posted by abasir
    Either the P166 or the Compaq.

    The laptop may have low voltage on the parallel port which may cause some problem with CNC controller and the step rate is limited to about 10kHz. With 4 microstep/step, 200step/rev & 10tpi leadscrew, you max rapid is only 75ipm. The other PCs can triple that theoritical maximum to about 225ipm.
    Thanks for that, I'll setup the Pentium 166 tomorrow & see what happens.
    I'm actually *Gaining* steps on my Z-Axis not losing them.
    I'm using DeskEngrave to write a program with the word TEST, (original huh), and it appears that the Z-Axis advances in the -Z direction between the {+Z, Rapid, -Z sequence} between letters, and then slowly creeps in the -Z direction when cutting.
    BTW the lead screws are M8x1.25 pitch which is about 20 TPI so therefore much slower than your estimate above. Also I'm Full-stepping not Micro-stepping because of my fine pitch.

    Can I use my original .INI file from the laptop and then adjust from there??

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    You're not gaining steps, your losing steps in the +Z direction. You should try microstepping, it may eliminate the lost steps, because the motors should run smoother. Also, the ini file should be the same. It's not computer dependant, it's machine dependant.
    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)

  5. #5
    Join Date
    Jul 2004
    Posts
    242
    Quote Originally Posted by abasir
    Either the P166 or the Compaq.

    The laptop may have low voltage on the parallel port which may cause some problem with CNC controller and the step rate is limited to about 10kHz. With 4 microstep/step, 200step/rev & 10tpi leadscrew, you max rapid is only 75ipm. The other PCs can triple that theoritical maximum to about 225ipm.
    Could you explain a bit more on how to interpret the numbers?

  6. #6
    Join Date
    Mar 2003
    Posts
    35538
    10,000 steps per second from the PC. 200x4x10 = 8,000 steps per inch.
    10,000 x 60 seconds / 8000 = 75ipm.


    BUT, the speed that TCNC reports when it starts is not always a true indication of the speed you can achieve. I've heard of people getting double the reported speed.
    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)

  7. #7
    Join Date
    May 2005
    Posts
    89
    Quote Originally Posted by ger21
    You're not gaining steps, your losing steps in the +Z direction. You should try microstepping, it may eliminate the lost steps, because the motors should run smoother. Also, the ini file should be the same. It's not computer dependant, it's machine dependant.
    I used the word *Gain* as what I want is;
    {Z -1 to a Rapid height of Z +3, then G00 X Y to the next letter, then plunginging back down to Z-1}
    But what I get is;
    {Z -1 to Z +3, G00 X Y, it then goes to Z-2 through -4}.

    So I thought that -1 +3 -4 is a *Gain* of 3 steps. could it be interference cross talk from one of the other Axis Controller leads perhaps??

    I'm about to go and try the Pentium with the original .INI file & see what happens, just to eliminate the Laptop as a possible cause.

  8. #8
    Join Date
    May 2005
    Posts
    89
    Back again;
    The change of computer to the Pentium 166 has appeared to have solved the issue of lost steps. I ran my test program with a rapid height of 3mm & it worked OK, so I then ran it again with a rapid height of 20mm and this worked as well. I marked the Z-Axis shaft and arranged a pointer to verify this. I'll set up a dial gauge later on today to test it to a better degree of accuracy.

    The next problem is 'jagged curves', specifically the letter 'S' and the number '2'.

    I've created my program using DeskEngrave with 'TEST2' as the text. The letters are 20mm high Arial Font.
    I'm including both, a .jpg of the problem and a copy of my G-Code.
    I guess there may be 3 possible causes that I can see;
    1, That I still have a Computer/CNC Machine glitch, or
    2, That the program code generated by DeskEngrave doesn't interpolate curves very well, or
    3, A combination of 1 & 2

    Would someone please have a look at the G-Code and enlighten me on this one.
    I've already had a play with the arc function under 'General Setup', but this doesn't make any difference to the jaggys, but with a setting of 0.8 the Z-Axis starts twitching.
    Attached Thumbnails Attached Thumbnails test.jpg  
    Attached Files Attached Files

  9. #9
    Join Date
    Mar 2003
    Posts
    35538
    It's the g-code. There are no curves in the g-code.
    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)

  10. #10
    Join Date
    May 2005
    Posts
    89
    Quote Originally Posted by ger21
    It's the g-code. There are no curves in the g-code.
    Thanks for that, I had a play with the G02 Circular Interpolation code and engraved a perfect circle about an hour after my post, so I expected that the answer lay in the G-Code.
    Is this the best that DeskEngrave gives or can the Program give a better curve than this by changing the parameters within DeskEngrave??

    Having used the G02 Command, I am now a little more confused.

    I did this, as outlined in the TurboCNC Docs;
    G17 (plane XY specified for clarity)
    G71 ; Metric units
    G90 ; Absolute Coordinates
    G00 X0 Y0 (get into start position)
    G02 X2 Y0 I1 J0 F4
    And engraved a perfect little semi circle 2mm dia

    The explanation of G02 in the Doc File is;
    Quote/Moves from the current point to (0,0) in an arc with its center at the current point + 1 unit in the X direction at 4 units/minute. Absolute mode assumed. The "I" parameter is associated with the "X" axis, and the "J" parameter is associated with the "Y" axis./Quote

    So I changed the parameter 'I' to 10 expecting a semicircle of 20mm dia;
    G17 (plane XY specified for clarity)
    G71 ; Metric units
    G90 ; Absolute Coordinates
    G00 X0 Y0 (get into start position)
    G02 X2 Y0 I10 J0 F4
    And engraved a perfect *Circle* 20mm dia ????

    I thought from the explanation in the docs that changing 'I' would change the Radius of the circle, but this also changed the path from 180 degrees to 360 degrees.

    I know that I'm on the bottom of a steep learning curve here and any help is very appreciated.

  11. #11
    Join Date
    Mar 2003
    Posts
    35538
    The X and Y in the G2 line are the endpoints of the arc. If you don't change the endpoint, but move the center, then you'll get a different arc. You needed to change the G02 X2 to G2 X20
    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)

  12. #12
    Join Date
    Jul 2004
    Posts
    242
    Quote Originally Posted by Imagineering
    Back again;
    The change of computer to the Pentium 166 has appeared to have solved the issue of lost steps. I ran my test program with a rapid height of 3mm & it worked OK, so I then ran it again with a rapid height of 20mm and this worked as well. I marked the Z-Axis shaft and arranged a pointer to verify this. I'll set up a dial gauge later on today to test it to a better degree of accuracy.

    The next problem is 'jagged curves', specifically the letter 'S' and the number '2'.

    I've created my program using DeskEngrave with 'TEST2' as the text. The letters are 20mm high Arial Font.
    I'm including both, a .jpg of the problem and a copy of my G-Code.
    I guess there may be 3 possible causes that I can see;
    1, That I still have a Computer/CNC Machine glitch, or
    2, That the program code generated by DeskEngrave doesn't interpolate curves very well, or
    3, A combination of 1 & 2

    Would someone please have a look at the G-Code and enlighten me on this one.
    I've already had a play with the arc function under 'General Setup', but this doesn't make any difference to the jaggys, but with a setting of 0.8 the Z-Axis starts twitching.

    Go into Deskengrave, Create/Set Parameters Set your decimal places to 4. Retype and re create your text & g-code. You'll have nice smooth curves.

  13. #13
    Join Date
    Jul 2004
    Posts
    242
    Also, go to the downloads section here on the board, look for a file called "Guinness", download it to test with. I posted a link to what it's supposed to look like.

  14. #14
    Join Date
    Mar 2003
    Posts
    35538
    Quote Originally Posted by Imagineering
    I thought from the explanation in the docs that changing 'I' would change the Radius of the circle, but this also changed the path from 180 degrees to 360 degrees.
    I and J specify the center point of the arc. Moving the center will change the radius, but the start and end points stay the same.
    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)

  15. #15
    Join Date
    May 2005
    Posts
    89
    Rustyolddo, Thanks for that info, I'll try it out tomorrow with 4 decimals.

    Ger21, Thank you also, I now have a better understanding of the G0 command.

    I thought that I'd solved the problem of 'jitters' but apparently not. The machine is behaving perfectly except for the occasional -Z move. It'll be happily tooling along with a fixed Z-Axis height and then for no apparent reason the Z-Axis develops the jitters and starts slowly moving in the -Z direction. I've had a play, and it's not apparent to me if it's caused by RFI from either of the X or Y Axes. No other electric/electronic devices were running at the time, so that is already ruled out.

    My electronics are now in bits all over the bench, as I am now fitting shielding braid over every wire from the Power Transistors to the Axis Sockets in case RFI is the culprit. All my cables are shielded from the Sockets to the Steppers, apart from the last 30mm at the Z-Axis Stepper. I'll do all the earth shielding work, throw it back together and see what happens.
    I've also fitted up a 4N25 opto driving a relay for Spindle Control while I've got it apart.

    More later . . .
    Thanks guys.

  16. #16
    Join Date
    Mar 2003
    Posts
    35538
    Quote Originally Posted by Imagineering
    Rustyolddo, Thanks for that info, I'll try it out tomorrow with 4 decimals.
    I believe by changing to 4 decimals, you'll still get g-code with straight line segments, but they will appear much smoother. I don't think you'll get arcs (G2, G3), but you should get better results.
    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)

  17. #17
    Join Date
    Jul 2004
    Posts
    242
    Quote Originally Posted by ger21
    I believe by changing to 4 decimals, you'll still get g-code with straight line segments, but they will appear much smoother. I don't think you'll get arcs (G2, G3), but you should get better results.
    I was running text and had a similar problem with the jaggies. Adding decimal places and it cleaned it up. I'm engraving text that is .060" in height.

  18. #18
    Join Date
    May 2005
    Posts
    89
    AAAArrgh, I've just spent the best part of the day putting earthed shielding braid over all my cables that run between the Logic Board & the Power Transistors & Resistors, only to find that it did it again. I did a perfect run with a text of 'ESO3' to test straight lines & curved text together, then I tried it again on another board only to have it do the 'jitter -Z' thing again. As I have a Dremel bolted to the Frame about 100mm from the Z-Axis Stepper, I'm thinking towards RFI from the Motor Brushes. I've marked the Z-Axis and I'm now running the test program through five times continuously, without the Spindle switched on, so as to confirm or negate my theory.

    The good news is that Rustyolddo was right about the 4 decimal places, I engraved text of 30mm height with not a jaggy to be seen. Thanks guys.

  19. #19
    Join Date
    May 2005
    Posts
    89
    Yippee, I've run through the ESO3 text program five times without the Spindle turned on, and the Z-Axis returned precisely to the original start position after 1 1/4 hours of manouevering. I'll move the Dremel Motor to the back of the Frame tomorrow & try again . . .

  20. #20
    Join Date
    Jul 2004
    Posts
    242
    Do you have a o'scope?

    Whose controller are you using?

    The only way that I can see motor noise causing jitters is if it's getting into your dataline from the computer, Step & Dir.

    Are you running a laptop or a desktop style computer? Laptops are known to have low voltages on the Para port that can cause problems.

    Need more info on your setup.

Page 1 of 2 12

Posting Permissions

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