1
VB and the development of wizards / VB / macro execution problem, 2D-contour probing
« on: February 13, 2010, 02:49:24 PM »
Hi all,
I'm going to create some macro code to do 2D digitizing/probing. I did 8 macros to do e.g. probing in +Y direction until trip, then retracting the probe by running a quarter circle in of the probe in -Y+X direction and do this in a loop until a defined X distance has been probed or until the probe does not trip.
Attached my macro M817.
Problem is:
It seems, that when inside of the while-loop the oemDROs will not updated and also the check for "OverTravel" (probe does not trip in the G31-distance) will not do properly.
When the probe does not trip in the first sequence the result is as expected: linear retract by ProbeTravel.
But after one or more trips of the probe and then coming behind the edge the probe runs for the complete G31-distance, then does the circular retract, probes again ...
I'm not too familiar with VB programming, so maybe you could see the bug?
Thanks for helping!
Regards
Holger
I'm going to create some macro code to do 2D digitizing/probing. I did 8 macros to do e.g. probing in +Y direction until trip, then retracting the probe by running a quarter circle in of the probe in -Y+X direction and do this in a loop until a defined X distance has been probed or until the probe does not trip.
Attached my macro M817.
Problem is:
It seems, that when inside of the while-loop the oemDROs will not updated and also the check for "OverTravel" (probe does not trip in the G31-distance) will not do properly.
When the probe does not trip in the first sequence the result is as expected: linear retract by ProbeTravel.
But after one or more trips of the probe and then coming behind the edge the probe runs for the complete G31-distance, then does the circular retract, probes again ...
I'm not too familiar with VB programming, so maybe you could see the bug?
Thanks for helping!
Regards
Holger