Hello Guest it is December 26, 2024, 11:07:16 AM

Author Topic: custom DRO that automatically updates its value  (Read 5639 times)

0 Members and 1 Guest are viewing this topic.

custom DRO that automatically updates its value
« 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.

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: custom DRO that automatically updates its value
« Reply #1 on: April 20, 2011, 09:24:50 PM »
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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: custom DRO that automatically updates its value
« Reply #2 on: April 20, 2011, 09:53:54 PM »
It worked (had to close and reopen mach3) Thank you for your prompt reply. Macropump is a very useful feature..