Hello Guest it is March 28, 2024, 05:37:43 AM

Author Topic: @ TP  (Read 6367 times)

0 Members and 1 Guest are viewing this topic.

@ TP
« on: February 02, 2016, 12:28:39 PM »
Hey TP I just now saw you replied to me over @ candcnc and asked me to post this here.

IF you ask this over at the Mach3 support forum I can help you . IF I did it here TOm and I would probably tie up and argue and you would get no help. You should be able to do everything you need to do from the M3 macro to get to the pierce point.

http://www.machsupport.com/forum/index.php

(;-) TP


I sincerely appreciate your help! Let me know if you need more info.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #1 on: February 02, 2016, 01:29:37 PM »
Explain again what exactly do you need to do.
Re: @ TP
« Reply #2 on: February 02, 2016, 01:36:23 PM »
Bless you for such a quick reply! Haha.

Ok, basically I have an HVAC program called Vulcan that makes input of what I do very simple. It is what generates my g-code. That being said it does NOT include any sort of Z axis coding, only X and Y. When I run it around my table with the torch off there are no issues, it follows the pattern etc, but again, no up and down torch movement. There IS a call for M3, but it simple turns the torch on in mid air.

So, what I wanted to do is incorporate something in with my M3 macro that would perform a touch off before every call for the torch (I know seems silly but I use very thin metal and wanna be careful). On an M3 call I want my torch to do the following if possible:

- Come down to the metal surface (I have an ohmic sensor) and stop
- Come up slightly for a switch offset
- Go up to .08" (my pierce height)
- Ignite torch

- DTHC would then take over from here.

I guess I would need something with M5 to bring the torch back up so it doesnt drag material as well.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #3 on: February 02, 2016, 05:06:36 PM »
OK do you want to do teh TOM(top of material routine) with a G28.1 move or a G31 move ?? Your choice there.

Do you know how to work with Mach3 macros or need help there also??  Help is not a problem just need to know what you need.
Re: @ TP
« Reply #4 on: February 02, 2016, 06:03:54 PM »
I am a little ignorant as to the differences but I would prefer the one that doesnt "assume" a home if that makes any sense. For example with our thin sheet metal the "top of material" may vary a little bit over the length of a 10' sheet. I could certainly use some help with the macros and would be very appreciative.

Thanks much!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #5 on: February 02, 2016, 06:58:43 PM »
Do you work in Metric or Inches ??

Can you post your current M3 and M5 code ?
Re: @ TP
« Reply #6 on: February 02, 2016, 07:22:03 PM »
I am in inches. My current M3 code is the standard Do spin CW ()

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #7 on: February 02, 2016, 07:38:09 PM »
OK your new M3 will look like this.  You could put DROs on teh screen to be able to set teh variables from teh screen


'M3 Macro
SwitchOffset = .110
PierceHeight = .080
PierceDwell = 1
SafeZ = .500
CutHeight = .060
'********************************
Code"Z" & SafeZ      'Goto a safe Z height
Code"G90"
Code"G31 Z-1 F30"  'Probe for the surface
While Ismoving()
Wend
Code"G91
Code"G0 Z" & SwitchOffset      ' Apply the switch offset
Code"G90"
Code"G92 Z0.000"   'Set Z to Zero at Material Surface
Code" G91"
Code"G0 Z"  & PierceHeight   ' Move to pierce height
Code"G90"
While Ismoving()
Wend
DoSpinCw()        'Torch on
Code" G04 P" & PierceDwell    ' Add pierce Dwell
Code"G0 Z" & CutHeight        ' Lower to cut height
End


AND teh M5 would look like this

DoSpinStop()
SafeZ = .500
Code"G91
Code"G0 Z" & SafeZ    ' Raise Z to safe Z height
Code"G90"
End


« Last Edit: February 02, 2016, 07:40:57 PM by BR549 »
Re: @ TP
« Reply #8 on: February 02, 2016, 07:40:08 PM »
Amazing, ill try it first thing in the AM. Very very appreciative of your time.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #9 on: February 03, 2016, 11:09:32 AM »
One thing to double check is HOW you have teh Ohmic setup for this code to run correctly it must be setup as a Probe input not a Home input. You need to check your setup . IF it is useing teh Home input You need to tweeek the code to use G28.1 instead of teh G31.

(;-) TP