Hello Guest it is October 24, 2021, 11:28:41 PM

Author Topic: Estimate(815)/Elasped(814) dro different  (Read 10988 times)

0 Members and 1 Guest are viewing this topic.

Estimate(815)/Elasped(814) dro different
« on: March 07, 2013, 10:31:34 AM »
is there a way to adjust the Estimate(815) DRO to get closer to the
Elasped(814) DRO ? thirty minutes seems like a big different.
Thanks for any help !
Kenneth
Re: Estimate(815)/Elasped(814) dro different
« Reply #1 on: March 07, 2013, 12:48:51 PM »
also, i'm trying to use a button to change a userdro(1011) between inch and mm.
below is what i have. it works but i have to toggle unit button(106), THEN click
my button and it changes back to whichever is opposite from what it was before.
if i enter 1" and click the button, the dro changes to 25.4mm. if i click the same button,
it should change back to 1". doesn't have to say " or mm.
Thanks for any help !



InchMM = GetUserDRO(1011)
If GetOEMLED(802) Then
SetUserDRO(1011 , InchMM*25.4)
Else
SetUserDRO(1011 , InchMM/25.4)
End If
« Last Edit: March 07, 2013, 12:55:18 PM by Kenneth »
Kenneth
Re: Estimate(815)/Elasped(814) dro different
« Reply #2 on: March 08, 2013, 10:42:35 AM »
Hi Kenneth,

try the folowing:
a user defined DRO 1011
a Button with Standard code 34(Execute Basic Script)
    the script:
DoOEMButton(106)
InchMM = GetUserDRO(1011)
If GetOEMLED(802) = 0 Then
SetUserDRO(1011 , InchMM*25.4)
Else
SetUserDRO(1011 , InchMM/25.4)
End If


Klaus
The brain isn't a soap, it doesn't shrink when used.
Re: Estimate(815)/Elasped(814) dro different
« Reply #3 on: March 11, 2013, 06:41:45 AM »
Thanks Kluaus, but that uses the OEM button to toggle units.
so it changes ALL the DROs by using the OEMLED. was looking to
have it just to do a quick convert as i use inches all the time and sometimes
they bring me mm. used inches for 20 years and just started to have to convert.
so i would like one DRO to change. is there a way to use DoButton for a user button ?
and i got your email about the 1010 DRO. Thanks
Kenneth
Re: Estimate(815)/Elasped(814) dro different
« Reply #4 on: March 11, 2013, 07:29:13 AM »
i got this working by adding a UserLED.
but it still changes all my DROs.

DoOEMButton(106)
InchMM = GetUserDRO(1010)
If GetUserLED (1012) = 0 Then
SetUserDRO(1010 , InchMM*25.4)
SetUserLED(1012,1)
Else
SetUserDRO(1010 , InchMM/25.4)
SetUserLED(1012,0)
End if
Kenneth
Re: Estimate(815)/Elasped(814) dro different
« Reply #5 on: March 11, 2013, 07:46:05 AM »
i know it's dat dang dobutton but can't
find where to use a user button.
Kenneth

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Estimate(815)/Elasped(814) dro different
« Reply #6 on: March 11, 2013, 09:22:16 AM »
I'm not entirely clear what it is you want to do.... however....

Your USER DRO was just mimicking the SYSTEM units DRO so there's no point in having it. Try this code and see if it does what you want.

Note that whenever you change the system units then the axis DROs WILL change UNLESS you have "Lock DROs to setup units" ticked in general config.

Code: [Select]
DoOEMButton(106) 'toggle system units

InchMM = GetUserDRO(1010) 'get whatever

If GetOEMLED (802) Then 'if the system is now in mm
  SetUserDRO(1010 , InchMM*25.4)
Else 'else it's now in inches
  SetUserDRO(1010 , InchMM/25.4)
End If

Ian
Re: Estimate(815)/Elasped(814) dro different
« Reply #7 on: March 11, 2013, 09:30:23 AM »
Thanks Ian,
that helped the system DRO, but it still changes the feed rate(18)
and the overridden fr(55). but i'll take what i can get :)
was hoping to be able to enter a number(say 12) and then click
my button to change it to inch or mm. that's it. just a simple
convertion button.
Kenneth

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Estimate(815)/Elasped(814) dro different
« Reply #8 on: March 11, 2013, 09:51:13 AM »
You need to be clear what it is you want to do. If ALL you want is...

was hoping to be able to enter a number(say 12) and then click
my button to change it to inch or mm. that's it. just a simple
convertion button.

Then WHY are you toggling the system units?
Re: Estimate(815)/Elasped(814) dro different
« Reply #9 on: March 11, 2013, 09:56:24 AM »
because i was given a script(Thanks Klaus) and was working from there.
the script using the unit toggle but i was looking for an altenate button to
use. that's why i asked if it was possible to get the status of a user button.
when i couldn't find a user button to use, i created a LED.. i'm working on that
but it still toggles system. Thanks Ian
« Last Edit: March 11, 2013, 10:01:47 AM by Kenneth »
Kenneth