Category:Custom Drill Cycles: Difference between revisions
Created page with "{{Up}} The list commands are used to get a list of data. After you have used a list command, a set of variables will be set to data related to the list. <br> <br> ..." |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Main_Page|{{Up}}]] | [[Main_Page|{{Up}}]] | ||
Custom Drill Cycles require one set of macros for each cycle.<br> | |||
In order to use custom cycles, you must first define the name of the cycle in the MDD.<br> | |||
<br> | <br> | ||
Each Custom Drill Cycle definition contains the cycle name (seen on the dropdown menu of the drill dialog)<br> | |||
and the cycle folder name. This folder name is used to define the location of the custom macros.<br> | |||
<br> | <br> | ||
Custom drill cycle macros are located in the Program Data folder, in the folder that is specific to the version of GibbsCAM<br> | |||
that you are running. In here you will find the "Macros\CustomDrillCycles" folder. It is in this folder that you need to create<br> | |||
one folder for each Custom Drill Cycle, using a folder name that matches the custom cycle definition in the MDD.<br> | |||
<br> | <br> | ||
Each Custom Drill Cycle macro folder must contain the following files (with these exact filenames)<br> | |||
CycleData.txt<br> | |||
CycleData.mac<br> | |||
CycleData.dlg<br> | |||
ToolPath.mac<br> | |||
<br> | |||
The first file contains a list of the variables used by the cycle, with default values.<br> | |||
The second file is the macro that is run when you press the Cycle Data button on the Drill Dialog.<br> | |||
The third file is the dialog definition used by the CycleData macro.<br> | |||
The fourth file is used to define the toolpath for each hole in the cycle.<br> | |||
<br> | |||
Note: When creating the toolpath, all moves are defined in a CS that has its origin at the start of the hole<br> | |||
and the depth axis pointing along the axis of the hole. So, for example, a hole that is 3 inches deep will contain<br> | |||
moves that start at 0, 0, 0 and have a final depth position of at 0, 0, -3.<br> | |||
<br> | |||
A minimal macro to create toolpath that simply feeds to the bottom of the hole and rapids out would contain 3 lines:<br> | |||
get_custom_drill_cycle_data hole_depth, zz ! the depth of the hole<br> | |||
add_custom_drill_cycle_path feed_z, zz ! feed to depth<br> | |||
callback_returncode = 0 ! no error<br> | |||
The full list of parameters for the get_custom_drill_cycle_data command is: | |||
hole_num the hole number in the process, first hole will be 1 | |||
hole_depth total depth of the hole | |||
entry_z the entry clear plane height on the drill dialog | |||
exit_z the exit clear plane height on the drill dialog | |||
retract_plane the retract plane height | |||
x the x position of the ole | |||
y the y position of the hole | |||
z the z position of the (bottom of) the hole | |||
The following example macros are available.<br> | |||
<br> | |||
<b>Peck Drilling, adjust by Distance.</b> Input an initial peck depth and a peck reduction amount. The depth of each peck will be<br> | |||
the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for. | |||
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Gibbs.PeckDistance.Generic <nowiki>Download</nowiki>]<br> | |||
<br> | |||
<b>Peck Drilling, adjust Percentage.</b> Input an initial peck depth and a percentage value. The depth of each peck will be<br> | |||
the depth of the previous peck, multiplied by this percentage. A minimum peck depth is also provided for. | |||
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Gibbs.PeckPercent.Generic <nowiki>Download</nowiki>]<br> | |||
<br> | |||
<b>Fagor Style Variable Peck Drilling.</b> Input an initial peck depth and a peck reduction amount. The depth of each peck<br> | |||
will be the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.<br> | |||
An additional cycle option provides for a full out retract after a given number of pecks. | |||
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Gibbs.PeckFagor.Generic <nowiki>Download</nowiki>]<br> | |||
<br> | |||
<b>Tapered Square.</b> Custom Drill Cycles are not limited to Depth Axis moves. Input a number of pecks. The peck depth will be<br> | |||
calculated as the total depth divided by the number of pecks. A series of squares will be calculated at each depth, the length of<br> | |||
each side at the start of the hole will be equal to the tool diameter and the side length will reduce at each depth down to zero<br> | |||
at the final depth. The tool center will be driven around the square at each depth to created a tapered square hole.[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Gibbs.TaperSquare.Generic <nowiki>Download</nowiki>]<br> | |||
Revision as of 22:18, 18 May 2011
Custom Drill Cycles require one set of macros for each cycle.
In order to use custom cycles, you must first define the name of the cycle in the MDD.
Each Custom Drill Cycle definition contains the cycle name (seen on the dropdown menu of the drill dialog)
and the cycle folder name. This folder name is used to define the location of the custom macros.
Custom drill cycle macros are located in the Program Data folder, in the folder that is specific to the version of GibbsCAM
that you are running. In here you will find the "Macros\CustomDrillCycles" folder. It is in this folder that you need to create
one folder for each Custom Drill Cycle, using a folder name that matches the custom cycle definition in the MDD.
Each Custom Drill Cycle macro folder must contain the following files (with these exact filenames)
CycleData.txt
CycleData.mac
CycleData.dlg
ToolPath.mac
The first file contains a list of the variables used by the cycle, with default values.
The second file is the macro that is run when you press the Cycle Data button on the Drill Dialog.
The third file is the dialog definition used by the CycleData macro.
The fourth file is used to define the toolpath for each hole in the cycle.
Note: When creating the toolpath, all moves are defined in a CS that has its origin at the start of the hole
and the depth axis pointing along the axis of the hole. So, for example, a hole that is 3 inches deep will contain
moves that start at 0, 0, 0 and have a final depth position of at 0, 0, -3.
A minimal macro to create toolpath that simply feeds to the bottom of the hole and rapids out would contain 3 lines:
get_custom_drill_cycle_data hole_depth, zz ! the depth of the hole
add_custom_drill_cycle_path feed_z, zz ! feed to depth
callback_returncode = 0 ! no error
The full list of parameters for the get_custom_drill_cycle_data command is:
hole_num the hole number in the process, first hole will be 1 hole_depth total depth of the hole
entry_z the entry clear plane height on the drill dialog exit_z the exit clear plane height on the drill dialog retract_plane the retract plane height
x the x position of the ole y the y position of the hole z the z position of the (bottom of) the hole
The following example macros are available.
Peck Drilling, adjust by Distance. Input an initial peck depth and a peck reduction amount. The depth of each peck will be
the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.
Download
Peck Drilling, adjust Percentage. Input an initial peck depth and a percentage value. The depth of each peck will be
the depth of the previous peck, multiplied by this percentage. A minimum peck depth is also provided for.
Download
Fagor Style Variable Peck Drilling. Input an initial peck depth and a peck reduction amount. The depth of each peck
will be the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.
An additional cycle option provides for a full out retract after a given number of pecks.
Download
Tapered Square. Custom Drill Cycles are not limited to Depth Axis moves. Input a number of pecks. The peck depth will be
calculated as the total depth divided by the number of pecks. A series of squares will be calculated at each depth, the length of
each side at the start of the hole will be equal to the tool diameter and the side length will reduce at each depth down to zero
at the final depth. The tool center will be driven around the square at each depth to created a tapered square hole.Download
This category currently contains no pages or media.