Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mrpeja on May 14, 2009, 02:12:49 PM

Title: Dwell after M05 (torch off)
Post by: mrpeja on May 14, 2009, 02:12:49 PM
Hi,
After  the cut I have set 10 seconds dwell needed for torch cooling. After this SheetCam inserts line like G00 Z50 (go to safe Z).
I need this two things swapped, e.g., first go to safe Z and then 10 sec cooling.
How to tell SheetCam to do this?
mrpeja
Title: Re: Dwell after M05 (torch off)
Post by: jimpinder on May 16, 2009, 03:59:36 AM
I have never looked at the plasma cutting screen, but it would seem to me that the "torch off" command could be altered. I don't know how you arrive at M5 for this - is it a standard instruction (it is used for spindle off on a lathe/mill).

If it is standard, then open the M5 macro, and add the movement to beginning of the macro -

eg  code "G00 Z50".

This will mean that everytime the M5 macro is called, the script will first move the Z to 50 (or anywhere else you want it to go), then apply the "torch off" OEM

The fact that sheet cam puts in the G00 Z50 again won't matter, because the torch will already be there.
Title: Re: Dwell after M05 (torch off)
Post by: Chaoticone on May 16, 2009, 07:17:51 AM
I'm guessing it puts the safe z move in only at the end of a program. If this is the case, I would try to edit the post processor in the SheetCam. If you need it to go to safe z every time the M5 is called, Jims suggestion would be best.

Brett
Title: Re: Dwell after M05 (torch off)
Post by: mrpeja on May 18, 2009, 08:53:53 AM
Hi Jimpinder,
I opened M3 macro. It has only one line:
DoSpinStop()
How I can add G00 Z50?
It seems to me it is not so simple syntax
mrpeja
Title: Re: Dwell after M05 (torch off)
Post by: Hood on May 18, 2009, 09:51:07 AM
If you want to add a move to Z50 then put this before the DoSpinStop()

Code ("G0Z50")
While IsMoving
Wend


Hood