Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: rjb on February 27, 2010, 12:27:12 PM

Title: Auto Tool Zero - Plate Thickness DRO(1151)?
Post by: rjb on February 27, 2010, 12:27:12 PM
Hi,

I'm new to Mach3 so I'm probably asking a stupid question ..anyway here goes.

I'm trying to set up the Auto Tool Zero function and have had limited success using scripts from this forum, but I can't seem to get the zero setting to compensate for the thickness of my sensor switch (I place this on top of my workpiece so I need to add its height to the z setting to get the correct z position.   All of the scripts I have looked at refer to 'PlateThickness = GetUserDRO(1151)', but I don't understand where the parameter DRO(1151) is located or how it is set.  I think this is probably the key to solving my problem, but I can't find any information about this.  I'd be very grateful if someone could point me in the right direction.

Thanks,

Richard.

Title: Re: Auto Tool Zero - Plate Thickness DRO(1151)?
Post by: ger21 on February 27, 2010, 12:31:33 PM
A User DRO is a DRO added to the screen by the user. In this case, it is set to #1151. You can add a DRO to the screen using Screen4 or the Machscreen designer.
Title: Re: Auto Tool Zero - Plate Thickness DRO(1151)?
Post by: Greolt on February 28, 2010, 04:16:34 AM
Richard

Here is a quick example for you.

I have simply squeezed a DRO below the "Auto Tool Zero" button.

See pic.  Screenset also posted if it will help.

Greg
Title: Re: Auto Tool Zero - Plate Thickness DRO(1151)?
Post by: Tweakie.CNC on February 28, 2010, 04:24:55 AM
You could also consider changing the 'PlateThickness = GetUserDRO(1151)' to 'PlateThickness = 10' or whatever your plate thickness is.

Tweakie.
Title: Re: Auto Tool Zero - Plate Thickness DRO(1151)?
Post by: Greolt on February 28, 2010, 04:37:25 AM
Tweakie is quite right.

Once the value of "Plate Thickness" has been tuned for accurate results, it does not need further changing unless the plate is changed.

So it can be just as easy to hard code it in the script.

Greg