*** Start of include file MTOKEN.CGI *** ************************************************************************* * Machine independant Code Generator include file * * * * Filename: MTOKEN.CGI * * Author: ADM (Derived from 3AXM-FAN.CGS -r1.41 * * and 3AXM-HH.CGS -r1.25) * * Date: 6th December 1996 * * * ************************************************************************* * Change History * * Initial Version - Included fixes for db9831 * * 03/02/97 ADM - Support incremental & absolute datum shifts (9008) * * and moved NEXTTOOL logic to the toolchange macro * * 05/02/97 ADM - implemented token for absolute/incremental coords * * 21/04/97 ADM - db10098 - remove speed from toolchange macro * * 26/09/97 ADM - db10378 - LOOPNUMBER now set to #HEADER not #LOOP * * (used for Heidenhain tool definitions * * 05/11/97 ADM - db10539 - FIRSTTOOL token should use #FIRSTTOOL * * variable not POSITION * * db10541 - should use USERDEFINEDSTRING if tool not * * loaded from tool library * * 06/11/97 ADM - db10245 - change PROGDESCR token so that it does not* * ask a question each time token used * * 18/11/97 ADM - Allow seperate code constructor for hole cycle * * points for Fanuc template (db10455 & db9616) * * 21/11/97 ADM - Axis Reverse option now affects home and toolchange * * positions (spotted when fixing db10578) * * 02/03/98 ADM - Implement TNC400 Q parameter hole cycles (db10347) * * Implement TNC400 rigid tapping (db10329) * * 09/03/98 ADM - Implement spline output for Fanuc and TNC400 (C1&C2)* * 23/03/98 ADM - Added RETRACTMCODE token for Okuma template (QA C4) * * 30/03/98 ADM - Added WARNING token for new warning code constructor* * 18/05/98 ADM - Prevent 2 line output from rapid to home/toolchange * * code constructor when using literals (db10858) * * 17/08/98 ADM - SMOOTHMCODE token now uses #EXACTGCODE (db10822) * * 22/09/98 RHA - Add call to set_comp_to_string to token * * Add MAXFEED token for Heidenhain & TNC (DB11008) * * 28/09/98 RHA - Tokens added for Sinumerik840 Cycles & Polynomials * * 08/10/98 RHA - Independant HOME tokens for Siemens * * 22/10/98 RHA - Correction to MAXFEED token for Heidenhain * * 20/10/98 RHA - Token LASTDEPTH added for Fadal * * 04/01/98 RHA - Tokens for G28 blocks added (Mori Seiki) * * ABS-INC - %CANCEL removed from token * * 07/01/99 RHA - Format table references changed for 840 Spline tokens* * 14/01/99 RHA - OPNUM & OFFSETID tokens added for Mori Seiki * * 07/01/00 RHA DB11788 Remove length restriction on tool description * * 24/01/00 RHA DB11691 Z Reverse for Intial plane & Zclear tokens added * * 10/02/00 RHA DB11879 Tokens added for Home/Tool Change Position * Use of existing tokens for move to Home/Tool Change clarified * 10/02/00 RHA DB11963 User Tokens Added * 26/05/00 RHA DB12281 Extend max number of gear ranges to 6 for Siemens 840 * 12/06/00 RHA Modify MAXFEED token to output via #FEED for modality purposes * 23/10/00 RHA DEV00001648 Speed setting for token moved to PT_SPEED_SET and corrected * 07/11/00 RHA DEV00001691 - Increase number of user tokens * 13/12/00 RHA Semicolon token moved to mtoken.cgi * 19/12/00 RHA Call SET_TOOL_TYPE from TOOLTYPE token * 15/01/01 RHA DEV00002142 Place %ASK for tokens PROGVERSION & PROGRAMMER in procedures * 25/06/01 RHA DEV00003177 Set #XMOVE etc for Home & Tool Change Position tokens * 06/09/01 RHA Added tokens for ECS27xx, Define !SMOOTHGCODE * 26/09/01 RHA DEV00002377 - Siemens840 Cycles, changes and additions * 25/09/01 RHA DEV00002996 Add tokens for Job Record data. * 30/10/01 RHA DEV00003699 Change variables in borestandoff-X & Y * 11/08/03 RHA Various New Tokens SPINDLE OFF, FLUTE * 13/08/03 RHA DEV00000377 New procedure to set #HCODE * 26/08/03 RHA DEV00008539 Add warning counter * 27/08/03 RHA DEV00007609 ToolChange & Home setting Option * 03/12/03 RHA DEV00009395 Correct TLO with HPCC * 05/12/03 RHA DEV00007045 Table clamp codes and tokens * 15/12/03 RHA DEV00009612 Add new date tokens * Version 950 * 01/12/04 RHA DEV00011681 Additional mill tool tokens * 10/01/05 RHA DEV00012570 Correct TNC Helix * ************************************************************************* * * 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 * Cutter Radius Compensation * Heidenhain & Anilam Only * Circular Interpolation * Hole Cycles * Added for Sinumerik840 & Fadal cycles * Heidenhain Only * * Datum Shift : Translate / Index * * Tooling Sheet / Program Information * Subroutines * By block number * Position : Before, after, in-line with main NC Program * Datums * Rotary Axes / Milling * Spline Output * Fanuc specific * Heidenhain specific *Siemens Spline (Polynomial) *Siemens Home (For null addresses) * M-Functions (Used to create default Code Constructor) * Machine Specific Tokens * Deckel * * G28 blocks Mori Seiki & Fanuc types * Formatting tokens, ECS27xx (Semi colon without training spaces) *********************************************************** * Job Record Tokens *********************************************************** *********************************************************** * User tokens for *********************************************************** * *** End of include file Q:\Pams\cam\machdef\template\MTOKEN.CGI *** *** Start of include file MDECLARE.CGI *** ************************************************************************* * Machine independant Code Generator include file * * * * Filename: MDECLARE.CGI * * Author: ADM (Derived from 3AXM-FAN.CGS -r1.41 * * and 3AXM-HH.CGS -r1.25) * * Date: 6th December 1996 * * * ************************************************************************* * Change History * * Initial Version - Included fixes for db9831 * * 16/12/96 ADM - implemented swapping of CLW/CCLW codes for YZ * * and XZ planes (db9725) * * 27/01/97 ADM - use NEXTZMOVE instead of ZMOVE in * * RAPID_AFTER_TOOLCHANGE (db9822) * * 03/02/97 ADM - support incremental & absolute datum shift (db9008) * * 05/02/97 ADM - implemented token for absolute/incremental coords * * 21/04/97 ADM - db10043 - allow cutter comp on thread milling * * 26/06/97 ADM - New variable used in calculation of radius sign for * * rotary radial arcs * * 11/11/97 ADM - Variable used to determine whether Indexing or * * Rotary, so that Reverse Axis and Start At settings * * affect Rotary moves (db10246 and db10358) * * 13/11/97 ADM - Add option for CRC register as Maxtools + tool * * count (db9633) * * 18/11/97 ADM - Allow seperate code constructor for hole cycle * * points for Fanuc template (db10455 & db9616) * * 28/11/97 ADM - Warn if no Rapid to Toolchange prior to Toolchange * * (db10589) * * 16/12/97 SME - #HOLECYCLE declared * * 23/02/98 ADM - Add option to allow combined rotary/multiplane * * angular output to prevent additional moves (db10683)* * 02/03/98 ADM - Implement TNC400 Q parameter hole cycles (db10347) * * Implement TNC400 rigid tapping (db10329) * * 09/03/98 ADM - Implement spline output for Fanuc and TNC400 (C1&C2)* * 30/03/98 ADM - changes for new Warning code constructor * * 18/05/98 ADM - Prevent 2 line output from rapid to home/toolchange * * code constructor when using literals (db10858) * * 24/09/98 RHA - Spline declarations moved to machine specific files * * #highspeedtol * * (To allieviate variables limit problem) * * 25/09/98 RHA _ $G45,$A0,$G60,$M62 moved to Deckel 3m-mach.dek * * * * 14/10/98 RHA - Removed...
pradzik_666