Machsupport Forum
Mach Discussion => Mach Screens => Topic started by: tj1988 on April 20, 2011, 09:22:01 PM
-
Hi,
I am struggling a bit with this and was unable to find anything on the forums. I want a DRO that displays the Z axis position minus a value that I program into another DRO. So my "code" would look something like this:
SetUserDRO(1200,GetOEMDRO(802)-GetUserDRO(1100)) ' sets 1200 user-defined DRO to Z-axis position - 1100 user-defined DRO
However, I would like it to automatically update my DRO and keep track of this value while Mach3 is running without me needing to press a button to run a VB script. Is this possible?
Thanks.
-
Use the macropump. It tuns the VB code 10 times per second. I believe you just save the code as macropump.m1s and enable it in general config.
-
It worked (had to close and reopen mach3) Thank you for your prompt reply. Macropump is a very useful feature..