Home › Forums › TinyG › TinyG Support › Tinyg stops mid cut
Tagged: flashing SpDir
- This topic has 17 replies, 4 voices, and was last updated 5 years, 7 months ago by cmcgrath5035.
-
AuthorPosts
-
December 13, 2018 at 2:25 am #11224NerglesMember
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>
December 13, 2018 at 2:27 am #11225NerglesMemberhttps://imgur.com/a/ychBAn1 ( picture of the console window of CNCjs.)
December 13, 2018 at 3:46 am #11226ZootalawsMemberWithout 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.
December 13, 2018 at 6:11 am #11228cmcgrath5035ModeratorWhat 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- This reply was modified 5 years, 11 months ago by cmcgrath5035.
December 14, 2018 at 12:23 pm #11230NerglesMemberpastebin of my $$
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.
December 14, 2018 at 2:00 pm #11233cmcgrath5035ModeratorIf 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
December 16, 2018 at 1:46 pm #11240NerglesMemberWill that change require me to recalibrate all axis?
December 16, 2018 at 1:51 pm #11241NerglesMemberAlso 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.
December 16, 2018 at 2:29 pm #11242NerglesMemberI 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?
December 16, 2018 at 2:33 pm #11243NerglesMemberyou can see in this picture where it stopped. (Click on image to see both pictures)
- This reply was modified 5 years, 11 months ago by Nergles.
December 16, 2018 at 5:14 pm #11245cmcgrath5035ModeratorYou 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 ?
December 16, 2018 at 5:56 pm #11248NerglesMemberAs 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 .
I recognize this might be the issue do you have a recommendation of wiring I should use?
- This reply was modified 5 years, 11 months ago by Nergles.
December 16, 2018 at 6:18 pm #11250NerglesMemberAlso, 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!
December 17, 2018 at 5:38 am #11251cmcgrath5035ModeratorNoise mitigation is a combination of art and engineering.
I would start with a focus on the wiring of the limit/homing switchesYou 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+cableCould 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 blockTry to route the switch wires separately from the stepper cables and the spindle drives.
April 2, 2019 at 9:01 pm #11369steverichabMemberHello 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
-
AuthorPosts
- You must be logged in to reply to this topic.