Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: beefy on May 08, 2015, 10:07:23 PM

Title: Difference - "basic", USER, OEM
Post by: beefy on May 08, 2015, 10:07:23 PM
Could anyone direct me to a source of explanation, or perhaps describe to me the differences of these.

DRO
USERDRO
OEMDRO

LED
USERLED
OEMLED

etc.

Thanks,

Keith.
Title: Re: Difference - "basic", USER, OEM
Post by: ger21 on May 08, 2015, 11:16:26 PM
Section 9 of the Wiki explains it.
http://www.machsupport.com/Mach3Wiki/index.php?title=Main_Page

All DRO's (and other control groups) are all basically the same.
Mach3 has assigned numbers for system functions. In early versions of Mach3, these were accessed with GetDRO or SetDRO calls. Later versions were changed to OEMDRO's, and use SetOEMDRO and GetOEMDRO.
User DRO's are just user defined DRO's.
Title: Re: Difference - "basic", USER, OEM
Post by: beefy on May 09, 2015, 04:08:34 AM
Thanks Gerry,

I've went at looked at the DRO & OEMDRO pages of the Wiki.

I see DROs don't have a number but an FCODE (still to learn what fcode means). For example "X DRO" has fcode "0"

I can also find "X DRO" in the list of OEMDROs in the Wiki, and there it has OEMCODE 800.

Using Screen4 I double clicked on the X DRO and it came up as "System Function" "X Position". I'd hazard a guess "fcode" means system function and X Position is system function "0"

So if I was designing a screen with Screen4 and I wanted to create the basic X DRO, I'm guessing I could use either "System Function" "X Position" or "OEM Code Function 800", and I'd end up with the same result.

Keith.
Title: Re: Difference - "basic", USER, OEM
Post by: ger21 on May 09, 2015, 07:07:22 AM
I've been designing screens for years, and had to look up what "FCode" was.
It's just the number of the control.
Mach3 has built in system functions, which as you've mentioned, function the same as using the OEM number.
Title: Re: Difference - "basic", USER, OEM
Post by: beefy on May 09, 2015, 07:41:27 AM
Thanks Gerry,

the waters are a bit muddy for a newcomer to this stuff but I know the end result will be worth it.

Keith.