1
Mach3 under Vista / Auto zero tool does not work!!
« on: December 27, 2016, 07:46:30 PM »
I am not sure if I am just not understanding this. I got the probe to work when I touch them together I can see the light working just fine. The problem I am having is when I set the macro and hit auto tool zero it goes in the wrong direction. I set the z- to reverse in the home and limit's. Then it went in the right direction but it never stopped when it hit the plate. I am not sure if the script is just bad or just me not doing this correctly.
I might be missing something here. I did go on youtube got some great info but still does not work right.
Here is a copy of the script I am using.
'Rem Probe Down by PEU (Based on Erniebro Work)
FeedCurrent = GetOemDRO(818) 'Get the current settings
ZCurrent = GetDro(2)
Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "F100" 'slow feed rate to 100 MM/MIN
GageH = GetOEMDRO (1002)
Rem Probe Down by PEU (Based on Erniebro Work)
FeedCurrent = GetOemDRO(818) 'Get the current settings
ZCurrent = GetOemDro(802)
Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "F100" 'slow feed rate to 100 MM/MIN
GageH = GetUserDRO(1152)
ZNew = ZCurrent - 30 'probe down 20 mm
Code "G31 Z" &ZNew
While IsMoving()
Wend
Call SetDro (2,GageH)
FinalMove = GageH * 1
Code "G0 Z" &FinalMove
Code "G0 Z" &20
Code "F" &FeedCurrent 'restore starting feed rate
Any help would be great thank you
I might be missing something here. I did go on youtube got some great info but still does not work right.
Here is a copy of the script I am using.
'Rem Probe Down by PEU (Based on Erniebro Work)
FeedCurrent = GetOemDRO(818) 'Get the current settings
ZCurrent = GetDro(2)
Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "F100" 'slow feed rate to 100 MM/MIN
GageH = GetOEMDRO (1002)
Rem Probe Down by PEU (Based on Erniebro Work)
FeedCurrent = GetOemDRO(818) 'Get the current settings
ZCurrent = GetOemDro(802)
Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "F100" 'slow feed rate to 100 MM/MIN
GageH = GetUserDRO(1152)
ZNew = ZCurrent - 30 'probe down 20 mm
Code "G31 Z" &ZNew
While IsMoving()
Wend
Call SetDro (2,GageH)
FinalMove = GageH * 1
Code "G0 Z" &FinalMove
Code "G0 Z" &20
Code "F" &FeedCurrent 'restore starting feed rate
Any help would be great thank you