Sheet cam GRBL torch probe post processor

Having problems with or questions about SheetCam? Post them here.
yotifab
Posts: 6
Joined: Sun Sep 03, 2023 7:52 pm

Sheet cam GRBL torch probe post processor

Post by yotifab »

Hi everyone. I have built a JD's garage CNC plasma and recently built the moving z axis for probe touch off using a micro switch. Any recommendations of a post processor so that it probes properly? currently running the sheetcam GRBL plasma (edited) it will jump up between moves however just goes back to the z zero and does not touch off as intended. Any input is appreciated.
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

Congrats on your build! I conducted a similar build in 2021, you can see it and read about it in my signature link to youtube and related links in the youtube channel description.

I love SheetCAM since adopting it about 15 months ago. Facing a similar functional challenge in finding the right post processor as you stated, I decided to modify the standard grbl scpost to suit my needs. The code is fairly man-readable and well commented, so you can perhaps modify it as well if you desire. I'd be happy to help or advise if needed.

Enjoy.
Attachments
GRBL plasma LDC v24-12-8.scpost
(9.81 KiB) Downloaded 241 times
MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
yotifab
Posts: 6
Joined: Sun Sep 03, 2023 7:52 pm

Re: Sheet cam GRBL torch probe post processor

Post by yotifab »

Thanks for the quick response. I will try that post processor and report back. It's been a steep learning curve for all things cnc however I still need to wrap my head around what all the g code functions mean. For now I had found a processor that at least raises and lowers the z to prevent tip ups. However when I tell the machine to go home it slams the z into the work surface and drags it home. But during the actual cuts it operates OK.
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
yotifab
Posts: 6
Joined: Sun Sep 03, 2023 7:52 pm

Re: Sheet cam GRBL torch probe post processor

Post by yotifab »

bLouChip wrote: Wed Oct 11, 2023 5:56 pm Congrats on your build! I conducted a similar build in 2021, you can see it and read about it in my signature link to youtube and related links in the youtube channel description.

I love SheetCAM since adopting it about 15 months ago. Facing a similar functional challenge in finding the right post processor as you stated, I decided to modify the standard grbl scpost to suit my needs. The code is fairly man-readable and well commented, so you can perhaps modify it as well if you desire. I'd be happy to help or advise if needed.

Enjoy.
So when i try your processor it double probes then i get this error:

[20:37:48] [ G00 G17 G40 G54 G90 M5 F0 ] ok

[20:37:48] [ $G ] [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]

[20:37:48] [ $G ] ok

[20:37:48] [ G20 ] ok

[20:37:48] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F0 S0]

[20:37:48] [ $G ] ok

[20:37:48] [ G28 G91 Z0 (retract Z for start of job) ] ok

[20:37:48] [ $G ] [GC:G0 G54 G17 G20 G91 G94 M5 M9 T0 F0 S0]

[20:37:48] [ $G ] ok

[20:37:48] [ G90 ] ok

[20:37:48] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F0 S0]

[20:37:48] [ $G ] ok

[20:37:48] [ G0Z1.5000 ] ok

[20:37:48] [ G0X3.0107Y4.8170 ] ok

[20:37:48] [ G0Z0.1900 ] ok

[20:37:48] [ G91 (relative mode) ] ok

[20:37:48] [ $G ] [GC:G0 G54 G17 G20 G91 G94 M5 M9 T0 F0 S0]

[20:37:48] [ $G ] ok

[20:37:52] [ [ PROBE ] ] Probe Completed.

[20:37:52] [ G38.2 Z-0.7215 F39.37 (probe fast to find sw) ] [PRB:-373.469,6.086,-46.035:1]

[20:37:52] [ G38.2 Z-0.7215 F39.37 (probe fast to find sw) ] ok

[20:37:52] [ G0 Z0.1969 (retract off probe switch) ] ok

[20:37:53] [ G04 P0.400 (wait for sw debounce) ] ok

[20:37:58] [ [ PROBE ] ] Probe Completed.

[20:37:58] [ G38.2 Z-0.1969 F1.97 (probe slow) ] [PRB:-373.469,6.086,-45.865:1]

[20:37:58] [ G38.2 Z-0.1969 F1.97 (probe slow) ] ok

[20:37:58] [ G0 Z0.3346 (fast retract to top of material) ] ok

[20:37:58] [ G92 Z0 (set temp Z0) ] ok

[20:37:58] [ G90 (return to absolute mode) ] ok

[20:37:58] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F50 S0]

[20:37:58] [ $G ] ok

[20:37:58] [ G0 X3.0107Y4.8170Z0.1900 ] ok

