Hi Brian
I see I had a typo in the previous post. It should be G31 not G32. That set aside, here are extract from a vb button..........
Length=GetUserDro(1020)
Clearance=GetUserDro(1010)
'The following is for offline testing!
Call SetVar(2001,99999)
Call SetUserDRO(1030,GetVar(2001))
Call SetUserDRO(1040,GetVar(2001))
Code "G91" 'Switch to incremental mode
Code "G31 Y-" & Clearance 'First Probing move
'Again only for offline testing!
Call SetUserDro(1030,GetVar(2001)) '************************************
Code "G0 Y" & Clearance 'Rapid Clearance move
Code "G0 X" & Length 'Rapid move to second Touch point
Code "G31 Y-" & Clearance 'Second Probing move
'Again only for offline Testing
Call SetUserDRO(1040,GetVar(2001)) '************************************
Code "G0 Y" & Clearance 'Rapid Clearance move
The problem I encounter.....While stepping into the script line for line everything works as planed. But when I run the button
The two lines where I call for ........... SetUserDRO(1030,GetVar(2001)) and SetUserDRO(1040,GetVar(2001)).......somehow gets skiped and the DRO's dont get updated. I think I need something to pause the process to give time for the update.
Please Help!