Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Libbit on April 05, 2012, 01:42:55 AM

Title: Info regarding GetDRO's and etc.....
Post by: Libbit on April 05, 2012, 01:42:55 AM
Hi, what I'm trying to do is find out the link, if there is one, between the screen button's or enter blocks. Don't know how to insert a pic so anyway on the Mach3 Big Blue Screen we have the probe setup and the "plate thickness" enter block, my question is what is the GetDRO number for this block? Similarly there is a  "edge finder dia" on the Offsets screen, what would the GetDRo number be for this be. The reason for my questions is I'm writing a script to find the x, y, and z edge. I have one which is working but don't understand why?
Title: Re: Info regarding GetDRO's and etc.....
Post by: Hood on April 05, 2012, 03:46:20 AM
Look at the sticky it has a xls file with the oem codes for Buttons,  LEDs and DROs, alternatively you can also find the same info on the wiki.
You can also have your own DROs, ( user DROs) they must be in the range of 1000  to 2255.
Hood
Title: Re: Info regarding GetDRO's and etc.....
Post by: Libbit on April 05, 2012, 05:22:14 PM
Thank you. Does anybody have a script which outputs the current DRO's for your setup. I ask this because the DRO reference doesn't seem to be standard. Again i say this because if i ask for DRO (43) {tool Diam} i get the -tool radius. I would like a list of my DRO's under my current setup. Tks, John
Title: Re: Info regarding GetDRO's and etc.....
Post by: Hood on April 05, 2012, 05:40:18 PM
Works fine for me and OEM codes are standard..
I placed a DRO on my screen and set it to OEM 43, called Tool 1 and the DRO showed 60 which is what I had entered in the tool table for tool 1 Dia.
Hood
Title: Re: Info regarding GetDRO's and etc.....
Post by: Libbit on April 05, 2012, 06:15:14 PM
Hi Hood, Thank you. What i'm doing is using the MsgBox GetDRO(43) (just to see and understand what's happening) and the radius is displayed as -2.75 with my tool set at 5.5. i changed the tool to say 8 and then i get -4. Just confused
Title: Re: Info regarding GetDRO's and etc.....
Post by: Hood on April 05, 2012, 06:22:31 PM
MsgBox GetOEMDRO(43)

Should work.
Hood
Title: Re: Info regarding GetDRO's and etc.....
Post by: Libbit on April 05, 2012, 06:24:16 PM
Oh, okay i see. will try and let u know. at work at the moment. Tks, John
Title: Re: Info regarding GetDRO's and etc.....
Post by: ger21 on April 05, 2012, 06:24:55 PM
If you open the screen in a screen designer, you can see the DRO #. Machscreen has a table view that lists all the screen controls used.
Title: Re: Info regarding GetDRO's and etc.....
Post by: Libbit on April 05, 2012, 06:47:24 PM
Hi, now that is what i was looking for. Great. Rgs, John