Path Rules - insert code before M3 ?????

SheetCam related questions and tips can be posted here
Post Reply
beefy
4.5 Star Member
4.5 Star Member
Posts: 1504
Joined: Fri Jan 18, 2013 3:19 am

Path Rules - insert code before M3 ?????

Post by beefy »

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
User avatar
acourtjester
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 7784
Joined: Sat Jun 02, 2012 6:04 pm
Location: Pensacola, Fla

Re: Path Rules - insert code before M3 ?????

Post by acourtjester »

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. :shock: :lol:
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
User avatar
djreiswig
4.5 Star Elite Contributing Member
4.5 Star Elite Contributing Member
Posts: 1934
Joined: Thu Nov 19, 2015 10:02 pm
Location: SE Nebraska

Re: Path Rules - insert code before M3 ?????

Post by djreiswig »

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)
beefy
4.5 Star Member
4.5 Star Member
Posts: 1504
Joined: Fri Jan 18, 2013 3:19 am

Re: Path Rules - insert code before M3 ?????

Post by beefy »

Thanks lads,

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
AdrianH
2 Star Member
2 Star Member
Posts: 87
Joined: Tue Dec 27, 2016 1:08 pm

Re: Path Rules - insert code before M3 ?????

Post by AdrianH »

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
User avatar
djreiswig
4.5 Star Elite Contributing Member
4.5 Star Elite Contributing Member
Posts: 1934
Joined: Thu Nov 19, 2015 10:02 pm
Location: SE Nebraska

Re: Path Rules - insert code before M3 ?????

Post by djreiswig »

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)
beefy
4.5 Star Member
4.5 Star Member
Posts: 1504
Joined: Fri Jan 18, 2013 3:19 am

Re: Path Rules - insert code before M3 ?????

Post by beefy »

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.
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
Post Reply

Return to “SheetCam”