************************************************************************** * Machine independant Code Generator include file * * Filename: mill-initialise.cgi * Author: RHA * Date: 11 November 2005 * * New file for adaptive milling templates derived from earlier multiplane template * ************************************************************************** * Change History * Version 10.5 * FIRST ISSUE * 20/02/06 RHA DEV00016344 Implement IJK vector for 5 axis cycle * 27/02/06 RHA DEV00016236 Spindle control fixes * 10/03/06 RHA DEV00016621 Add TNC movement code token * 16/03/06 RHA DEV00016660 Change to IF tokens for TNC Datum Shifting * Version 10.75 * 11/05/06 RHA DEV00017093 Variables in user tokens USER11 onwards * 16/05/06 RHA DEV00017213 Correct index handling for no rotation cases ************************************************************************** * *************************************************************************** *************************************************************************** * SPLINE OUTPUT *************************************************************************** * * NC Output control for PCIs (ECS2700) * Block Numbering * G (preparatory) codes * Circular Interpolation * Spindle / Gears * General Coordinate Systems * Rapid Traverse * Hole Cycles * Toolchange / Tooling * Subroutines * Cutter Radius Compensation * * Datum Shifting * #RECORD * Multi-plane / Rotary * M-FUNCTIONS *Thread Mill * Variables for Thread Mill canned cycle *Extra Variables for TNC ************ Check useage and remove if not required *User variables for * * Constants for start of G function in DATA1 & M function in DATA2 statements * * * * * ********************************* * Tokens - Use in Code Constructor * ********************************* * * * G-Codes * M Codes * General * Toolchange / Tooling * Rapid to Home or ToolChange * Cutter Radius Compensation * Circular Interpolation * Hole Cycles * Added for Sinumerik840 & Fadal cycles * Datum Shift : Translate / Index * Origin shift for TNC * * Tooling Sheet / Program Information * Subroutines * By block number * Position : Before, after, in-line with main NC Program * Datums * Rotary Axes / Milling * 5 Axis IKJ * Spline Output * Fanuc specific * Heidenhain specific * Tap cycle tokens for different addresses * Thread Mill Canned Cycle *********************************************************** * Job Record Tokens *********************************************************** *********************************************************** * User tokens for *********************************************************** * Heidenhain TNC Only * modal lines in Drill Cycle Modify *********************************************************** * M-Functions (Used to create default Code Constructor) *********************************************************** ************************************************************************** * Machine independant Code Generator include file * * Filename: mill-iso-mach-mm.cgi * Author: RHA * Date: 11 November 2005 * * New file for adaptive milling templates derived from earlier multiplane template * ************************************************************************** * Change History * Version 10.5 * FIRST ISSUE * 16/12/05 RHA DEV00015566 Spline output enabled * 20/02/06 RHA DEV00016344 New MM line switch for 5 axis IJK * 02/03/06 RHA DEV00016506 Change default Home and Tool Change locations * 07/03/06 RHA DEV00015555 High Speed mode tolerance ************************************************************************** ********************************************** * Setting up spindle defaults ********************************************** * Longhand^No^Yes * CRC Register * Work Datum Override * Tap Cycle Type^Floating^Rigid * Tap CycleTap Cycle^Right Hand^Left Hand *Chord Enter chord length for arc splitting *Full Canned Cycle * Last minute correction, change to Q2xx series next release * ****************************************************************************************************** * Gcodes 20 30 35 40 45 * Mcodes * ************************************************************************** * Machine independant Code Generator include file * * Filename: mill-default-kt.cgi * Author: RHA * Date: 11 November 2005 * * New file for adaptive milling templates ************************************************************************** * Change History * Version 10.5 * FIRST ISSUE * 13/03/06 RHA DEV00016683 Alter horizontal machine width ************************************************************************** * Base=Height, Width, Length, Thickness * Mount=Length,Width,Height would be used in case of trunnion table *lower mount would be used as the default mount *side mount is for machines with a vertical mount *saddle mount is for machines with a saddle * Table=Length, Width, Height, Lead, Angle, Radius * the line below is used for table in case of horizontal machines with B primary axis * Head=Type,Length, Width, Height,Lead, Angle,Protrusion Length,Protrusion Width,Protrusion Ht * Head=Type,Length, Width, Height,Protrusion Length,Protrusion Width,Protrusion Ht * KTTILTTABLE Length, Width, Height, Lead, Angle, Radius * cylinder KTROTUNIT Length, Radius * KTSADDLE Length, Radius,thickness,width,height * KT Chuck Type, Length,Diameter,Bore,JawLength,JawHeight,JawWidth,Protrusion,NoJaws,NoSteps *KT ATC - Length Width Depth Lead Angle Diameter Protrusion * ************************************************************************** * Machine independant Code Generator include file * * Filename: mill-iso.cgi * Author: RHA * Date: 11 November 2005 * * New file for adaptive milling templates derived from earlier multiplane template * ************************************************************************** * Change History * Version 10.5 * FIRST ISSUE * 16/12/05 RHA DEV00015647 Add R in XY Only Option * 31/01/06 RHA DEV00012212 Align code constructor trace text * 06/02/06 RHA DEV00007742 Single helix option for Thread Mill * 10/02/06 RHA DEV00016236 Spindle control fixes * 14/02/06 RHA DEV00016311 Change index defaults * 15/02/06 RHA DEV00016297 Incremental datum shift * 20/02/06 RHA DEV00016344 Implement IJK vector for 5 axis cycle * 24/02/06 RHA DEV00016420 Dwell token in peck drill codecon * 27/02/06 RHA DEV00016236 Spindle control fixes * 28/02/06 RHA DEV00016369 Fix Convert rapid to feed * 01/03/06 RHA DEV00016487 Set modality of inex direction M code * 02/03/06 RHA DEV00016511 G54 default format to be 2.2 * 07/03/06 RHA DEV00015555 High Speed mode tolerance, Reposition ZMOVE in Rapid codecon * 07/03/06 RHA DEV00014230 Rotation axes range correction * 14/03/06 RHA DEV00016367 Spindle control - add spindir to rapid codecon * 15/03/06 RHA DEV00015533 Add format table entries for toolstore tokens * 15/03/06 RHA DEV00015655 Add GEARMCODE token to hole cycles * 21/03/06 RHA DEV00007321 Correct Datum setting - limits * Version 10.75 * 12/04/06 RHA DEV00010822 Designate logical tokens by colour * 12/04/06 RHA DEV00016781 Document use of UARRAY1 in template * 12/04/06 RHA DEV00016809 Colour code tokens * 20/04/06 RHA DEV00016925 Add PLANEGCODE to Rapid After ToolChange * 22/05/06 RHA DEV00017232 Add FEEDMODEGCODE for Inverse Time Feeds ************************************************************************** * ************************* * * Template Notes Area * * ************************* * Notes must be defined outside of all procedures using the following syntax * Text is displayed in the machine NOTES area of the CGD * Length limit * * * ************************************************************* * * Template Dependant Language extensions for Code Wizard * * ************************************************************* * ************************************************* * Tab Name : General G-Codes ************************************************* ************************************************* * Tab Name : Hole Cycle G-Codes ************************************************* ************************************************* * Tab Name : Datum G-Codes ************************************************* * Setvar^DATA1(25)^54^Datum G-Codes^REAL^Work Coord System 1 * Setvar^DATA1(26)^55^Datum G-Codes^REAL^Work Coord System 2 * Setvar^DATA1(27)^56^Datum G-Codes^REAL^Work Coord System 3 * Setvar^DATA1(28)^57^Datum G-Codes^REAL^Work Coord System 4 * Setvar^DATA1(29)^58^Datum G-Codes^REAL^Work Coord System 5 * Setvar^DATA1(30)^59^Datum G-Codes^REAL^Work Coord System 6 ******************************************** * Tab Name : M-Codes ******************************************** * ************************************************* * Tab Name : Coolant Control ************************************************* ************************************************* * Tab Name : New Datum Setting ************************************************* ************************************************* * Tab Name : NC File General * ************************************************* **************************************************************** * Tab Name : Setup Sheet **************************************************************** *******...
nicocobretti