6181
General Mach Discussion / Re: machine running irregular on button script
« on: December 13, 2010, 08:58:27 PM »
THere are several thing working aginst you with your approach.
The VB is not in any way synced with the Gcode side so the VB can endrun your Gcode if time is short(and will). and vise versa.
The G4 does not control the wait for the VB side Sleep() is what you use to control the wait in VB. AND it will be nessesary to use it to help control the flow and wait for updates.
THe G31 is very reliable and accurate IF used like Graham stated entirley in Gcode.The G31 "does" have a report modual that saves all your points to a file AND is very reliable. (;-) Then that part is control from inside of MACH.
I have probed many 100,000s of points with G31 and the save point files with no errors > Can't say that for the VB side using the G31. Sooner or later something gets out of sync.
Just a thought, (;-) TP
The VB is not in any way synced with the Gcode side so the VB can endrun your Gcode if time is short(and will). and vise versa.
The G4 does not control the wait for the VB side Sleep() is what you use to control the wait in VB. AND it will be nessesary to use it to help control the flow and wait for updates.
THe G31 is very reliable and accurate IF used like Graham stated entirley in Gcode.The G31 "does" have a report modual that saves all your points to a file AND is very reliable. (;-) Then that part is control from inside of MACH.
I have probed many 100,000s of points with G31 and the save point files with no errors > Can't say that for the VB side using the G31. Sooner or later something gets out of sync.
Just a thought, (;-) TP