Page 1 of 1

stb5100 usb+ mach3+autoleveller

Posted: Wed Dec 22, 2021 11:29 pm
by samusad123
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

Re: stb5100 usb+ mach3+autoleveller

Posted: Thu Dec 23, 2021 1:40 am
by samusad123
here are the results

Re: stb5100 usb+ mach3+autoleveller

Posted: Thu Dec 23, 2021 2:22 am
by samusad123
I realized that when loading the PFG file, the content that is in mach3 is saved, but I see that before reading it I can delete it, because the surface reading is being done correctly, while I don't have a complete solution

Re: stb5100 usb+ mach3+autoleveller

Posted: Sat Jan 08, 2022 2:40 am
by samusad123