stb5100 usb+ mach3+autoleveller

Help for setting up and using
Post Reply
samusad123
Posts: 4
Joined: Wed Dec 22, 2021 5:57 pm

stb5100 usb+ mach3+autoleveller

Post 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
Attachments
20211222_202402.jpg
samusad123
Posts: 4
Joined: Wed Dec 22, 2021 5:57 pm

Re: stb5100 usb+ mach3+autoleveller

Post by samusad123 »

here are the results
Attachments
PFG~110x50.nc.txt
(2.91 KiB) Downloaded 153 times
heightmap.txt
(1.6 KiB) Downloaded 160 times
samusad123
Posts: 4
Joined: Wed Dec 22, 2021 5:57 pm

Re: stb5100 usb+ mach3+autoleveller

Post 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
samusad123
Posts: 4
Joined: Wed Dec 22, 2021 5:57 pm

Re: stb5100 usb+ mach3+autoleveller

Post by samusad123 »

Attachments
Screenshot_20220107-234112_Video Player.jpg
Post Reply