Hello Guest it is March 29, 2024, 02:43:34 AM

Author Topic: torch turns on before g01 down move no dwell  (Read 3158 times)

0 Members and 1 Guest are viewing this topic.

Offline dja

*
  •  18 18
    • View Profile
torch turns on before g01 down move no dwell
« 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

Offline Inna

*
  •  22 22
    • View Profile
Re: torch turns on before g01 down move no dwell
« Reply #1 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.

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: torch turns on before g01 down move no dwell
« Reply #2 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.
Not me driving the engine - I'm better looking.

Offline Inna

*
  •  22 22
    • View Profile
Re: torch turns on before g01 down move no dwell
« Reply #3 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!