I've been beating my head on my mill for three days, time to ask the Pros for help. My mechanical logic is no match for electronics logic.
I'm trying to set up my auto tool zero on Mach 3. I have a Gecko 540 intertwined with an ethernet SS. So far I've produced the necessary block and wiring, entered VB code into macro for auto zero button and then commenced banging head (mine not machines) on table. At best all I get is a slow move on the Z axis until it touches the block and I get an Estop signal. At that time I have to unplug the block and reset the Estop to get the machine to move. I assumed that I have the port (1) and pin (13) correct since I get a signal to stop. Mach 3 tells me I cannot use the automated pin selector for the ethernet SS hence I have to guess at this point. Below is the macro code inserted under button edit command. I am just getting the mill setup after purchasing the SS and so far all the simple moves and programs are working.
CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness =2.040
If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G4 P3" 'Time to get to the z-plate, 3 seconds
Code "G90 G31 Z-2 F4" ' probing move, can set the feed rate here as well as how far to move
While IsMoving()
Wend
ZProbePos = GetVar(2002)
Code "G1 Z" &ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Sleep(120)
Code "G0 Z2.785" 'Change the Z retract height here to what you want, must be higher than touch plate
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed 'returns to prior feedrate
Else
Code "(Z-Plate is grounded, check connection and try again)"
End If
Exit Sub
Any further help or guidance would be greatly appreciated...I'm out of band aids for my forehead.