Hello Guest it is March 28, 2024, 02:19:38 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - harry320

Pages: 1
1
General Mach Discussion / Thc 300 Macro not working
« on: July 20, 2008, 11:01:51 PM »
Hi Group,
This is my first post here on this forum but have used the Yahoo board a few times.
I have a Boss mill and a plasma table controlled by on Mach 3. I'm just putting the finishing touches on the plasma and need some expert help as Macros are over my head.

code "g31z-1"
While IsMoving()
wend
TorchHeight = GetUserDRO(1000)
SwitchTravel = GetUserDRO(1002)

TCutHeight = (getUserDRO (1003) + SwitchTravel)
code "G92Z0"
code "G1Z" & (SwitchTravel + TorchHeight)
While IsMoving()
wend
DoSpinCW()
code "G4 P" & (PierceDelay)
code "G1Z" & (TCutHeight )
TorchHeight = 0
SwitchTravel = 0

I enter M3 in the MDI and Z goes down to -1 and back up to pierce height. It never recognizes my home switch even though I see it work on the diagnostics page. Shouldn't Z reverse at switch or -1 whichever occurs first? Will someone please tell me what I'm missing.

Thanks Harry 8) 8)

Pages: 1