Hi Les,
when plasma cutting parts with tip up risk, it can be useful to put M1 at the end of SafeZ after a cut. The gcode stops and if all is well the operator simply presses Cycle Start and the cut continues. Or if the part tipped up, pick it out, then press Cycle Start.
I can easily insert M1 in the post processor in the OnPenUp function. The problem with that is it does it for every individual cut, not every part. So even for a tiny hole, etc the M1 would be inserted after the rise to SafeZ.
So my first question is how could I modify the post to only insert M1 after rise to SafeZ after a PART is completely cut.
Being more ambitious, regarding a part like a flange. You have the inner ring cut out and the outer ring cutout. Then you also have all the bolt holes. So would there be any way to only insert M1 after the rise to Safe Z for only the inner and outer rings but not the bolt hole cuts. I realise that may not be possible because Sheetcam may have no way of differentiating the large inner ring from the holes.
If that's the case, could it be done any way in the Path Rules based on shape size larger than a given amount.
Cheers,
Keith
How to add M1 after each part
Re: How to add M1 after each part
You could separate each "part" into it's own layer, then make each layer it's own operation, inserting code (M1) between each operation using the operations menu. You may have to make a code segment "m1" to insert using the operation menu.
-
- Posts: 162
- Joined: Tue Feb 25, 2014 6:53 am
Re: How to add M1 after each part
Thanks Wyogreen,
that would do for just a few parts but was looking for something a little more "automated" if for example I brought in a single nested "part" then used "Break Up Manually Nested Drawing" to make each shape a separate part in Sheetcam.
I'll look into the OnNewPart() function in the post processor and see how I can get creative to make that do what I want.
that would do for just a few parts but was looking for something a little more "automated" if for example I brought in a single nested "part" then used "Break Up Manually Nested Drawing" to make each shape a separate part in Sheetcam.
I'll look into the OnNewPart() function in the post processor and see how I can get creative to make that do what I want.
- Les Newell
- Site Admin
- Posts: 3680
- Joined: Thu May 11, 2006 8:12 pm
Re: How to add M1 after each part
There is a variable called entityLength that contains the length of the current cut. Maybe something in OnPenUp() would work:
This would output an M1 only if the last cut was more than 200mm.
Code: Select all
if entityLength > 200 then
post.Text(" M1\n")
end
-
- Posts: 162
- Joined: Tue Feb 25, 2014 6:53 am
Re: How to add M1 after each part
Thanks Les,
that's definitely going to help.
that's definitely going to help.