Hello Guest it is April 20, 2024, 08:46:14 AM

Author Topic: @ TP  (Read 6405 times)

0 Members and 1 Guest are viewing this topic.

Re: @ TP
« Reply #10 on: February 03, 2016, 11:12:11 AM »
I kind of figured that out and have been playing with it haha. So do I simply replace 31 with 28.1? It is doing a little bit of strange things right now such as it begins to go down, but then stops ABOVE the metal and ignites the torch randomly. I am going to keep playing with it.

Also should I add sleep delays in the macro?

Thanks!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #11 on: February 03, 2016, 07:12:15 PM »
Post exactly what you have in the script and a play by play of exactly what it does .

First where do you have teh ohmic sensor signaling to the Home or Probe input. That will determine whether to use G28.1 or G31.

(;-) TP
Re: @ TP
« Reply #12 on: February 04, 2016, 11:24:47 AM »
I will go out at lunchtime and check the script but for now I can say the ohmic is basically connected as my Z "home switch". So for instance if I go into diagnostics and place a piece of metal against my torch tip my Z home lights up. I do have an ACTUAL switch as an emergency stop, but that doesnt really factor in to this I dont believe.

To clarify I want to physically find the metal surface each time an M3 is commanded. This is due to the fact some of my thin metal is very wavy and even though my table is level, my material is not. So I want to do the following:

Every time M3 is called:

- Torch is lowered until the ohmic (Z home switch) senses metal.
- Auto zeros out as this is the 0 point.
- Comes up .003 inches as this is what it takes to slide a piece of paper under the tip.
- Auto zeros out again
- Comes up .08 inches (pierce height)
- Turns on torch (there is no pierce delay for my metal)
- Lowers to .002 inches (work height off metal surface)
- Then my DTHC will take over and x and y will do their thing.

Then for a torch off M5 command:

- Turn off torch
- Raise to 1 inch or so (so I dont snag going to my next piece).


Hopefully I am stating this clearly, I am fairly new to this, but I am sure you hear that a lot. I appreciate you being so patient with me.

Thanks,

Jason

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #13 on: February 04, 2016, 01:28:57 PM »
AH ok that does make a difference try it this way.

'M3 Macro
SwitchOffset = .110
PierceHeight = .080
PierceDwell = 1
SafeZ = .500
CutHeight = .060
'********************************
Code" G90"
Code"G00 Z" & SafeZ      'Goto a safe Z height
Code"G28.1 Z.500 "  '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
« Last Edit: February 04, 2016, 01:31:08 PM by BR549 »
Re: @ TP
« Reply #14 on: February 04, 2016, 01:59:56 PM »
It doesnt seem to be working. The torch comes up to 1" for some reason, and the torch fires 1" above the table? It isnt probing

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #15 on: February 04, 2016, 03:42:21 PM »
That would indicate that your Home signal is already on when it goes to probe.

Change teh active hi/low state for teh Zhome signal
« Last Edit: February 04, 2016, 03:52:00 PM by BR549 »
Re: @ TP
« Reply #16 on: February 04, 2016, 04:33:10 PM »
It isnt though, its very strange. However when I go into the VB script editor it all works fine. If I go line by line in your code it works. But ran live time in my M3 macro as part of my program it doesnt want to work proper.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: @ TP
« Reply #17 on: February 04, 2016, 05:13:49 PM »
OK try it this way.

'M3 Macro
SwitchOffset = 0
PierceHeight = .080
PierceDwell = 1
SafeZ = .500
CutHeight = .060
'********************************
Code" G90"
While Ismoving()
Wend
Code"G00 Z" & SafeZ      'Goto a safe Z height
While Ismoving()
Wend
Code"G28.1 Z.500 "  'Probe for the surface
While Ismoving()
Wend
Code"G91
While Ismoving()
Wend
Code"G0 Z" & SwitchOffset      ' Apply the switch offset
While Ismoving()
Wend
Code"G90"
While Ismoving()
Wend
Code"G92 Z0.000"   'Set Z to Zero at Material Surface
While Ismoving()
Wend
Code" G91"
While Ismoving()
Wend
Code"G0 Z"  & PierceHeight   ' Move to pierce height
While Ismoving()
Wend
Code"G90"
While Ismoving()
Wend
DoSpinCw()        'Torch on
Code" G04 P" & PierceDwell    ' Add pierce Dwell
Code"G0 Z" & CutHeight        ' Lower to cut height
End
Re: @ TP
« Reply #18 on: February 04, 2016, 05:21:23 PM »
It doesnt seem to be working. The torch comes up to 1" for some reason, and the torch fires 1" above the table? It isnt probing

Is the Z homing direction configured backwards ?
Re: @ TP
« Reply #19 on: February 05, 2016, 08:54:17 AM »
Hey TP were getting very close but still not probing. Step by step in the VB editor it works FLAWLESS. Torch moves to .5, probes to surface, etc. However when ran live time it goes to safe Z .5, but then skips probe, resets to 0 per Z92 and then applies then goes UP to pierce height. Direction everything works, and ran step by step it works. But in live application it is like it is skipping the probe command.