Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: kolias on September 10, 2012, 07:57:51 PM

Title: Zero Tool VB Script
Post by: kolias on September 10, 2012, 07:57:51 PM
I think one of the attached VB scripts I got it from this forum last year or so but I dont know which one is better to use now

Can someone pls let me know which one to use and also answer the 4 questions I have marked with REM so I can better understand how it works?

Thank you
Title: Re: Zero Tool VB Script
Post by: ger21 on September 10, 2012, 08:38:00 PM
Z-3 means probe down 3" (or 3mm)

2002 is the number of the variable that stores the Z axis position when the probe is triggered.

2 is the number of the Z axis DRO.

Z1 means move to Z= 1
Title: Re: Zero Tool VB Script
Post by: kolias on September 10, 2012, 09:13:39 PM

Z-3 means probe down 3" (or 3mm)

Thanks Gerry

If I make this for example Z-6 and while the bit is going down touches the zero plate at Z-4, would it stop and go up 1" or it will keep going down to 6?
Title: Re: Zero Tool VB Script
Post by: ger21 on September 11, 2012, 11:39:04 AM
It will stop when the probe triggers, and then go up. It will only go to 6 if the probe doesn't trigger.