Limit Switch Triggered! IS NOT!!


Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Limit Switch Triggered! IS NOT!!

  1. #1
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default Limit Switch Triggered! IS NOT!!

    I’m still working on my first project, a Chinese symbol meaning Happiness for a friends wedding. So far it has not been bringing any happiness into my life. But like I said this is my first project and just going through a period working out the bugs.

    Using Mach3
    Windows XP
    The code is attached below

    When I start the cut it will run for a while and all of the sudden I get a “Limit Switch Triggered” error message.
    When it gives this error message I am not near any limit switches. And if I run it with the Diagnostic screen displayed, the Limit Switch Leds never flicker and I will still get a “Limit Switch Triggered” error message.
    It doesn’t happen at the same place but in random places on the cut.

    I then do a “Reset”.
    Then press Start, and it doesn’t start cutting where it stopped. It skips several lines of code and starts cutting again.

    Any suggestions?

    Thanks
    Hager

    G0 Z0.1250
    G0 X0.0094 Y1.4181 Z0.1250
    G1 X0.0094 Y1.4181 Z-0.1250 F10
    G1 X0.3848 Y1.8189 Z-0.1250 F20
    G1 X0.7603 Y2.0192 Z-0.1250
    G2 X1.5111 Y1.6185 Z-0.1250 I0.1554 J-0.6126
    G1 X1.5111 Y1.6185 Z-0.1250
    G2 X0.7603 Y-0.1849 Z-0.1250 I-3.1323 J0.2462
    G1 X0.0094 Y-0.7860 Z-0.1250
    G1 X-0.7415 Y-0.1849 Z-0.1250
    G2 X-1.4923 Y1.6185 Z-0.1250 I2.3814 J2.0495
    G1 X-1.4923 Y1.6185 Z-0.1250
    G2 X-0.7415 Y2.0192 Z-0.1250 I0.5955 J-0.2119
    G1 X-0.3660 Y1.8189 Z-0.1250
    G1 X0.0094 Y1.4181 Z-0.1250
    G0 X0.0094 Y1.4181 Z0.1250
    G0 X0.0094 Y-4.9939 Z0.1250
    G1 X0.0094 Y-4.9939 Z-0.1250 F10
    G1 X0.3848 Y-4.5931 Z-0.1250 F20
    G1 X0.7603 Y-4.3928 Z-0.1250
    G2 X1.5111 Y-4.7935 Z-0.1250 I-0.0914 J-1.0750
    G1 X1.5111 Y-4.7935 Z-0.1250
    G2 X0.7603 Y-6.9976 Z-0.1250 I-1.7533 J-0.6326
    G1 X0.0094 Y-7.5988 Z-0.1250
    G1 X-0.7415 Y-6.9976 Z-0.1250
    G2 X-1.4923 Y-4.7935 Z-0.1250 I1.0025 J1.5715
    G1 X-1.4923 Y-4.7935 Z-0.1250
    G2 X-0.7415 Y-4.3928 Z-0.1250 I0.8423 J-0.6743
    G1 X-0.3660 Y-4.5931 Z-0.1250
    G1 X0.0094 Y-4.9939 Z-0.1250
    G0 X0.0094 Y-4.9939 Z0.1250
    G0 X0.0094 Y-7.9995 Z0.1250
    G1 X0.0094 Y-7.9995 Z-0.1250 F10
    G1 X0.0094 Y-7.9995 Z-0.1250 F20
    G2 X-2.6186 Y-3.5913 Z-0.1250 I0.2802 J3.1546
    G1 X-2.6186 Y-3.5913 Z-0.1250
    G2 X-0.7415 Y-3.1905 Z-0.1250 I1.2307 J-1.1677
    G1 X-0.7415 Y-3.1905 Z-0.1250
    G1 X-0.7415 Y-2.6896 Z-0.1250
    G1 X-2.8063 Y-2.6896 Z-0.1250
    G2 X-2.9941 Y-2.4892 Z-0.1250 I0.1036 J0.2852
    G1 X-2.9941 Y-1.6376 Z-0.1250
    G2 X-2.8063 Y-1.4372 Z-0.1250 I0.1727 J0.0263
    G1 X-0.7415 Y-1.4372 Z-0.1250
    G1 X-0.7415 Y-1.1867 Z-0.1250
    G2 X-2.4309 Y2.8207 Z-0.1250 I0.9383 J2.7554
    G1 X-2.4309 Y2.8207 Z-0.1250
    G2 X-0.7415 Y3.2215 Z-0.1250 I1.1394 J-1.0418
    G1 X-0.7415 Y3.7224 Z-0.1250
    G1 X-2.8063 Y3.7224 Z-0.1250
    G2 X-2.9941 Y3.9228 Z-0.1250 I0.1036 J0.2852
    G1 X-2.9941 Y4.6241 Z-0.1250
    G2 X-2.8063 Y4.8245 Z-0.1250 I0.2008 J0.0000
    G1 X-0.7415 Y4.8245 Z-0.1250
    G1 X-0.7415 Y5.3254 Z-0.1250
    G1 X-2.0555 Y5.3254 Z-0.1250
    G2 X-2.2432 Y5.5258 Z-0.1250 I0.1036 J0.2852
    G1 X-2.2432 Y6.2271 Z-0.1250
    G2 X-2.0555 Y6.4275 Z-0.1250 I0.2008 J0.0000
    G1 X-0.7415 Y6.4275 Z-0.1250
    G1 X-0.7415 Y7.8301 Z-0.1250
    G2 X-0.5538 Y8.0305 Z-0.1250 I0.2008 J0.0000
    G1 X0.0094 Y8.0305 Z-0.1250
    G1 X0.5725 Y8.0305 Z-0.1250
    G2 X0.7603 Y7.8301 Z-0.1250 I-0.0131 J-0.2004
    G1 X0.7603 Y6.4275 Z-0.1250
    G1 X2.0743 Y6.4275 Z-0.1250
    G2 X2.2620 Y6.2271 Z-0.1250 I-0.0131 J-0.2004
    G1 X2.2620 Y5.5258 Z-0.1250
    G2 X2.0743 Y5.3254 Z-0.1250 I-0.2913 J0.0848
    G1 X0.7603 Y5.3254 Z-0.1250
    G1 X0.7603 Y4.8245 Z-0.1250
    G1 X2.8251 Y4.8245 Z-0.1250
    G2 X3.0128 Y4.6241 Z-0.1250 I-0.0131 J-0.2004
    G1 X3.0128 Y3.9228 Z-0.1250
    G2 X2.8251 Y3.7224 Z-0.1250 I-0.2913 J0.0848
    G1 X0.7603 Y3.7224 Z-0.1250
    G1 X0.7603 Y3.2215 Z-0.1250
    G2 X2.4497 Y2.8207 Z-0.1250 I0.5501 J-1.4425
    G1 X2.4497 Y2.8207 Z-0.1250
    G2 X0.7603 Y-1.1867 Z-0.1250 I-2.6278 J-1.2521
    G1 X0.7603 Y-1.4372 Z-0.1250
    G1 X2.8251 Y-1.4372 Z-0.1250
    G2 X3.0128 Y-1.6376 Z-0.1250 I0.0150 J-0.1740
    G1 X3.0128 Y-2.4892 Z-0.1250
    G2 X2.8251 Y-2.6896 Z-0.1250 I-0.2913 J0.0848
    G1 X0.7603 Y-2.6896 Z-0.1250
    G1 X0.7603 Y-3.1905 Z-0.1250
    G1 X0.7603 Y-3.1905 Z-0.1250
    G2 X2.6374 Y-3.5913 Z-0.1250 I0.6465 J-1.5684
    G1 X2.6374 Y-3.5913 Z-0.1250
    G2 X0.0094 Y-7.9995 Z-0.1250 I-2.9083 J-1.2537
    G1 X0.0094 Y-7.9995 Z-0.1250
    G0 X0.0094 Y-7.9995 Z0.1250

    Similar Threads:
    Last edited by Mr.Chips; 12-10-2007 at 07:57 PM. Reason: Added text


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    Most likely, you're getting noise. On the general config page, put 5000 in the debounce box in the top right corner and see if that helps.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  3. #3
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default It helped so much that it didn't get a false trigger even after nine cycles

    Quote Originally Posted by ger21 View Post
    Most likely, you're getting noise. On the general config page, put 5000 in the debounce box in the top right corner and see if that helps.
    Help?

    It helped so much that it didn't get a false trigger even after nine cycles.

    Looks like that is another lesson learned.

    Now what will be next?

    It is so good to have people on line that are ready and able to help.

    Thanks :rainfro:
    Hager



  4. #4
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    436
    Downloads
    0
    Uploads
    0

    Default

    I had the same problem before, and even tried setting the debounce up a bit. Now, although the limit switches are installed, and used as homing switches, I have limit switches turned off in Mach. That gremlin will pester me no more...



  5. #5
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Question

    Quote Originally Posted by spoiledbrat View Post
    I had the same problem before, and even tried setting the debounce up a bit. Now, although the limit switches are installed, and used as homing switches, I have limit switches turned off in Mach. That gremlin will pester me no more...
    When I installed my switches I used coax and grounded them, as I had read about problems like this. I even set debounce to 5000 and still get a false trigger once in a while. And every time I reset Mach3 it would skip a few steps, which is not a good thing.

    I'm thinking of turning off the switches as limits and using it as Homing Switchs as you have.

    When you use them as homing SW's does the interference give you any false signals?

    Thanks



  6. #6
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    436
    Downloads
    0
    Uploads
    0

    Default

    Never...

    My cables have a grounded shield as well, but with 20 foot servo power wires in the near vicinity, I have always been plagued by this.

    I have watched the diagnostics screen in Mach when it trips, and the light does not blink for any of my limit switch inputs, so it is happening very fast. (hence, the debounce method)

    I simply became tired of my machine quiting on me, since it runs about 4 hours a day. Plus, I work well within my machine boundaries and use caution when jogging near my limit switches, so this is the right answer for me (until I buy a $200,000 router, that is.)

    Good luck,

    Rob



  7. #7
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    Quote Originally Posted by Mr.Chips View Post
    When I installed my switches I used coax and grounded them, as I had read about problems like this. I even set debounce to 5000 and still get a false trigger once in a while. And every time I reset Mach3 it would skip a few steps, which is not a good thing.

    I'm thinking of turning off the switches as limits and using it as Homing Switchs as you have.
    Increase it to 7000-10,000 if you still get occasional triggers. This will give a slight delay in switch activiation, but is better than no limits at all.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  8. #8
    Member
    Join Date
    Nov 2007
    Location
    USA
    Posts
    197
    Downloads
    0
    Uploads
    0

    Default

    i'm having the same problem here too.

    where are you grounding your wires out to? maybe i need to improve this area on my machine.

    5000 didn't seem to help much for me



  9. #9
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    740
    Downloads
    0
    Uploads
    0

    Default

    I had the same problem. I put a .01 mf capacitor across the ground and signal pins for the limit switches. (found this in another thread here) No more problem. I tried several debounce settings never found one to completely eliminate the problem for me until the cap was added.



  10. #10
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default How Many Caps?

    Quote Originally Posted by BobF View Post
    I had the same problem. I put a .01 mf capacitor across the ground and signal pins for the limit switches. (found this in another thread here) No more problem. .
    Do you mean one cap between each stepper wire and ground?

    Or one cap connected to all wires and ground?

    Yep I'm electrically challanged.
    But I'm having the same problem.
    Thanks



  11. #11
    Member
    Join Date
    May 2006
    Location
    Australia
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    Not stepper wires. Limit switches.

    Use one cap per input. So if all limit switches are in series to one input then use one at the input.

    If each switch has it's own input then one per switch.

    Greg



  12. #12
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Greolt View Post
    Not stepper wires. Limit switches.

    Use one cap per input. So if all limit switches are in series to one input then use one at the input.

    If each switch has it's own input then one per switch.

    Greg
    OK I understand now.

    What exactly does the Cap. do when used in this manner?



  13. #13
    Member
    Join Date
    May 2006
    Location
    Australia
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    There will be more qualified people to answer this but here is my take.

    A capacitor will pass AC but not DC. Noise tends to be AC in nature so gets passed to ground or filtered. So the input does not see it.

    However the DC signal is not affected except for a very short delay.

    The cap needs to appropriately sized for the situation to have this effect.

    That is probably over simplified but is my way of understanding it.

    Greg



  14. #14
    Gold Member
    Join Date
    Jun 2003
    Posts
    2103
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Mr.Chips View Post
    OK I understand now.

    What exactly does the Cap. do when used in this manner?
    The cap stores a small amount of electricity, and when the switch is made, it discharges causing a slight surge in voltage. Most of the limit switches used on hobby machines, and even my old Digital Tool machine are 5 volts. The 5 volts are not enough to keep the contacts clean, which according to Mariss from Gecko, helps contribute to the noise problem within the switch. It worked for me as far as the false triggers, but I now have a problem with repeatability. I am in the process of designing and building optical switches to correct both problems.

    Mike

    No greater love can a man have than this, that he give his life for a friend.


  15. #15
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Smile

    Quote Originally Posted by turmite View Post
    I am in the process of designing and building optical switches to correct both problems.
    Mike
    That sounds like a good fix, if you can post your solution here.



  16. #16
    Member
    Join Date
    Nov 2007
    Location
    USA
    Posts
    197
    Downloads
    0
    Uploads
    0

    Default

    optical would be a great solution. i was hesitant to do that because of cost, but i'm sure if you are crafty there is a low cost solution.

    for now i've added caps, and that has helped alot.



  17. #17
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    740
    Downloads
    0
    Uploads
    0

    Default

    The caps help with the noise as Greg explained.
    The optical switches would probably be more accurate if you are using some of the swithces as home switches and require more accuracy. For limits you don't need that much accuracy. I don't think the optical switches will make much difference with noise.



  18. #18
    Gold Member
    Join Date
    Jun 2003
    Posts
    2103
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by BobF View Post
    The caps help with the noise as Greg explained.
    The optical switches would probably be more accurate if you are using some of the swithces as home switches and require more accuracy. For limits you don't need that much accuracy. I don't think the optical switches will make much difference with noise.
    Well according to the electrical guy helping me with these, they are immune to noise. Now whether or not that is correct is yet to be seen but I can tell in in a week!

    My noise problems were corrected with the caps. The optical's are for accuracy. I am using some military surplus switches that the electrical guy tracked down and found the manufacturer, and they told him the switches are accurate to within .0001". They were used in aircraft applications!

    Mike

    No greater love can a man have than this, that he give his life for a friend.


  19. #19
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    2985
    Downloads
    0
    Uploads
    0

    Default

    The optical part is obviously immune to noise, but you can still get noise in the wires. Industrial proximity switches and the like are normally powered by 24V DC which is much more resilient than 5 V as far as noise is concerned. If you use shielded cable and 24V signals, you should have much less trouble with noise.

    Matt



  20. #20
    Member
    Join Date
    May 2006
    Location
    Australia
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    Broadly speaking there is two contributors to noise problems in the typical homebuilt regarding limit switches running 5v.

    The first is oxidation build up on the NC contacts. This is caused by typically using switches that are rated for 10 or more amps then running a few milliamps through them.

    This can be helped by placing a 0.01uf cap across the switch which helps to keep them clean. Optical switches will of course help here, no mechanical contacts.

    Better still run 24v through them. 24v is fairly typical on big dollar machines.

    The second source is wiring acting sort of like an aerial. Shielding can help here. As will a filter cap on the input. Also a debounce setting in software.

    Greg

    Last edited by Greolt; 12-19-2007 at 10:31 PM.


Page 1 of 2 12 LastLast

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Limit Switch Triggered!  IS NOT!!

Limit Switch Triggered!  IS NOT!!