Welcome to Our Community

Some features disabled for guests. Register Today.

controler stops working intermitently whil cutting

Discussion in 'Control Software' started by Adam Peirce, Feb 17, 2021.

  1. Adam Peirce

    Builder

    Joined:
    Feb 17, 2021
    Messages:
    4
    Likes Received:
    0
    Good afternoon all

    I am hoping some one here can help me.

    I have been using UGS on my Diy cnc router running GRBL on an Arduino nano for about a year now without any issues and now the issues have started.
    I am not new to Electronics of anything mechanical for that matter.

    when I run a g-code files produced by Fusion 360 the machine intermittently stops mid g-code, I receive error message id:24 from UGS. I cannot see any issues with the g-code (file attached) and it dose fail at the same point ever time and is very inconsistent, making trouble shooting rather difficult

    I have disconnected all the end stops from the controller to ensure it is not interference on these though all the cables are screen and grounded for both the motors and end stops.

    the spindle is a brushless spindle powered from a separate 48V power supply via screened cable.

    I have tried a different Arduino. to no result.
    different USB cable complete with ferrite cores.

    the only other thing that has changed is I am now using a acer laptop running AMD RADEON CPU but I have since tried another laptop running intel core this made no difference
    I have trids running the same code from Chillie pepper and got the same stopping mid way through but without the
    I suspect this is an electronic issue as I can remove the Arduino and run the G-code time and time again without the error occurring.


    I don't rely know where to go from here other than a complete strip and check then start throwing components at this and hoping for the best which from experience is not grate diagnostics or very cost effective. along side this I risk rectifying the fault without any idea as to the cause.
    I have trieds running the same code from Chilliepepper and got the same stopping mid way through but without the error message.

    last but not least I have even tried banging my head on the wall this to has no effect on this issues I'm having. I know this is near impossible to diagnose without looking at it in person or having a detailed information. but if any one has any ideas or recollections of faults like other people have had or tests I could carry out. i do also have an oscilloscope but I have refrained from getting this out as I cant imagine I am likely to find anything with ease without sifting through heaps of data.

    If you made it this far thank you for reading this lengthy post.

    Adam
     
  2. Adam Peirce

    Builder

    Joined:
    Feb 17, 2021
    Messages:
    4
    Likes Received:
    0
    G code i have been using to test the cnc.
     

    Attached Files:

  3. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,833
    Likes Received:
    4,275
  4. Adam Peirce

    Builder

    Joined:
    Feb 17, 2021
    Messages:
    4
    Likes Received:
    0
    HI

    Thanks for taking the time to look at my issue.
    this is what I feared the most an EMI issue though that article on causes of EMI looks to be very useful I will make time to get the grounding right tomorrow and re-test making after making the adjustments.

    I will run it again and record the data sent from the serial terminal and see if there if an 'ok' after the transmission I will also copy the error message in as well.

    Thanks again
     
  5. lugeral

    lugeral New
    Builder

    Joined:
    Apr 3, 2015
    Messages:
    2
    Likes Received:
    0
    Evening Adam
    I have spent the last week with exactly the same issue, extremely frustrating.

    I began by shortening the length of the my USB cable from 2 m down to 300mm. At 115200 the cable should be less than 2m long. As it turned out the the cable was not faulty.
    I examined the USB connectors at each end. I found that my USB A end was not mating snugly with the computer connector which was making intermittent contact. The other type B connector was fine at my controller was fine
    .
    I resolved this my issue by tightening up the connection at the computer and ensuring that the connection would not move around.

    Andy
     
  6. Adam Peirce

    Builder

    Joined:
    Feb 17, 2021
    Messages:
    4
    Likes Received:
    0
    Afternoon all

    just a quick update I have found a temp fix for this issue, as suggested by Peter this issue appears to be EMI on the limit pins casing the controller to stop working intermittently.

    I tried cutting ferrite cores to all the cables that where susceptible to noise this didn’t help.

    I then realised that I had not terminated the shielding to ground on my spindle cable...
    I corrected this and still the same..

    Next up was a fresh Arduino and a new build of GRBL this made no differing. So it was back to the config.h file to take a look at the build I was using here I found software denounce for limit pins this solved the issue temporarily.

    For a final solution I am going to change to optical isolation for all limit pins and use this as an opportunity l to add a tool length sensor to the machine.

    thanks for the help
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice