Good evening, I wanted to automatically adjust the z-axis with a plate that I read that served to have more precision when working, then I got one.
I made the connection as it comes in the manual for a controller board, This board is called RNR Universal USB Card Motion Control Mach3 Special Ed. V2.0. Which I show in an attachment in figure 1.
The connection is shown in figure 2, which comes as an attachment.
Then I did the configuration in Ports and Pins as it comes in the manual in figure 3
Then enter in Auto Tool Zero this code that also came in the manual:
PlateOffset = 10
Zup = 25
MaxZPlus = 250
Sleep 100
CurrentFeed = GetOemDro(818)
Code "F300"
ZNew = GetDro(2) - MaxZPlus
Code "G31Z" &ZNew
While IsMoving()
Wend
ZNew = GetVar(2002)
Code "G0 Z" &ZNew + 3
While IsMoving()
Wend
Code "F50"
ZNew = GetDro(2) - 6
Code "G31Z" &ZNew
While IsMoving()
Wend
If PlateOffset <> 0 Then
Call SetDro (2,PlateOffset)
Code "G4 P0.25"
ZNew = PlateOffset + Zup
Code "G0 Z" &ZNew
While IsMoving
Wend
Code "(Z axis is now zero !)"
End If
Code "F" &CurrentFeed
Sleep 100
But nothing happens, when I enter this code in the VBScript the tool goes down and when touching the plate does not stop if it keeps going down, the Mach3 does not detect the board to automatically adjust the tool of a Dremmel 3000.
But the power source that I am using if it shows a difference when the tool touches the automatic adjustment plate and when it does not touch it.
When there is no contact between the tool and the plate, the power source dials 0 Ampere, when there is contact between the tool and the plate, the power source dials 0.01 Ampere as shown in figure 4.
I would be very grateful if someone has an idea of why this happens, because it is because the power source detects something and in Mach3 it does not detect anything. I have even seen in some videos already when they place the plate to calibrate the Z axis and configure the ports and pins in the diagnostics screen the Digitize box is lit.