1
VB and the development of wizards / Auto Tool Zero Question
« on: February 27, 2012, 09:55:29 PM »
I've got a DIY CNC 22"x18" Router based Mach3/SS machine. I'm trying to get an auto zero Z plate working on the probe input. Pin 15 (input, pulled high with 73K) attatched to a plate to contact the mill bit. Diagnostics shows the plate is grounded when it hits the mill (active low green light turns on in diagnostics screen). Code below (found on the web):
Mesage("Auto Zeroing...")
If IsSuchSignal(22) Then
code "G31 Z-1 F2"
While IsMoving()
Wend
Call SetDRO(2,0.125)
code "G1 Z1"
End If
This does not respond to the probe signal (pin 15 port 1).
How do I know IsSuchSignal(22) is looking at this port/pin?
Where is a definition of these function calls? and Function parameters?
Thanks in advance. I'm a newbie and am trying (hard) not to toast my basement!
Mark
Mesage("Auto Zeroing...")
If IsSuchSignal(22) Then
code "G31 Z-1 F2"
While IsMoving()
Wend
Call SetDRO(2,0.125)
code "G1 Z1"
End If
This does not respond to the probe signal (pin 15 port 1).
How do I know IsSuchSignal(22) is looking at this port/pin?
Where is a definition of these function calls? and Function parameters?
Thanks in advance. I'm a newbie and am trying (hard) not to toast my basement!
Mark