Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: dja on October 02, 2008, 03:10:38 PM

Title: torch turns on before g01 down move no dwell
Post by: dja on October 02, 2008, 03:10:38 PM
 i can't find a way to edit the code generated in bobcad to do a g01 z 0.0000 move. dwell and then m03 and start cut
the torch turns on @ z1.0000 dwells & moves to z0.0000
Title: Re: torch turns on before g01 down move no dwell
Post by: Inna on November 08, 2008, 10:51:06 AM
I'm not sure, that I have an answer to your question, but I had a problem like you!
We was  made plasmacut machine and we modified file m3.m1s .
I hope when you'll open this file, I hope you'll understand that to do!

Inna.
Title: Re: torch turns on before g01 down move no dwell
Post by: jimpinder on November 09, 2008, 04:32:22 AM
If you are using the M3 to switch on, then you need to alter the "script" controlled by the M3 which at present merely reads "DoSpin".

What you need to add to the "script" is

While IsMoving()

Wend

then on the next line DoSpin

IsMoving is a function and detects if any of the axis are moving. The two lines above means that While will look at IsMoving. If nothing is moving then the Wend will allow the program to continue. If something is moving (Your Z axis) it will look again, and keep doing that until it stops.
Title: Re: torch turns on before g01 down move no dwell
Post by: Inna on November 09, 2008, 03:29:11 PM
I have no VB code right hire, but algorithm hire!

when M3:
Feedhold
move Z down while is not active "Probe" or "THC Up"
Just it will activated G91 Z2.5(I use mm).
StartSpindle
Continue.

In the M5.m1s
additional Z up to SafeZ

As I remember - thats all!