[20:37:58] [ M4 S1000 (THC effective On condition) (fire the torch...) ] ok

[20:37:58] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M4 M9 T0 F50 S1000]

[20:37:58] [ $G ] ok

[20:37:59] [ G04 P0.15 (PH 2 CH time: 0.15, Total PD:0.3) ] ok

[20:37:59] [ F75 ] ok

[20:37:59] [ G1X3.0107Y4.8170Z0.0600 ] ok

[20:37:59] [ F80 ] ok

[20:37:59] [ ] error: 20 - Unsupported or invalid g-code command found in block. [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ]

[20:37:59] [ ERROR ] error: 20 - Unsupported or invalid g-code command found in block. [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ]

[20:37:59] [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ] error:20

[20:38:15] [ ] Grbl 1.1g ['$' for help]

[20:38:15] [ JOB COMPLETE ] Job completed in 00h00m

[20:38:15] [ ] ok

[20:38:29] [ G10 P0 L20 X0 Y0 Z0 ] ok

[20:38:30] [ GCODE Parser ] GCODE File (from gcode editor) sent to backend

[20:38:30] [ G00 G17 G40 G54 G90 M5 F0 ] ok

[20:38:30] [ $G ] [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]

[20:38:30] [ $G ] ok

[20:38:30] [ G20 ] ok

[20:38:30] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F0 S0]

[20:38:30] [ $G ] ok

[20:38:31] [ G28 G91 Z0 (retract Z for start of job) ] ok

[20:38:31] [ $G ] [GC:G0 G54 G17 G20 G91 G94 M5 M9 T0 F0 S0]

[20:38:31] [ $G ] ok

[20:38:31] [ G90 ] ok

[20:38:31] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F0 S0]

[20:38:31] [ $G ] ok

[20:38:31] [ G0Z1.5000 ] ok

[20:38:31] [ G0X3.0107Y4.8170 ] ok

[20:38:31] [ G0Z0.1900 ] ok

[20:38:31] [ G91 (relative mode) ] ok

[20:38:31] [ $G ] [GC:G0 G54 G17 G20 G91 G94 M5 M9 T0 F0 S0]

[20:38:31] [ $G ] ok

[20:38:35] [ [ PROBE ] ] Probe Completed.

[20:38:35] [ G38.2 Z-0.7215 F39.37 (probe fast to find sw) ] [PRB:-296.999,128.401,-43.270:1]

[20:38:35] [ G38.2 Z-0.7215 F39.37 (probe fast to find sw) ] ok

[20:38:35] [ G0 Z0.1969 (retract off probe switch) ] ok

[20:38:36] [ G04 P0.400 (wait for sw debounce) ] ok

[20:38:40] [ [ PROBE ] ] Probe Completed.

[20:38:40] [ G38.2 Z-0.1969 F1.97 (probe slow) ] [PRB:-296.999,128.401,-43.195:1]

[20:38:40] [ G38.2 Z-0.1969 F1.97 (probe slow) ] ok

[20:38:40] [ G0 Z0.3346 (fast retract to top of material) ] ok

[20:38:41] [ G92 Z0 (set temp Z0) ] ok

[20:38:41] [ G90 (return to absolute mode) ] ok

[20:38:41] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M5 M9 T0 F50 S0]

[20:38:41] [ $G ] ok

[20:38:41] [ G0 X3.0107Y4.8170Z0.1900 ] ok

[20:38:41] [ M4 S1000 (THC effective On condition) (fire the torch...) ] ok

[20:38:41] [ $G ] [GC:G0 G54 G17 G20 G90 G94 M4 M9 T0 F50 S1000]

[20:38:41] [ $G ] ok

[20:38:41] [ G04 P0.15 (PH 2 CH time: 0.15, Total PD:0.3) ] ok

[20:38:41] [ F75 ] ok

[20:38:41] [ G1X3.0107Y4.8170Z0.0600 ] ok

[20:38:41] [ F80 ] ok

[20:38:41] [ ] error: 20 - Unsupported or invalid g-code command found in block. [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ]

[20:38:41] [ ERROR ] error: 20 - Unsupported or invalid g-code command found in block. [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ]

[20:38:41] [ M7 (enable Z THC anti-dive circuit when SPWM < 86) ] error:20

[20:38:46] [ ] Grbl 1.1g ['$' for help]

[20:38:46] [ JOB COMPLETE ] Job completed in 00h00m

[20:38:46] [ ] ok
yotifab
Posts: 6
Joined: Sun Sep 03, 2023 7:52 pm

Re: Sheet cam GRBL torch probe post processor

Post by yotifab »

Line 86 - M4 S1000 (THC effective On condition) (fire the torch...)

