Path Rules - insert code before M3 ?????
-
- 4 Star Member
- Posts: 1499
- Joined: Fri Jan 18, 2013 3:19 am
Path Rules - insert code before M3 ?????
Is there any way with path rules to insert a code snippet BEFORE the M3 ????
2500 x 1500 water table
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019
- acourtjester
- 6 Star Elite Contributing Member
- Posts: 8489
- Joined: Sat Jun 02, 2012 6:04 pm
- Location: Pensacola, Fla
Re: Path Rules - insert code before M3 ?????
You would likely need to modify the post processor, contacting Les at SheetCam may be the easiest way.
In the post processor there is a function "On Open" where commands dealing with the floating head or ohmic sensor may be where these commands could be installed. There are some here that understand the codes and placement that may comment, I am not one of them.
You can contact Les from here or go to their web page and click on "contact us" to send an email.
In the post processor there is a function "On Open" where commands dealing with the floating head or ohmic sensor may be where these commands could be installed. There are some here that understand the codes and placement that may comment, I am not one of them.


You can contact Les from here or go to their web page and click on "contact us" to send an email.
DIY 4X4 Plasma/Router Table
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
- djreiswig
- 4.5 Star Elite Contributing Member
- Posts: 2069
- Joined: Thu Nov 19, 2015 10:02 pm
- Location: SE Nebraska
Re: Path Rules - insert code before M3 ?????
Just search the post for M3 and add the code before it. It could possibly appear multiple times, but usually just once.
2014 Bulltear (StarLab) 4x8
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
-
- 4 Star Member
- Posts: 1499
- Joined: Fri Jan 18, 2013 3:19 am
Re: Path Rules - insert code before M3 ?????
Thanks lads,
I'll contact the master.
Keith.
I'll contact the master.
Keith.
2500 x 1500 water table
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019
-
- 2 Star Member
- Posts: 87
- Joined: Tue Dec 27, 2016 1:08 pm
Re: Path Rules - insert code before M3 ?????
Possibly as part of the OnPenDown() function within Sheetcam
You could add your own lines as post.Text there is a section generally for flame as well as plasma.
function OnPenDown()
CheckFeed()
if (preheat > 0) then
post.Text (" M800")
post.Text (" \n")
post.Text (" G00")
post.ModalNumber (" Z", cutHeight * scale, "0.0000")
post.ModalNumber (" F", plungeRate * scale, "0.0###")
post.Text (" G04 P")
post.Number (preheat * 1000,"0.###")
post.Eol()
end
if(tool >= 100) then
etc
Adrian
You could add your own lines as post.Text there is a section generally for flame as well as plasma.
function OnPenDown()
CheckFeed()
if (preheat > 0) then
post.Text (" M800")
post.Text (" \n")
post.Text (" G00")
post.ModalNumber (" Z", cutHeight * scale, "0.0000")
post.ModalNumber (" F", plungeRate * scale, "0.0###")
post.Text (" G04 P")
post.Number (preheat * 1000,"0.###")
post.Eol()
end
if(tool >= 100) then
etc
Adrian
- djreiswig
- 4.5 Star Elite Contributing Member
- Posts: 2069
- Joined: Thu Nov 19, 2015 10:02 pm
- Location: SE Nebraska
Re: Path Rules - insert code before M3 ?????
Posted over here too.
https://forum.sheetcam.com/viewtopic.php?f=2&t=7940
https://forum.sheetcam.com/viewtopic.php?f=2&t=7940
2014 Bulltear (StarLab) 4x8
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
C&CNC EtherCut
Mach3, SheetCam, Draftsight
Hypertherm PM65
Oxy/Acetylene Flame Torch
Pneumatic Plate Marker, Ohmic, 10 inch Rotary Chuck (in progress)
-
- 4 Star Member
- Posts: 1499
- Joined: Fri Jan 18, 2013 3:19 am
Re: Path Rules - insert code before M3 ?????
Cheers lads.
Responded on the Sheetcam forum too.
Yes I'm able to do things with a variable and the post processor, but just wondered if I'd missed anything in the Path Rules that would have made it simpler. It appears the Path Rules can't do anything outside of M3/M5 so variables it is.
Keith.
Responded on the Sheetcam forum too.
Yes I'm able to do things with a variable and the post processor, but just wondered if I'd missed anything in the Path Rules that would have made it simpler. It appears the Path Rules can't do anything outside of M3/M5 so variables it is.
Keith.
2500 x 1500 water table
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019
Powermax 1250 & Duramax torch (because of the new $$$$ync system, will buy Thermal Dynamics next)
LinuxCNC
Sheetcam
Alibre Design 3D solid modelling
Coreldraw 2019