991
General Mach Discussion / Re: Need confirmation
« on: June 30, 2015, 03:11:08 PM »
OK here is a macro in a button script that I tested with. It also writes to a log file so you do not have to stare at it all day. It has cycled well over 1000 loops without failing to correctly show the same values in the DROs and the point file from the G31.
NOW does it round UP/down funny ?YEP BUT the same very time no matter if spaced or not in the gcode.
Steps PER = 200000
DRO resolution = 0.0000000 (7 dec)
'Mach3 G31 readout and point test
test = 0
Open "C:\Mach3\Test549.txt" For Append As #1
Do While test <= 10
Code"G0Y0X0"
While Ismoving()
Wend
code"G31Y0.21111111 f100"
While Ismoving()
Wend
Code"G0 Y0"
While Ismoving()
Wend
code"G31 Y0.21111111"
While Ismoving()
Wend
Print #1, "Ydro: " & Getdro(1) & " Ypnt: "& Getvar(2001)
While Ismoving()
Wend
message "Test# " & test
test = test+1
Loop
Close #1
End
HERE is a sample of the log file with 10 loops.
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
(;-) TP
NOW does it round UP/down funny ?YEP BUT the same very time no matter if spaced or not in the gcode.
Steps PER = 200000
DRO resolution = 0.0000000 (7 dec)
'Mach3 G31 readout and point test
test = 0
Open "C:\Mach3\Test549.txt" For Append As #1
Do While test <= 10
Code"G0Y0X0"
While Ismoving()
Wend
code"G31Y0.21111111 f100"
While Ismoving()
Wend
Code"G0 Y0"
While Ismoving()
Wend
code"G31 Y0.21111111"
While Ismoving()
Wend
Print #1, "Ydro: " & Getdro(1) & " Ypnt: "& Getvar(2001)
While Ismoving()
Wend
message "Test# " & test
test = test+1
Loop
Close #1
End
HERE is a sample of the log file with 10 loops.
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
Ydro: 0.211105 Ypnt: 0.211105
(;-) TP