I dont have torch height control yet. Just z probe. so how do i remove the thc condition?
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

It appears your grbl controller does not have M7 use enabled (normally mist control output when milling). I use M7 on/off output signal to enable an external THC Z Anti-Dive circuit when XY is cornering. The signal is not necessary in your case, M7 command can be commented out or deleted.
To comment out the command (you may find a need for it later), change the .scpost file as such:
line 15: LdcM7Cmd = "M7 (enable Z THC anti-dive circuit when SPWM < 86%)\n"
change to: LdcM7Cmd = "; M7 (enable Z THC anti-dive circuit when SPWM < 86%)\n"

There is an M9 command later in the code stream which would turn off M7, but if M9 is issued without a prior M7 that is not a problem.
It could be that your controller has M8 use enabled (normally flood control output when milling). If so, in the future, if you need such a digital output control for THC Z Anti-Dive enabling or arming, then you could change M7 to M8.
MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
Rolfey
Posts: 10
Joined: Wed Jun 14, 2023 10:51 am

Re: Sheet cam GRBL torch probe post processor

Post by Rolfey »

I'm in the same boat, and could do with the Z probe post processor, if anyone has figured it out?
Last edited by Rolfey on Thu Nov 02, 2023 1:49 pm, edited 1 time in total.
Rolfey
Posts: 10
Joined: Wed Jun 14, 2023 10:51 am

Re: Sheet cam GRBL torch probe post processor

Post by Rolfey »

yotifab wrote: Thu Oct 12, 2023 1:46 am Line 86 - M4 S1000 (THC effective On condition) (fire the torch...)

I dont have torch height control yet. Just z probe. so how do i remove the thc condition?
Did you get this to work OK Yotifab?
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

I won't speak for YotiFab, but since the last posts he and I exchanged about 3 weeks ago we also spoke on the phone a couple of times to fine tune the .scpost for his grbl 1.1g version. I use the post on 1.1i. So based on what I learned from YotiFab on how our use cases were different, I modified the post to easily work in both cases and it should apply to most any grbl 1.1+ versions. I uploaded the .scpost in the referenced forum thread just the other day with these ease of use improvements. Download and try it, let us know how it goes. You most likely just need to define and set post variable LdcThcZAnitDive to zero 0 in Options->Application Options->Variables window tab.
viewtopic.php?t=9120
MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

I just uploaded a new version of the .scpost viewtopic.php?t=9120
I forgot to add S1000 to the M3 torch trigger/fire command to cover the case of using grbl on Arduino Uno.
MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
Rolfey
Posts: 10
Joined: Wed Jun 14, 2023 10:51 am

Re: Sheet cam GRBL torch probe post processor

Post by Rolfey »

That's brilliant work. I'll try this out over the weekend upon installation of the Z-Axis. Can I add, should the code say version 16 rather than 15? Just save any confusion :)

Also, fantastic work on your build. It really does look very tidy!
Attachments
LDC Version15-16.png
LDC Version15-16.png (98.52 KiB) Viewed 28514 times
User avatar
bLouChip
Posts: 124
Joined: Tue Nov 09, 2021 4:58 pm
Location: Raleigh, NC
Contact:

Re: Sheet cam GRBL torch probe post processor

Post by bLouChip »

Thank you for the comments, I'm glad to help.
The .scpost should have LdcVersion = "16", the one I fixed this morning. I uploaded it apparently after you downloaded the stale "15" version.
It's in the same forum thread, with the comment "version 16".
Good luck with it, please let me know if you have questions about the code or if you'd like adjustments.
MillRight CNC MegaV XL XYZA Tri-CAM Mill/Plasma/Laser
grbl 1.1i, UGS, Win 11, LightBurn, SC, Aspire, and sometimes [con]Fusion360
my youtube channel
yotifab
Posts: 6
Joined: Sun Sep 03, 2023 7:52 pm

Re: Sheet cam GRBL torch probe post processor

Post by yotifab »

blouchip has been an excellent resource for me and has gone above and beyond to help me out. His knowledge is far beyond mine and will steer you in the right direction. His most recent post processor worked out for me. Thanks again Lou!
Dogwreck
Posts: 1
Joined: Fri Nov 10, 2023 11:40 pm

Re: Sheet cam GRBL torch probe post processor

Post by Dogwreck »

I am so glad I found this and thanks to bLouChip. I am finishing up my JD Garage Plasma as well and I spent about 1 hour trying to learn fusion 360 and I said forget it. I had an old version of Sheet Cam so I installed it updated it and here I am . I haven't tried the PP yet but as soon as I do I will report back. Thanks all.
Post Reply