Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:27:05 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  custom DRO that automatically updates its value
Pages: 1   Go Down
Print
Author Topic: custom DRO that automatically updates its value  (Read 429 times)
0 Members and 2 Guests are viewing this topic.
tj1988
Active Member

Offline Offline

Posts: 5


View Profile
« on: April 20, 2011, 08: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.
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #1 on: April 20, 2011, 08: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.
Logged

tj1988
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #2 on: April 20, 2011, 08:53:54 PM »

It worked (had to close and reopen mach3) Thank you for your prompt reply. Macropump is a very useful feature..
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!