Path Rule "On lead in"

Having problems with or questions about SheetCam? Post them here.
Post Reply
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Path Rule "On lead in"

Post by David_Lelen01 »

When a path rule on lead in is created, the post processor now seems to ignore whatever code is under a function OnOffsetLeft or OnOffsetRight.

I need some way for my machine to know which offset direction sheetcam is specifying. It either uses G141 for offset Left or G142 for offset right. If i put the start sequence under OnPenDown, the offset is not captured yet. If is use the OnOffsetLeft then for some reason it is getting ignored when path rules are active.

Is there a better way or different function to do this?
Attachments
WaterJetPost.JPG
WaterJetPost.JPG (75.04 KiB) Viewed 1292 times
PathRulesInactive.JPG
PathRulesInactive.JPG (49.27 KiB) Viewed 1292 times
PathRulesActive.JPG
PathRulesActive.JPG (58.81 KiB) Viewed 1292 times
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Path Rule "On lead in"

Post by Les Newell »

SheetCam generates compensated tool paths. It does the offsetting rather than relying on the control to do the offsetting. It looks like you are trying to make your control do the offsetting.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Path Rule "On lead in"

Post by David_Lelen01 »

That appears to be my problem. The waterjet machine automatically compensates for the kerf width, but it does need to know whether it is supposed to be an inside offset or outside offset. There is no option for it to not compensate that i am aware of. I am trying to get a list of G/M codes for this machine from the manufacturer, but no success yet.
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Path Rule "On lead in"

Post by Les Newell »

Does it allow you to define a kerf width of 0 on the machine? That way any offsets it applies will have no effect.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Path Rule "On lead in"

Post by David_Lelen01 »

No, it doesnt appear to have a way to change it. There seems to be only one nozzle available for this machine and it is hard coded in. It does appear that i can tell it to use tool 0 and it ignores the offset, so that is a possibility.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Path Rule "On lead in"

Post by David_Lelen01 »

Les,
I was able to set the machine to tool 0 and the cut paths worked out perfectly with sheetcam handling the offsets. Now the problem with that becomes the machine still needs to know if it is a left or right offset because the machine tilts the head slightly to compensate for cut taper. The direction of this taper adjustment changes with the offset direction.

So is this possible to do in SheetCAM or is the tilt another parameter i would best turn off in the machine and just live with the taper?
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Path Rule "On lead in"

Post by Les Newell »

SheetCam doesn't officially support offsetting but there are functions OnOffsetLeft(), OnOffsetRight() and OnOffsetNone() that are called as required. I cannot guarantee that they are correct 100% of the time, which is why they aren't documented.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Path Rule "On lead in"

Post by David_Lelen01 »

Those functions, as far as i can tell work perfectly as long as a path rule is not used. When using path rules, the functions are ignored for some reason. As a work around, i will have to be sure the cut direction works out to put the offset on whichever side i program the post to write to the code.

I am just trying to make things as dummy proof and robust as possible so others at my company will be able to use it without generating a toolpath that renders the part unusable before they realize it.
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Path Rule "On lead in"

Post by Les Newell »

I'm surprised rules affect the offset functions. It is a long time since I last looked at these though.
Post Reply