Tinyg stops mid cut

Home Forums TinyG TinyG Support Tinyg stops mid cut

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #11224
    Nergles
    Member

    OX CNC build and doing my first cuts. I can’t seem to figure out how to complete a cut. Its randomly may going through the code and stopping mid job. Varies at what point s a me job. When it does the spdir light flashes red. I don’t understand the console enough to interpret the issue. I don’t see it physically hitting the limit switches my test cuts are only roughly 6″x6″ yet it seems like it.

    <script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>

    #11225
    Nergles
    Member

    https://imgur.com/a/ychBAn1 ( picture of the console window of CNCjs.)

    #11226
    Zootalaws
    Member

    Without knowing anything about your configuration, type of stop switch, etc.

    Could it be that it’s being triggered by induction, movement or similar?

    An easy test on such a small piece is to disconnect your stops and manually zero, then run your gcode again. (Unscrew the terminals at the TinyG)

    I don’t use CNCjs – there are better senders.

    #11228
    cmcgrath5035
    Moderator

    What you describe is commonly caused by parameter setting issues and/or electrical noise (what Zootalaws is referring to “induction”)

    A common source of electrical noise is the spindle motor.

    You could try “running your job in air” first with the spindle off, then with the spindle on.

    Zero your Z axis above the work surface, then with the spindle disconnected try jogging each axis from the command line or the CNC.js jog interface.
    If work OK, try running your Gcode in air, first with the spindle off, then if runs try with spindle enabled(but still in air).

    A parameter set would really help this discussion move forward.
    Run $$ from the command console, copy the results to a file, post the file to a cloud drive and provide a URL

    #11230
    Nergles
    Member

    pastebin of my $$

    https://pastebin.com/krxELBU2

    it is a OX CNC with Nema 34 – 400w quite cut spindle if that is helpful at all.

    I’ll setup the machine to do a job without cutting and see how it goes this weekend.

    #11233
    cmcgrath5035
    Moderator

    If it still fails, try setting $gpa=1

    $gpa=1 is supposed to be same as $gpa=2, but this is the first I have seen
    $gpa=2 used, so this could be a bug.

    $gpa=1 is the default setting

    #11240
    Nergles
    Member

    Will that change require me to recalibrate all axis?

    #11241
    Nergles
    Member

    Also on cnc.js my machine doesn’t 100% of the time set the x and y machine position. Stil seems to love but it just shows 0.00 in the location fields before I ever zero anything out.

    #11242
    Nergles
    Member

    I am about to lose my ever loving mind. I have yet to get a 100% successful cut out of this thing.

    It stopped mid cut again in the air. I made the change as requested loaded some stock in and got to cutting and then boom midway. Is there any way to recover the job once this happens?

    View post on imgur.com

    #11243
    Nergles
    Member

    you can see in this picture where it stopped. (Click on image to see both pictures)

    View post on imgur.com

    • This reply was modified 6 years ago by Nergles.
    #11245
    cmcgrath5035
    Moderator

    You asked “Will [setting $gppa=1} change require me to recalibrate all axis? Ans:No, but you likely figured that out already

    Suggestion: From console set $p1pof=0.00. This will turn off the PWM LED when you machine is at rest. Mostly cosmetic, but might help with the next question.

    When the machine stops midway thru your job, do you get flashing LEDs or other indicator?

    From staring at your board wiring diagram, I believe I see an issue.
    It appears that your switch connections are single wires, not shielded twisted pairs. But I can see the whole run, so it might be OK but out of view.

    Do you have a separate power supply for the spindle?

    Limit switch interfaces are very sensitive to noise spikes, even when using NC switches.
    A symptom of a limit switch activation would be a flashing LED.

    Have you reviewed https://github.com/synthetos/TinyG/wiki/Homing-and-Limits-Setup-and-Troubleshooting#limit-switches-fire-in-the-middle-of-a-cutting-job ?

    #11248
    Nergles
    Member

    As I stated in the original post I do get a Flashing SpDIR light next to a solid PWM light.

    I used amazon to source some stepper wire motor .

    View post on imgur.com

    I recognize this might be the issue do you have a recommendation of wiring I should use?

    • This reply was modified 6 years ago by Nergles.
    #11250
    Nergles
    Member

    Also, yes the spindle has a separate PSU.

    I am working through reading the link you posted. Definitely, some very good information there. Thank you for the Sunday support!

    #11251
    cmcgrath5035
    Moderator

    Noise mitigation is a combination of art and engineering.
    I would start with a focus on the wiring of the limit/homing switches

    You don’t need a lot of current capacity, so 18, 20 or 22 ga shielded twisted pair cable would suffice and easier to deal with.
    Here is just an example https://www.amazon.com/Custom-Cable-Connection-Conductor-Stranded/dp/B071DFHKRB/ref=sr_1_4?ie=UTF8&qid=1545042425&sr=8-4&keywords=shielded+2+conductor+cable

    Could be solid or stranded conductors, stranded more flexible.

    Make no shield connection at the switch end (machine end).
    At tinyG end, connect all shield drain wires together and connect to the ” – ” Vmot terminal.
    Use the red wire for the input terminal (e.g. Xmin, Ymin, etc) and the black wire connects to the gnd terminal on J8 terminal block

    Try to route the switch wires separately from the stepper cables and the spindle drives.

    #11369
    steverichab
    Member

    Hello cmcgrath5035,

    I just posted a SpDir flashing support request on another thread and I saw this one. So I am running an air test without the spindle running and this was the first 100% run with the SpDir led is dark.
    Just FYI. all limit/home switches are run in shielded cable, and I re-flashed the TinyG to 440.20 and all went well but I also tried to re-flash to 449.19(Edge) version of the fw and the verification failed(just sayin).

    If the spindle is the source of the issue and all my limits are shielded what would you recommend if it does turn out to be that if the spindle is running the TinyG faults?
    Also I have a separate 48V spindle power supply.

    Thanks in advance, Steverich

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.