V13 Handling ALL drill cycle output with DrillCycleParams

From Compost Wiki
Jump to navigation Jump to search

Introduction

GibbsCAM v13 adds several options for drill cycle output that can make it very simple to handle ALL output needed for any drill cycle using only the DrillCycleParams command.

none‎

EOL and Seq/SeqLab

If a given drill cycle needs to be across multiple lines, for example on a Heidenhain control, you can add EOL, Seq, SeqC, SeqLab, and SeqLabC to your drill cycle by adding the appropriate Parameters. These will be output automatically by DrillCycleParams in the order they are listed in the drill cycle, from top to bottom.

Literals

The Literal parameter allows you to enter a literal that will be output exactly by DrillCycleParams.

Custom subroutines

If you need to use some custom logic for a given drill cycle parameter, you can have DrillCycleParams automatically call a subroutine of your choice by entering the name of the subroutine, without the :, into the Parameter field.

Custom subroutine example

As an example, suppose I want to call the subroutine thisHoleDrillZDepth: to output the Z Depth of my drill cycle. I open the Drill Cycle dialog, find the appropriate drill cycle, and click the Add button. Then I type thisHoleDrillZDepthDialog into the dialog:

And click OK. This adds a new Parameter to my current Drill Cycle called thisHoleDrillZDepth, which can be moved up and down using the arrows in the same way as any other parameter.

Now thisHoleDrillZDepth: will be called every time DrillCycleParams is executed during a FIRO cycle.

To make this a little more pleasing to look at in the Form, I can add a label for my custom sub, which will not be output but will show in the preview area:

Other options

You can also use a ReturnNum subroutine as a Parameter as long as this subroutine has the # at the end of its name. In this case, the Label you enter into the form will be output, and the default Format for this label will be used for the value Returned by your subroutine, which of course can be overridden by checking the Format checkbox.