Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
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.
-
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.
-
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!