Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: attila0216 on April 09, 2016, 03:34:33 PM
-
Hi Everyone,
Could someone pls help me with my macro? What i am trying to achieve is after Z moved 10 in incremental ZERO the Z DRO and back to Absolute mode. BUt instead of zeroing always stays 10. What is wrong? Anyone has idea? Here it is:
Code "G91"
Sleep(20)
Code "G00 Z 10"
Sleep(50)
Call SetDro (2,0.0000)
Sleep(200)
Code "G90"
Sleep(20)
Thank You for any input
-
Code "G91"
Sleep(100)
Code "G00 Z10"
While IsMoving()
Wend
Call SetOEMDro (802,0)
Sleep(200)
Code "G90"
Sleep(100)
-
Ger21!
Thank you very much!!!
-
> Call SetOEMDro (802,0)
Why is it that the Macro Programmer's Reference manual on page 70 says that this should be SetOEMDRO(2,0)? While the examples given for some of these get/set DRO functions are kinda confusing, since they use the wrong functions?
OK, OK, so I read the one wrong page when trying to use these functions.
Mumble.
Cheers
Roger