Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: TurboStew on February 08, 2015, 12:25:28 PM

Title: How to set the "Rotation Radius" from NC file?
Post by: TurboStew on February 08, 2015, 12:25:28 PM
Is there a way to set the "Rotation Radius" used for the 4th axis (in the "Settings" tab) from a NC file?  I wrote some Python scripts to do pipe coping and it would be real nice to automatically configure this from gcode files.  I do not see this in the parameters list.

Thanks, TurboStew
Title: Re: How to set the "Rotation Radius" from NC file?
Post by: BR549 on February 08, 2015, 12:38:51 PM
You would set it via the OEMDRO that holds the value.

Create a Macro that holds the update code then call it and use a param to feed the radius into the update macro. That way you only have to create one master macro to do any setting

M2000 P6.6    The macro would take the param and use it to set the OemDro to 6.6