Code Generator
Code Generator
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source This list has to be a particular controller. In format suitable for a tried and make text file of CNC controller. file specifically for translated into a CNC filepractice, a previously particular tested and typefor a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file Code Generator files perform this translation function for EdgeCAM. They also provide extra commands originating from the Code Wizard and its templates. that are seamlessly integrated into the EdgeCAM command structure. Although EdgeCAM provides standard Code Generator files, new Code Generators are usually written (using these as templates) to suit particular CNC controller and machine tool combinations. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file (having an *.?cp extension) from a man-readable source text file (which must have an *.?xt extension). SeeFile Naming Conventions. For example,
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
The compiled Machine Tool File can then be selected within a EdgeCAM worksession to specify the format for the output CNC code (this is known as "selecting the Machine Tool" when entering EdgeCAM Manufacture mode). Any number of Machine Tool Files may be present on a EdgeCAM system to give maximum flexibility. The man-readable file must contain all the appropriate parameters required to convert the raw EdgeCAM data into usable CNC code, and must be written specifically for a particular controller. In practice, an existing text file for a similar CNC controller would be edited to produce a customised parameter source file.
WARNING:
To avoid any possible damage to your machine tools and material, test EVERY Code Generator File THOROUGHLY before using it to cut material.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
1. Enter the EdgeCAM Manufacture option and select a Code Generator (actually referred to as a
Machine Tool in the modifier box). At this point the Code Generator is read in to select the commands that are available with this Code Generator. Some of the menu commands that are common to all Code Generators are taken from the relevant command file.
2. Within the Files menu, select the command Generate Code to start creating CNC code from the
instruction list for the machining session. Once you have entered a name for the CNC file, the system loads edgempp.exe. This reloads the Code Generator to translate the intermediate data to the output file(s). The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "MachineisTool" file from a the program group, and you select Rerun, the program re3. If edgempp.exe executed from man-readable source text file containing all the appropriate parameters and logicoutput using convert the rawgenerated temporary usable CNC code. is also processes the required to the previously EdgeCAM data into files. The source file recompiled if any edits have occurred. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
See Also
File Naming Conventions Structure of Source Files Variable Declarations The Code GeneratorTool Environment Setting the Machine Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate Macros parameters and logic required to convert the raw EdgeCAM data into usable CNC code. User-Defined System Variables Format Table System Variables by Number Source text files may Name System Variables by be created via the interactive facilities of the Code Wizard or may be written directly using aCutter Radiuseditor. Please note that if a Code Wizard source file is altered manually it cannot be Milling suitable text Compensation subsequently updated by the Wizard without losing the manual changes. Multilevel Drilling This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Wire Erosion *.wxt Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. The %MACHINE statement should be consistent with the extension to make recognition of the type of file easier. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly For example: text editor. Please note that if a Code Wizard source file is altered manually it cannot be using a suitable subsequently updated by the Wizard without losing the manual changes. NNCNC01.MXT compiles as NNCNC01.MCP This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC %MACHINE=LATHE=... NNCNC01.2XT compiles as controller would be edited to produce a customised source file, or final adjustments made to a file NNCNC01.TCP originating from the Code Wizard and its templates. %MACHINE=LATHE=... NNCNC01.4XT compiles as NNCNC01.TCP %MACHINE=LATHE=... %MACHINE=UVWIRE=... NNCNC01.CXT compiles as NNCNC01.TCP NNCNC01.WXT compiles as NNCNC01.WCP %MACHINE=MILL=...
Copyright 1988-2004 Pathtrace Engineering Systems. All rights limited to 8.3 DOS like names. However, you may Please note that EdgeCAM Code Generators are not reserved.
wish to adhere to this convention, as EdgeCAM running under Windows 3.1 and Win32S use it. This allows Code Generators to be freely interchanged without renaming. The type of lathe Code Generator is determined by the Compiler by the existence of particular macros in the source file. For example,. Macro 43 = C Axis file, Macro 23 = 4 Axis file. The Compiler also outputs a *.doc file which can be given to customers with the Code Generator. This file can be either in printed form or to be viewed using the standard Windows application Notepad.exe, as a reference guide to the commands within the Code Generator. The Compiler outputs all lines starting with an asterisk to the .doc file. Any remarks that are only for the applications engineer's reference should begin with a semi-colon.
Variable Declarations
Users may create their own variables which are referred to as user-defined variables. These are always entered in upper case and may be of two kinds -numeric and string. All user defined string and numeric variables must be declared using the statement %DECLARE=. The general format for this is: %DECLARE={variable1},{variable2},{variable3},......
Any number of %DECLARE= statements may appear in the post file. User defined string and numeric variables may be declared within the same statement but for clarity it is better to separate them.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code See Also Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Numeric Variables String Variables Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Numeric Variables
All numeric variables have names beginning with a '#' and have a numeric value associated with them. This has either been: Declared explicitly, e.g. #BLOCK=10, or Calculated, e.g. #BLOCK=#START+#COUNT, or Requested from the user during code generating (using %ASK).
10
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
String Variables
The names for user defined character strings begin with a '$'. These string variables represent a string of alpha characters which the user has supplied during the machining session or whilst code generating. The string will be output by the Code Generator. During compilation of a %MACRO, if a user-defined variable is encountered which has not been declared, then the following error message will appear: Variable has not been declared in {line of file in error}
11
User-defined variable names may be of any length but must consist solely of alphanumerics (A-Z and 0-9). It is only necessary to declare user-defined variables, as system variables are predefined. Any attempt to declare variables not starting with either a '#' or a '$' will result in the Code Generator compiler error: The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 'Invalid declaration in man-readable source Generator or "Machine Tool" file from a {line in error}'text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
12
where[machine type] may be MILL, LATHE, or UVWIRE. The user-defined text may be up to 78 characters long and will appear on the screen during code generating and would typically contain machine tool/controller/user name information. The Code Generator Compilerais an integral part of the EdgeCAM suite of software. It creates a Code Here is an example layout for turning centre: Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %MACHINE=LATHE=Mori Seiki SL-35 (MM units) Fanuc 16TF code. parameters and logic required to convert the raw EdgeCAM data into usable CNCcontroller MM=1,4000,3000,400,1,1,1,0,0,3,50 MT=Upper Turret,10,200,0,300,500,500,1000,-500,-500,-100,2000,1000,10 MT=Lower Turret,10,-200,0,300,-200,0,300,500,500,1000,-500,-500,Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 100,1000,200,5 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be %ENDMACH subsequently updated by the Wizard without losing the manual changes. The remaining lines of the machine tool macro are Code Generator defined modifiers which can be used with any of the Code Generator macros. This document contains information to help you produce a customised Code Generator parameter source The machine tool macro is terminated by the %ENDMACH statement. file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file See Also originating from the Code Wizard and its templates. MM (Machine Details Line) MT (Machine Tool Turret Details Line)
13
EdgeCAM Code Generator Compiler Guide Maximum Rapid Rate Value All
Maximum Spindle RPM Value Mill+Turn
4 Maximum Angular Feed Value in Degrees/minute Turn The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 5 Two tapes 0 = No Turn Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 1 = Yes parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 6 Rapid 3D 0 = No Mill+Turn 1 = Yes Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 7 Resolve rapid Please note 0 = Resolved Mill+Turn using a suitable text editor. movement that if a Code Wizard source file is altered manually it cannot be 1 = Unresolved subsequently updated by the Wizard without losing the manual changes. 8 Compatibility SeeCompatibility Mill
9 Axes of Rotation SeeAxes of a customised Code Generator parameter source Mill This document contains information to help you produce Rotation file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 10 Plane Switching 0 = XY Mill controller would be edited to produce a customised source file, or final adjustments made to a file 1 = XY, ZX originating from the Code Wizard and its templates. 2 = XY, ZY 3 = XY, ZX, ZY 11 12 13 14 15 16 17 18 19 20 Initial Plane Not used Profile or Guide Height Z Top Guide 0 = Profile 1 = Guide Value Value Value SeeRotary Output Mode SeeMaximum Programmable Radius 0 = Disabled 1 = Enabled 0 = Disabled 1 = Enabled SeeCX Interpolation 21 Spline output support 0 = Disabled 1 = NURB (Fanuc) 2 = Spline (Heidenhain) 3 = Siemens 840D SeeSpline Output Mill UVWire UV Wire UV Wire Mill+Turn Mill+Turn Mill+Turn Mill+Turn Turn Value Mill
Z Bottom Guide 90 degree Lead in approach move (factor * toolradius) Rotary output mode Maximum Programmable Radius Radial Arc Output (Rotary mode) CX Interpolation
26
Helical arcs
0 = Not supported; output as Mill+Turn linear feed moves. 1 = Single Pitch at a time; helical arc is limited to 360 degrees maximum. 2 = Multi Pitch; complete helix output as one arc move.
14
15
Bit 0 1 2
Meaning
4 Enables Reverse Offset. (Milling only) The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 8 Generator or "Machine This reverses the tool side in cases where a single 45-degree line is being profiled. Tool" file from a man-readable source text file containing all the appropriate (Turning only) parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Enable true NEXTMOVE look ahead within the Toolchange Macro. (Turning and Milling) Source text files may be created via the interactive facilities of the Code Wizard or may be written directly See Note below. using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. 32 Enable EdgeCAM Version 4 controller compensation enhancements. (Milling only) Note: This bit should only be set in Code Generator files intended exclusively for use with EdgeCAM help you produce a This document contains information to Version 4.0 or later. customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file Note originating from the Code Wizard and its templates. There is a limitation with the NEXTMOVE system variables within the toolchange macro (%MACRO=15). If a two stage rapid move is created directly after the toolchange (in the case of Turning by applying a Safe Approach) the NEXTMOVE variables are set to the intermediate point rather than the final destination point. To enable the ability to set the NEXTMOVE variables to the next destination point, you should add 16 to the MM line switch 8. Although this feature gives improved look ahead, the logic in existing code generators can be upset unless they are modified to take into account this change. 16
16
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
17
Primary
Secondary (free)
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate B axis 2 (default) 16 parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly C axis 4 32 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
For document machine tool which to a fixed produce a customised Code secondary B would give: Thisexample, a contains informationhashelp youaxis primary A and a free axisGenerator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC System variable MACHTYPE = 1(A) + 16(B)= 17 controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
AMOVE BMOVE and CMOVE hold the rotational value of the primary and secondary axes dependant upon the definition in the %Machine statement (position 9). From the above example, the machine type = 1(A primary) + 16(B secondary) = 17, therefore: AMOVE = ROT1 BMOVE = ROT2 CMOVE = #FUNNY
ROT1 and ROT2 will always be identical to two of the variables in both planar and rotary modes. For turning, CMOVE will always be the primary axis. These variables are accessed through the Index macro. When rotary mode has been selected, all rotary system variables will be available in the Feed, Rapid and Move Angular macros.
18
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
19
Secondary (fixed) 64
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
20
The Profile Milling command supports six different toolpath outputs dependent upon Switch 17 on the MM line and the Compensation modifier. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Tool Centre path at depth: The wrapped toolpath outputs the NC co-ordinates by outputting the tool centre Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate position at the specified depth of the cycle. parameters and logic required to convert the raw EdgeCAM data into usable CNC code. MM 17= 0 , Compensation = Pathtrace Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Tool Centre path ateditor. Please note that if a toolpath outputs the NC co-ordinates by outputting the tool using a suitable text Wrap level: The wrapped Code Wizard source file is altered manually it cannot be centre position at the wrapped level of the specified the manual changes. subsequently updated by the Wizard without losing entities. MM 17= 1 , Compensation = Pathtrace This document contains information to help you produce a customised Code Generator parameter source Tool Centre path at Unwrapped: The unwrapped a previously tried and tested text file for a similar the file specifically for a particular controller. In practice,toolpath outputs the NC co-ordinates by outputtingCNC tool centre position of the to produce specified entities. controller would be edited unwrapped a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. MM 17= 2 , Compensation = Pathtrace Tool Reverse offset at depth: The wrapped toolpath outputs the NC co-ordinates by offsetting the tool centre position by the radius of the tool back towards the geometry boundary at the specified depth of the cycle. MM 17= 0 , Compensation = Controller Tool Reverse offset at Wrap level: Systems. All rights reserved. Copyright 1988-2004 Pathtrace EngineeringThe wrapped toolpath outputs the NC co-ordinates by offsetting the tool centre position by the radius of the tool back towards the geometry boundary at the wrapped level of the selected entities. MM 17= 1 , Compensation = Controller Tool Reverse offset Unwrapped: The unwrapped toolpath outputs the NC co-ordinates by offsetting the tool centre position by the radius of the tool back towards the geometry boundary of the selected entities. MM 17= 2 , Compensation = Controller
21
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
22
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code *...|16 |17|18|19|20 Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate MM=...,1.5,1 ,-1,1 convert the raw EdgeCAM dataany limitations) code. (MPR set to -1 removes into usable CNC parameters and logic required to ,0
Source text files mayentered in the sameinteractive facilities of the Code Wizard ornon-default units are used The MPR should be be created via the units as set in switch 1 of the MM line. If may be written directly using a suitable text editor. Please note the MPR will be moved up or file is altered manually it cannot be in a part program, the decimal place for that if a Code Wizard source down 1 place accordingly. subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
23
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
24
The Code Generator Compiler is an integralon the machine type selected, as the spline formats of the spline output from EdgeCAM depends part of the EdgeCAM suite of software. It creates a Code Fanuc, Heidenhain and Siemens controllers are different. The Fanuc containing all the any NURB Generator or "Machine Tool" file from a man-readable source text file controller accepts appropriate spline up to degree 3, logic required controller requires a cubic polynomial parameterised over parameters andthe Heidenhainto convert the raw EdgeCAM data into usable CNC code. the range [1..0], and the Siemens controller requires a cubic polynomial paramaterised over the range [0..1]. (It also accepts NURB splines of degree 2 or 3, but EdgeCAM does not output these for the Siemens controller.) Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be See Also subsequently updated by the Wizard without losing the manual changes. Fanuc-Style Spline Output Heidenhain-Style Spline Output Siemens-Style contains information to help you produce a customised Code Generator parameter source This document Spline Output file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
25
Value Mill+Turn EdgeCAM Code Generator Compiler Guide Value Value All All
5 Toolchange Z position Value Mill+Turn The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine X positionfrom a man-readable source text file containing All the appropriate all 6 Tool home Tool" file Value parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 7 Tool home Y position Value All 8 Tool home Z position Value Mill+Turn Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 9 Maximum X value Value All using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. 10 Maximum Y value Value All 11 Maximum Z value Value All This document contains information to help you produce a customised Code Generator parameter source 12 Minimum X value Value file specifically for a particular controller. In practice, a previously tried and testedAll file for a similar CNC text controller would be edited to produce a customised source file, or final adjustments made to a file 13 Minimum Y value Value All originating from the Code Wizard and its templates. 14 Minimum Z value Value All 15 16 17 18 19 Maximum Primary feedrate Maximum Secondary feedrate Toolchange dwell or Wire Threading dwell Number of load points, on a single slide Value Value Value in Seconds Currently only 2 supported Mill+Turn Mill+Turn All Turn Turn
Separation of tools in Z for single slide. For B Value Axis machines this field contains the B Axis swing distance. Separation of tools in X for single slide B-axis Swing Configuration Default Spindle Id Value
20 21 22
Turn
These parameters provide information on a specific turret (one line per turret). Here are example MT lines: MT=Upper Turret,10,200,0,300,500,500,1000,-500,-500,-100,2000,1000,10 MT=Lower Turret,10,-200,0,300,-200,0,300,500,500,1000,-500,-500,100,1000,200,5 So, from the example above, the first MT line has the turret name "Upper Turret", 10 stations, and so on. For machines with multiple turrets on one slide, also see Macro 15 Toolchange.
26
Please note that these lines are alternatives to using Data Arrays for specifying their information. If Macro 252 - Spindle Control is present this method will be used for spindle and gear definitions. This is implemented for Advanced Turning. MS=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 Position 1 Information Type
The Code Generator Compiler is an integral 0,1,2,3 the EdgeCAM suite of software. It creates a Code part of 2 ID Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 3 parameters TurretId required to convert theValue (-1=Not Applicable)usable CNC code. and logic raw EdgeCAM data into 4 Type 0 (Tool), 1 (Work)
Source text Max may be created via the interactive facilities of the Code Wizard or may be written directly files RPM 5 Value using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 6 MaxAngFeed subsequently updated by the Wizard withoutValue the manual changes. losing 7 Direction 0 (CCLW),1 (CLW)
This document contains information to help you produce a customised Code Generator parameter source 8 MirrorOutput 0,1 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 9 CSS Capable 0 (No), source controller would be edited to produce a customised 1 (Yes) file, or final adjustments made to a file originating from the Code Wizard and its templates. 10 Rotation 0 (none),1 (A), 2(B), 3 (C) 11 12 13 14 15 16 17 Default Location X Default Location Y Default Location Z DefaultTurretID HorsePower DatumToChuckFace RapidRate M/Min Value Value Value 0,1 Value Value Value
These parameters provide information on a specific spindle (one line per spindle). Here is an example MS line: MS=Main,0,-1,1,7500,280,0,0,1,3,0,0,0, 0,20,130 MG=1,2,3,4,5(,2,3,4,5(,2,3,4,5(,etc.))) Position 1 2 3 4 5 (2,... Information Number of gears defined in line Minimum Rev's Per Minute Theoretical Maximum Rev's Per Minute Recommend Maximum Rev's Per Minute M Code Start of next gear specification - you repeat 2 to 5 for each gear you want to set up. Values Value Value Value Value Value
These parameters provide information on a set of gears for a spindle (one line per set of gears). Here is an example MG line: MG=2,28,5000,5000,41,5001,7500,7500,42
27
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Macros
The macro definitions within the Code Generator parameter files follow a standard layout as follows:
%MACRO=[Number]=[Syntax]=[Description]=[Modifier List]=[Option List] : : [directives to control and generate CNC output] :
28
%ENDM
The format of the %MACRO line an integral part of the as it controls the software. It creates appear The Code Generator Compiler is itself is most importantEdgeCAM suite ofscreen menus which a Code during machining. Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. See Also Numbertext files may be created via the interactive facilities of the Code Wizard or may be written directly Source using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be Syntax subsequently updated by the Wizard without losing the manual changes. Description Modifier List This document contains information to help you produce a customised Code Generator parameter source Option List file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Number
This is used to direct the Code Generator and machining programs as to what function is being defined. Relevant macros must be defined within the Code Generator, otherwise the corresponding command will not be available during an EdgeCAM machining worksession using it.
29
Executive macros whose number relates to a predefined list of machining functions (see relevant module chapters) and may produce cutter motions on the graphics screen, e.g. The Code Generator Compilerrapid, integral part of the EdgeCAM suite of software.Code Generator. toolchange, profile, is an feed etc. These macros are defined within the It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 51-100 Non logic required to whose the raw EdgeCAM predefined list of non-machining parameters andexecutive macros convert number relates to adata into usable CNC code. functions. Others in this group are contained within the Code Generator (for example, START, END, Source text files may be created via the interactive so on). They control the start or may be written directly CLW, CCLW, SUBSTART, RESET and facilities of the Code Wizard and end of CNC using a suitable text editor. Please note that if a Code Wizardsubroutines. They do manually part of be programs and other special requirements such as source file is altered not form it cannot subsequently updated offered Wizarduser during machining and changes. to by name rather than any menus by the to the without losing the manual are referred number within the Code Generator although they do have numbers which can be accessed by the NEXTMACRO system variable. This document contains information to help you produce a customised Code Generator parameter source 101-150 User-defined macros which allow control a M code type CNC operations or special file specifically for a particular controller. In practice, of previously tried and tested text file for a similar CNC customer requirements (for example, probing, part changer), including PDIs. These controller would be edited to produce a customised source file, or final adjustments made to a file originating macros will have no graphical effect on the tool path graphics when invoked. User defined from the Code Wizard and its templates. macros become additional commands within EdgeCAM and are automatically merged into theM-Functions menu, when the machine tool file is selected for a machining sequence. We advise that M-Functions should use macros from 101 upwards and PDIs should use macros from 150 downwards. 151-199 Reserved exclusively for use when writing a C Axis Code Generator. 200 Reserved for use in connection with PDIs. Allows PDIs to define tooling.
1-50
Note that macros with numbers greater than 200 are not permitted.
Syntax
Macros in source files used for PAMS may contain a two letter =??= unique syntax string or combination syntax string of =??/??/??=. EdgeCAM Macros do not use this format, and the two-letter string should be replaced with =..=, as shown here: =RT= becomes =..= =CF/CM/CO= becomes =..=
30
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Description
This is a test string that describes the function of the macro. This string is automatically merged into the EdgeCAM's Manufacture mode M-Functions menu for user defined macros, numbers 101 to 151. Code Generators can support non-English language descriptions. For these macros, the descriptions should not be longer than 25 characters.
31
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Modifier List
The modifier list defines which parameters or modifiers are requested when that macro is invoked. The parameters are numbers which refer to the parameter list defined in the particular machining language file (see the relevant module chapters for an explanation and example of the machining language file). For example: %MACRO=15=..=Toolchange=8,4,7,48,15,
32
Each modifier number is separated by a comma. The last entry is also followed by a comma.
Certain parameters will always appear in the menus by default, for example the Cycles menu Rough Profile command has the modifier Canned Cycle, which is a check box. To remove these from the menu, prefix the parameter number by a negative sign (-). The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool"shown below would remove the modifier Canned Cyclethe appropriate Turn For example, the macro line file from a man-readable source text file containing all from the Rough parameters and logic required to convert the raw EdgeCAM data into usable CNC code. cycle: %MACRO=4=..=ROUGH TURN=4,5,7,10,30,31,-21,40, 41, Source text files may be created via the interactive facilities of the Code Wizard or may be written directly If the CANNED CYCLE modifier is removed from the menu of source file is altered manually processing using a suitable text editor. Please note that if a Code Wizard any macro, you must redirect it cannot be through "%NOCYCLE". The system variable PATHTRACE automatically returns the value of 1, but only subsequently updated by the Wizard without losing the manual changes. after regenerating the menu file and regenerating the machining instructions. Any modifier displayed in a EdgeCAM machining command can be removed in this way (use the number in Thisfirst column contains information to help you produce a customised Code Generator parametercomplex the document to the right of the modifier in the ptmach.cmd file). This is very useful where some source file specifically for a particularrequired. In practice, a previously tried and tested text file for a similar CNC EdgeCAM functionality is not controller. controller would be edited to produce a customised source file, or final adjustments made to a file A good example is Code Wizard and its templates. originating from thethe threading command, which can be greatly simplified for many applications. EdgeCAM may refuse to execute a command if certain essential modifiers are removed. Also, you can get inconsistent results if you removed modifiers from generic commands such as Profile, Areaclear and Crosshatch (Lace). See Also Assigning Values to Specific System Variables Setting Default Modifier Values
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
33
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
34
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Option List
If the option list part of the %MACRO definition is present, an appropriate text list box will be available within the command. For example: %MACRO=104=..=Coolant==Flood/Off This example adds 'Coolant' to the M-Functions menu. If the command is selected, a drop down list box containing the options Flood and Off is displayed:
35
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be Within the user-defined macro, the value is assigned to the system variable SUBFUNCT. subsequently updated by the Wizard without losing the manual changes. Also note the two consecutive equals signs in this definition '=='. This is because the optional modifier's numbers are not required for this user-defined macro. This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
36
Format Table
When numeric variables (either system- or user-defined) are output as part of a line of CNC code, the post must be instructed to format the number in terms of the letter address, leading zeros, trailing zeros etc., for both millimetre and inch programs. When a numeric variable is to be output as CNC code, a format table number is associated with it and the numeric value associated with that variable name will be formatted as the line definition. The first line after the %FORMAT is numbered zero, the next line is 1, and so on until the %ENDF statement.
37
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly J,3,4,128,4,3,128, 3 J MOVE using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be R,3,4,128,4,3,128, 4 R manual changes. subsequently updated by the Wizard without losing theMOVE
G,2,0,1,2,0,1, 5 GCODE
N,5,0,0,5,0,0, 6 BLOCK NUMBER This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC %ENDF controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. The table must start with the line '%FORMAT' and the lines following must be in the order shown. Each line in the table must contain seven entries followed by commas. Each entry has the following function:
Order 1
Function Character(s) which will precede the numeric value when formatted.
Significant Digits
Number of significant digits before the decimal point for Inch CNC format.
Decimal Places
Number of places after the decimal point for Inch CNC format.
Control Code
Significant Digits
Number of significant digits before the decimal point for Millimetre CNC format.
Decimal Places
Number of places after the decimal point for Millimetre CNC format.
Control Code
The control code is crucial to controlling the format of a number in a CNC program. The code is made up by adding together the control values from this table:
Control Value 1 2 4 8 16 32 64
Control Function Leading zeros required Leading blanks required Trailing zeros required Trailing blanks required
38
The Code Generator Compiler end of integers of the EdgeCAM suite of software. It creates a Code 128 Force '.0' on is an integral part Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 256 Force '+' on to convert the numbers parameters and logic required front of positiveraw EdgeCAM data into usable CNC code. Force '0.' on front of numbers between -1 and +1 Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor.with spaces to a total Code of five source file is altered manually it cannot be 1024 Right fill Please note that if a width Wizard subsequently updated by the Wizard without losing the manual changes. 2048 Right fill with spaces to width of ten This document contains information to help you produce a customised Code Generator parameter source The following examples show the result In practice, a previously file specifically for a particular controller.of different control codes:tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. Format Table Number CNC Code 512
X,3,3,128,3,3,128
2 2.125 .25
Y,3,3,128,3,3,128
2.125 Y2.125 Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. 25 I,4,3,64,4,3,64 2 2.125 25 J,4,2,21,4,2,21 2 2.125 25 Y25.0 I2. I2.125 I25. J000200 J000212 J002500
The format table must end with the line '%ENDF'. An example of format table implementation is below %MACRO=1=FE=... ... ... #BNUM=+#BNUMVAR:#XMOVE=XMOVE:#YMOVE=YMOVE:#GCODE=1 ...
EdgeCAM User Guide
<[#BNUM=7] [#GCODE=6][#XMOVE=0][#YMOVE=1]> ... %ENDM This would output the following type of code: N110 G01X25.352Y-42.1
39
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
40
109 110 111 112
YDELTA XREP YREP PIP
55 56 57 58
EdgeCAM Code Generator Compiler Guide OFFSETZ XSHEET TOLERANCE 59 113 167
60
OFFSETX
114
YSHEET
168
dummy
YEND NEXTMACRO PASS SCALE 7 61 115 169 The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code XMOVE PATHTRACE OFFSET THICKNESS 8 62 170 Generator or "Machine Tool" file from a man-readable116 source text file containing all the appropriate parameters and logic required to STCOMMANDraw EdgeCAM data into usable CNC code.XYPLANE convert the YMOVE LEFTRIGHT 9 63 117 171 ZMOVE ENCOMMAND LACECUT UVPLNAE 10 64 118 172 Source text files may be created via the interactive facilities of the Code Wizard or may be written directly UNIT XSTARTPOS ROWPRIORITY LOWERWIRE 11 65 119 173 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by 66 Wizard without losing the manual changes. the XHOME ZSTARTPOS MAXFEED UPPERWIRE 12 120 174 YHOME XENDPOS MAXRPM WIREDIAM 13 67 121 175 This document contains information to help you produce a customised Code Generator parameter source ZHOME ZENDPOS MAXRAPID FIELD1 14 68 122 176 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC XTOOL XCURRENTPOS TXMAX FIELD2 controller would be edited69 produce a customised source file, or final adjustments made to a file to 15 123 177 originating from the Code Wizard and its templates. YTOOL ZCURRENTPOS TYMAX FIELD3 16 70 124 178
17 18 19 20
71 72 73 74
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
FIELD4 FIELD5 FIELD6 FIELD7 FIELD8 FIELD9 FIELD10 FIELD11 FIELD12 TAPERTYPE1 TAPERTYPE2 TAPER1 TAPER2 NEXTXCENTRE NEXTYCENTRE NEXTRADIUS MACRONAMEOP APPEND CMT1 CMT2
ZCLEAR NEXTCOMP MACHTIME2 21 75 129 Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. XYFEED NEXTCSS IDLE1 22 76 130
23 24 25 26 27 28 29 30 31 32 33 34 35 36
ZFEED SPEED LAST CIRCLE ZDEPTH FPECK DEGR DWELL RPLANE IPLANE SUBROUTINE XSUB YSUB ZSUB
77 78 79 80 81 82 83 84 85 86 87 88 89 90
DEPTH NEXTOOLPOS STARTSUB ENDSUB FEED CSS COMP DIRECTION NEXTXYFEED NEXTZFEED ZMAX XMAX NEXTGEAR NEXTXMOVE
131 132 133 134 135 136 137 138 139 140 141 142 143 144
IDLE2 YMAX FPASS YSTEP ORIENTATE TLXLEN TLYLEN PUNCHMODE ZSHEET ZHOME1 XHOME1 NUMTOOLS1 QUADRANT INDEX
37 38 39 40 41 42 43 44
91 92 93 94 95
41
RMOVE YDATUM ROT1 EdgeCAM Code Generator Compiler Guide 96 150 204
97 98
CMOVE TOTDEPTH
151 152
XDATUM PECKRETRACT
205 206
ROT2 WRAPRADIUS
The Code Generator Compiler is NEXTOOLLEN an integral part of the EdgeCAM suite of software. It creates a Code ZEND CONTMATRIX RTYPE 45 99 153 207 Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate TOOLXSET CSTART 46 100 154 208 parameters and logic required to MASK the raw EdgeCAM data into usable CNC code.STYPE convert 47
TOOLZSET
101
NEXTARC
155
RSTART
209
SYSID
Source text files may be created DRILLSUB TOOLWIDTH via the interactive facilities of the Code Wizard or may be written directly CCENTRE SILENT 48 102 156 210 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be TOOLANGLE NUMTOOLS RCENTRE YGAUGE 49 157 211 subsequently updated by 103 Wizard without losing the manual changes. the 50
TURRET
104
SFMOD
158
CEND
212
TRUEARCOP
TOOLUNIT ANGLE REND AMOVE This document contains information to help you produce a customised Code Generator parameter source 51 105 159 213 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC TOOLANGLE1 STEP NUMBLOCKS BMOVE 52 160 214 controller would be edited106produce a customised source file, or final adjustments made to a file to originating from the Code 107 WizardSTANGLE and its templates. 161 TOOLANGLE2 NUMCHARS 53
54
TOOLTYPE
108
XDELTA
162
CAXIS
42
100 120 122 121
SPEED STANGLE STARTSUB STCOMMAND
24 107 79 63
108 6 67 12 141 37
EdgeCAM Code Generator CompilerXHOME1 Guide NEXTARC STEP 162 101 106
156
NEXTCOMP
75
STYPE
208
XINC
CEND NEXTCSS SUBFUNCT XMAX 158 76 93 88 The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code CIRCLE NEXTFEED SUBROUTINE XMOVE 26 74 33 Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 8 parameters and logic requiredNEXTGEAR the raw EdgeCAM data into usable CNC code. to convert CIT1 SYSID XREP 201 89 209 110 NEXTMACRO TAPER1 XSAFE 202 61 190 56 Source text files may be created via the interactive facilities of the Code Wizard or may be written directly CMOVE NEXTOOL TAPER2 XSHEET 97 42 191 113 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. 188 CMT1 NEXTOOLLEN TAPERTYPE1 XSTART 197 99 1 NEXTOOLPOS TAPERTYPE2 XSTARTPOS 198 78 189 65 This document contains information to help you produceTEXTCASE a customised Code Generator parameter source COMP NEXTRADIUS XSUB 83 194 34 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC CONTMATRIX NEXTSPEED THICKNESS controller would be edited to produce a customised source file, or final adjustments XTOOL to a file 15 made 153 73 170 originating from the Code Wizard and its templates. CSS NEXTXCENTRE 192 TLXLEN XTOOL1 82 136 127 CSTART DEGR DEPTH DIRECTION CMT2 CIT2
154 29 77 84
90 85 193 55
XYFEED XYPLANE YCENTRE YDATUM YDELTA YEND YGAUGE YHOME YINC YMAX YMOVE YREP YSHEET YSTART YSTEP YSUB YTOOL ZCENTRE ZCLEAR ZCURRENTPOS
DRILLSUB NEXTZFEED TOOLANGLE2 102 86 Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. dummy NEXTZMOVE TOOLCHANGE 168 91 dummy DWELL ENCOMMAND ENDSUB FEED FEEDTYPE FIELD1 FIELD10 FIELD11 FIELD12 FIELD2 FIELD3 FIELD4 FIELD5
NOCYCLE NUMBLOCKS NUMCHARS NUMTOOLS NUMTOOLS1 OFFSET OFFSETX OFFSETZ ORIENTATE PASS PATHTRACE PECKRETRACT PIP PITCH
203 160 161 103 142 116 60 59 135 115 62 152 112 58
TOOLEN TOOLNUM TOOLRAD TOOLTYPE TOOLUNIT TOOLWIDTH TOOLXSET TOOLZSET TOTALDEPTH TOTDEPTH TRUEARCOP TURRET TXMAX TYMAX
27 45 68 23 14 140 39 95
43
130 131
REND REPEAT
159 40
USERVAR2 USERVAR3
146 147
ZINC ZLEVEL
The Code Generator Compiler is an integral part of the EdgeCAM suite of software.ZMAX It creates a Code INDEX RMOVE USERVAR4 144 96 148 87 Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate IPLANE USERVAR5 ZMOVE 32 204 149 10 parameters and logic requiredROT1 to convert the raw EdgeCAM data into usable CNC code.
LACECUT
118
ROT2
205
UVPLANE
172
ZSAFE
57
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly LAST ROWPRIORITY 119 VMOVE ZSHEET 25 164 139 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be LEFTRIGHT RPLANE WIREDIAM ZSTART 117 31 43 subsequently updated by the Wizard without losing the manual changes. 175
LIBTYPE
199
RSTART
155
WMOVE
165
ZSTARTPOS
66
LOWERWIRE RTYPE ZSUB This document contains information to help you produceWRAPRADIUS Code Generator parameter source 173 207 a customised 206 36 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC MACHTIME1 SCALE XCENTRE ZTOOL 128 169 3 controller would be edited to produce a customised source file, or final adjustments made to a file 17 originating from the 129 Wizard and its templates. Code MACHTIME2 SFMOD XCURRENTPOS 69 ZTTOL1 104 126 MACRONAMEOP
195
SILENT
210
XDATUM
151
44
1. Switch 8 on the MM= definition line must be incremented by 32. 2. Procedure PT=LEAD_OUT must be changed to set #LEADOUTCOUNT=FIELD12
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
Remaining Potential Issues In the case of external work where a profile finishes on a sharp corner, controller compensation should always be used with square corner strategy set. Otherwise, the offset path will add a coupling arc and the calculated leads for controller and Pathtrace are very different. In the case of approach moves and intermediate rapid moves generated within a profile cycle EdgeCAM will show both the geometry based tool centre line and a nominal offset simulation line. Whilst for FEED moves, with a nominal cutter radius offset, the tool centre can be expected to follow the simulation line, for RAPID moves (no compensation) the tool will follow the geometry based line but the screen simulation will, at present, follow the offset simulation line.
Multilevel Drilling
This section clarifies the role of the Retract option in drilling cycles. When completing a Hole Cycle dialog you are asked for depth settings of ZLEVEL, RETRACT DISTANCE, DEPTH and ZCLEAR. For single level cycles the RETRACT DISTANCE is passed to the Code Generator as a Retract Plane set at ZLEVEL+RETRACT. If no retract distance is given the Retract Plane defaults to the Clearance Plane Height.
45
For Multilevel drilling the ZLEVEL is ignored and a RETRACT distance is passed to the Code Generator. If a RETRACT distance is not stated it defaults to the ZCLEAR height. The Code Generator will then set up a Retract plane based on the height of the first point and that Retract Distance. For this reason it is recommended that in Multilevel Drilling a RETRACT distance should always be entered in the dialog. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code If any multilevel cycles are to file used a man-readablethat for best results all hole all the appropriate Generator or "Machine Tool" be from it is suggested source text file containing cycles with the same tool should be treated as multilevel. Aconvert the raw multilevel and singleusable CNC code. same tool may parameters and logic required to combination of EdgeCAM data into level cycles with the not give the expected NC output. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
46
As with other Code Generator commands, the use of a colon : character denotes a new command on the same input line. The order of evaluation is an and +- part of the usual rule suite of software. It creates The Code Generator Compilerof (), */integral follows the EdgeCAM of ( ) then ^ then */ then +- a Code Generator = "Machine Tool" filedenote assign value source text file containing all the appropriate The or symbol is used to from a man-readable parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Variables may be assigned as follows: Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be Simple Assignments subsequently updated by the Wizard without losing the manual changes. Arithmetic Calculations Use of Operators This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
47
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Arithmetic Calculations,(variable)=(variable/number)(operator)(variable/number)
Where {operator} is: + / * ^ (plus) (minus) (divide) EdgeCAM Code Generator Compiler Guide (multiply) (raise to the power)
48
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code For example: "Machine Tool" file from a man-readable source text file containing all the appropriate Generator or parameters and logic required to convert the raw EdgeCAM data into usable CNC code. to it #BNUM=#BNUM+10 Assigns the old value of #BNUM with 10 added #IVALUE=XCENTRE-XSTART Assigns the difference between XCENTRE and XSTART Source text files may be created via the interactive facilities of the Code Wizard or may be written directly #DIAM=2*#RADIUS Assigns a value 2 times that of #RADIUS using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. #TEST=(#TEST1+#TEST2)*#TEST3-#TEST4
This document contains information to help youof the form customised Code Generator parameter source There is also a shortened form for expressions produce a {num1}={num1}{operator}{num2} where the file specifically for*, particular controller. In practice, a previously tried and tested text file for a similar CNC operator is + -/ or a controller would be edited to produce a customised source file, or final adjustments made to a file for example #BNUM=#BNUM+#BNUMVAR May be written as: #BNUM=+#BNUMVAR originating from the Code Wizard and its templates.
49
ACOS arc cosine The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate SQR square root parameters and logic required to convert the raw EdgeCAM data into usable CNC code. INT integer value of * ABS remove sign Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Note that trigonometric angular arguments area Code Wizard source file is altered manually it cannot be using a suitable text editor. Please note that if in DEGREES. subsequently updated by theto integers by rounding down. Thus 74.6 becomes 74 and 74.3 becomes * INT converts real numbers Wizard without losing the manual changes. 75. If rounding to nearest is required it can be achieved as follows This document contains information to help you produce a customised Code Generator parameter source #PRECISION=1000 file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file #XMOVE=(#XMOVE*#PRECISION+0.5 originating from the Code Wizard and its templates. #XMOVE=INT(#XMOVE) #XMOVE=#XMOVE/#PRECISION
For example, the coding to calculate incremental unsigned arc centres could be: #IVALUE=XCENTRE-XSTART:#IVALUE=ABS(#IVALUE)
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
#JVALUE=YCENTRE-YSTART:#JVALUE=ABS(#JVALUE)
Multiple operator functions and parentheses ( ) may be used; for example: #TEST=(ABS(#TEST1))/2
50
Labels
Labels are positional indicators within a macro that define where code generating should continue after a conditional or unconditional jump. All labels must start with the character @ and must then be followed by the alphanumeric name of that label. A label statement must appear on a line of its own. The jump label destination of %GOTO must be within the macro in which that %GOTO occurred. The same label name can occur in different macros.
51
Should more than 100 labels be defined in any one macro the compiler error message will be issued: TOO MANY LABELS The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate An example of a label is: parameters and logic required to convert the raw EdgeCAM data into usable CNC code. : Source text files may be created via the interactive facilities of the Code Wizard or may be written directly : using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. %GOTO @JUMP : This document contains information to help you produce a customised Code Generator parameter source : file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file @JUMP originating from the Code Wizard and its templates.
Directives
Directives are the commands available within macros and procedures that allow the manipulation of the data available within each macro. See Also %ASK %COMMAND... %ENDCOMMAND (Integrating PDIs) %DEBUG %GOTO \{jump label\} %IF ... %THEN ... The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %IF... %THEN ... %ELSE ... parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %INCLUDE %OPTIONS Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
52
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%ASK
%ASK={promptstring}={user defined variable name} This is a statement that prompts the user to answer a question during code generating and the reply is then stored as a variable. The variable may be either numeric or character string. For example: %ASK=Enter program label=$LABEL; string assignment
53
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the(or Escape or Abort selected) the return value is set as #FUNNYfor numeric If no replay string is entered Wizard without losing the manual changes. variables or a null string("") for string variables. This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
54
%COMMAND #CYCLES 1 9 The Code Generator20 Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable 1 source text file containing all the appropriate PLANAR 2 2 parameters and logic required to convert the raw EdgeCAM data into usable CNC code. CIRCLE_POCKET|circpkt FEEDRATE 121 5 2 5 26 5 0 105
Source text files mayPLUNGE_FEED the interactive facilities of the Code Wizard or may be written directly be created via 6 5 6 0 106 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be SPEED 7 7 0 107 subsequently updated by the Wizard without losing the manual5changes.
%_STEPOVER 16 5 16 0 116
DEPTH_PARMS 162 256 -2 285 This document contains information to help you produce a customised 169 Generator parameter source Code file specifically for a particular controller. In practice, a 28 previously tried and tested text file128 a similar CNC for CLEARANCE 5 28 2 controller would be edited to produce a customised source file, or final adjustments made to a file LEVEL 161 5 168 2 287 originating from the Code Wizard and its templates. DEPTH %ENDCOMMAND 9 5 9 2 109
The above example will access a PDI called circpkt.exe using those modifiers specified within the Code Generator. This format is consistent with that found within EdgeCAM *.cmd files.
%DEBUG
%DEBUG=ON %DEBUG=OFF This statement allows debug mode to be switched on and off from within a Code Generator.
55
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
56
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
57
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code > greater than Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate >= or => greater required to convert the raw EdgeCAM data into usable CNC code. parameters and logic than or equal to
For example: Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be %IF #FRED=2 %THEN %GOTO @DONT-ASK subsequently updated by the Wizard without losing the manual changes. %ASK=Enter value for #FRED=#FRED This document contains information to help you produce a customised Code Generator parameter source @DONT-ASK file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file or the shortened version (which cannot be used with %ELSE): originating from the Code Wizard and its templates. %IF #FRED=2 @DONT-ASK %ASK=Enter value for #FRED=#FRED @DONT-ASK See Also Controlling the CNC Output Precision
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
58
<NUM_STARTS=[FIELD1=27]> . .
Multiple statements using %ELSEIF must be terminated with the %ENDIF directive. The tab separation and indentation is vital for the %IF and %ELSEIF statements to work correctly. %IF statements may NOT be nested. See Also Controlling the CNC Output Precision
59
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%INCLUDE
%INCLUDE=filename This directive allows you to include a secondary text file; this is useful where the same source code is repeated in many text files. The text file must be in the same directory as the .?xt Code Generator source file. The %INCLUDE instruction must not be inside a macro or procedure. %INCLUDE files may not be nested.
60
Note that after use of %INCLUDE it may be necessary to program an additional %ENDM either at the end of the included file or immediately after the %INCLUDE instruction. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %INCLUDE=txt1.mac parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %ENDM Source text files may be created via the interactive facilities of the Code Wizard or may be written directly It is permissible to call more than one file from a base file: using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. %INCLUDE=txt1.mac %INCLUDE=txt2.mac This document contains information to help you produce a customised Code Generator parameter source %ENDM file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%OPTIONS
%OPTIONS={Prompt string^Option1^Option2...}={user-defined var} This is similar to %ASK but displays an option list for the user to select from. The prompt string contains the title of the option box, and selectable options are separated by "^". The user variable is set up as the option number selected. For example:
61
%OPTIONS=Select Rapid Rate^HighFeed^RapidRate=#RAPID This statement would cause the following option box to be displayed at the time of starting the Code Generator for CNC output. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for #RAPID is set up as 1 In practice, a previously Rapid Rate. The user variable a particular controller. for High Feed and 2 for tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file If Escape or Abort isCode Wizard and its templates.is set to #FUNNY. originating from the detected the #RAPID variable
62
EdgeCAMthe previous output. It cancels %ALWAYS-OUTPUT Guide Code Generator Compiler from
and %DONT-OUTPUT
%DONT-OUTPUT allows modal inhibition of the output of variables. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code It cancels %ALWAYS-OUTPUT and %OUTPUT-IF-CHANGED Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required non modal the raw EdgeCAM datathe output ofCNClisted %CANCEL is a to convert command that causes into usable the code. variables at the next applicable opportunity. The output will Source text files may be created independently of the settingof the Code Wizard or may be written directly occur via the interactive facilities of %OUTPUT-IF-CHANGED, using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be and so output will losing the the variable value subsequently updated by the Wizard withoutbe forced ifmanual changes. has or has not changed. A variable included in the %DONT-OUTPUT statement can still be output in the CNC code if its output line is preceded by a %CANCEL directive. This document contains information to help you produce a customised Code Generator parameter source PRECISION is a a particular controller. In practice, a previously tried and tested text file for a %DONTfile specifically forsystem variable that sets the accuracy limit for the %OUTPUT-IF-CHANGED,similar CNC OUTPUT and %ALWAYS-OUTPUT directives. controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. The syntax for the variable is: PRECISION=0.001 Using this example (0.001), if the last X move was X5.123456 and the next move is X5.12345786, the %OUTPUT-IF-CHANGED directive would only consider the first 3 decimal places, and the X move would be suppressed. See Also
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
Example of %ALWAYS-OUTPUT
Example of %ALWAYS-OUTPUT
During machining three rapid moves had been defined as: X2 Y3 Z4, X2 Y3 Z0, X6 Y3 Z0
63
Within the Code Generator the X,Y, and Z are set as follows: %ALWAYS-OUTPUT=XMOVE,YMOVE,ZMOVE
the Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code TheCNC code would be Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate ... parameters and logic required to convert the raw EdgeCAM data into usable CNC code. N130 G00X2.0Y3.0Z4.0 Source text files may be created via the interactive facilities of the Code Wizard or may be written directly N140 G00X2.0Y3.0Z0.0 using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently G00X6.0Y3.0Z0.0 without losing the manual changes. N150 updated by the Wizard ... This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Example of %OUTPUT-IF-CHANGED
%OUTPUT-IF-CHANGED=XMOVE,YMOVE,ZMOVE,#GCODE The CNC code would be: ... N130 G00X2.0Y3.0Z4.0 N140 Z0.0 N150 X6.0 The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code ... Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
64
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Example of %DONT-OUTPUT
%DONT-OUTPUT=YMOVE The CNC code would be: ... N130 G00X2.0Z4.0 %CANCEL=#YMOVE N140 G00Z0.0Y3.0 The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code N150 G00X6.0 Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. ... The directive used most commonly is %OUTPUT-IF-CHANGED and it is usually placed within the START macro text files may be created via Sourcewith all the required variables.the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be The %CANCEL directive is used to emulate a controller which has turned off a modal function - for example, subsequently updated by the Wizard without losing the manual changes. a toolchange M06 might turn off the coolant, therefore the coolant could be canceled so that it was restated after the toolchange was complete. Note document contains information to help you produce directives mayCode be used forparameter source This that the %OUTPUT-IF-CHANGED and %CANCEL a customised only Generator numeric variables, whereas the %ALWAYS-OUPUT and %DONT-OUTPUT directives may be used text file for or string file specifically for a particular controller. In practice, a previously tried and tested for numeric a similar CNC variables. controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
65
66
The Code Generator Compiler is an integral part of theby square brackets.software. It creates a Code String variables They must be surrounded EdgeCAM suite of No formatting will Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate take convert the raw author restricts the string CNC by adding parameters and logic required to place unless theEdgeCAM data into usablelength code. the number of characters required onto the end of the string (for via the interactive facilities will left justify the string to be Source text files may be createdexample [$FRED=12]) - thisof the Code Wizard or may a written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be length of 12 characters. subsequently updated by the Wizard without losing the manual changes. System or User Defined Each numeric variable must be equated to a line number in the numeric variables format table and be surrounded by square brackets. For example, This document contains information to help you produce a customised Code Generator parameter source [XMOVE=1] commands the code generator to interpret the numeric file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited tovalue of thecustomised source file, or final adjustments made to a file produce a system variable XMOVE, formatted as defined in line originating from the Code Wizard and its templates. 1 of the format table, then output to the CNC code.
A numeric variable must always be followed by an = and then a number representing its format reference number. A number less than zero or greater than the number of lines in the format table will cause the compiler error: FORMAT REFERENCE ERROR: {line in error}
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. Examples of CNC macro lines are:
; Note that this line ; of CNC code has been ; created over 3 text lines
Special Characters
You may often need to include special characters in CNC code which already have a designated meaning within EdgeCAM. To do this, place the ASCII value of the required character between curly brackets { }. For example: <[#BNUM=20] (IF P67{60}{62}1 GOTO [#BNUMJUMP=20])> because the ASCII value of < is 60, and the ASCII value of > is 62 This allows the output of any valid ASCII character (the next sub-section displays all common ASCII values. ASCII characters 128-255 vary depending on the country). The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate WARNING: If an output to convert the raw EdgeCAM data into usable CNC code. parameters and logic required line spilling over into two lines contains hard coded spaces, these spaces may be truncated by the compiler. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly For example: using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without...(CR) manual changes. <[#BNUM=20]... (80 spaces) losing the (40 spaces)... M30> This document contains information to help you produce a customised Code Generator parameter source file specifically for to:particular controller. In practice, a previously tried and tested text file for a similar CNC may be truncated a controller would be edited to produce a customised source file, or final adjustments made to a file <[#BNUM=20]... (10 and its templates. originating from the Code Wizardspaces) ...(CR) (40 spaces)... M30> This line is therefore best written as: <[#BNUM=20]... (120 spaces) M30>
67
ASCII Table
ASCII Value ASCII Character 032 033 034 035 036 SPACE ! " EdgeCAM Code Generator Compiler Guide # $
68
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 037 % Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 038 & parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 039 '
040 ( Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 041 ) subsequently updated by the Wizard without losing the manual changes. 042 * 043 + This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 044 , controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 045 046 047 048 049 050 . / 0 1 2
052 053 054 055 056 057 058 059 060 061 062 063 064 065
4 5 6 7 8 9 : ; < = > ? @ A
B C D E F
69
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 074 J Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 075 K parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 076 L
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 077 M using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 078 N subsequently updated by the Wizard without losing the manual changes. 079 O
This document contains information to help you produce a customised Code Generator parameter source 080 P file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 081 Q controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 082 R 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 S T U V W X Y Z [ \ ] ^ _ ` a b c d e f
g h i j k
70
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 111 o Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 112 p parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 113 q
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 114 r using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 115 s subsequently updated by the Wizard without losing the manual changes. 116 t
This document contains information to help you produce a customised Code Generator parameter source 117 u file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 118 v controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 119 w 120 121 122 123 124 125 126 127 x y z { | }
~ DEL
71
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
72
then additional CNC files would be Bracket left side-Rev3-1.nc The Bracket left side-Rev3-2.nc... integral part of the EdgeCAM suite of software. It creates a Code Code Generator Compiler is an Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. If the output is directed to a disk which does not support long file names then: Bracket left side-Rev3.nc, becomes Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Bracket .nc using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. Bracke-1.nc Bracke-2 .nc... This document contains information to help you produce a customised Code Generator parameter source Up to 99 files may be created. file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%DATA
You may need to use a logic loop to access a numeric value. The most common example is that of spindle speed codes on an NC control which need to be output. %DATA consists of two lists of values that have a fixed sequential relationship. The %DATA statements can appear anywhere in the text file except within Macros, Procedures or the Format table. They are usually placed at the top of the file immediately after the variable declarations, and before the %MACHINE statement. These values are available within any macro or procedure in the form of an array. An example of the use of %DATA is: %DATA1=10,33,45,57,67,87,102,121, ;Speeds The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code %DATA2=1,2,3,4,5,6,7,8, man-readable source text file containing all the appropriate Generator or "Machine Tool" file from a ;Speed codes parameters and logic required to convert the raw EdgeCAM data into usable CNC code. ... ... Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. ... This document contains information to help you produce a customised Code Generator parameter source ... file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC %MACRO=15=TL=Toolchange=8,47,48, controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. %CALL=SPEED ;Call process to calculate speed code ... %ENDM ...
73
%PROCEDURE=SPEED #LOOP=1 @LOOP ;SPEED CODE LOOP %IF NEXTSPEED=121 %THEN #SPEED=8:%GOTO @ELOOP %IF DATA1(#LOOP)=NEXTSPEED %THEN %GOTO @ELOOP #SPEED=DATA2(#LOOP) #LOOP=#LOOP+1 %GOTO @LOOP @ELOOP %ENDM The value referenced by DATA1(4) (where #LOOP=4) will be 57, and correspondingly DATA2(4) will be 4. Note that six data arrays are allowed, %DATA1 to %DATA6. See Also
74
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
75
If the DATA declaration exceeds one line it may be continued on the following line, for example: %DATA1=1,2,3,4 ,5,6,7,8 The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code ,9,10, Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required theconvert the raw EdgeCAM data into usable CNC code. That is, if the first character of to next line is a space, comma or numeric then it is assumed to be part of the preceding %DATA statement. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
76
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
SUBFUNCT
Within macros the system variable SUBFUNCT may be set by EdgeCAM to known values so that decisions can be made within the macro based upon a number of methods. See Also Multi Selection Choice Accessing Tool Used Data Accessing CPL Data Accessing Retrospective Manipulation Commands Accessing Cutting Conditions Controlling Cutter Compensation in Milling and Wire EDM
77
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
78
The macro name (in this case Coolant) should be a maximum of 25 characters long.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
79
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
80
This will make available via system variables the relevant data about the current CPL.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
81
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
82
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Copyright of 0 implies that the toolpath generated did not match any of the possible canned cycles. In this A value 1988-2004 Pathtrace Engineering Systems. All rights reserved.
case %NOCYCLE should be used. For example: %MACRO=3=..=Simple turning cycle=1,2,5,7,10,21, %IF MASK=1... %IF SUBFUNCT=0 %THEN %NOCYCLE ;not a valid cutting condition so ;expand using FE, RA and CIRCLE %IF PATHTRACE=1 %THEN %NOCYCLE;expand using FE, RE and CIRCLE %IF SUBFUNCT=2 @FACE %IF SUBFUNCT=4 @FACE %IF SUBFUNCT=6 @FACE %IF SUBFUNCT=8 @FACE @TURN %IF XMOVE=#XLAST @END
#BNUM=...
83
<[...][...][...]> #XLAST=XMOVE @FACE %IF ZMOVE=#ZLAST @END #BNUM=... ; save current X position
<[...][...][...]> #ZLAST=ZMOVE The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate @END parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %ENDM Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
84
2 = Lead out move The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
85
%MACRO=148=..=Block delete==Off/On %IF SUBFUNCT=2 %THEN #DELETE=0 %ELSE #DELETE=#FUNNY %ENDM Each CNC output line will begin: <[#DELETE=23][#BNUM=20]....> The entry in the format table will control the output of '/' followed by no value: /,0,0,0,0,0,0, 23 BLOCK DELETE
%LOAD
%LOAD={variable} This is designed to allow the 'loading' of tooling information at any point within any Macro or Procedure. The {variable} allows incrementing of a counter so that the information for all tools used during the last work session can be examined. For example: ...
86
#HEADER=1 @RELOAD The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %LOAD=#HEADER parameters and logic required to convert the raw EdgeCAM data into usable CNC code. #BNUM=+#BNUMVAR: <[#BNUM=20][POSITION=10]> #HEADER=#HEADER+1 Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be %IF #HEADER < NUMTOOLS %THEN %GOTO @RELOAD subsequently updated by the Wizard without losing the manual changes. ... This document contains information to help you produce a customised Codefor each tool used. This is This will load the system variable POSITION with the turret number entered Generator parameter source file specificallywithin particular controller. Indisplay a complete list of all and tooling informationa similar CNC usually set up for a the START macro to practice, a previously tried the tested text file for used for each controller would be edited to produce a customised source file, or final adjustments made to a file machining file. originating from the Code Wizard and its templates. %LOAD is also used at Toolchange to load the information required for the CNC output: %MACRO=15=..=Toolchange=8,47,48,15, ... #TOOLINFO=SUBFUNCT: #TOOLINFO=#TOOLINFO+1 ; access next tool and hold
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. %LOAD=#TOOLINFO: #NEXTOOL=POSITION
%IF SUBFUNCT=NUMTOOLS %THEN #TOOLINFO=1 ; reload first tool for preselect if on last toolchange %LOAD=#TOOLINFO: #NEXTOOL=POSITION ; reload current tooling values %LOAD=SUBFUNCT ... %ENDM SUBFUNCT at Toolchange is always set to the correct value to allow access to the current tooling information. Therefore the logic above will load the next tool's turret position for pre-selection and then reload the current information. When %LOAD is used the user variables defined for the toolchange macro will also be set with the values given in EdgeCAM. USERVAR1 to USERVAR5
Note that the content of these variables is dependent on the Code Generator file content.
87
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%GETCPL
%GETCPL={variable} This directive is designed to allow access to co-ordinate and rotational information attached to a CPL at any point within any macro or procedure. The {variable} allows incrementing a counter so that information about all CPLs used can be extracted. By setting %GETCPL = SUBFUNCT the current information is loaded. List of variables affected:
88
@AGAIN #POINTER=#POINTER+1 %GETCPL=#POINTER %IF SYSID=#FUNNY @BREAKOUT <[GROUPDESCRIPTION=10] [XSUB=0] [YSUB=1] [ZSUB=2] [ROT1=27] [ROT2=9] [SYSID=22]> %GOTO @AGAIN @BREAKOUT This example will loop through all selected CPLs and output their relevant X, Y and Z values (where reference to the format table is suitable for debug). Once all the selected CPLs have been processed, the system variable SYSID is set to #FUNNY and the loop is terminated. %MACRO=43=..=Index=57, %IF MASK=1 %THEN #BNUMVAR=0 %ELSE #BNUMVAR=#BNUMINC %GETCPL=SUBFUNCT #AMOVE=ROT1 #BMOVE=ROT2
<[#AMOVE=32][#BMOVE=33]> ; Load current CPL information so as ; to output new index position ... ... %MACRO=48=DS=DATUM SHIFT %GETCPL=SUBFUNCT ... ...
89
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
90
#XHOLD=#XMOVE:#YHOLD=#YMOVE:#ZHOLD=#ZMOVE %ENDM The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate A PROCEDURE can be called from within any other macro or procedure, the syntax being as follows: parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %MACRO=... ... Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be ... subsequently updated by the Wizard without losing the manual changes. %CALL=HOLD This document contains information to help you produce a customised Code Generator parameter source ... file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file %ENDM originating from the Code Wizard and its templates. A macro cannot be called from within a macro or procedure.
Array Expansions
Data within EdgeCAM machining is sometimes held in the form of an array. This data may be accessed by setting up a loop to interrogate the array. An example is the XY co-ordinates of a drill pattern: XPOINT(#) YPOINT(#)
91
where # is a numeric variable. It operates as follows: XPOINT(1) holds the X co-ordinate of the first hole, YPOINT(1) holds the Y co-ordinate of the first hole in the drill pattern. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Turn profiles "Machine Tool" file XPOINT(), YPOINT() array. text file containing all the appropriate Generator or are also held in the from a man-readable sourceA third element, RADIUS(), is also set up, and this will be and logic this point refers to the raw EdgeCAM data into usable CNC code. parametersnon-zero if required to convert an arc centre. The radius value is signed (+'ve is counterclockwise and-'ve is clockwise). UV Wire Profiles and Thread Milling information also use this array. See the relevant machining discipline Source textmore may be created via the interactive facilities of the Code Wizard or may be written directly section for files information. using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be When you need to output the Wizard without losing increment through the array and output the values held pattern co-ordinates, the manual changes. subsequently updated by within the array. The expansion is terminated by testing a System Variable LAST which is set to the number of co-ordinates in the pattern. Thisexample: contains information to help you produce a customised Code Generator parameter source For document file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file %PROCEDURE=LOOPEXPAND originating from the Code Wizard and its templates. #LOOP=2 ;DRILL REST FROM COORD TWO @LOOP %IF #LOOP>LAST %THEN %GOTO @ENDLOOP #BNUM=+#BNUMVAR: #XMOVE=XPOINT(#LOOP): #YMOVE=YPOINT(#LOOP) <[#DELETE=24][#BNUM=20] [#XMOVE=0][#YMOVE=1]>
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
92
The Code Generator Compiler is andrilling depth of the EdgeCAM suite of software. It creates a Code MZDEPTH()= Z integral part Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate MRPLANE()= Retract plane parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Rotary XPOINT() = X or Y co-ordinate dependent on machine Radial config. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be YPOINT() = Angular position subsequently updated by the Wizard without losing the manual changes. ZPOINT() = Not used MZDEPTH()= Z drilling depth This document contains information to help you produce a customised Code Generator parameter source file specifically for aMRPLANE()= RetractIn practice, a previously tried and tested text file for a similar CNC particular controller. plane controller would be edited to produce a customised source file, or final adjustments made to a file Rotary Axial XPOINT() = X co-ordinate originating from the Code Wizard and its templates. YPOINT() = Y co-ordinate ZPOINT() = Not used MZDEPTH()= Z drilling depth MRPLANE()= Retract plane When axially machining, the co-ordinates are always Cartesian for both rotary and planar modes.
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
Turning
Rotary Radial
Planar Radial
XPOINT() = X co-ordinate YPOINT() = Y co-ordinate ZPOINT() = ZLEVEL (Multi-level only) or #FUNNY MZDEPTH()= Z drilling depth MRPLANE()= Retract plane
When axially machining, the co-ordinates are always Cartesian for both rotary and planar modes. Multi-level drilling is available in axial and B-axis orientation where supported by the Code Generator file.
EdgeCAM User Guide
%NOCYCLE
The statement is used to force longhand output of CNC. The command can force output of the following types of code: Generation of rapid, feed, clockwise and counterclockwise moves instead of controller canned cycles. The expansion of retrospective operations to full CNC code instead of utilising controller canned cycles
93
The executive modifier 'Canned Cycle' sets the value of the system variable PATHTRACE, the selection of 'Pathtrace' or 'Controller' will result in 1 or 0 respectively. The variable PATHTRACE can be tested to conditionally execute the command %NOCYCLE. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code The action of %NOCYCLE is to exit the macro definition, immediately passing the axis moves to the Feed, Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate Rapid and Circle macros (CLW, CCLW). parameters and logic required to convert the raw EdgeCAM data into usable CNC code. For example: %MACRO=32=TR=Translate=43,44,45,14,26,37,21, Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be * subsequently updated by the Wizard without losing the manual changes. %IF PATHTRACE=Y %THEN %NOCYCLE ; redirect through Rapid, Feed This document contains CCLW macros * ; and CLW, information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file * originating from the Code Wizard and its templates. * %IF MASK=1 %THEN ... #XSUB=... #YSUB=... #BNUM=+#BNUMVAR:<[...] [...]>
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
94
%NOCYCLE has no function within the Wire Erosion module. See Wire Notes for explanation of equivalent functionality.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%SUBROUTINE
The statement defines the output position of controller subroutines. A controller subroutine is defined as a sequence of blocks customising repeated machining cycles that can be called from a main program. The macro Code Generator supports the output of subroutines in all the machining modules. Nested controller subroutines are fully supported within the EdgeCAM Code Generator, and therefore care should be taken to ensure that the controller is also capable of nesting. If nested subroutines occur and are not supported by the controller, you may want to add tests to the Code Generator to output error messages. A typical test is as follows: Thestart macro ) #NESTED=0 (In Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate (In macros and logic required to convert #NESTED=#NESTED+1 parametersSUBSTART and CYCLSUB) the raw EdgeCAM data into usable CNC code. %IF #NESTED > 1 %THEN <ERROR:NESTING OF SUBS
95
NOT POSSIBLE ON Code Wizard or - USE PATHTRACE Source text files may be created via the interactive facilities of theTHIS CONTROL may be written directly CYCLES> using a suitable text editor. Please note that if a Code = #NESTED -1 is altered manually it cannot be (In macro SUBEND) #NESTED Wizard source file subsequently updated by the Wizard without losing the manual changes. (#NESTED will always return the current level of subroutine nesting if used in this way). This document contains information to help you produce a customised Code Generator parameter source %SUBROUTINE a particular controller. In practice, a must only tried and tested text macros as listed file specifically formay not appear more than once and previously be defined within thefile for a similar CNC below. The position of %SUBROUTINE within the source file governs adjustments made to a file controller would be edited to produce a customised source file, or finalthe output position of the controller subroutines. originating from the Code Wizard and its templates. The following rules apply to the relevant positional definitions: %MACRO=START ... ... %SUBROUTINE
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
... ... %ENDM Controller subroutines output as the start of the CNC code: %MACRO=END ... ... %SUBROUTINE ... ... %ENDM Controller subroutines output as the end of the CNC code. No occurrence of %SUBROUTINE. The subroutine will be output as the subroutines occur in the machining file and nesting of subroutines will not be accepted by the controller.
EdgeCAM User Guide
See Also MASK Macro Definitions Related to Controller Subroutines Controller Subroutine Calls by Block Number
96
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
97
2. Macro statements to expand arrays (see array expansion) 3. Controller subroutine end definition This document contains information to help you produce a customised Code Generator parameter source
file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
98
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
99
Generatorthe "Machineoften show an apparent dogleg source text file containing notthe appropriate Note that or graphics Tool" file from a man-readable when resolved rapids are all used. This intermediate parameters and exist on the NC data - it is purely EdgeCAM data into usable CNC code. be used as a start points does not logic required to convert the raw for visualisation purposes - and will not point. Some previous changes created via the interactive facilities of the Code Wizardmeans that written directly Source text files may be in this area have been removed from EdgeCAM. This or may be in some cases the graphical representation will change,that if a Code Wizard source file is altered manually it cannot be using a suitable text editor. Please note compared to previous versions, to more closely represent what happens on the machine tool.Wizard without losing the manual changes. subsequently updated by the Good practice This document contains information to help you produce a customised Code Generator parameter source For safety reasons, particular controller. In practice, a previously tried and tested height. If a similar CNC file specifically for a subroutines should always start and finish at a safe clearancetext file forthis practice is followed would be edited to between subroutines can be expected to adjustments safe to a file controllerthen the link moves produce a customised source file, or final also be at themade height. The subroutine should always include the its templates. originating from the Code Wizard and liftout move at the end of a cut. A specific move to a point near to the required start of the subroutine before defining the subroutine is recommended. This is generally preferable to making a move direct from, say, toolchange and relying on the 2D rapid's dogleg to be the start point. If the machine tool movements are not exactly as represented on screen then this will minimise the discrepancy. Code Generators Some additional system variables have been added to the Code Generator to pass the subroutine start point. 1988-2004 Pathtrace Engineering Systems. All rights reserved. Copyright In macros TRANSLATE and RESET, the variables XEND, YEND, ZEND now represent the end of any approach move and thus the start of the subroutine. In macros SUBSTART and SUBCALL, the existing variables NEXTXMOVE, NEXTYMOVE, NEXTZMOVE can be used. The TRANSLATE Macro (No. 32) should now use XEND etc. as subroutine start point instead of XSUB etc. Rapid approach moves to this point should be output. The SUBSTART Macro (No. 55 ) should use NEXTXMOVE etc. as a "HOLD" point for calculation of incremental moves. The SUBCALL Macro (No. ) should include a rapid approach move to NEXTXMOVE etc. Existing code generator files will continue to work as before since no existing variables have been changed. It may be, however, that their actions are not correctly represented on screen by EdgeCAM graphics. The Code Wizard templates for milling and turning have been updated to match the graphics. Template based code generators should be updated to the version 7.00 templates to take advantage of these changes. The templates have also been updated to make the switch between incremental and absolute subroutines easier. The logic within the template will now determine whether to use the Rapid or Translate code constructors and G90/91 blocks will only be output by subroutine start and end if they are required. This last change is within the default sequence of the code constructors. It will not be applied automatically to
updated CGD files but will be available for newly created files. It should always be remembered that the exact action of a machine tool when using controller cycles is beyond the control of EdgeCAM. It is the user's responsibility to ensure that his code generators are correctly configured and that the on-screen representation closely matches the actions of his controllers.
100
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
MASK
The MASK command is used to control output of data to the NC file. Setting it to 0 or 1 allows or prevents output during processing:
101
MASK = 0 MASK = 1
prevents output
MASK is used in the processing of the machining data file to CNC output code which utilises controller subroutine calls. Examining MASK allows for the maintaining of block numbers and system variables during multiple pass processing. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate EG. %IF MASK=1 %THEN #BNUMVAR=0 %ELSE #BNUMVAR=10 parameters and logic required to convert the raw EdgeCAM data into usable CNC code. See Also Source Usage of may be created via the interactive facilities of the Code Wizard or may be written directly Simple text files MASK using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be Complex Usage of MASK subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
102
Axis movement
L5 End of Definition The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator ... "Machine Tool" file from a man-readable source text file containing all the appropriate or L6 parameters and logic required to convert the raw EdgeCAM data into usable CNC code. L7 ... L8 Start of main code Source text files may be created via the interactive facilities of the Code Wizard or may be written directly L9 Axis movement using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. L10 Call Subroutine - 20 times L11 End of code This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC The example will reduce the produce a customised required, but final adjustments made to a file controller would be edited to amount of output code source file, orto simulate within the Pathtrace system the full graphical axes movement is required to be output. originating from the Code Wizard and its templates. Therefore the graphics display will be as below: Previous axis movement ... O1 Axis movement O2 Punch Component O3 Axes movement Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. O4 Punch Component O5 Axis movement etc.... O36 Punch and move 17 times more ... O37 ... O38 End of Code As can be seen in the example, the length of code generated would be of greatly differing lengths, and so by the same definition the block numbers would also be different. MASK and multi-processing of the machining file overcomes the block numbering problem. To explain MASK in the outputting of L1 - L11 using the machining input data 1 - 038, MASK will be set to 0 to output the subroutine definition, and to 1 to simulate the main CNC code. The code is then processed again with MASK set to 1 during the subroutine definition and calls, but toggling to 0 to output the main CNC code. Therefore, by testing the value of MASK, the block number sequence can be maintained correctly.
103
The second complex use of MASK is when subroutines call other subroutines. The data file is scanned to output the subroutine, MASK set to 0, and as the call to the next subroutine occurs MASK toggles to 1. After the completion of the subroutine MASK is toggled back to 0 and the calling subroutine definition Compiler is an The Code Generatoris completed. integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Subroutine at start Subroutine at end 1st Pass 2nd Pass 1st Pass 2nd Pass Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Main a suitable text editor. Please MASK=0 if a Code Wizard source file is altered manually it cannot be MASK=1 MASK=0 MASK=1 using Code note that subsequently updated by the Wizard without losing the manual changes. Subroutine MASK=0 MASK=1 MASK=1 MASK=0 This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC Main Code MASK=1 MASK=0 MASK=0 MASK=1 controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. Processing The data file is totally rescanned to output the lower subroutine with MASK set to 1 where output has been made, and toggled to give output as required. See Also %SUBROUTINE
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
Circle Programming
As circular interpolation which ranges over one or more quadrant is not available on all machine tool control systems, the statement CIRCLE is available to output either full circle or quadrant programming. Variable CIRCLE can be assigned the values: 1 2 CIRCLE=1 CIRCLE=0 quadrant programming
104
The statement should be placed in the START macro, but can be altered at any time if output needs to be switched between single and multi quadrant output. A circular move of 360 is therefore processed by either calling the circular macros once or four times as The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code appropriate to the CIRCLE definition. Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate EdgeCAM can also output plane convert the raw both the ZX and ZY planes. The system parameters and logic required to switching arcs inEdgeCAM data into usable CNC code. variable TRUEARCOP may be set to control output between true arc co-ordinates and fixed XYZ co-ordinates. The differences in the system variables as set up are illustrated in the table below. If plane switched arcs are not supported, files may be created via into linear movements. Source textthe arcs are broken downthe interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. TRUEARCOP 0 (Milling default) 1 (Turning default) This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file XYARCS XSTART, YSTART, originating from the Code Wizard and its templates. XSTART, YSTART, XCENTRE, YCENTRE, XEND, YEND ZXARCS XCENTRE, YCENTRE, XEND, YEND ZSTART, XSTART, ZCENTRE, XCENTRE, ZEND, XEND
Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved.
ZYARCS
The system variable XYPLANE is set as 0, 1 and 2 for XY, ZX and ZY respectively when processing arcs. See also: Arc Bulge when using Radius NC Output
105
When not specified the option is enabled. This means existing Code Generators will be enabled. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a system variable should be file containing all the appropriate The man-readable source text set in the START macro. parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Bulge correction is NOT required if the circular interpolation format uses arc centre (I J K) or the Controller is set to single quadrant. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly RESOLUTION Specify the resolution of the Controller. This used for the bulge using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be calculation error check. subsequently updated by the Wizard without losing the manual changes. The system variable should be set in the START macro. This document contains information to help you produce a customised Code Generator parameter source %MACRO=START file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file NOBULGECORRECTION=0 ; 0=Bulge correction On originating from%THEN RESOLUTION=0.0001 %ELSE RESOLUTION=0.001 %IF UNIT=0 the Code Wizard and its templates. The reason for the error is that the arc radius and start and end points have to be rounded to the limit set by the controller, which can cause an error of up to 0.0005mm for controllers with a limit of 3 decimal places. There is a similar effect on Inch parts, but to 4 decimal places. The worst case is when the start and end points have been rounded down so they are closer Copyright 1988-2004 Pathtrace Engineering Systems. All rights reserved. the radius is rounded up. This very small together and change is enough to make the arc bulge outwards by an amount far exceeding the specified tolerance. The opposite effect can also occur where the end point is further away than the arc radius. In this case the controller appears to still try and cut the arc, but we suspect this causes the arc to be too shallow. The rounding by EdgeCAM is mathematically correct and the error is inherent in the method used by the G2/G3 R construction of arcs and limit of 3 decimal places. The error is most commonly seen on circular Bosses or pockets, which have a tapered wall. As the arc radius changes size down the wall, the rounding varies slightly the effect can be easily seen at some levels as a dig inwards or a bulge.
A rounding error of 0.0005mm can cause the arc to bulge by up to 0.317mm on a 50mm radius.
This type of error can occur in 2D, contour or 3D profiling cycle. The error is more noticeable when machining a with contour wall or 3D shape as the amount of error changes down the part, as shown in this side view of NC toolpath files containing Arcs:
106
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
107
Setting the PRECISION value The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code The format is: Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. PRECISION=value For example, Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be %IF UNIT=1 %THEN PRECISION=0.001 %ELSE PRECISION=0.0001 subsequently updated by the Wizard without losing the manual changes. PRECISION can only be set in the START macro and will not take effect until the START macro has finished. This document contains information to help you produce a customised Code Generator parameter source If the PRECISION value is not set, the system assumes these values: file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. UNIT=0 PRECISION=0.0001 (inches) UNIT=1 (metric) PRECISION=0.001
In this example, the X value has been output twice because the %OUTPUT-IF-CHANGED directive considers the change in the X value to be different, but the output value appears the same because the format table has rounded the value down to three decimal places (for the sake of the example). *PRECISION=0.001 N20 X20.0 Z10.0 N30 Z0.0 (XMOVE=20.0) (XMOVE=20.0001)
In this example, the X value has been suppressed because the %OUTPUT-IF-CHANGED directive considers the change in the X value to be the same, because the difference is less than the PRECISION. Example of using %IF
108
If PRECISION has been set to 0.01, the statement above would pass the test (and GOTO the skip label) as the difference between the values is less than the PRECISION. If PRECISION=0.00001, the statement would fail and the GOTO would be ignored.
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Debugging
The system variable MACRONAMEOP can be set so the name of each macro processed is output to the CNC file. The statement MACRONAMEOP = [value] is normally included within the start macro. Valid settings are: 0 = No debug output 1 = All macro executions output to CNC file.
109
2 = Macro names output only if MASK=0 (that is, CNC output turned on).
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Silent Output
The system variable SILENT can be set to inhibit output of CNC code to the screen. This will increase the speed of code generating. A status message is displayed every 100 lines of output if silent output mode is selected. Valid settings are: 0 = Output to screen 1 = Inhibit output
110
The following lines included within the start macro. These allow this mode to be selected interactively when generating CNC code. SILENT defaults to 0. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %OPTIONS=SILENTMODE^ON^OFF=SILENT parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %IF $SILENT=Y %THEN SILENT=1 $SILENT must be declared in a via the interactive facilities of the Code Wizard or may be written directly Source text files may be created%DECLARE statement. using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Textcase
The system variable TEXTCASE provides the option of formatting the output so that comments, file name and any ASCII text characters will be output as uppercase text. This is useful as some machines must have all text as uppercase characters, otherwise the machine ignores the character. Valid settings are: 1 = Will convert all text string to uppercase. 2 = Will convert all text strings to lowercase. Note that word letter addresses output from Format Table are not converted. If NC code is written as text strings in output blocks (or Code Wizard code constructors) those strings will be converted by TEXTCASE. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Any other or "Machine Tool" file from a man-readable source unchanged. Generator value for TEXTCASE will result in the text being left text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
111
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Matrix Processing
The matrix operation provides a method of producing a series of identical components using one of the following methods:
112
1. Full, longhand CNC code - for controllers with no subroutine facilities. 2. Controller subroutines and datum shifts.
Longhand Code
Testing the system variable PATHTRACE (modifier 21) can direct processing through the RAPID, FEED, CLW and CCLW macros. The Code Generator be interpreted to mean partuser has requested to generate longhand code.Code PATHTRACE=1 can Compiler is an integral the of the EdgeCAM suite of software. It creates a Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Subroutines and Datum Shifts The testing of the system variable PATHTRACE can cause processing to be directed through the Source text files may be created via the interactive facilities of the Code Wizard or may be written directly manipulative macros. using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be Controller (0) - generate controller subroutines. subsequently updated by the Wizard without losing the manual changes. Pathtrace (1) - generate longhand code. This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%Output
%OUTPUT controls the output of separate CNC output files (a tooling setup sheet and a main body program). These files have the same prefix, the - character as a delimiter, and the assigned value of $NAME as a suffix. To enable the creation of the two files, you must specify the following macro commands in the START macro: %MACRO=START
113
... ; output filename="TEST" APPEND=1 ; enable suffix file creation The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code $NAME=SETUP ; assign 'SETUP' as suffix to $NAME Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %OUTPUT=$NAME ; output to secondary file ... ; direct output to a CNC file Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be ... ; called TEST-SET' subsequently updated by the Wizard without losing the manual changes. ... ... This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC %OUTPUT=STANDARD ; direct output to standard TEST controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. ... ; filename ... You can redirect the output at any time by assigning %OUTPUT as either STANDARD or $NAME. The suffix assignment must only be made once. Where the files are directed to a disk which cannot support long file names (for example, Novell 3.1) EdgeCAM abbreviates the Engineering Systems. Allthe first six characters and then adding a dash plus the first name to fit, by using rights reserved. Copyright 1988-2004 Pathtrace character of the $NAME. Here are some examples: Long Filename testcode-setup.nc testcode-1.nc testcode-2.nc testcode-header.nc Truncated Filename testco-s.nc testco-1.nc testco-2.nc testco-h.nc
Leader
LEADER is NOT a system variable. The use of LEADER is to output a length of null characters within the output file. The RS232 software interprets this command during a RS232 communication session. The statement is a CNC output command therefore the syntax should be as below: %MACRO=... ... <LEADER=####> ... %ENDM
114
where #### is the number of null characters required to be output. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine it is also possibleman-readable source text file output file using the Editor. It should be noted that Tool" file from a to insert the statement in an containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Milling Modifiers
This table shows the system variable set up for each of the modifiers that may be included in the Code Generator macro definition line. Number 4 5 6 Heading Name System Variables GROUPDESCRIPTION
115
7 Speed SPEED The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 8 Tool No. TOOLNUM Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters andDepth required to convert the raw EdgeCAM data into usable CNC code. logic 9 ZDEPTH 10 Cut increment DEPTH
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 12 Offset OFFSET using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 13 Side LEFTRIGHT subsequently updated by the Wizard without losing the manual changes. 14 From STCOMMAND
This 15 document contains information to USERDEFINEDSTRING help you produce a customised Code Generator parameter source Comment file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 16 controller would%Stepoverto produce aSTEP be edited customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 21 Subroutines PATHTRACE 23 24 25 26 27 28 29 37 38 39 40 41 43 44 45 51 57 59 60 63 - 66 Degression Angle Radius To Time Clear DEGR ANGLE RADIUS ENCOMMAND DWELL ZCLEAR
Retract Matrix/Repeats X repeats Y repeats Direction/Priority Lace Cut {X} increment/length {Y} increment/length {Z} increment/length Quadrant Angle Move type Distance - Not defined -
RPLANE REPEAT XREP YREP ROWPRIORITY LACECUT XINC YINC ZINC QUADRANT INDEX FIELD2 FIELD1
67 68 69 70 71 72 - 81 82 200
116
EdgeCAM Code Generator Compiler Guide - Not defined Define layout USERMATRIX Multilevel in drill cycles ZPOINT()
The 201 Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Code Multidepth in drill ZDEPTH() Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate cycles parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
117
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
The flow diagram also applies to the chipbreak, tap, ream and bore macros. See Also System Variable - DRILLSUB Procedure - LOOPEXPAND Using MASK in Milling
118
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Procedure - LOOPEXPAND
A call to the user-defined LOOPEXPAND procedure will expand the number of points to be machined. The following macro definitions ordinarily contain a LOOPEXPAND call: DRILL CYCLE TAP CYCLE BORE CYCLE
119
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
120
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
121
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file system man-readable source text file containing all the appropriate These variables are set up by a from a that looks ahead to the next tool movement: parameters and logic required to convert the raw EdgeCAM data into usable CNC code. NEXTSPEED Next spindle speed selected. NEXTXYFEED Next XY feedrate Source text files may be created via the interactive facilities of the Code Wizard or may be written directly NEXTZFEED Next feedrate using a suitable text editor.ZPlease note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. NEXTCOMP 1 = No compensation 2 = Left compensation This document contains information to help you produce a customised Code Generator parameter source 3 = Right compensation file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file NEXTXMOVE Next X axis movement originating from the Code Wizard and its templates. NEXTYMOVE Next Y axis movement NEXTZMOVE Next Z axis movement
These variables are all set up from the %MACHINE section: XTOOL YTOOL ZTOOL XHOME YHOME ZHOME TXMAX TYMAX TZMAX IPLANE MAXFEED MAXSPEED MAXRPM NUMTOOLS MACHTIME1 Toolchange X position Toolchange Y position Toolchange Z position Toolhome X position Toolhome Y position Toolhome Z position Maximum machine extents in X Maximum machine extents in Y Maximum machine extents in Z Initial plane Maximum feedrate Maximum speed Maximum spindle speed Number of tools used in the machining sequence Machining time
During %NOCYCLE processing (through RAPID, FEED, CLW and CCLW macros) the following additional
EdgeCAM User Guide
122
NEXTARC 0 = Nextmove is linear 1 = Nextmove is counterclockwise 2 = Nextmove is clockwise
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
123
6 - AREACLEAR CYCLE
The- Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 7 SLOT CYCLE 45 - MOVE ANGULAR Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 8 - CROSSHATCH required 46 MOVE RELATIVE into usable CNC code. parameters and logic CYCLE to convert the-raw EdgeCAM data2 9 - DRILL CYCLE 47 - MOVE CONSTRAINED
10 - CHIPBREAK CYCLE 48 - DATUM SHIFT Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 11 - REAM CYCLE 49 - RESET ROTARY DATUM subsequently updated by the Wizard without losing the manual changes. 12 - BORE CYCLE 51 - START 13 document contains information to help you produce a customised Code Generator parameter source 53 - CLW This - TAP CYCLE file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 14 - MOVE RELATIVE 54 - CCLW controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 15 - TOOLCHANGE 55 - SUBSTART 21 - FEED TYPE 22 - DWELL 29 - RADIUSCOMP 30 - MATRIX MODE ON 31 - MATRIX MODE OFF 56 - SUBEND 58 - END 59 - SUBCALL 60 - RESET 61 - CYCLSUB
Copyright 1988-2004 Pathtrace Engineering Systems. ANGCLW 32 - TRANSLATE 69 - All rights reserved.
Turning Modifiers
Number 4 5 6 7 8 Heading Name Feedrate Plunge feed System Variables GROUPDESCRIPTION FEED ZFEED
124
9 Total Depth TOTALDEPTH The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 10 Cut Increment DEPTH Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters andPitch required to convert the raw EdgeCAM data into usable CNC code. 12 logic PITCH 13 CSS CSS
Source text filesFrom be created via the STCOMMAND 14 may interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be 15 Comment USERDEFINEDSTRING subsequently updated by the Wizard without losing the manual changes. 17 Override FIELD1 21 Canned Cycle PATHTRACE This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller.YINC 23 Xinc In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file 24 Drive RMOVE originating from the Code Wizard and its templates. 25 Cut CMOVE 26 27 28 29 30 31 43 44 45 49 50 62 63 64 65 66 67 68 69 70 71 End # Time Lead angle Trail angle Z Offset X Offset Z mirror Z lead Z Increment L/R Offset Tolerance Finish Depth Offset L/R Step ENCOMMAND DWELL TOOLANGLE1 TOOLANGLE2 OFFSETZ OFFSETX
STCOMMAND ENCOMMAND XINC LEFTRIGHT OFFSET TOLERANCE TOTDEPTH OFFSET LEFTRIGHT STEP USERVAR1 USERVAR2 USERVAR3 USERVAR4 USERVAR5
73 74 75 76 77 78 79 81
125
82 Retract PECKRETRACT The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
PASS
The system variable PASS is the turret processing pointer. PASS is assigned the following values: PASS = 1 = Upper turret processing PASS = 2 = Lower turret processing
126
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
TURRET
The system variable TURRET is used to output the tooling data for the upper and lower turrets. TURRET = 0 = Upper turret data TURRET = 1 = Lower turret data
127
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
File Output
If parameter 5 in the appropriate machine format ('mm') line in the machine tool macro is set to: 0 Processing will output to a single file as follows: upper turret to first sync code, lower turret to first sync code, upper turret to next sync code, lower turret to next sync code and so on until all CNC code has been output. 1
128
Two tapes will be produced, one for each turret. If the name supplied for the CNC file is TEST, the CNC files produced will be named TEST-1.NC and
TEST-2.NC The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 2 The file for the lower turret will be merged with the upper turret file at the Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. synchronisation points.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
4 Axis Synchronisation
The SYNCHRONISE TURRETS macro causes either turret to wait until the other turret has completed its operations. When the SYNCHRONISE TURRETS command is issued, a 'wait code' is sent to both turrets. The command can be issued at any point within machining and is not turret dependent. It may also be applied as a retrospective command. The effect of the SYNCHRONISE command is that both turrets will start to perform their operations simultaneously. Normally one turret will finish before the other and will read the SYNCHRONISE command. This instructs the turret to wait until the second turret also reads the SYNCHRONISE command, at which point both turrets are started again.
129
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Axis Output
UPPER TURRET Toolchange Rapid Rough Turn LOWER TURRET Toolchange Rapid Waiting EdgeCAM Code Generator Compiler Guide SYNCHRONISATION Rapid Home Profile
130
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Toolchange ... Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate Rapid ... parameters and logic required to convert the raw EdgeCAM data into usable CNC code. Waiting ...
... ... Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be ... Feed subsequently updated by the Wizard without losing the manual changes. SYNCHRONISATION Threading Rapid Home This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC ... End of operations controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. ... Rapid Home End of operations
131
At all times the following variables are available (items marked with a * only apply to 4 axis lathe The Code Generator Compiler is an a * should beof the EdgeCAM suiteconfigurations): configurations. Macros marked with integral part removed from 2 axis of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate NEXTMACRO parameters and logic Next macro convert the raw EdgeCAM data into usable CNC code. required to to be processed. These variables are set up by a system that looks ahead to the next tool movement: Source text files may Next spindle speedinteractive facilities of the Code Wizard or may be written directly be created via the selected. NEXTSPEED using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be NEXTXYFEED Next used XY feedrate subsequently updated by the Wizard without losing the manual changes. NEXTZFEED Next used Z feedrate
NEXTCOMP 1 = No compensation This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 2 = Left compensation controller would be edited to produce a customised source file, or final adjustments made to a file originating from the CodeRight compensation 3 = Wizard and its templates. NEXTXMOVE NEXTZMOVE Next X axis movement Next Z axis movement
These variables are all set up from the %MACHINE section: XTOOL *XTOOL1 Upper turret X toolchange position Lower turret X toolchange position
Copyright 1988-2004 Pathtrace Engineering Systems. Allposition ZTOOL Upper turret Z toolchange rights reserved.
*ZTOOL1 XHOME *XHOME1 ZHOME *ZHOME1 TXMAX TZMAX IPLANE MAXFEED MAXSPEED MAXRPM NUMTOOLS MACHTIME1 NUMTOOLS
Lower turret X toolchange position Upper turret X home position Lower turret X home position. Upper turret Z home position Lower turret Z home position Maximum machine extents in X Maximum machine extents in Z Initial plane Maximum Feedrate Maximum Spindle Speed Maximum Spindle Revolutions Per Minute Number of Tools used Machining time Number of Tools in Upper Turret
Number of Tools in Lower Turret Machining Time for Upper Turret Machining Time for Lower Turret Maximum Feedrate -as %MACHINE Maximum Rapid -as %MACHINE
132
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 1 = Lower turret Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate TURRET parameters and logic May be set in the post. Defines which turret into usable to be directed: required to convert the raw EdgeCAM data %LOAD is CNC code. ` 0 = Upper turret
Source text files may 1 = createdturret interactive facilities of the Code Wizard or may be written directly be Lower via the using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be During %NOCYCLE processing the following losing the manual changes. subsequently updated by the Wizard without additional variables are available: NEXTARC 0 = Nextmove is linear
1 = Nextmove to help you produce This document contains information is counterclockwise a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC 2 = Nextmove is clockwise controller would be edited to produce a customised source file, or final adjustments made to a file originating from the CodeEnd of %NOCYCLE processing 3 = Wizard and its templates. If the nextmove is an arc move, NEXTXCENTRE NEXTYCENTRE NEXTZCENTRE Two out of three will be set up depending on the plane switching of the arc and the setting of the TRUEARCOP variable.
133
59 - SUBCALL 60 - RESET 61 - CYCLSUB 71 - ATTRIBUTE 251 - SPINDLE SELECTION 252 - SPINDLE CONTROL 254 - SPINDLE DOCKING
134
255 - MOVE SUB SPINDLE 256 - BAR FEED The - CHUCK 257 Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate 258 - PART CATCHER parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 259 - TAILSTOCK Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
135
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
136
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
CAXIS
The CAXIS system variable is assigned a value which relates to the type of machining currently active: 0 = Static (Milling or Turning) Tool 1 = Axial/Reverse Axial, Driven (0 or 180) 2 = Radial/Reverse Radial, Driven (90 or 270) 3 = Other Orientation (B AXIS), Driven
137
0 = Normal Turning 1 = Axial Machining The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 2 = Radial or "Machine Tool" file from a man-readable source text file containing all the appropriate Generator Machining parameters and logic required to convert the raw EdgeCAM data into usable CNC code. The following macro definitions assign a value to CAXIS (therefore the variable should not be assigned by the user): Source text files may be created via the interactive facilities of the Code Wizard or may be written directly %MACRO=43=AX/RD=Axial/Radial C-axis machining= using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be (And 193) subsequently updated by the Wizard without losing the manual changes. %MACRO=45=..=Move Angular=5,6,7, %MACRO=253=..=Lathe Index=.. This document contains information to help you produce a customised Code Generator parameter source %MACRO=165=..=Tool Change=.. file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file These values are maintained while processing for reference by the code generator file. originating from the Code Wizard and its templates. CAXIS can be tested and conditional actions can be executed.
Y Axis
EdgeCAM is switched between Y Axis and C Axis milling by the use of the SELECT MILL MODE macro. This sets up SUBFUNCT as 0 for C Axis and 1 for Y Axis milling (the default condition is C Axis). A user variable should be set to flag that status in other macros. For example: %MACRO=44=..=SELECT MILL MODE...etc.
138
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
%CXCYCLE
This statement is used to force output of axial motion in terms of C Axis motion and the radial length, the polar co-ordinate system. %CXCYCLE is used to calculate axial movements for controllers that do not support the Cartesian coordinate system, therefore the output must be expressed in the polar co-ordinate system. %CXCYCLE action is similar the %NOCYCLE command but redirection is effected through the macro CX.OUTPUT (macro number 66).
139
The macro definition CX.OUTPUT must be written in the text source file to enable the redirection to occur. Example: %MACRO=164=..=4,64,65,59,60,7,5,62, The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate %IF CAXIS=1 %THEN %CXCYCLE %ELSE %NOCYCLE parameters and logic required to convert the raw EdgeCAM data into usable CNC code. %ENDM Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be In the above example, by the Wizardthe macro definition CX.OUTPUT will only occur when set to Axial subsequently updated redirection to without losing the manual changes. mode. It is also important to understand the consequence of %NOCYCLE when encountered in C/Y Axis mode. This document contains information to 1 andyouand it is therefore necessary to test the system variable Redirection will occur through macros help 2, produce a customised Code Generator parameter source file specifically for 1 and 2 which must call apractice, a previously tried and tested output. for a similar CNC CAXIS in macros a particular controller. In user-defined procedure to effect axis text file controller would be edited to produce a customised source file, or final adjustments made to a file If the Codefrom the Code Wizard and its templates. it can be disabled in switch 20 of the MM line for faster originating Generator does not require %CXCYCLE, processing (see MM Line). Controller compensation is available in Radial and Axial modes. not supported when using CXCYCLE in Axial Turning. Note that Controller compensation is
140
ROT1 Rotary angle (same as CMOVE but is available for compatibility with rotary milling)
Arc Motion The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code CSTART Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate RSTART and logic required to convert the raw EdgeCAM data into usable CNC code. parameters CCENTRE RCENTRE files may be created via the interactive facilities of the Code Wizard or may be written directly Source text using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be CEND subsequently updated by the Wizard without losing the manual changes. REND This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
141
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
142
54 - CCLW 165 - TOOLCHANGE The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 66 - CX.OUTPUT 166 - SELECT TURRET Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw DWELL 69 - ANGCLW 172 - EdgeCAM data into usable CNC code. 70 - ANGCCLW 182 - TRANSLATE Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 151 - MOVE RAPID 186 - TECHNOLOGY using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. 152 - MOVE FEED 190 - MOVE HOME 153 - MOVE ARC 191 - MOVE TOOLCHANGE This document contains information to help you produce a customised Code Generator parameter source 155 - PROFILE CYCLE 193 - TURNING AXIAL OR RADIAL file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC MODE controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates. 156 - AREACLEAR CYCLE 196 - MOVE RELATIVE 2 157 - SLOT CYCLE 197 - MOVE CONSTRAINED 253 - B Axis Index 158 - CROSSHATCH CYCLE
Wire Notes
Output for wire erosion machines is different to that of either Milling and Turning. Pathtrace have developed a method to access data, which is used in EDGEWIRE.WXT. What follows is a description of this technique, and we recommend that it is used in all EdgeCAM Wire Code Generators. Four axis CNC output is performed through two macros, Macro 17, Machine Design and Macro 26, Cut Glue Stop. Information about the upper and lower profiles is made available in the XPOINT(), YPOINT(), ZPOINT() array. All data required for both cycle output and expanded output (that is, point to point links for XYUV output) is contained within this array. This array is composed of the three variables and is of variable length.
143
For each pair of entities being linked (upper and lower), the X, Y ,ZPOINT() array is filled with: The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 1. Header block. Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters andthe XY entity. to convert the raw EdgeCAM data into usable CNC code. 2. Block for logic required
3. Block for the UV entity. Source text files may be created via thefor longhand output. of the Code Wizard or may be written directly 4. Block of expanded data required interactive facilities
using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be The array is loaded from the Wizard through to the value indicated by the subsequently updated byelement onewithout losing the manual changes. system variable LAST. Guide height values are only applied to longhand output. Code Generators working at guide heights This document contains information to help you produce a customised Code Generator parameter source should have taper mode disabled and 4-axis circular arcs should be converted to linear moves. file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
144
XPOINT()
YPOINT()
ZPOINT()
#UVENDBEAR
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code End bearing of UV element Start lead angle End lead angle Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. 3 #STARTSIDE #ENDSIDE #XYUVPAIRS Number of xyuv pairs for long hand output Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is #TYPE manually it cannot be altered 4 #XYELEMENT #UVELEMENT subsequently updated by the Wizard without losing the manual changes. Element type on XY profile, see Element type on UV profile, Element type couple below see below See below This document contains information to help you produce a customised Code Generator parameter source 5 #XYNEXTSTARTBEAR Not used file specifically for a particular controller. In #UVNEXTSTARTBEARtried and tested text file for a similar CNC practice, a previously controller Start bearing of next XY element End bearing of next UVfinal adjustments made to a file would be edited to produce a customised source file, or originating from the Code Wizard and its templates. element
6 #XYNEXTELEMENT #UVNEXTELEMENT #NEXTTYPE
EdgeCAM Wire Erosion can effectively link any two of four entity types to each other, giving a possible sixteen combinations, for example a Line can be linked to a Point.
Copyright 1988-2004 Pathtrace Engineering Systems. CONIC (not arc). The user defined variable #TYPE is set up The four entities are POINT, LINE, ARC, and All rights reserved.
#TYPE returns the sum of the XY and UV couple. For example: %IF #TYPE=33 %THEN %CALL=LINE_TO_POINT When TYPE is checked, an internal procedure to handle this case can be called. Within this procedure, a check is made to determine whether to use long hand output or cycle output.
145
XPOINT()
YPOINT()
ZPOINT()
2 #XEND #YEND #ZEND The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code X end of line X containing Generator or "Machine Tool" file from Y end of line a man-readable source text fileend of line all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Procedure : UVLINE Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Index XPOINT() YPOINT() ZPOINT() using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. 1 #USTART #VSTART #WSTART U start of line V start of line W start of line
This document contains information to help you produce a customised Code Generator parameter source 2 #UEND #VEND #WEND file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC U end of line W end of line controller would be edited to produce V customised source file, or final adjustments made to a file a end of line originating from the Code Wizard and its templates. Procedure : XYARC Index
1
#XEND
Copyright 1988-2004 of arc X end Pathtrace Engineering Systems. All rights reserved. Y end of arc
YPOINT() #VCENTRE V centre of arc #VEND V end of arc #UVARCENDANGLE UV arc end angle
146
YPOINT() #YPOINT Y point ZPOINT() #ZPOINT Z point
XPOINT() #UPOINT
U point V point W point The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code. At this point all applicable user defined variables are now initialised. Therefore in the example under Array Structure where #TYPE = 33 we would call the procedures XYLINE and UVPOINT. Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Other procedures used in WIREDATA.MAC are: using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes. %PROCEDURE = CALC_ARC_CORNER This calculates the corner point on a blend radius between two lines and the start point of an arc. This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Use the procedure by: %CALL = CALC_ARC_CORNER %PROCEDURE = TEST_ARC This procedure should be used to determine if the arc to arc move can be supported via the control or if long hand output is required. TEST_ARC sets up a variable #ARCTYPE which returns the value: Unsupported arc #ARCTYPE=0 Standard 2D arc #ARCTYPE =1 Standard taper conical #ARCTYPE = 2 Standard taper cylinder #ARCTYPE = 3 Taper with different start/end tapers #ARCTYPE = 4 Use the procedure by: %CALL = TEST_ARC
%PROCEDURE = WIRE_VECTOR This procedure calculates the IJK vectors of the wire. Values returned are: #IVECTOR = X #JVECTOR = Y #KVECTOR = Z (The resultant is a unit vector.) Use the procedure by:
147
%CALL = WIRE_VECTOR The vectors are calculated from #XEND #YEND Z U V W The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Ensure that these variables are correctly set before calling thistext file containing all the appropriate Generator or "Machine Tool" file from a man-readable source procedure. parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
148
Procedure : GETPAIR Index XPOINT() YPOINT() ZPOINT() The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 1 #XEND #YEND #ZEND Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters#UEND required to convert #VEND EdgeCAM data into usable CNC code. and logic the raw 2 #WEND
All link text which include conics should be forced to be long the Code Wizard an internal procedure Sourcetypesfiles may be created via the interactive facilities of hand code, using or may be written directly LONG_HAND. text editor. Please note that if external procedure GET_PAIR to process the cannot be using a suitableThis procedure in turn calls thea Code Wizard source file is altered manually itexpanded links. subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
149
The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters and logic required to convert the raw EdgeCAM data into usable CNC code.
Source text files may be created via the interactive facilities of the Code Wizard or may be written directly using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
150
6 - 2D DESTRUCT
15 - MACHINING CONDITIONS
17 - MACHINE DESIGN 55 - SUBSTART The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code 22 - DWELL 56 - SUBEND Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate parameters SUPPORT TAG to convert 58 - raw EdgeCAM data into usable CNC code. the END 26 - CUT and logic required 29 - COMPENSATION 59 - SUBCALL Source text files may be created via the interactive facilities of the Code Wizard or may be written directly 32 - TRANSLATE 60 - RESET using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be subsequently updated by the Wizard without losing the manual changes.
This document contains information to help you produce a customised Code Generator parameter source file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC controller would be edited to produce a customised source file, or final adjustments made to a file originating from the Code Wizard and its templates.
Copyright
(C)1988-2004 Pathtrace Engineering Systems. All rights reserved. Pathtrace Engineering Systems and its registered resellers or sub-resellers shall have no liability or responsibility to the licensee or any other person or entity with respect to any liability, loss or damage caused or alleged to be caused directly or indirectly by this product, including but not limited to any interruption of service, loss of business or anticipatory profits or consequent damages resulting from the use or operation of this software.
151
Microsoft, Windows and Windows NT are registered trademarks of Microsoft Corporation. MemoHASP is a registered trademark of Aladdin Knowledge Systems Ltd. NetSentinel is a trademark of Rainbow Technologies, Inc. OpenGL(r) and Optimizer are trademarks of Silicon Graphics Inc. The Code Generator Compiler is an integral part of the EdgeCAM suite of software. It creates a Code Parasolid is a trademark of Unigraphics Solutions Inc. Generator or "Machine Tool" file from a man-readable source text file containing all the appropriate Autodesk Inventor (tm) is a trademark of Autodesk Inc. parameters and logic required to convert the raw EdgeCAM data into usable CNC code. SolidWorks is a registered trademark of SolidWorks Corporation. Solid Edge is a registered trademark of EDS Inc. PTC, Pro/DESKTOP, Pro/ENGINEER(r), GRANITE (tm) One, are trademarks or registered trademarks of Source text files may be created via the interactive facilities of the Code Wizard or may be written directly Parametric Technology Corporation or its subsidiaries in the U.S. and in other countries. using a suitable text editor. Please note that if a Code Wizard source file is altered manually it cannot be AutoCAD and DXF are registered trademarks of Autodesk Inc. subsequently updated by the Wizard without losing the manual changes. MicroStation is a trademark of Bentley Systems Inc., an affiliate of Intergraph Corporation. IGDS is a trademark of Intergraph Corporation. EdgeCAM Simulator and EdgeCAM Verify use technology developed by Lightworks Designs Ltd. This document contains information to help you produce a customised Code Generator parameter source ACIS is a trademark of Spatial Technology, Inc., and was developed in co-operation with Three-Space, Ltd., file specifically for a particular controller. In practice, a previously tried and tested text file for a similar CNC Cambridge, England, and Applied Geometry Corporation, Seattle, Washington. controller would be edited to produce a customised source file, or final adjustments made to a file Other brands and product names are its templates. originating from the Code Wizard and trademarks of their respective owners. The information contained within this document is subject to change without notice and does not represent a commitment on the part of the vendor. The software described in this document is furnished under a licence agreement and may only be used or copied only in accordance with the terms of the agreement.
Pathtrace Engineering Systems 45 Boulton Road Reading Berkshire England RG2 0NH Telephone +44 Systems. All 6084 Facsimile +44 (0)118 975 6143 Copyright 1988-2004 Pathtrace Engineering(0)118 975 rights reserved. http://www.edgecam.com