Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ostie01 on August 04, 2008, 06:10:39 AM

Title: GetVar(2002) used in 2 Vb macro
Post by: ostie01 on August 04, 2008, 06:10:39 AM
Hi

I would like to probe the workpiece on the Z axis with a macro using GetVar(2002) when the probe touch the piece.

Also, would like to use a Vb macro to set the Z tool offset  but can I use something else than GetVar(2002) because since this is the same variable, it change the z axis also instead of the workpiece offset only.

I really want two separate macro, one to probe for G54 and one for tool offset length.

Could somebody explain to me what the difference between "GetUserDro , GetDro, and GetOemDro" -  "SetDro ,setOemDro and Call SetDro"  -  GetVar(2002) and GetVar(1000)

When to use Dro and OemDro, GetDro,          GetUserDro and GetOemDro


This would be greatly appreciated, Thanks
Title: Re: GetVar(2002) used in 2 Vb macro
Post by: poppabear on August 04, 2008, 02:43:18 PM
Get or SetOEMDRO is for the OEM mach issued funcitons GetDRO and SetDRO is same (same for LEDs)

Get or SetUserDRO (or LED), these will only effect the General "Undefined" DROs and LEDs for the users to use Range 1000-2255 for both.

Title: Re: GetVar(2002) used in 2 Vb macro
Post by: ostie01 on August 04, 2008, 06:39:38 PM
Sorry if I do not understand, but what is the difference between a UserDro and a Dro

Sorry again