Hello Guest it is December 06, 2024, 12:32:02 PM

Author Topic: Display oem dro with math function in user dro  (Read 6992 times)

0 Members and 1 Guest are viewing this topic.

Display oem dro with math function in user dro
« on: December 01, 2013, 02:34:20 AM »
And do it in real time not on the push of a button?
I'm using a rotary axis setup as a normal axis based on circumference.
I thought it would be nice to see it in degrees too , in real time.
From what i read I'm dreaming... 

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Display oem dro with math function in user dro
« Reply #1 on: December 01, 2013, 07:54:22 AM »
Use a macro pump and User DRO
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Display oem dro with math function in user dro
« Reply #2 on: December 01, 2013, 11:07:31 AM »
Any sample code?
Re: Display oem dro with math function in user dro
« Reply #3 on: December 02, 2013, 10:23:30 PM »
Nevermind, I got it.
My macropump.m1s looks like this...
Code: [Select]
value = GetOEMDRO(801) 
SetOEMDRO(803,value/0.008722222)

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
Re: Display oem dro with math function in user dro
« Reply #4 on: December 03, 2013, 01:42:52 AM »
OEMDRO 803 is the A axis distance to go DRO. I'm surprised you can write to it and would have thought it was a read only. I would edit the screen and use a UserDRO above 1000.

value = GetOEMDRO(801) 
SetUserDRO(1100,value/0.008722222)
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!