stb5100 usb+ mach3+autoleveller
Posted: Wed Dec 22, 2021 11:29 pm
hello guys, I wanted to make a reference to something I did out of curiosity, I copied this code in the macro M2002.m1s and two situations happened, as soon as the probe makes the first reset, it generates random reading, and below all the correct data. do we already have functional solutions for usb cards?
'Get the x, y and z values
x=GetDro(0)
y=GetDro(1)
z=GetDro(2)
'g31 fails to update 2002
SetVar(2002, z)
' Open heightmap file and append axis values
Open "G:\heightmap.txt" For Append As #1
Write #1,x,y,z
Close #1
====================================
taken from that link in the photo. first come all the random points with wrong values then come the correct points below
'Get the x, y and z values
x=GetDro(0)
y=GetDro(1)
z=GetDro(2)
'g31 fails to update 2002
SetVar(2002, z)
' Open heightmap file and append axis values
Open "G:\heightmap.txt" For Append As #1
Write #1,x,y,z
Close #1
====================================
taken from that link in the photo. first come all the random points with wrong values then come the correct points below