GPost Manual
GPost Manual
7
Overview and Command Reference
This manual and accompanying software are copyrighted and contain proprietary information belonging
to Austin N.C., Inc. This manual may not be copied, photocopied, reproduced, translated, or reduced to
machine-readable form without the prior written consent of Austin N.C., Inc. No copies of the manual
may be sold to any person or other entity.
Austin N.C., Inc. makes no warranty, expressed or implied, with respect to this manual, the
accompanying software, and any other related items, their quality, performance merchantability, or fitness
for any particular use. It is solely the purchaser’s responsibility to determine their suitability for any
particular purpose. Austin N.C., Inc. will in no event be held liable for direct, indirect, or incidental
damages resulting from any defect or omission in the software or other related items and processes,
including but not limited to any interruption of services, loss of business or anticipatory profit, or other
consequential damages. This statement of limited liability is in lieu of all other warranties or guarantees,
expressed or implied, including warranties of merchantability and fitness for a particular purpose. Austin
N.C., Inc. neither assumes nor authorizes any person to assume for it any other warranty or liability in
connection with the sale of its products.
Product Improvements
The information in this document is subject to change without notice and should not be construed as a
commitment by Austin N.C., Inc. Austin N.C., Inc. assumes no responsibility for any errors that may
appear in this document.
G-Post Reference Manual
Version 6.7
February, 2017
Notice of Trademarks
MAN-GP
Read This First!
Chapter 1 begins with an overview of how this manual is set up.
Chapter 2 explains the configuration of the G-Post. You really need to read this chapter. (It’s short, and
won’t take you long.)
Chapter 3 explains the Option File Generator in detail. This is another chapter that you should read.
Chapter 4 explains the G-Post command language, the syntax and the commands that are available to you as a
programmer.
Chapter 5 lists the Lathe Common Variables. This is a reference chapter and can assist you while writing FIL
routines.
Chapter 6 lists the Mill Common Variables. This is a reference chapter and can assist you while writing FIL
routines.
Chapter 7 lists the default setting of the G-Post, both Lathe and Mill. This is a reference section.
Chapter 8 explains the UNCMRG merging postprocessor. If you need to merge output from several
postprocessors please read this chapter.
Chapter 9 explains the 4-Axis Merging Lathe options in the Lathe G-Post.
Chapter 11 explains the use of the HTML Packager and Simulation file generation.
Chapter 12 contains Appendix A, an ASCII character chart and Alpha character chart for your reference.
Chapter 13 contains Appendix B, which discusses some additional features of the G-Post that were added to
satisfy particular machine tools.
We have put a detailed index at the end of the manual so you can find what you need, quickly.
We hope that after you read the manual, you will let us know what you liked or disliked about it. We encourage
your comments as they help us to improve our products. (Besides, how often do you get a chance to tell us what
to do?)
Table of Contents
Table of Contents
1 OVERVIEW 1-1
1.1 INTRODUCTION TO G-POST 1-1
1.2 G-POST SUMMARY 1-3
1.2.1 Customization 1-3
1.2.2 Output Files 1-3
1.2.3 Command Reference 1-4
1.3 MANUAL CONVENTIONS 1-4
1.3.1 Notes, Cautions, and Warnings 1-4
2 CONFIGURATIONS 2-1
2.1 LATHE G-POST - UNCL01 2-1
2.2 MILL G-POST – UNCX01 2-2
2.3 UNITS OF MEASURE 2-3
2.3.1 Switchable Inch/Metric Machine 2-3
2.3.2 Inch Only Machine 2-4
2.3.3 Metric Only Machine 2-4
2.4 MACHINE TOOL CONFIGURATIONS 2-4
2.4.1 Lathe Configurations 2-4
2.4.1.1 First Quadrant Lathe 2-4
2.4.1.2 Fourth Quadrant Lathe 2-5
2.4.1.3 Vertical Lathe VTL 2-5
2.4.1.4 Multiple Turret Lathe - Same Slide (Fixed X) 2-6
2.4.1.5 Multiple Turret Lathe - Separate Slide (Adjustable X) 2-7
2.4.1.6 2+2 Lathes 2-8
2.4.2 Mill, Wire EDM, Live Tooling Lathe Configurations 2-9
2.4.3 Mill-Turn Configurations 2-11
2.5 MILL MOTION ANALYSIS 2-13
3 THE OPTION FILE GENERATOR 3-1
3.1 INTRODUCTION 3-1
3.1.1 First, a Few Words… 3-1
3.1.2 What You Need to Know 3-1
3.1.3 What You Need to Have 3-2
3.2 HOW TO USE THE OPTION FILE GENERATOR 3-2
3.2.1 Overview of the Option File Generator 3-2
3.2.2 First Things First: Plan 3-3
3.3 STARTING THE OPTION FILE GENERATOR 3-4
3.3.1 Introduction 3-4
3.3.2 Starting from CIMpro 3-4
3.3.3 Stand Alone Operation 3-5
3.3.3.1 Setting up a Windows Shortcut: 3-5
3.4 USING THE OPTION FILE GENERATOR 3-6
3.4.1 Creating a New Post Processor Option File 3-7
3.4.2 Opening an Existing Post Processor Option File 3-10
3.4.3 Option File Generator Main Menu 3-12
3.4.3.1 Main Menu Area 3-13
3.4.3.2 Main Panel 3-13
3.4.3.3 Tool Bar 3-19
3.4.3.4 Pull Down Menus 3-20
3.4.3.4.1 File Menu 3-20
3.4.3.4.2 Window Menu 3-21
3.4.3.4.3 Utilities Menu 3-21
3.4.3.4.4 Help Menu 3-21
3.4.3.5 Current Files 3-22
ToC-i
Table of Contents
ToC-ii
Table of Contents
ToC-iii
Table of Contents
ToC-iv
Table of Contents
ToC-v
Table of Contents
ToC-vi
Table of Contents
14 GLOSSARY 14-1
ToC-vii
Table of Figures
Table of Figures
FIGURE 1 APT-G-POST SYSTEM FLOW CHART ......................................................................................................... 1-1
FIGURE 2 CAD/CAM – G-POST SYSTEM FLOW CHART ........................................................................................... 1-2
FIGURE 3 FIRST QUADRANT LATHE............................................................................................................................ 2-4
FIGURE 4 FOURTH QUADRANT LATHE ....................................................................................................................... 2-5
FIGURE 5 VTL ............................................................................................................................................................ 2-5
FIGURE 6 MULTIPLE TURRET LATHE ( FIXED X) ........................................................................................................ 2-6
FIGURE 7 MULTIPLE TURRET LATHE (ADJUSTABLE X) .............................................................................................. 2-7
FIGURE 8 2 + 2 LATHES ............................................................................................................................................. 2-8
FIGURE 9 MACHINE TOOL AXIS CONFIGURATION ................................................................................................... 2-10
FIGURE 10 POSTPROCESSING MODEL ........................................................................................................................ 3-3
FIGURE 11 CIMPRO MAIN SCREEN ............................................................................................................................ 3-4
FIGURE 12 OPTION FILE GENERATOR ICON ................................................................................................................ 3-5
FIGURE 13 START UP SCREEN .................................................................................................................................... 3-6
FIGURE 14 CREATING A NEW OPTION FILE ................................................................................................................ 3-7
FIGURE 15 CREATING A NEW OPTION FILE ................................................................................................................ 3-7
FIGURE 16 SELECTING THE MACHINE TYPE ............................................................................................................... 3-7
FIGURE 17 SPECIFYING THE POSTPROCESSOR NUMBER............................................................................................... 3-8
FIGURE 18 METHOD OF INITIALIZATION ..................................................................................................................... 3-8
FIGURE 19 INITIALIZING FROM A SYSTEM SUPPLIED DEFAULT OPTION FILE ............................................................... 3-9
FIGURE 20 SPECIFY THE TITLE FOR THE NEW OPTION FILE ........................................................................................ 3-10
FIGURE 21 OPEN AN EXISTING OPTION FILE ............................................................................................................ 3-10
FIGURE 22 OPEN AN EXISTING OPTION FILE ............................................................................................................ 3-11
FIGURE 23 OPENING EXISTING OPTION FILES ........................................................................................................... 3-11
FIGURE 24 OPTION FILE GENERATOR MAIN MENU SCREEN..................................................................................... 3-12
FIGURE 25 OPTION FILE GENERATOR LAYOUT ........................................................................................................ 3-13
FIGURE 26 MULTIPLE CHOICE SELECTION BOX ....................................................................................................... 3-14
FIGURE 27 ADDRESS REGISTER SELECTION BOX ..................................................................................................... 3-14
FIGURE 28 ADDRESS REGISTER FORMAT BOX ......................................................................................................... 3-15
FIGURE 29 REGISTER ADDRESS ORDERING .............................................................................................................. 3-16
FIGURE 30 MOVING REGISTER ADDRESSES .............................................................................................................. 3-16
FIGURE 31 EDIT BOX ................................................................................................................................................ 3-17
FIGURE 32 CALCULATOR ......................................................................................................................................... 3-17
FIGURE 33 ASCII CHARACTER BOX/TABLE ............................................................................................................. 3-17
FIGURE 34 FUNCTION CODE BOX ............................................................................................................................. 3-18
FIGURE 35 EDIT BOX WITH SPIN BUTTONS ............................................................................................................... 3-18
FIGURE 36 COMMON VARIABLE DOCUMENT SEARCH ENGINE ................................................................................. 3-19
FIGURE 37 TOOL BAR ICONS .................................................................................................................................... 3-19
FIGURE 38 PULL DOWN MENU ................................................................................................................................. 3-20
FIGURE 39 FILE MENU ............................................................................................................................................. 3-20
FIGURE 40 WINDOW MENU ...................................................................................................................................... 3-21
FIGURE 41 OPTIONS MENU ....................................................................................................................................... 3-21
FIGURE 42 HELP MENU ............................................................................................................................................ 3-21
FIGURE 43 CURRENT FILES BOX .............................................................................................................................. 3-22
FIGURE 44 CL POINTS AND THE CYCLE STATEMENT - LATHE ................................................................................ 4-19
FIGURE 45 CL POINTS AND THE CYCLE STATEMENT - MILL .................................................................................. 4-19
FIGURE 46 FIRST QUADRANT LATHE GAUGE LENGTHS......................................................................................... 4-160
FIGURE 47 FOURTH QUADRANT LATHE GAUGE LENGTHS .................................................................................... 4-161
FIGURE 48 VTL GAUGE LENGTHS.......................................................................................................................... 4-162
FIGURE 49 SECONDARY TURRET GAUGE LENGTHS ................................................................................................ 4-164
FIGURE 50 PRIMARY TURRET GAUGE LENGTH ...................................................................................................... 4-165
ToF-i
1 Overview
1 Overview
APT Source
APT
Processor
CL File
FIL File
1-1
G-Post Reference Manual
Figure 2 shows how you get from a CAD/CAM NC tool path file to a MCD (Machine Control Data) punch
file (.PU1) using the G-Post (generalized postprocessor).
APT XPOST
Processor or Processor
CL File
FIL File
1-2
1 Overview
UNCL01 is a generalized post processor for Turning machines or Lathes. UNCX01 is a generalized post
processor for Milling machines, Wire EDMs, Lasers, Punch Presses, etc.
1.2.1 Customization
There are three ways to customize a post processor for a particular machine tool control unit:
1. Option File: The Option File Generator enables you to set machine control parameters. When
creating a Lathe Option file, the Option File created is named UNCL01.Pnn, where nn is the machine
number you assigned. When creating a Mill, Wire-EDM, Laser or Punch Press Option file, the Option
File created is named UNCX01.Pnn, where nn is the machine number you assigned. The post
processor reads the option file to override the default values of G-Post to generate customized output.
See Chapter 3 of this manual for more information.
2. FIL File: The FIL (Factory Interface Language) is used to customize the post processor output.
FIL is a text based MACRO language. When using the Option File Generator, a template FIL file is
automatically created when you select Edit FIL in the Option File Generator Advanved menu. When
creating a Lathe Option File, the FIL File is named UNCL01.Fnn, where nn is the machine number
you assigned. When creating a Mill, Wire-EDM, Laser or Punch Press Option file, the FIL File is
named UNCX01.Fnn, where nn is the machine number you assigned. The post processor reads the
FIL file after reading the option file. See the FIL Manual for more information.
3. PLABEL: For minor changes, you can use the PLABEL commands in a APT or CL file to override
the default values. This is considered an obsolete feature but it is still fully supported by the G-Post.
See PLABEL in Chapter 4 of this manual for more information.
The post processor creates several files when it processes the CL data. By default it will create the MCD
(Machine Control Data) file, also know as the Punch file, (.PU1 or .TAP) and the Listing file (.LST). The
Option File can also be configured to output an HTML File (.HTM) and Simulation File (.TAB), see
Chapter 11 for more information about these files and their configuration.
The MCD file contains the information a specific machine needs to cut the part your tool path was defined
for. This output is based on the settings you chose in the Option File and any addtional customization done
via the FIL file.
The Listing file contains by default the output the post processor created during the run. This data is a
formated version of the data in the MCD file. The post processor can be configured to output additional
informaiton to the Listing file by means of the Option File or FIL file.
1-3
G-Post Reference Manual
This manual explains in detail the options and commands provided in the post processor, with examples to
process part programs. The examples assume you are using the post processor defaults.
Some of the commands in this manual may not apply to your particular machine tool.
A Caution contains very important information that you need to know to avoid losing or corrupting data
or accidentally causing minor damage. The following shows an example of a Caution:
A Warning contains extremely important information that that you need to know to avoid causing major
damage to person or property. The following is an example of a Warning:
Examples:
The manual frequently contains Examples to aid in the explanation of various commands. Those
Examples are shown in the following typeface:
GOTO/0,0,0
Examples of text or data that you are to enter is shown in boldface type, as shown: Type YES at the
prompt.
1-4
2 Configuration
2 Configurations
Introduction
This chapter describes how the Mill and Lathe post processors handle various machine tool configurations.
These sections are titled Lathe Configurations, Mill Configurations, Units of Measure and Mill Motion
Analysis.
The post processor uses the following two types of memory locations:
• Non-fractional numbers or integers. The manual refers to these as INTCOM variables. There are
~5000 INTCOM variables, see Chapter 5 for a full description of these common variables.
• Double precision fractional numbers or numbers that contain a decimal point. The manual refers to
these as DBLCOM variables. There are ~2000 DBLCOM variables, see Chapter 5 for a full
description of these common variables.
The variable type (INTCOM or DBLCOM) is identified by its subscript location within the post processor.
If you assign a number with a decimal portion to an INTCOM, the decimal portion of the number will be
truncated. If you assign an integer number to a DBLCOM variable, the decimal portion will contain zeroes
and the value of the number will be unchanged.
The above variable is in the INTCOM variable section and starts at location 470 in memory. It is twelve
locations long and contains twelve seperate values.
You can see that the next variable location on that list starts at 482. So the ICYCLG variable occupies
locations 470 through 481. These numbers, or locations, have significance when applied to the following
commands:
• DEBUGG/. This post processor command examines the contents of an INTCOM or DBLCOM
location. See Chapter 4 for a complete description of the DEBUGG command.
You can use these two commands within a part program or CL File to change the output of the post
processor. Use of these commands will override the variables set by the option file for the length of the run
only. They will not permanently change the option file or the post processor, so feel free to experiment with
these commands.
2-1
G-Post Reference Manual
Not all variables stay the same value for the duration of post processor execution. Some will change when
motion is processed, and others may change when a post processor word is used. Some are used as flags by
the post processor and should never be changed. The maximum amount of damage that can occur on an
in-house system is abnormal termination of the run, which may require clearing of the scratch files used by
the system..
These features are available for changing post processor output when the default output does not fit the
machine's required format. See Chapter 5 for a list of all the COMMON locations used in the post
processor. See Chapter 4 for a list of post processor commands, shown in reference format. Chapter 7
contains a list of default settings.
The post processor uses the following three types of memory locations:
• Non-fractional numbers or integers. The manual refers to these as INTCOM variables. There are
~5000 INTCOM variables, see chapter 6 for a full description of these common variables.
• Single precision fractional numbers or numbers that contain a decimal point. The manual refers to
these as RELCOM variables. There are ~902 RELCOM variables, see chapter 6 for a full description
of these common variables.
• Double precision fractional numbers or numbers that contain a decimal point. The manual refers to
these as DBLCOM variables. There are ~2000 DBLCOM variables, see chapter 6 for a full description
of these common variables.
The variable type (INTCOM, RELCOM, or DBLCOM) is identified by its subscript location within the
post processor. If you assign a number with a decimal portion to an INTCOM, the decimal portion of the
number will be truncated. If you assign an integer number to a RELCOM variable, the decimal portion will
contain zeroes and the value of the number will be unchanged.
The above variable is in the INTCOM variable section and starts at location 470 in memory. It is twelve
locations long and contains twelve seperate values.
You can see that the next variable location on that list starts at 482. So the ICYCLG variable occupies
locations 470 through 481. These numbers, or locations, have significance when applied to the following
commands:
• DEBUGG/. This post processor command examines the contents of an INTCOM, RELCOM, or
DBLCOM location. See Chapter 4 for a complete description of the DEBUGG command.
• PLABEL/MODIFY. This post processor command changes the contents of an INTCOM, RELCOM,
or DBLCOM location. See Chapter 5 for a description of common variables and their locations.
Chapter 4 describes the PLABEL command in detail.
2-2
2 Configuration
Use these two commands within a part program or CL File to examine or override the variables set by the
option file. Use of these commands will override the variables set by the option file for the length of the run
only. They will not permanently change the option file or the postprocessor, so feel free to experiment with
these commands.
Not all variables stay the same value for the duration of post processor execution. Some will change when
motion is processed, and others may change when a post processor word is used. Some are used as flags by
the post processor and should never be changed. The maximum amount of damage that can occur on an
in-house system is abnormal termination of the run, which may require clearing of the scratch files used by
the system.
These features are available for changing post processor output when the default output does not fit the
machine's required format. See Chapter 6 for a list of all the COMMON locations used in the post
processor. See Chapter 4 for a list of post processor commands, shown in reference format. Chapter 7
contains a list of default settings.
Note: The default values and examples in this manual denote inch units unless specified otherwise.
2-3
G-Post Reference Manual
The post processor accepts inch or metric CL data and generates inch output. When the input and output
units are the same, the post processor performs no conversion. When they are different, it performs the
conversion from metric to inch. The post processor assumes that CL coordinates and the unit related values
in post processor commands are expressed in inches for inch input and in millimeters for metric input.
The post processor accepts inch or metric CL data and generates metric output. When the input and output
units are the same, the post processor performs no conversion. When they are different, it performs the
conversion from inch to metric. The post processor assumes that CL coordinates and the unit related values
in post processor commands are expressed in inches for inch input and in millimeters for metric input
This section shows you how the Lathe G-Post handles some common lathe configurations.
CL +Y
LATHE +X
CL +X LATHE +Z
The turret is positioned in the first quadrant. You must define the part in the same quadrant.
2-4
2 Configuration
CL +X
LATHE +Z
CL -Y LATHE -X
The turret is positioned in the fourth quadrant; the part must be defined in the same quadrant.
CL +Y
VTL +Z
CL +X VTL +X
Figure 5 VTL
The turret is positioned in the first quadrant; you must define the part in the same quadrant.
2-5
G-Post Reference Manual
The post processor converts CL X to Lathe Z and CL Y to Lathe X. When using the secondary turret, axes
output reflects the primary turret position, adjusted by the fixed distances measured along the CL Y axis
and the CL X axis..
CL +Y
LATHE +X
Rear Rear
Turret Turret
CL +X LATHE +Z
Front Front
Turret Turret
CL -Y LATHE -X
The primary turret is the front turret. The default distance from the primary turret to the secondary turret in
the CL coordinate system is CL Y=+15.0 and CL X is not adjustable (CL X=0.0). When using the front
turret, you must define the part in the fourth quadrant. When using the rear turret, define the part in the first
quadrant.
2-6
2 Configuration
The post processor converts CL X to Lathe Z and CL Y to Lathe X. When using the secondary turret, axes
output reflects the primary turret position, adjusted by the fixed distances measured along the CL Y axis
and the CL X axis.
CL +Y LATHE +X
Rear Rear
Turret Turret
LATHE +Z
CL +X
Front
Front Turret
Turret
LATHE -X
CL -Y
The primary turret is the front turret. The default distance from the primary turret to the secondary turret in
the CL coordinate system is CL Y=+15.0 and CL X=10.0. When using the front turret, you must define the
part in the fourth quadrant. When using the rear turret, define the part in the first quadrant.
2-7
G-Post Reference Manual
The post processor converts CL X to Lathe Z and CL Y to Lathe X. When using the secondary turret, axes
output reflects the turret selected.
CL +Y
LATHE +X
Rear Rear
Turret Turret
CL +X LATHE +Z
Front Front
Turret Turret
CL -Y LATHE -X
Figure 8 2 + 2 Lathes
The primary turret is the front turret controlled by XZ axes. The secondary turret is the rear turret
controlled by UW axes.
When using the front turret, define the part in the fourth quadrant. When using the rear turret, define the
part in the first quadrant.
2-8
2 Configuration
Milling machines with contouring rotary axes have two basic configurations: a part-moving axis, a tool-
moving axis and a live tooling lathe. If the part moves when the table rotates, the machine has a part-
moving axis. If the machine moves when the head rotates, the machine has a tool-moving axis.
Live Tooling Lathes can be configured with the tool axis parallel to the Lathe Z axis or perpendicular to the
Lathe Z axis.
2. Four-axis rotary table. The machine has three linear axes of tool motion. The part rotates about one
rotary axis.
3. Four-axis rotary head. The machine has three linear axes of tool motion. There is one rotary axis of
tool motion.
4. Five-axis dual rotary table. The machine has three axes of linear motion. The part has two axes of
rotation.
5. Five-axis rotary table with rotary head. The machine has three axes of linear motion. The machine
rotates on one axis, and the part rotates on one axis.
6. Five-axis dual rotary head. The machine has three linear axes and two rotary axes.
2-9
G-Post Reference Manual
You describe the machine tool type to the postprocessor when you select the Machine Tool Type panel
in the Option File Generator. You can change the physical address of the axes at any time after you have
defined the axis.
Z (+ or -)
Y (+ or -)
C Axis
B Axis
A Axis
X (+ or -)
2-10
2 Configuration
For a Mill-Turn machine, the Mill G-Post can now support both milling and turning modes. Before you had
to use the UNCMRG/Merge option with multiple post processor executions (See chapter 8 of this manual
for full details on UNCMRG). We recommend you use this new method. You can set the various mill-turn
modes in the option file generator panels. The Mill-Turn mode is available for the 1 Rotary/1 Radial (Live
Tooling) and 5 Axis Rotary Table / Rotary Head (C – Table/B – Head) machine tool types only.
Note: You can continue to use UNCMRG/Merge option if you choose, it is fully supported. I you choose
to use this method do not select the Mill-Turn mode check box on the Machine Tool Type screen. Set the
Merging Post option (INTCOM(1868)=1) in the Start/End of Program screen as before.
Mill mode:
The G-Post has two new commands, MODE/MILL and SPINDL/PARLEL,[ZAXIS-XAXIS] to specify
the desired tool axis condition. You can freely switch between these in your input program.
You must specify the input coordinates to be in the Machine coordinates as (X,Y,Z) for both spindle
configurations. If your input file is in any other format, you can convert via the transformation panel or use
TRANS/matrix,OPTION,11 command in your input file.
When SPINDL/PARLEL,ZAXIS is in effect, you would be doing "end work" with XC and Z-axis output
to profile or drill at the end of the part.
When SPINDL/PARLEL,XAXIS is in effect, you would be doing "side work" with XC and Z-axis output
to profile or drill at the side of the part.
In either of these conditions, some machines support a Y-axis stroke instead of the combined ZC or XC
output. In this case, the command MODE/YAXIS,[ON-OFF-AUTO] is supplied to be used in your input
program to enable or disable the Y axis output.
When the AUTO mode is set, make sure you set the Y-stroke limits on your machine. The G-Post will
automatically output either the machine Y or XC and ZC when programmed Y-axis is within the set limits.
Turn mode:
You can set the G-Post in the turning mode instead of the milling mode at start of the program. The new
command MODE/TURN can also be given in your input program to switch between the MILL and TURN
modes.
Optionally you can specify the input coordinates to be in the Machine or APT like part system. The default
is similar to the Mill mode as in (X,0,Z), where X is the lathe radius and Z is along the centerline.
Turret section:
For turning mode, the tool changes should be done using the TURRET command to get the G92 pre-set
blocks etc instead of the LOADTL command as in the milling mode. You can also set options like X output
in diameters and G92 pre-set for tool tip programming conditions.
Spindle section:
Here you can specify options for CSFM programming and the R-output for the control to determine the
initial RPM value.
2-11
G-Post Reference Manual
Thread section:
Single point G33 type threading is supported and the options for Lead register and modality are set in this
section. The input program will supply THREAD/ON command followed by the GOTO to enable
threading motion as before.
CAM systems can generate a complete threading cycle with THREAD/AUTO or THRDSQ commands.
You can let the G-Post convert this into multiple G33 blocks. If you prefer to handle this in FIL, then
select the option Do not expand and write your FIL code to parse THREAD/AUTO command and
output the desired blocks.
Note: This option must be set in the option file and cannot be set/reset using FIL.
Note: there is no option file number with this command. This indicates the use of new mill-turn mode
instead of the merge method using UNCMRG.
Under MODE/MILL, there are three new commands to further control milling operations.
MODE/TURN Specifies turning mode. With this, you can specify normal turning/facing operations with
GOTO/commands. Also the commands PITCH and THREAD/ON are now enabled for threading.
In addition, the complete CYCLE/commands and circular motion are fully supported for all
configurations in milling and turning modes.
Sample program:
PARTNO TEST
MACHIN/UNCX01,1 $$ SET UP A LIVE TOOLING MACHINE IN OPTFILE
MODE/TURN $$ TURNING MODE
TURRET/1,1
SPINDL/300
FEDRAT/10
FROM/10,10,0
GOTO/10,1,0 $$ TURNING OPERATION
GOTO/1,1,0
RAPID
GOTO/10,10,0
GOTO/10,1,0 $$ THREADING OPERATION
PITCH/8
THREAD/ON
GOTO/1,1,0
RAPID
GOTO/10,10,0
MODE/MILL $$ MILLING MODE SPINDL PARLEL TO Z-AXIS
SPINDL/PARLEL,ZAXIS
2-12
2 Configuration
FROM/10,10,10
GOTO/10,1,5
MODE/YAXIS,ON $$ USE Y OUTPUT INSTEAD OF XZC
GOTO/10,-1,5
RAPID
GOTO/10,10,10
MODE/MILL $$ MILLING MODE SPINDL PARLEL TO X-AXIS
SPINDL/PARLEL,XAXIS
MODE/YAXIS,AUTO $$ AUTOMATIC Y OUTPUT INSTEAD OF XZC IF IN LIMITS
GOTO/10,1,5
GOTO/10,-1,5
RAPID
GOTO/10,10,5
END
FINI
• When the spindle is advancing, the post processor outputs XY and ROTARY as one block and then
outputs Z as a separate block.
• When the spindle is retracting, the post processor outputs Z as one block and then outputs XY and
ROTARY as a separate block.
2-13
3 Option File Generator
3.1 Introduction
The Option File Generator (OFG) is an application that is used to create and/or modify an Option File.
Option Files are used to configure a post processor to the user’s specifications. The Option File is read by
the G-Post at execution time and pre-configures the post processor’s internal variable table prior to reading
the tool path or CL file.
The OFG has gone through many changes since it was first introduced back in the early 1980‘s. Most of
those changes were refinements and enhancements introduced as a result of the experience gained from
having the application out in “real world“ manufacturing environments. This is where we had to make it do
the job for our customers. As a result the OFG has evolved to have many new features that make it easier
for a user to create a post processor for their NC/CNC machine tools.
This latest version of the OFG has been updated to take advantage of the many advancements that
Graphical User Interface (GUI) technology offers. These interface enhancements have dramatically
improved the application’s presentation of complex concepts by the use of graphical tools such as spin
buttons, bitmap images and special widgets. In addition, the OFG provides a constant environment where
both the Option File and it’s associated FIL file (see the FIL Manual for more information) are presented as
a complete package for the user.
Finally, the OFG has a complete and context sensitive help feature that takes advantage of the help
presentation features of today’s modern GUI interfaces. The full details of the process of creating a
postprocessor for your machine are documented on-line where you can get immediate help on any feature
or concept about which you might be unclear.
Before we explain the Option File Generator (OFG), you need to know what assumptions we are making
about you and the experience you have.
The Option File Generator (OFG) is an application that is much easier to use and understand than any of its
predecessors but you will be much more successful if you possess the following skills and/or knowledge:
3-1
G-Post Reference Manual
You must have the following to use the Option File Generator (OFG) and the resulting files produced.
This manual refers to other Austin N.C., Inc. manuals in several places. You will need the following
manuals:
• Interactively create an Option File that will configure a post processor for your NC/CNC
machine/control requirements.
• Provide an interface for creating/editing a FIL file for any specialized post processor requirements.
• Create your post processor from existing templates or post processors you may have already created.
You do this by writing an Option File called UNCL01.Pnn (if you are using the Lathe G-Post) or
UNCX01.Pnn (if you are using the Mill G-Post). The nn in the file name represents the machine number
you assigned to when you initialized the Option File Generator. If you choose to utilize the advanced
features of FIL, an additional file will be created using the same file naming convention but the file
extension will begin with F. For example, to use FIL with the Lathe G-Post, you would have an Option File
UNCL01.Pnn and a FIL file UNCL01.Fnn. If you need help creating a FIL file, see the Factory
Interface Language (FIL) manual.
3-2
3 Option File Generator
CL File
Lathe Mill
UNCL01.Pnn G-Post G-Post UNCX01.Pnn
Before you begin the process of creating a post processor you will want to gather some information about
your machine and it’s controller. The following list is an example of the information you will be required to
know in order to build your post processor.
3-3
G-Post Reference Manual
3.3.1 Introduction
The Option File Generator and the G-Post are intrinsic components of Austin N.C., Inc.’s programming
systems: CIMpro and AutoPRO. In addition, they can be purchased seperately for use with many of the
popular CAD/CAM systems that are capable of producing tool path (CL) data files. This chapter discusses
the methods used to start the Option File Generator in each of those environments.
CIMpro is the Graphical User Interface (GUI) that provides the user with easy accessability to the APT and
G-Post Systems. These software packages have been the core of Austin N.C., Inc.’s NC business for over
30 years.
The CIMpro GUI application provides easy access to the applications and files a user works with to create
machine data. Starting the Option File Generator from CimPRO selecting Applications then Configure
G-Post (via Option File Generator) from the pull-down menus or use the Option File Generator
Button, it is the ninth one and is red and white with pictures of a wrench and screwdriver.
3-4
3 Option File Generator
You may also create a shortcut or icon to start the Option File Generator in stand alone mode if you desire.
The following is a description of the procedure to set up a shortcut for MicroSoft Windows. For any further
assistance with Windows please consult your Windows documentation.
1. Position the cursor on the Windows desktop area so that it is not on an active application, an icon or
any task bar.
2. Click the right mouse button once.
3. A small menu will appear. From this menu click the left mouse button on New.
4. Another menu will appear. From this menu click the left mouse button on Shortcut.
5. An application screen will appear titled Create Shortcut. There is a field where you will need to
enter the full path to the application for the Option File Generator . The path will consist of the disk on
which you installed the system with the following directory/file information. If you installed the
CIMpro system on the C: drive, your entry would look like this.
C:\ANC\CAMSYS\OPTFILE.EXE
3-5
G-Post Reference Manual
At this point you may either create a new option file or open and existing option file.
3-6
3 Option File Generator
To create a new option file you can select File from the pull down menu.
After selecting New you must specify the type of option file you are creating from the following dialog
box:
3-7
G-Post Reference Manual
Next you must specify the machine number for this option file using the following dialog box:
The Option File Generator will find the next available option file number and automatically fill in the
Machine Number box. You can either accept the recommended machine number or you can type in a
new number in the Machine Number box. If you want to store the option file on another disk or in a
different directory you can use the Drives and Directory area to change these locations. A list of existing
option files will be grayed out as it is a reference. Once the option file number is selected, select the Next
button.
Next you must select the Method of Initialization from the following dialog box.
3-8
3 Option File Generator
To make your selection pick the method and click the Next button.
If you select option 1, Use the post processor defaults you will be prompted to specify the title for
the new option file. (Skip the next paragraph and Figure 19)
If you select option 2, Select a system supplied default option file or option 3, Select an existing
option file the following dialog box will appear. Option 2: You must select one of the option file
templates from the library directory (Normaly CAMLIB). Option 3: You can select any option file that you
have access rights to. You can navigate to the drive/directory of your choice using the window on the right
of this dialog box.
Once a template option file or existing option file has been selected click the Next button.
3-9
G-Post Reference Manual
You will then be prompted to specify the title for the new option file in the following dialog box.
Enter the desired post processor title then select the Finish button.
To open an existing option file you can select File from the pull down menu then select Open.
3-10
3 Option File Generator
After selecting Open you must select the option file to open from the following dialog box.
Select the desired option file by clicking on it then clicking on the right arrow and clicking the OK button
or by double clicking the option file name. Use the Browse... button to change the folder you wish to
view.
3-11
G-Post Reference Manual
Once the Option File Generator Main Menu appears you are ready to start customizing the option file.
The following will discuss how to move around throughout the Option File Generator and how to make
changes to the different features of G-Post.
3-12
3 Option File Generator
To start the Option File Generator screen is divided into several sections as follows.
The area of the Option File Generator pointed out by the Main Menu Area caption above is a vertical
menu used for selecting the different post processor function categories to modify. To select a different
category just click on the category title and the information in the Main Panel Area will change to
activate selection features associated with the chosen category.
This area will dynamically change according to the current category selected. In some categories this
section will have multiple tabs (or sub-panels, see figure 26) available for selection at the top of the main
panel. To select different sub-panels just click on it’s tab.
To modify or change information on these pages there are several different methods employed. To activate
the modification mechanism you must typically position the cursor onto the subject area or field and click
the left mouse button. The different mechanisms are as follows:
• A selection box presents the current function selection and can be modified by clicking the left mouse
button in the selection box. A list of choices will appear where the current selection will be
highlighted. Move to the desired choice and click the left mouse button again. Your selection will be
activated and the list will disappear leaving your selection displayed.
3-13
G-Post Reference Manual
• A Register Box or Letter Address box can be modified by clicking the left mouse button on the
register or letter address. A list of addresses will appear where the current selection will be highlighted.
Move the cursor to the desired letter address and click the left mouse button again. The choice will be
activated and the list will disappear leaving your selection displayed.
3-14
3 Option File Generator
To set the format of a letter address register. The following dialog box will appear:
• Use the Spin Buttons to adjust the Before decimal and After decimal output for inch and metric
modes. Use the check boxes in the Output section to specify the output state of leading zeros, trailing
zeros, plus sign and the decimal point. To set the format on a different letter address register, click the
left mouse button on the on the letter address in the upper left hand corner of this dialog box and the
register address selection box will allow you to select another letter address. When you have finished
formatting the letter addresses select the Close button.
• You can apply format settings to multiple register addresses through use of the Copy and Paste
buttons. A typical circumstance where this is handy is a change to the format for motion registers.
Normally if one of the XYZIJK register addresses change, the requirements is for all of those
addresses must change.
Assume you have set the X-axis register address to the desired format. Simply position the cursor on
the Copy button and click the left mouse button, the Register area will now say Copy & Paste.
Now position the cursor on the Address area and click with the left mouse button. A list of the active
letter addresses will appear, select the letter you wish to copy this format to. The selected letter
address will now appear in the Address area. Click the Paste button, and the current format will be
applied to the new letter address. You can repeat this process with as many letter addresses as you
wish. To complete the Copy & Paste operation click on the OK button.
3-15
G-Post Reference Manual
• All the letter addresses (registers) used by the G-Post are show on the File Formats -> MCD
File screen. On this panel you can add, delete, modify, reorder or change the description of any of the
defined letter addresses used in a given G-Post option file. To edit a given letter address click
on the address bar then click the Edit Selected Address button. The Register Settings box will
appear for that letter address.
• To rearrange the order of the letter addresses (registers) the MCD File Format menu has a
reposition feature. To use this position the cursor over the letter address you would like to move and
click the left mouse button. This will higfhlight the address bar. Click on the Move Selected
Address button, two arrows will appear allowing you to move the address bar up or down in the
order. Once you move the letter address to the desired location click on the Exit Move Mode
button. This will complete the move and return you to the previous screen view.
3-16
3 Option File Generator
• An Edit Box can be updated by positioning the cursor in the edit box, clicking the left mouse button
and typing in the desired information. Clicking on the symbol to the right of the Edit Box brings up a
calculator (See Figure 31).
Figure 32 Calculator
• An ASCII Character Box can be modified by positioning the cursor on the ASCII character box and
clicking the left mouse button. An ASCII character table will appear where the current selection will
be highlighted. Move the cursor to the desired character and click the left mouse button. The character
will be selected, the table will disappear and the selected character will be displayed in the ASCII
Character Box. If you wish to use an ASCII character not shown in the table, select enter value….
You will be prompted to enter the decimal value for the ASCII character desired. Enter the decimal
value and click the OK button. Any ASCII character can be selected, even non-printable characters.
3-17
G-Post Reference Manual
• A Function Code Box is used to allow specifying the decimal value to be output for preparatory
(typically G) and auxiliary (typically M) function codes. These codes can be modified by positioning
the cursor on the selection function’s edit box then clicking the left mouse button. The Function
Code Box will appear with a list of available codes where the current selection is highlighted. Move
the cursor to the desired code and click the left mouse button. The code will be selected, the list will
disappear and the selected value will be displayed.
If you select +100, you will be prompted to enter the code value. Type in any value between 0-999 and
either press the Enter key or use the mouse to select the OK button. The entered value will then be
displayed in the Edit Box.
Selecting Not Required will instruct the post processor that no code (G or M) is to be output for the post
processor command represented by the function. The post processor command will still be processed as if it
functions normally, just no code will be output.
Selecting Not Available will instruct the post processor that this particular function does not exist in the
post processor. Subsequent use of the post processor command the function represents will invoke a
warning message from the post processor or cause unintended output. USE WITH CAUTION!
• An Edit Box with a Spin Button can be updated by either clicking on the up arrow and down arrow
to change the value in the box or by selecting the box with the left mouse button and typing in the
value directly.
3-18
3 Option File Generator
• A special search engine in the post processor menu category Advanced -> Search is used to search
through the post processor common list for desired information. To use this search engine, enter a
string in the search box located in the lower left corner of the window. To execute the search click the
left mouse button on the Forward Search or Reverse Search button.
Note: To fully understand and appreciate the value of this feature you will be required to acquire a
functional knowledge of FIL (Factory Interface Language). The engine is used to search for variables used
internal to the post processor so that the user can more fully utilize the power of FIL. (See the Factory
Interface Language (FIL) manual
The following is a description of each icon on the toolbar from left to right:
1 2 3 4 5 6 7 8 9 10 11
3-19
G-Post Reference Manual
7. Cancel Edits to Current Panel – Set the current menu selection back to it’s original values
8. Specification Document – Creates a post processor specification document for the current option file.
9. Properties Dialog – Sets the user preferences for the Option File Generator screen.
10. Component Help –Opens the help file with information about the current panel item, displayed at the
bottom of the current option file.
11. Help –Opens the help file with information about the current panel.
3-20
3 Option File Generator
The Option File Generator is a multiple document interface, that means you can have more than one option
file opened at any time. When more than one option file is opened you can uses these menu commands to
manipulate the viewing of these option files.
1. Dock Toolbar on Right - Move the toolbar to the right side of the window.
2. Display a properties dialog – Change screen settings.
3. Change Color - Change the current colors.
4. Change Font - Change the current screen fonts.
5. Set Option File Screen to default size.
6. Define Text Editor.
1. Contents - The standard windows help screen for the Option File Generator.
2. System Information – Get the current system type, build number, directory locations.
3. About Option File Generator – Get the current software release and copyright information.
3-21
G-Post Reference Manual
The Option File Generator is a multiple document interface, that means you can have more than one option
file opened at any time. The Current Files box is how you can tell which option file is actively being
modified. To change the active file just click in the Current Files box” with the left mouse button. A list
of the currently opened option files will appear with the active option file highlighted, select the desired
option file to modify by clicking on it with the left mouse button, the list of option files will disappear and
the one selected will become the active option file for modification.
3-22
4 Command Language
4 Command Reference
Introduction to Commands
This chapter describes the G-Post vocabulary commands in alphabetical order by major word. If the
command is only for the Mill G-Post an (M) follows the command name. If the command is only for the
Lathe G-Post, an (L) follows the command name. No letter indicates the command applies for both Mill
and Lathe. The post processors interpret the vocabulary as commands. This chapter explains the function of
each command and it’s associated minor words, using the following conventions:
[,W1-W2] W1 or W2 is optional
Example: COOLNT/ON-OFF
COOLNT/ON
COOLNT/OFF
Example: FEDRAT/f[,IPM-IPR][,RAPTO,d]
FEDRAT/f
FEDRAT/f,IPM
FEDRAT/f,IPR
FEDRAT/f,RAPTO,d
FEDRAT/f,IPM,RAPTO,d
FEDRAT/f,IPM,RAPTO
FEDRAT/f,IPR,RAPTO
Example: CHECK/([XAXIS,x1,x2][,YAXIS,y1,y2])
CHECK/XAXIS,x1,x2
CHECK/YAXIS,y1,y2
CHECK/XAXIS,x1,x2,YAXIS,y1,y2
4-1
G-Post Reference Manual
4.1 ARCDAT
ARCDAT/x,y,z,i,j,k,r
This command defines the circle for a circular move. This is the TYPE 3000 CL record.
The ARCDAT command will appear before the ARCMOV command line to define the arc. Radius is the
true radius of the arc, not the offset by the cutter radius.
Example:
Input:
GOTO/0,5,0
ARCDAT/0,0,0,0,0,1,5
ARCMOV/CLW,5,0,0,90
GOTO/5,10,0
N0006G01X0Y-00500Z0F01$
N0007G02X00500Y0Z0I0500J0K0$
N0008G01Y0010000F10$
Note: The start angle, total angle and arc direction are stored in the post processor COMMONs after the
circle is processed.
4-2
4 Command Language
4.2 ARCMOV
ARCMOV/CCLW-CLW,xe,ye,ze,a
This command is the arc motion command and follows all ARCDAT commands.
xe,ye,ze Specifies the end point of the arc move. The start point is assumed to be the prior point.
a Specifies the total angle in degrees, used only when the arc move is greater than 360
degrees.
Example:
Input:
GOTO/0,5,0
ARCDAT/0,0,0,0,0,1,5
ARCMOV/CLW,5,0,0,90
GOTO/5,10,0
N0006G01X0Y-00500Z0F01$
N0007G02X00500Y0Z0I0500J0K0$
N0008G01Y0010000F10$
Note: The start angle, total angle and arc direction are stored in the post processor COMMONs after the
circle is processed.
4-3
G-Post Reference Manual
All circular motion following this statement will be output as helical arc blocks, if helical interpolation is
available.
d Specifies the linear lead for the third axis. The sign of d determines positive or negative motion of
this axis in the part coordinate system.
ARCSLP/OFF
Example:
Input:
FROM/-1,-4
ARCSLP/ON,(1/8)
GO/C1
TLLFT,GOLFT/C1,ON,3,INTOF,L1
ARCSLP/OFF
GOTO/P1
N6G1X-7.579Y-3.0317Z.0F10.$
N7G2X-3.125Y.0Z.264I.579J3.031K.199$
N8X.0Y3.125Z.576I3.125J.0$
N9X3.125Y.0Z.888I.0J3.125$
N10X.0Y-3.125Z1.2I3.125J0$
N11X-3.125Y.0Z1.512I.0J3.125$
N12X.0Y3.125Z1.824I3.125J.0$
N13G1Y-4.Z.0$
Related Commands:
PLABEL/OPTION,47
4-4
4 Command Language
4.4 AUXFUN
AUXFUN/m[,NEXT]
NEXT Generates this M-code with the next output block. If you omit NEXT, the post processor outputs
the M-code in a block by itself. If you select the multiple M-code option, you can program a
maximum of four AUXFUN/m,NEXTs per block.
Use this command only when a post processor command is not available for this M-code. The post
processor does not verify the validity of the M-code.
Example:
Input:
AUXFUN/33,NEXT
AUXFUN/22
N4M22M33$
Related Commands:
PLABEL/OPTION,35
4-5
G-Post Reference Manual
4.5 BREAK
BREAK
This statement indicates the end of a section in the part program. The punch output ends with trailer.
The MACHIN statement and the current options are retained. Remember to restate all applicable
postprocessor commands (such as FROM, COOLNT, and TRANS) after the BREAK command.
Example:
Input:
4-6
4 Command Language
In most CAM systems a set of matrix-data defines the local coordinate system in releation to the
world/model coordinate system. The planar machining feature in G-Post will use this command to output
the rotation blocks. Each CAM system uses a different format for this.
CAMERA/12-parameter matrix xyz-vector and the origin simlar to the G-Post TRANS/12-
parameter command.
Example:
CAMERA/1,0,0,0, 0,0,1,0, 0,1,0,0 defines a local system as the XZ plane with the Y-axis as the
spindle or tool axis.
Example:
CAMERA/12-parameter matrix xyz-vector and the origin simlar to the G-Post TRANS/12-
parameter command.
Example:
MasterCAM format:
Example:
These commands are modal and apply only to planar machining in CSYS/matrix mode and not
when GOTO/PT,VEC mode is set.
CAMERA/3-4 Flag to indicate to use Z-vector from CSYS/matrix for planar machining.
This flag is not normally used, default is the prefered mode.
4-7
G-Post Reference Manual
This command modifies the axes limit values assumed for limit checking.
Example:
Input:
Related Commands:
PLABEL/OPTION,19
4-8
4 Command Language
This command modifies the axes limit values assumed for limit checking.
Example:
Related Commands:
PLABEL/OPTION,19
4-9
G-Post Reference Manual
4.9 CIRCLE
CIRCLE/x,y,z,i,j,k,r
This command defines the circle for a circular move. This is the TYPE 3000 CL record.
i,j,k Specifies the direction of the circular move. If the IJK are identical to the tool axis then the
circular move is in the counter-clockwise direction. If the IJK are exactly opposite the tool axis then the
circular move is clockwise. If the IJK does not match tool axis vector (standard or opposed) then the circle
will be iterated with G01moves.
The CIRCLE command will be followed by a GOTO command line to define the end point of the circular
move.
Example:
Input:
Note: CIRCLE/cmd is valid only with ACL input and not APT input.
4-10
4 Command Language
4.10.1 CLEARP/XYPLAN,d-OFF
CLEARP/XYPLAN,d-OFF
XYPLAN,d This statement establishes a clearance plane parallel to the XY plane at a distance d.
Subsequent RETRCT statements will retrace the tool tip at rapid rate to this plane.
Example:
Input:
CLEARP/XYPLAN,5
GOTO/3,3,0
GOTO/6,6,0
RETRCT
GOTO/10,10
CLEARP/OFF
RETRCT
N0004G01X003Y003Z0F001$
N0005X006Y006$
N0006G00Z0005F0$
N0007G01X01Y01Z0F001$
N0008G00Z03F0$
4.10.2 CLEARP/ZAXIS,z1-OFF,TABLE,w1-OFF
CLEARP/ZAXIS,z1-OFF,TABLE,w1-OFF
ZAXIS,z1 This statement establishes a clearance plane parallel to the XY plane at a distance z1 for
the Z-axis. Subsequent RETRCT statements will retrace the tool tip at rapid rate to this
plane.
TABLE,w1 This statement establishes a clearance plane parallel to the XY plane at a distance w1 for
the W axis. Subsequent RETRCT statements will retrace the tool tip at rapid rate to this
plane.
TABLE,OFF This statement cancels a previously-established W axis clearance plane. Subsequent
RETRCT statements will retract the spindle to the Z axis clearance plane only.
4-11
G-Post Reference Manual
Example:
Input:
CLEARP/ZAXIS,10,TABLE,20
GOTO/3,3,0
GOTO/6,6,0
RETRCT
GOTO/10,10
CLEARP/OFF
RETRCT
N0004G01X003Y003Z0F001$
N0005X006Y006$
N0006G00Z0005F0$
N0007G01X01Y01Z0F001$
N0008G00Z10W20F0$
4-12
4 Command Language
This statement defines a clearance surface plane, which must be a symbolic or nested definition of the APT
geometry for a PLANE. Subsequent CLRSRF/NOW commands will move the tool tip at rapid rate onto
this plane.
The direction and distance of this move are calculated from the current position along the normal to the
plane.
Example:
Input:
PL1=PLANE/0,0,1,5
CLRSRF/PL1
P1=POINT/5,8,0
GOTO/P1
CLRSRF/NOW
N0004G01X005Y008Z0F000001$
N0005G00Z005F0$
4-13
G-Post Reference Manual
NEXT Generates this M-code with the next output block. If you omit NEXT, the post processor
outputs the M-code in a block by itself.
Note: A switch in the Option File Generator will instruct the post processor to automatically output the
COOLNT M-codes with the next XY or Z motion block.
4-14
4 Command Language
AUTO Causes the COOLNT M-code to be output as a function of the M-code for spindle
direction. COOLNT/AUTO,OFF deactivates the above function.
NEXT Generates this M-code with the next output block. If you omit NEXT, the post processor
outputs the M-code in a block by itself.
Note: A switch in the Option File Generator will instruct the post processor to automatically output the
COOLNT M-codes with the next XY or Z motion block.
4-15
G-Post Reference Manual
t Is the radius offset register number which serves as a reference and is ignored. The
diameter offset will be output the same as the tool number if the switch is set in the
Option File Generator and the diameter offset number is no specified in the CUTCOM
command.
Note: A switch in the Option File Generator will instruct the post processor to automatically output the
CUTCOM M-codes with the next XY or Z motion block.
4-16
4 Command Language
t Is the radius offset register number which serves as a reference and is ignored. The
diameter offset will be output the same as the tool number if the switch is set in the
Option File Generator and the diameter offset number is no specified in the CUTCOM
command.
The cutter compensation plane is selected by the word XYPLAN, ZXPLAN, or YZPLAN to generate a
plane select G-code. If you omit the plane selection, the current plane in effect will be assumed. XYPLAN
is the initial default plane.
CUTCOM/ZAXIS,h
This statement generates an offset register code to initiate the tool length compensation.
h Is the offset register number output in the address selected by the Option File Generator.
If your option file is set up for Cincinnati PQ type cutter compensation, the following CUTCOM
commands are used to control activation of this feature.
CUTCOM/OFF-LEFT-RIGHT
Note: Since PQ cutter compensation uses the last motion and next motion to determine the vector size, it is
mandatory to program a motion following termination of PQ cutter compensation. The only exception to
this is when the following PQ cutter compensation termination commands are used.
CUTCOM/IN-OUT
This command may be used to cause PQ CUTCOM to compensate away from a circle. IN would be used
when machining a bore. OUT is for machining a cylinder or boss. A vector will be output to offset the
cutter away from the surface. This command should be used only with line/circle, circle/circle, or
circle/line combinations. If this command is used with a line/line combination, incorrect vectors will be
output.
4-17
G-Post Reference Manual
CUTCOM/OFF,PERPTO-PLUS-MINUS
PERPTO - Causes PQ cutter compensation to terminate with a vector that points perpendicularly in the
direction of compensation, to the last motion prior to turning PQ cutter compensation off.
PLUS - Causes a vector to be output in the same direction as the last motion prior to turning PQ cutter
compensation off. This feature is handy to use when you wish to terminate cutter compensation by driving
a cutter past an edge.
MINUS - Causes a vector to be output in the opposite direction as the last motion prior to turning PQ
cutter compensation off. This feature is handy to use when you wish to terminate cutter compensation by
driving a cutter to an edge.
With all three of the above couplets on a CUTCOM/OFF command, a motion following the
CUTCOM/OFF is not required.
Note: A switch in the Option File Generator will instruct the post processor to automatically output the
CUTCOM M-codes with the next XY or Z motion block.
4-18
4 Command Language
4.16 CYCLE
The G-Post generates two types of cycle output, Hardware and Software. A Hardware cycle generates a
G-code machine controller cycle, such as a G81 drilling cycle. A Software cycle generates G00, G01 tool
motion and is calculated by the post processor. All lathe cycles are Software cycles.
In the following cycle command definitions, cycle types that are identified by a hyphen followed by the G-
code in the command, such as CYCLE/BORE-85 are Hardware cycles. The G-codes are post processor
defaults and may be changed in the Option file Generator.
For canned cycles, the options LOCK,l and CAM,n will be output in the cycle DWELL and CAM
registers.
The PULBAC,g option will output an additional G-code with the cycle G-code.
The cycle command is modal and remains in effect for subsequent CL points until turned off by
CYCLE/OFF or a new CYCLE/type command.
It is assumed that the CL points following the cycle statement will be defined at the work surface.
Therefore, rapid positioning will occur to each CL point plus clearance c. This is output as the rapid stop
point. The feed distance will be the sum of the values c and z, which is output as the feed stop point. The
values c and z must be positive and relative to the CL point as follows:
Rapid Stop = CL + c
Rapid Stop = CL + c
CL Point
Feed Stop = CL - z
4-19
G-Post Reference Manual
CYCLE/type,z,f,unit,c,optn
type A minor entry to indicate the cycle type.
z The z depth of the desired cycle could be z1 through z20 for certain cycles.
optn Optional parameters given in couplet form for certain cycles. For example, LOCK,1 where l states
the dwell time for TAP cycle. These optional values are modal.
CYCLE/type,z,f,unit,c[,sc][,optn]
CYCLE with Secondary Clearance Value
sc The secondary clearance value required by some machines, which can be used on all the canned
cycles in the Mill G-Post.
Note: An automatic clearance plane value can be set using the Option File Generator to compensate for the
Cincinnati type cycles which automatically set the cycle clearance plane to 1.
4-20
4 Command Language
CYCLE/type,FEDTO,z,IPM-IPR,f,RAPTO,c,
RTRCTO,c2,DWELL,d
type A minor entry to indicate the cycle type.
FEDTO,z The z depth of the desired cycle could be z1 through z20 for certain cycles.
CYCLE/CSINK only.
CYCLE/DEEP only.
RTRCTO,c2 The secondary clearance value required by some machines, which can be used on all the
canned cycles in the Mill G-Post. In addition, the CYCLE/cmd also will allow c2 as the
minor words LAST or AUTO to retract to the position before the cycle command
DWELL,d Optional parameters given in couplet form for certain cycles. For example, DWELL,1
where l states the dwell time for TAP cycle. These optional values are modal.
4-21
G-Post Reference Manual
The following is an overview of the “UG Double-COUPLET” cycle command structure. This format is
generated by Unigraphics. It is concidered a Double-COUPLET as the cycle type is preceeded with the
word DRILL. INTCOM(4660) must be set to 1 to use these UG cycles.
CYCLE/DRILL,type,FEDTO,z,IPM-IPR,f,RAPTO,c,
RTRCTO,c2,DWELL,d
type A minor entry to indicate the cycle type.
FEDTO,z The z depth of the desired cycle could be z1 through z20 for certain cycles.
CYCLE/CSINK only.
CYCLE/DEEP only.
RTRCTO,c2 The secondary clearance value required by some machines, which can be used on all the
canned cycles in the Mill G-Post. In addition, the CYCLE/cmd also will allow c2 as the
minor words LAST or AUTO to retract to the position before the cycle command
DWELL,d Optional parameters given in couplet form for certain cycles. For example, DWELL,1
where l states the dwell time for TAP cycle. These optional values are modal.
4-22
4 Command Language
4.16.1 CYCLE/ON-OFF
CYCLE/ON-OFF
CYCLE/AVOID
1. Outputs a G-code to cancel the cycle (G80) and an M-code (M26) to cause a full retract.
Example:
Input:
$$ Z DEPTH=1.0,FEED=7.5,IPM,CLEARANCE=.1
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
CYCLE/AVOID
GOTO/1,0
GOTO/2,0
N4G85X.0Y.0R.1Z-1.0F7.5$
N5G80M26$
N6G85X1.0Y.0R.1Z-1.0F7.5$
N7X2.0$
4-23
G-Post Reference Manual
This is only used for the CATIA HELICAL/cmd. CATIA generates the HELICAL/cmd for helical entry
or for thread milling in the *.aptsource file. The CATIA CAD/CAM interface will convert this into
CYCLE/ARCSLP,MILL for the G-Post to complete the tool motion.
GOTO/xyx-start point
HELICAL/xyz-cenpt,ijk-dir,ijk-tlaxis,pitch,radius,xyz-endpt
GOTO/xyx-start point
CYCLE/ARCSLP,MILLxyz-cenpt,ijk-dir,ijk-tlaxis,pitch,radius,xyz-endpt
FEDRAD/f,IPM
GOTO/xyz-end point
Format requirements:
Example:
RAPID
GOTO /3,3,30,0,0,1
GOTO /-27.04329,35.34769,11.984675,0,0,1
HELICAL/-39.74329,35.34769,8.4671,0,1,0,0,0,1,14.0703,12.7,$
-39.74329,48.04769,8.4671
RAPID
GOTO /3,3,30,0,0,1
N4 G0 Z30.
N5 X3. Y3.
N6 G1 X-27.0433 Y35.3477 Z11.9847 F10.
N7 G2 X-39.7433 Y48.0477 Z1.432 I-12.7 K2.2394
N8 G0 Z30.
N9 X3. Y3.
4-24
4 Command Language
N9 G0 Z30.
N10 X3. Y3.
N11 G1 X-27.0433 Y35.3477 Z11.9847
N12 G2 X-27.0433 Y35.3477 Z-2.0856 I-12.7 K2.2394
N13 G2 X-27.0433 Y35.3477 Z-16.1559 I-12.7 K2.2394
N14 G2 X-27.0433 Y35.3477 Z-30.2262 I-12.7 K2.2394
N15 G2 X-27.0433 Y35.3477 Z-44.2965 I-12.7 K2.2394
N16 G2 X-39.7433 Y48.0477 Z-54.8492 I-12.7 K2.2394
N17 G0 Z30.
N18 X3. Y3.
To program above motion in your APT program, use the command CYCLE/ARCSLP,MILL,same 14-
parameters instead of HELICAL/cmd.
G-Post expands this CYCLE into goto and arc motion first. This CYCLE command is passed on as echo
to the CL file, by adding ON to the end of the command. So you can catch it in FIL for custom
modification.
In this case, you must skip all the motion following this command until CYCLE/THREAD,MILL,OFF is
encountered.
If you want to use the CYCLE/THREAD,MILL format to mill many holes, you can select the box in the
CATIA menu to output CYCLE syntax during thread or circular milling dialogs. Also make the proper
pptable entry for circular or thread milling CYCLE commands.
For helical entry into a contour, you must use the HELICAL command as generated by CATIA.
THREAD/OFF in HELICAL/cmd:
The HELICAL/cmd from output by CATIA may not always be a thread operation. You may optionally
indicate that it is a helical milling or boring operation by adding THREAD/OFF to the end of the
HELICAL/cmd. This will avoid any internal circular interpolation (G2/G3) correction that is that is need
only for a threading operation. A CATIA pptable file with this entry is located in the ./CAMDOC folder
for reference.
4-25
G-Post Reference Manual
CYCLE/BORE,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
Example:
Input:
$$ Z DEPTH=1.0,FEED=7.5,IPM CLEARANCE=.1
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
N4G85X0.0.0R.1Z-.1F7.5$
4-26
4 Command Language
CYCLE/BORE,z,f,IPM-IPR,c[,LOCK,l]
CYCLE/BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
LOCK,l Specifies the dwell time for spindle stop. Initially a value of 2 seconds is assumed.
Example:
Input:
$$ Z DEPTH=1.0,FEED=7.5,IPM CLEARANCE=.1
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
N5G00X0.0Z.1$
N6G01Z-.1F7.5$
N7G04X2.0M05$
N8G00X0.0Z.1$
N9M01$
4-27
G-Post Reference Manual
CYCLE/BORE-85,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
Example:
Input:
$$ Z DEPTH=1.0,FEED=7.5,IPM CLEARANCE=.1
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
N4G85X0.0Y0.0R.1Z-.1F7.5$
4-28
4 Command Language
CYCLE/BORE,z,f,IPM-IPR,c[,LOCK,l][,ORIENT,y]
CYCLE/BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,BORE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
LOCK,l Specifies the dwell time for spindle stop. Initially a value of 2 seconds is assumed.
ORIENT,y Specifies the shift distance along the y-axis before retracting. The sign of y states the
direction of this move. Initially it is assumed that y equals 0.
Example:
Input:
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
N4G00Z.1$
N5G01X0.0Y0Z-1.0F7.5$
N6G04F2.0M19$
N7G00Z.1$
N8M01$
4-29
G-Post Reference Manual
CYCLE/DEEP,z,f,IPM-IPR,c,INCR,z1 [,PULBAC,g]
CYCLE/DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/DRILL,DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to depth z1 less c.
Note: z1 is the G73 peck depth value which is output with the address designated in the Option File
Generator.
Example:
Input:
CYCLE/ BRKCHP,3.0,7.0,IPM,.2,INCR,.5
GOTO/0,0
N4G73X0.0Z3.0K.5F7.0$
4-30
4 Command Language
CYCLE/BRKCHP,z1,z2,z3,z4.............z20,f,IPM-IPR,c
CYCLE/ BRKCHP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/ DRILL,BRKCHP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance z1 +c.
4. Advance at rapid rate to depth z1 less c.
Example:
Input:
N004G00X0Z002$
N005G01Z-01F007$
N006G00Z002$
N007Z-008$
N008G01Z-02F007$
N009G00Z002$
N010Z-018$
N011G01Z-03F007$
N012G00Z002$
N013Z-028$
N014G01Z-04F007$
N015G00Z002$
4-31
G-Post Reference Manual
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance z1 + c.
4. Advance at rapid rate to depth z1 less c.
Note: z1 is the G73 peck depth value which is output with the address designated in the Option File
Generator.
Example:
Input:
CYCLE/ BRKCHP,3.0,7.0,IPM,.2,INCR,.5
GOTO/0,0
N4G73X0.0Y0.0Z3.0K.5F7.0$
4-32
4 Command Language
CYCLE/ BRKCHP,z1,z2,z3,z4.............z20,f,IPM-IPR,c
CYCLE/ BRKCHP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/ DRILL,BRKCHP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance z1 + c.
4. Advance at rapid rate to depth z1 less c.
Example:
Input:
CYCLE/ BRKCHP,1.0,2.0,3.0,4.0,7.0,IPM,.2
GOTO/0,0
N0004G00Z0002F0$
N0005G01X0Y0Z-001F007$
N0006G00Z0002F0$
N0007Z-0008F0$
N0008G01Z-002F007$
N0009G00Z0002F0$
N0010Z-0018F0$
N0011G01Z-003F007$
N0012G00Z0002F0$
N0013Z-0028F0$
N0014G01Z-004F007$
N0015G00Z0002F0$
4-33
G-Post Reference Manual
CYCLE/CSINK,d,a,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/CSINK,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,CSINK,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z. The depth z is calculated from the required diameter d and
included angle a.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N4G81X.0R.1Z-1.F6.0$
4-34
4 Command Language
CYCLE/CSINK,d,a,f,IPM-IPR,c[,LOCK,l]
CYCLE/CSINK,HOLDIA,d,TLANGL,a,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,CSINK,HOLDIA,d,TLANGL,a,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z. The depth z is calculated from the required diameter d and
included angle a.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
N5G00X0.0Z.1$
N6G01Z-.25F10.$ $$ (Calculated Z depth)
N7G04X2.0$
N8G00X0.0Z.1$
4-35
G-Post Reference Manual
CYCLE/CSINK,d,a,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/CSINK,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,CSINK,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z. The depth z is calculated from the required diameter d and
included angle a.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N4G81X.0Y.0R.1Z-1.F6.0$
4-36
4 Command Language
CYCLE/CSINK,d,a,f,IPM-IPR,c[,LOCK,l]
CYCLE/CSINK,HOLDIA,d,TLANGL,a,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,CSINK,HOLDIA,d,TLANGL,a,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Depth z is calculated from the required diameter d and included angle a.
4. Dwell.
5. Retract at rapid rate to clearance c.
Example:
Input:
N4G00Z.1$
N5G01X0.0Y0.0Z-.25F10.$ $$(Calculated Z depth)
N6G04F2.0$
N7G00Z.1$
4-37
G-Post Reference Manual
CYCLE/DEEP,z,f,IPM-IPR,c,INCR,z1 [,PULBAC,g]
CYCLE/DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/DRILL,DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to depth z1 less c.
Note: z1 is the G83 peck depth value which is output with the address designated in the Option File
Generator.
Example:
Input:
CYCLE/DEEP,3.0,7.0,IPM,.2,INCR,.5
GOTO/0,0
N4G83X0.0Z3.0K.5F7.0$
4-38
4 Command Language
CYCLE/DEEP,z1,z2,z3,z4.............z20,f,IPM-IPR,c
CYCLE/DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/DRILL,DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to depth z1 less c.
Example:
Input:
CYCLE/DEEP,1.0,2.0,3.0,4.0,7.0,IPM,.2
GOTO/0,0
N004G00X0Z002$
N005G01Z-01F007$
N006G00Z002$
N007Z-008$
N008G01Z-02F007$
N009G00Z002$
N010Z-018$
N011G01Z-03F007$
N012G00Z002$
N013Z-028$
N014G01Z-04F007$
N015G00Z002$
4-39
G-Post Reference Manual
CYCLE/DEEP-83,z,f,IPM-IPR,c,INCR,z1 [,PULBAC,g]
CYCLE/DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/DRILL,DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to depth z1 less c.
Note: z1 is the G83 peck depth value which is output with the address designated in the Option File
Generator.
Example:
Input:
CYCLE/DEEP,3.0,7.0,IPM,.2,INCR,.5
GOTO/0,0
N4G83X0.0Y0.0Z3.0K.5F7.0$
4-40
4 Command Language
CYCLE/DEEP,z1,z2,z3,z4.............z20,f,IPM-IPR,c
CYCLE/DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
CYCLE/DRILL,DEEP,FEDTO,z,IPM-IPR,f,RAPTO,c,INCR,k
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to depth z1 less c.
Example:
Input:
CYCLE/DEEP,1.0,2.0,3.0,4.0,7.0,IPM,.2
GOTO/0,0
N0004G00Z0002F0$
N0005G01X0Y0Z-001F007$
N0006G00Z0002F0$
N0007Z-0008F0$
N0008G01Z-002F007$
N0009G00Z0002F0$
N0010Z-0018F0$
N0011G01Z-003F007$
N0012G00Z0002F0$
N0013Z-0028F0$
N0014G01Z-004F007$
N0015G00Z0002F0$
4-41
G-Post Reference Manual
CYCLE/DEEPCL,z,f,IPM-IPR,c[,START,s][,DECR,d][,LAST,l] [,DIAMTR,dia]
CYCLE/DRILL,DEEPCL,z,f,IPM-IPR,c[,START,s][,DECR,d][,LAST,l] [,DIAMTR,dia]
1. Rapid to clearance c.
2. Advance at feedrate f the incremental distance of s*dia
3. Retract at rapid rate to clearance c.
4. Advance at rapid rate to feed depth less c.
5. Decrement the value of s by the value of d.
Repeat steps 2, 3, 4, and 5 until the value of s equals the value of l. Then repeat steps 2, 3, and 4 until final
depth is reached. Cycle will always end when final depth is reached, regardless of any other parameter
value.
The following is a list of the default values for this cycle. You need enter only those values that are to be
changed.
DECR,d Default is .5
Example:
Input:
CUTTER/.5
CYCLE/DEEPCL,5,10,IPM,.1
GOTO/0,0,10
CYCLE/OFF
N0001G81X0Y0R010Z00875F01$
N0002G80$
N0003G81R00885Z00775$
N0004G80R0101$
N0005G81R00785Z007$
N0006G80R0101$
N0007G81R0071Z0065$
N0008G80R010$
N0009G81R0066Z006$
N0010G80R0101$
N0011G81R0061Z0055$
N0012G80R0101$
N0013G81R0056Z005$
N0014G80R0101$
4-42
4 Command Language
CYCLE/DRILL,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/DRILL,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N4G81X.0R.1Z-1.F6.0$
4-43
G-Post Reference Manual
CYCLE/DRILL,z,f,IPM-IPR,c
CYCLE/DRILL,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N004G00X0Z001$
N005G01Z-01F006$
N006G00Z001$
4-44
4 Command Language
CYCLE/DRILL-81,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/DRILL-81,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N4G81X.0Y.0R.1Z-1.F6.0$
4-45
G-Post Reference Manual
CYCLE/DRILL,z,f,IPM-IPR,c
CYCLE/DRILL,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/DRILL,1.0,6.0,IPM,.1
GOTO/0,0
N4G00Z.1$
N5G01X.0Y.0Z-.1F6.0$
4-46
4 Command Language
CYCLE/FACE,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/FACE,1.0,4.5,IPM,.1
GOTO/0,0
N4G82X.0R.1Z-.1F4.5$
4-47
G-Post Reference Manual
CYCLE/FACE,z,f,IPM-IPR,c[,LOCK,l ]
CYCLE/FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/FACE,1.0,4.5,IPM,.1
GOTO/0,0
N004G00X0Z001$
N005G01Z-01F0045$
N006G04X02$
N007G00X0Z001$
4-48
4 Command Language
CYCLE/FACE-82,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/FACE,1.0,4.5,IPM,.1
GOTO/0,0
N4G82X.0Y.0R.1Z-.1F4.5$
4-49
G-Post Reference Manual
CYCLE/FACE,z,f,IPM-IPR,c[,LOCK,l]
CYCLE/FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,FACE,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Dwell.
4. Retract at rapid rate to clearance c.
Example:
Input:
CYCLE/FACE,1.0,4.5,IPM,.1
GOTO/0,0
N4G00Z.1$
N5G01X.0Y.0Z-.1F4.5$
N6G04F2.$
N7G00Z.1$
4-50
4 Command Language
CYCLE/MILL-86,z,f,IPM-IPR,c[,CAM,n]
CYCLE/MILL-86,FEDTO,z,IPM-IPR,f,RAPTO,c
The first CL point and all the subsequent RAPID CL points will be output as follows:
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
Example:
Input:
CYCLE/MILL,1.0,10,IPM,.2
GOTO/0,0
FEDRAT/15,IPM
GOTO/1,1
CYCLE/OFF
N4G86X.0Y.0R.2Z-.1F10.$
N5G01X1.Y1.F15.$
N7G80$
N8G00Z3.$
4-51
G-Post Reference Manual
CYCLE/MILL,z,f,IPM-IPR,c
CYCLE/MILL,FEDTO,z,IPM-IPR,f,RAPTO,c
The first CL point and all subsequent RAPID CL points are output as follows:
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
Example:
Input:
CYCLE/MILL,1.0,10,IPM,.2
GOTO/0,0
FEDRAT/15,IPM
GOTO/1,1
GOTO/2,3
CYCLE/OFF
RETRCT
N0004G00X0Y0F0$
N0005Z0002F0$
N0006G01Z-001F01$
N0007X001Y001F015$
N0008X002Y003$
N0009G00Z03F0$
4-52
4 Command Language
CYCLE/REAM-88,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at feedrate f to clearance c.
Example:
Input:
CYCLE/REAM,1.0,8.0,IPM,.1
GOTO/0,0
N0004G88X0R0001Z-001F008$
4-53
G-Post Reference Manual
CYCLE/REAM,z,f,IPM-IPR,c
CYCLE/REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at feedrate f to clearance c.
Example:
Input:
CYCLE/REAM,1.0,8.0,IPM,.1
GOTO/0,0
N005G00X0Z001$
N006G01Z-01F008$
N007Z001$
4-54
4 Command Language
CYCLE/REAM-88,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at feedrate f to clearance c.
Example:
Input:
CYCLE/REAM,1.0,8.0,IPM,.1
GOTO/0,0
N0004G88X0Y0R0001Z-001F008$
4-55
G-Post Reference Manual
CYCLE/REAM,z,f,IPM-IPR,c
CYCLE/REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
CYCLE/DRILL,REAM,FEDTO,z,IPM-IPR,f,RAPTO,c[,DWELL,d]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Retract at feedrate f to clearance c.
Example:
Input:
CYCLE/REAM,1.0,8.0,IPM,.1
GOTO/0,0
N0004G00Z0001F0$
N0005G01X0Y0Z-001F008$
N0006Z0001$
4-56
4 Command Language
CYCLE/TAP-84,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/TAP-84,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Reverse spindle direction.
4. Retract at feedrate f to clearance c.
5. Reverse to original spindle direction.
LOCK,l Specifies the dwell time for spindle reverse. Initially a value of 2 seconds is assumed.
Example:
Input:
SPINDL/150
CYCLE/TAP,1.0,(1/13),IPR,.2
GOTO/0,0
N0006G84X0R0002Z-001F011538$
4-57
G-Post Reference Manual
CYCLE/TAP,z,f,IPM-IPR,c[,LOCK,l]
CYCLE/TAP,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Output M-code to disable feed override.
3. Advance at feedrate f to depth z.
4. Reverse spindle direction M-code with dwell.
5. Retract at feedrate f to clearance c.
6. Output original spindle direction M-code.
7. Output M-code to enable feed override.
LOCK,l specifies the dwell time for spindle reverse. Initially a value of 2 seconds is assumed.
Example:
Input:
SPINDL/300,RPM,CLW
CYCLE/TAP,1.0,(1/13),IPR,.2
GOTO/0,0
N004S03M03$
N005G95$
N006G00X0Z002$
N007M51$
N008G01Z-01F00769$ (Feedrate calculated from spindle RPM)
N009M05$
N010G04X101M04$
N011G01X0Z002$
N012M03$
N013M50$
4-58
4 Command Language
CYCLE/TAP-84,z,f,IPM-IPR,c[,LOCK,l][,CAM,n][,PULBAC,g]
CYCLE/TAP-84,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Reverse spindle direction.
4. Retract at feedrate f to clearance c.
5. Reverse to original spindle direction.
LOCK,l Specifies the dwell time for spindle reverse. Initially a value of 2 seconds is assumed.
Example:
Input:
SPINDL/150
CYCLE/TAP,1.0,(1/13),IPR,.2
GOTO/0,0
N0006G84X0Y0R0002Z-001F011538$
4-59
G-Post Reference Manual
CYCLE/TAP,z,f,IPM-IPR,c[,LOCK,l]
CYCLE/TAP,FEDTO,z,IPM-IPR,f,RAPTO,c
1. Rapid to clearance c.
2. Output M-code to disable feed override.
3. Advance at feedrate f to depth z.
4. Reverse spindle direction M-code with dwell.
5. Retract at feedrate f to clearance c.
6. Output original spindle direction M-code.
7. Output M-code to enable feed override.
LOCK,l Specifies the dwell time for spindle reverse. Initially a value of 2 seconds is assumed.
Example:
Input:
CYCLE/TAP,1.0,(1/13),IPR,.2
GOTO/0,0
N0006G00Z0002F0$
N0007M51$
N0008G01X0Y0Z-001F$
N0009M05$
N0010G04FM04$
N0011G01Z0002F$
N0012M03$
N0013M50$
4-60
4 Command Language
CYCLE/TAP-84,z,f,IPM-IPR,c,HIGH,ON-OFF
CYCLE/TAP-84,FEDTO,z,IPM-IPR,f,RAPTO,c,HIGH,ON-OFF
The rigid tap cycle allows you to output a cycle G-code with a decimal point such as G84.2.
1. Rapid to clearance c.
2. Advance at feedrate f to depth z.
3. Reverse spindle direction.
4. Retract at feedrate f to clearance c.
5. Reverse to original spindle direction.
LOCK,l Specifies the dwell time for spindle reverse. Initially a value of 2 seconds is assumed.
Example:
Input:
SPINDL/150
CYCLE/TAP,1.0,(1/13),IPR,.2,HIGH,ON
GOTO/0,0
N0006G84.1X0Y0R0002Z-001F011538$
4-61
G-Post Reference Manual
Thread or circular milling can be done with a single G-Post command and followed by GOTO/pts for each
of the holes at any tool axis until CYCLE/OFF is encountered.
CYCLE/THREAD-CIRCUL
GOTO/p1
GOTO/p2
CYCLE/OFF
THREAD Use helical motion along Z for for each pass for the entire Z-depth.
CIRCUL Use circle motion at each Z and then feed to the next Z at the start point for the entire Z-depth.
Command Syntax:
CYCLE/THREAD-CIRCUL,MILL,FEDTO,z,IPM,IPR,f,RADIUS,r,PITCH,p
[,START,dx,dy,dz][,CUT,CCLW-CLW-1-2][,RAPTO,c][,RTRCTO,r][,OUT,n][,ON]
FEDTO,z = The depth of hole z is a positive number. Use -ve for reverse milling. Plus z will advance tool
into the part. It is an incremental distance measured from the GOTO/pnt.
START,dx,,dy,dz = Specifies the start point relative to the center of the hole. This defines vector
component (IJK) to define the start point for 0-360 degrees as directed from the center of the hole.
In xy-plane, (1,0,0) will start at 3'oclock position; (0,-1,0) will start at 6'oclock position; (-1,0,0) will start
at 9'oclock position; (0,1,0) will start at 12'oclock position. START is optional.
RAPTO,c = The c specifies the clearance in rapid to the center of hole, RAPTO is optional.
RTRCTO,c2 = The c2 specifies the secondary clearance to clear the part before moving to next hole
position, RTRCTO is optional.
OUT,n = Specifies that the thead/curcular moves will be on the OD and that the tool should retract
outward. The n value is the amount that the tool is moved away from the thread. OUT is optional.
ON = The G-Post expands this CYCLE into goto and arc motion first. This CYCLE command is passed
on as echo to the CL file, by adding ON to the end of the command, so you can catch it in FIL for custom
modification.
4-62
4 Command Language
Example:
N8 G0 Z2.
N9 Z1.1
N10 G1 Y2. Z1. F11.
N11 G3 X2.562 Y2. Z.8 J-2. K.0318
N12 G3 X2.562 Y2. Z.6 J-2. K.0318
N13 G3 X2.562 Y2. Z.4 J-2. K.0318
N14 G3 X2.562 Y2. Z.2 J-2. K.0318
N15 G3 X2.562 Y2. Z0. J-2. K.0318
N16 G1 Y0. Z1.1
N17 G0 Z2.
N27 G0 Z2.
N28 X2.562
N29 Z1.1
N30 G1 Y2. Z1. F11.
N31 Z0.
N32 G3 X2.562 Y2. J-2.
N33 G1 Z-.8
N34 G3 X2.562 Y2. J-2.
N35 G1 Z-1.4
N36 G3 X2.562 Y2. J-2.
N37 G1 Z-1.8
N38 G3 X2.562 Y2. J-2.
N39 G1 Z-2.
N40 G3 X2.562 Y2. J-2.
N41 G1 Y0. Z1.1
N42 G0 Z2.
4-63
G-Post Reference Manual
Format requirements:
If START is given, all three dx,dy,dz must be stated even if zero. If START is not given, then G-Post will
decide the start point.
If OUT is not given it the thread/curcular moves are assumed to be on the ID.
APT users: Make sure to add PPWORD/ RTRCTO,7 to your APT program or vocabulary table file.
G-Post expands this CYCLE into goto and arc motion first. This CYCLE command is passed on as echo
to the CL file, by adding ON to the end of the command. So you can catch it in FIL for custom
modification.
In this case, you must skip all the motion following this command until CYCLE/THREAD,MILL,OFF is
encountered.
If you want to use the CYCLE/THREAD,MILL format to mill many holes, you can select the box in the
CATIA menu to output CYCLE syntax during thread or circular milling dialogs. Also make the proper
pptable entry for circular or thread milling CYCLE commands.
4-64
4 Command Language
CYCLE/THRU-87,z1,z2,z3,z4,...z19,f,IPM-IPR,c[,PULBAC,g]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Advance at rapid rate to depth z2 less c.
4. Advance at feedrate f to depth z3.
Repeat steps 3 and 4 for each successive pair of z values, after which, retract at rapid rate to clearance c.
Example:
Input:
CYCLE/THRU,0.5,0.7,1.0,1.2,2.0,2.2,3.0,.0085,IPR,.1
GOTO/0,0
N0006G87X0R0001Z-0005F0085$
N0007R-0006Z-001$
N0008R-0011Z-002$
N0009R-0021Z-003$
N0010R0001Z0001$
4-65
G-Post Reference Manual
CYCLE/THRU,z1,z2,z3,...z19,f,IPM-IPR,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Advance at rapid rate to depth z2 less c.
4. Advance at feedrate f to depth z3.
Repeat the steps 3 and 4 for each successive pair of z values, after which, retract at rapid rate to clearance
c.
Example:
Input:
SPINDL/1000,RPM,CLW
CYCLE/THRU,0.5,0.7,1.0,1.2,2.0,2.2,3.0,.0085,IPR,.1
GOTO/0,0
N004S51M03$
N005G95$
N006G00X0Z001$
N007G01Z-005F001$
N008G00Z-007$
N009G01Z-01F001$
N010G00Z-012$
N011G01Z-02F001$
N012G00Z-022$
N013G01Z-03F001$
N014G00Z001$
4-66
4 Command Language
CYCLE/THRU-87,z1,z2,z3,z4,...z19,f,IPM-IPR,c[,PULBAC,g]
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Advance at rapid rate to depth z2 less c.
4. Advance at feedrate f to depth z3.
Repeat steps 3 and 4 for each successive pair of z values, after which, retract at rapid rate to clearance c.
Example:
Input:
CYCLE/THRU,0.5,0.7,1.0,1.2,2.0,2.2,3.0,.0085,IPR,.1
GOTO/0,0
N0006G87X0Y0R0001Z-0005F0085$
N0007R-0006Z-001$
N0008R-0011Z-002$
N0009R-0021Z-003$
N0010R0001Z0001$
4-67
G-Post Reference Manual
CYCLE/THRU,z1,z2,z3,z4,...z19,f,IPM-IPR,c
1. Rapid to clearance c.
2. Advance at feedrate f to depth z1.
3. Advance at rapid rate to depth z2 less c.
4. Advance at feedrate f to depth z3.
Repeat steps 3 and 4 for each successive pair of z values, after which, retract at rapid rate to clearance c.
Example:
Input:
CYCLE/THRU,0.5,0.7,1.0,1.2,2.0,2.2,3.0,.0085,IPR,.1
GOTO/0,0
N0006G00Z0001F0$
N0007G01X0Y0Z-0005F$
N0008G00Z-0007F0$
N0009G01Z-001F$
N0010G00Z-0012F0$
N0011G01Z-002F$
N0012G00Z-0022F0$
N0013G01Z-003F$
N0014G00Z0001F0$
4-68
4 Command Language
4.59 DEBUGG
The DEBUGG statements are not intended for part programming. It is intended for use during the
development stage of a post processor. Use DEBUGG to analyze the COMMON variable locations in the
post processor. Use DEBUGG with discretion since they generate a large volume of print output.
4.59.1 DEBUGG/FRONT
DEBUGG/FRONT
Prints the post processor register address locations, alphabetical addresses, formats, and the contents of the
WORD buffer.
4.59.2 DEBUGG/OFF
DEBUGG/OFF
4.59.3 DEBUGG/ON,CLW
DEBUGG/ON,CLW
DEBUGG/ON,n,TO,m,TYPE,1-3
Prints the common variables from location n to location m, after reading every CL record.
DEBUGG/ON,n,TO,m,TYPE,1-3
Prints the common variables from location n to location m, after reading every CL record.
4-69
G-Post Reference Manual
4.60 DELAY
DELAY/n[,REV]
This statement produces a dwell block. The value of n is in seconds or in revolutions if REV is given.
When the IPM/IPR switchable option is not available in the control, the dwell time will be converted to the
available units.
Note: If the DWELL register is one of the axis registers, the verification DWELL time will appear in that
axis column.
Examples (L):
FEDRAT/10,IPM
GOTO/0,0
DELAY/5 $$OUTPUTS DWELL CODE & DWELL IN SECONDS
GOTO/5,5
N005G01X0Z0F01$
N006G04X05$
N007G01X05Z05$
Example (L):
FEDRAT/.010,IPR
GOTO/0,0
DELAY/5 $$OUTPUTS DWELL CODE & DWELL IN REVS
GOTO/0,0
N005G95$
N006G01X0Z0F001$
N007G04X5425
N008G01X0Z0$
4-70
4 Command Language
Examples (M):
Input:
SPINDL/1000,RPM,CLW
FEDRAT/10,IPM
GOTO/0,0
DELAY/5 $$OUTPUTS DWELL CODE & DWELL IN SECONDS
GOTO/5,5
N0004M4A$
N0005S1000M03$
N0006G01X0Y0Z0F01$
N0007G04F005$
N0008G01X005Y005F01$
Example (M):
Input:
SPINDL/1000,RPM,CLW
FEDRAT/.010,IPR
GOTO/0,0
DELAY/5,REV $$DWELL CODE IN REVS (.3 SEC.)
GOTO/5,5
N004M41$
N005S100M03$
N006G01X0Z0F01$
N007G04F0003$
N008G01X005Y005F01$
4-71
G-Post Reference Manual
4.61 DISPLY
4.61.1 DISPLY/ON-OFF
DISPLAY/ON-OFF
This statement allows the operator comments to be displayed at the Machine/Control unit.
ON Enables the [text], which is column 7 through 72 of the subsequent PPRINT commands to be
punched. Trailing blanks in [text] will be ignored. The [text] will be enclosed in parentheses ( )
and punched with sequence number and the current OPSKIP condition.
Example:
Input:
GOTO/5,5
DISPLY/ON
PPRINT THIS STATEMENT IS FOR OPERATOR COMMENTS
DISPLY/OFF
PPRINT THIS STATEMENT WILL NOT BE PUNCHED
GOTO/0,0
N004G01X05Z05$
N005(THIS STATEMENT IS FOR OPERATOR COMMENTS)$
N006X0Z0$
N004G01X05Y05Z05$
N005(THIS STATEMENT IS FOR OPERATOR COMMENTS)$
N006X0Z0$
Related Commands:
PLABEL/OPTION,14
PLABEL/OPTION,15
PLABEL/OPTION,30
4-72
4 Command Language
4.61.2 DISPLY/NEXT
DISPLY/NEXT
This command is similar to DISPLY/ON, except that it punches the text from the next PPRINT statement,
regardless of the current setting of DISPLY/ON-OFF condition.
Example:
DISPLY/NEXT
PPRINT THIS IS A TEST
DISPLY/ON
PPRINT THIS IS A TEST
DISPLY/OFF
4-73
G-Post Reference Manual
4.62 DMIS
DMIS/ON-OFF
Support has been added to receive DMIS-CMM data from the NCL file (Generated by Pro/E). The DMIS
data is passed onto a file without interpreting the contents. It is up to the user to write FIL to parse this data
as needed.
For each DMIS/ON-OFF pair in the NCL file, a new file named input_file001.dms,input_file002.dms etc
will be created. The name input_file is the actual name of the input NCL file. The contents of the *.dms
will be exact DMIS data from the NCL file.
G-Post then will see the modified DMIS data and will not fail with translation errors while reading DMIS
data since they are in an external file.
MDWRIT/ON
PPRINT DMSFILE=INPUT_FILE_NAMEnnn.DMS (nnn=DMIS/sequence number)
MDWRIT/OFF
Note: See the FIL manual for a complete description of the FIL code required to utilize this data.
4-74
4 Command Language
4.63 END
END
4-75
G-Post Reference Manual
4.64 FEDRAT
4.64.1 FEDRAT/f[,IPM-IPR][,RAPTO[,d]]
FEDRAT/f,[,IPM-IPR][,RAPTO[,d]]
Note: The mode (inch or metric) is selected in the MACHIN/ statement and no number conversions are
done to the FEDRAT values.
RAPTO Is a non-modal option which causes the next motion to be split into two blocks. The first
block is a rapid move to within a distance d, from the end point. The second block is at
the feedrate f for the remaining distance d.
d The value d remains in effect for subsequent RAPTO options until changed. Initially 0.3
is assumed for d.
4.64.2 FEDRAT/LOCK,ON-OFF
FEDRAT/LOCK,ON-OFF
4-76
4 Command Language
4.65 FINI
This statement indicates the end of the CL file. The post processor will output all pending blocks and stop
execution.
Using the Option File Generator you can define up to 10 blocks of NC code to be output at the end of the
MCD file. Tape trailer and the Rewind stop code are the only pieces of data that will follow this output.
4-77
G-Post Reference Manual
x,y Are the coordinates of the axes position in the part coordinate system. Any effective translation
will be applied to x and y to obtain the machine coordinates.
The coordinates of x and y are assumed to be the tool tip, unless TURRET/CENTER is in effect, and
indicate the turret reference point.
4-78
4 Command Language
x,y,z Are the coordinates of the axes position in the part coordinate system. Any effective translation
will be applied to x, y, and z to obtain the machine coordinates.
Related Commands:
PLABEL/OPTION,45
4-79
G-Post Reference Manual
4.68 GOHOME
GOHOME
Example (M):
Input:
GOTO/5,2,.5
GOTO/6,5,1
GOHOME
N004G01X005Y002Z0005F001$
N005X006Y005Z001$
N006G00Z03F0
N007X01Y01F0
Example (L):
Input:
GOTO/5,5
GOHOME
N004G01X05Z05F01$
N005G00X1Z1$
4-80
4 Command Language
4.69 GOTO
GOTO/x,y,z
Example (M):
Input:
GOTO/5,2,.5
GOTO/6,5,1
N004G01X005Y002Z0005F001$
N005X006Y005Z001$
Example (L):
Input:
GOTO/5,5,0
N004G01X05Z05F01$
Related Commands:
ARCDAT - ARCMOV
4-81
G-Post Reference Manual
This statement modifies the default turret separation distance for multiple turret lathes.
XCOORD,xd Specifies the direction and distance of this secondary turret, measured along the CL X
axis from the primary turret.
YCOORD,yd Specifies the direction and distance of this secondary turret, measured along the CL Y-
axis from the primary turret.
4-82
4 Command Language
4.71 INCLUD
INCLUD/Filename
This statement is used to include the contents of the specified ASCII source file, Filename, into the current
file. Once the contents of Filename are included the process will continue on the line following the
INCLUD statement.
Filename can be any valid ASCII text file on your system. If the file extension is not specified, .INC is
used. If the Filename does not include the path the system will locate the file as follows:
1. Search the current working directory where the source file is located.
2. Search the directory specified by the UNC$INCLUDE path from the Config.tbl file. It is
recommended that the UNC$INCLUDE and the UNC$LIBRARY paths be the same in the
Config.tbl file.
3. Search the directory specified by the UNC$LIBRARY from the Config.tbl file.
• If the specified Filename is not located in one of these locations the system will generate an error
message.
• The INCLUD/Filename statement must start in column one on any line of your source file. Shift this
command to the right out of column one and the system will generate an error message.
Examples:
4-83
G-Post Reference Manual
4.72 INSERT
INSERT[text]
This statement allows the part programmer to directly output control information to the punch file.
Blanks in the [text] will be ignored. The [text] is punched with sequence number and the current OPSKIP
condition. End of block code is not generated by the post processor and should appear in [text], if needed.
This command should be used only when a post processor command is not available for the control
information. When used, the post processor does not verify the validity of this block.
You can combine INSERT commands into long tape blocks as follows:
Example:
Input:
Output:
Related Commands:
PLABEL/OPTION,9
PLABEL/OPTION,30
4-84
4 Command Language
4.73 LEADER
LEADER/n
Related Commands:
PLABEL/OPTION,10
4-85
G-Post Reference Manual
This statement is used to test a MULTAX cutting path (at least one linear axis and a rotary axis) against a
given tolerance t for linearization. If the deviation of this path exceeds the tolerance, it is segmented into
smaller moves.
t The tolerance that will be used for testing. If omitted, the previously established value is used. The
default value for t is .005 inch.
ON Enables testing for all subsequent MULTAX feed moves until OFF is programmed.
4.74.1 LINTOL/101-199
LINTOL/101-199
This statement is used to output an -equal number of points (n) for any cut. The number of points will be
the number specified after the slash minus 100 (101-100 = 1; n = 1). This number has noting to do with the
tolerance.
Example:
4-86
4 Command Language
This command generates a tool change block consisting of an M-code, a tool number T-code, and an offset
code.
LENGTH,l Specifies the tool length, which is used to adjust Z-axis output. If you omit LENGTH,l,
zero tool length is assumed.
ADJUST,h Generates the offset register number h in the address designated in the Option File
Generator. This value will be output the same as the tool number if the switch is set in the
Option File Generator and the ADJUST value is not specified.
OMIT Does not generate an M-code. You can use this option if the tool is already resident in the
spindle, such as the first LOADTL statement to indicate tool length.
Note: Automatic tool preselect will be performed if the switch is set in the Option File Generator . There
would be no reason to use the SELCTL command if automatic tool preselects are being used. If
automatic tool preselects are performed the post processor will generate a tool list file using the same
name as the input file with the .TL1 extension.
3
8 1 1.00 .000 .000 .000 .000 0 0
16 1 1.00 .000 .000 .000 .000 0 0
24 1 1.00 .000 .000 .000 .000 0 0
The first number is the number of tool changes in this program. In this case 3 tool changes.
Each line there after is as follows:
First value is the CL record number of the tool change
Second value is the type of tool change, 1=LOADTL 2=TURRET
Third value is the tool number
Fourth value is the offset number
Fifth value is the Z LENGTH from LOADTL, Set to 0 if TURRET
Sixth value is the X gage length from TURRET, Set to 0 if LOADTL
Seventh value is the Y gage length from TURRET, Set to 0 if LOADTL
Eighth value is the CLW-CCLW from the TURRET, Set to 0 if LOADTL
Ninth value is the TURRET being used, 1=FRONT, 2=REAR, 3=SADDLE, 4=MAIN, 5=RAIL and
0=LOADTL
Note: A switch in the Option File Generator will instruct the post processor to automatically output the T
code and M code on separate blocks.
4-87
G-Post Reference Manual
4.76 LPRINT
LPRINT/NEXT
This statement causes the post processor print output (the .LST file) to start on a new page at this point.
4-88
4 Command Language
4.77 MACHIN
(M)
MACHIN/UNCX01,n[,ON-OFF][,CIRCUL-LINEAR]
[,OPTION,n1,v1,n2,v2,..] (M)
(L)
MACHIN/UNCL01,n[,ON-OFF][,CIRCUL-LINEAR]
[,OPTION,n1,v1,n2,v2,..] (L)
UNCL01
or UNCX01 The name of the post processor (UNCL01 is Lathe and UNCX01 is Mill).
CIRCUL Causes circular interpolation blocks to be output for the circular motion in the CL file,
which is the default.
LINEAR Generates linear interpolation blocks for the circular motion in the CL file.
The options are described in the PLABEL/OPTION section, since these two commands are synonymous.
Examples (M):
4-89
G-Post Reference Manual
Examples (L):
4-90
4 Command Language
MACHIN/UNCX01,n[,ON-OFF][,CIRCUL-LINEAR]
[LENGTH,min,max,TYPE,t[,MODIFY,c1,c2]
[,PULBAC,dx,dy,dz]][,OPTION,n1,v1,n2,v2,...]
(L)
MACHIN/UNCL01,n[,ON-OFF][,CIRCUL-LINEAR]
[LENGTH,min,max,TYPE,t[,MODIFY,c1,c2]
[,PULBAC,dx,dy]][,OPTION,n1,v1,n2,v2,...]
The Auto Break feature is activated if you enter values for LENGTH, TYPE, MODIFY, and PULBAC.
The post processor automatically generates a BREAK sequence once the minimum tape footage is
exceeded. If TYPE has a non-zero value associated with it, the BREAK sequence is generated on the next
occurrence of the major word indicated by TYPE. If the maximum footage is exceeded, a warning message
is output.
LENGTH Specifies the minimum and maximum footage desired when using the Auto Break
feature.
TYPE Specifies the major word or words on which the Auto Break feature is to act.
t Is a composite number containing any and all of the digits 1, 2, 3, or 4, where the
following conditions are true:
c2 Is the starting character increment in the ASCII array. See PLABEL/OPTION 9 through
16 for the character locations. c2 must be between 32 and 96; it is incremented by one
for each auto break. If c2 increments to 96, it remains at 96.
PULBAC During Auto Break, a pull-back move can be generated to clear the part.
dx,dy,dz (M) Are the delta values along each axis desired for the move. All three values must be
specified. Use zero if you do not want a move along an axis.
dx,dy (L) Are the delta values along each axis desired for the move. Both values must be specified.
Use zero if you do not want a move along an axis.
4-91
G-Post Reference Manual
4.79 MCHTOL
MCHTOL/t[,ON] or MCHTOL/ON-OFF
This command will segment a linear move into smaller steps for tolerance requirements.
t The required step size. All the subsequent moves that exceed this value will be
segmented. The minimum allowable t that you can program is 0.1.
Example:
Input:
FROM/10,0
MCHTOL/.5,ON
GOTO/15,0
MCHTOL/OFF
GOTO/10,0
N0004G01X0104545Y0051818Z0F001$
N0005X0109091Y0053636$
N0006X0113636Y0055455$
N0007X0118182Y0057273$
N0008X0122727Y0059091$
N0009X0127273Y0060909$
N0010X0131818Y0062727$
N0011X0136364Y0064545$
N0012X0140909Y0066364$
N0013X0145455Y0068182$
N0014X015Y007$
N0015X01Y0$
N004G01X0Z104545F001$
N005Z109091$
N006Z113636$
N007Z118182$
N008Z122727$
N009Z127273$
N010Z131818$
N011Z136364$
N012Z140909$
N013Z145455$
N014Z15$
N015Z1$
4-92
4 Command Language
4.80 MODE
4.80.1 MODE/INCR[,OFF]
MODE/INCR[,OFF]
INCR,OFF Generates an absolute G-code and absolute output, which is the default mode assumed.
4.80.2 MODE/90-91
MODE/90-91
4.80.3 MODE/INVERS,AUTO-ON-OFF
MODE/INVERS,AUTO-ON-OFF
AUTO Generates inverse time feed rate codes for subsequent rotary motion.
Example (L):
Input:
GOTO/6,6
MODE/INCR $$INCREMENTAL OUTPUT, NEXT BLOCKS
GOTO/3,3
GOTO/2,2
MODE/INCR,OFF $$REVERTS BACK TO ABSOLUTE
GOTO/6,6
GOTO/10,10
N004G01X06Z06$
N005G91$
N006G01X-03Z-03$
N007X-01Z-01$
N008G90$
N009G01X06Z06$
N010X1Z1$
4-93
G-Post Reference Manual
4.80.4 MODE/TABLE-ZAXIS[,ADJUST,d]
MODE/TABLE-ZAXIS[,ADJUST,d]
ADJUST,d Set the axis offset for the TABLE or ZAXIS in effect.
MODE/MILL-TURN,v[,nnnn]
The MODE/MILL,v and MODE/TURN,v commands are used for merging post processors. See the
UNCMRG chapter of this manual.
MILL,v Activates the MILL post processor UNCX01,v where v is the option file number.
TURN,v Activates the TURN post processor UNCL01,v where v is the option file number.
nnnn Optional, adding nnnn to the MODE/ commands sets the sequence number for this
section of the merged code.
MODE/MILL-TURN
The MODE/MILL and MODE/TURN commands are used for a MILL-TURN configured post
processors.
MILL Activates the MILL options for the MILL-TURN configuration. The MILL
configuration used is determined by the current SPINDL/PARLEL command.
MODE/YAXIS,ON-OFF-AUTO
The MODE/YAXIS commands are used for the XZC-XYZ output, in the milling operations, with a
MILL-TURN configured post processor.
AUTO Outputs XYZ within the defined Y axis travel limits, but switches to XZC (RTHETA)
with the Y axis travel limits are exceeded.
4-94
4 Command Language
This statement causes the G-Post to read tool axis vector components for all points in the CL file. The post
processor converts these vector components to rotary axis coordinates.
If you use MULTAX, it must appear after the MACHIN statement, but before the first motion command. If
the MULTAX command is not given, three-axis machine processing is assumed.
Example:
4-95
G-Post Reference Manual
The OP/THREAD command is a standard, PTC Pro/E generated, lathe threading command. G-Post will
automatically read ahead in the CL file to retrieve the 2 GOTO points that follow this command. The entire
threading operation will be generated by the G-Post using this format.
You can specify a variable number of data items, according to the options you desire, and you can specify
them in any order. Each item consist of either a vocabulary word only or a vocabulary word followed by
one or more entities in a fixed order.
TURN-FACE
DEPTH
TPI-IPR-MMPR
CUTS
FINCUT
CUTANG
GOTO/--- $$ START POINT OF THE THREAD
GOTO/--- $$ END POINT OF THE THREAD
The OP/THREAD command assumes a point tip cutter and hence ignores the CUTTER statement in
effect.
The OP/THREAD process generates a series of passes, cutting into the part a specified amount on each
pass until the specified total depth has been reached.
1. The Step-in move, which moves the cutter into the part an amount specified by DEPTH divided
by CUTS. This move is perpendicular to the centerline unless specified otherwise by CUTANG.
3. The Pull-back move, which moves the cutter away from the part
4. The Return move, which moves the cutter back to a position from which the step-in move for the
next pass can be made. This move is always parallel to the centerline.
TURN-FACE
4-96
4 Command Language
FINCUT,fc Specify the number of finish passes to make. Finish passes have no depth of cut. These
passes are also called “Spring Passes”.
CUTANG,a Specifies the angle between the step-in move and a line perpendicular to the centerline. It
is positive if the step-in move is in the same general direction as the thread move;
negative if opposite. The angle must be less than 90 degrees in absolute value.
MULTRD,s [Optional] You can program a multiple start thread by using this couplet. s specifies the
number of threads to be cut. The first thread is started at the start point and each
additional thread is offset in the direction opposite the threading direction a distance
equal to the lead divided by n, where the lead is the reciprocal of the pitch. If
MULTRD,n is not specified it is assumed to be 1, with the result that only one thread is
cut.
4-97
G-Post Reference Manual
4.83 OPSKIP
4.83.1 OPSKIP/ON-OFF
OPKIP/ON-OFF
ON Generates block delete (/) codes for all subsequent punch blocks.
Example (L):
Input:
GOTO/6,6
OPSKIP/ON
GOTO/3,3
GOTO/2,2
OPSKIP/OFF
GOTO/0,0
GOTO/10,10
N004G01X06Z06$
/N005G01X03Z03$
/N006X02Z02$
N007G01X0Z0$
N008X1Z1$
Related Commands:
PLABEL/OPTION,12
PLABEL/OPTION,30
4-98
4 Command Language
4.83.2 OPSKIP/n1,n2,n3,...,ON-OFF
OPKIP/n1,n2,n3,…,ON-OFF
Generates multiple block delete codes for all subsequent punch blocks. n1, n2, n3, ... are the numerical
codes to be output with the block deletes. Up to nine block deletes may be used at one time. These block
deletes may be selectively turned on and off, based upon ON and OFF.
Example (L):
Input:
OPSKIP/4,5,ON
GOTO/3,3
GOTO/2,2
OPSKIP/4,OFF
GOTO/0,0
GOTO/10,10
N004G01X06Z06$
/4/5N005G01X03Z03$
/4/5N006X02Z02$
/5N007G01X0Z0$
/5N008X1Z1$
Related Commands:
PLABEL/OPTION,12
PLABEL/OPTION,30
4-99
G-Post Reference Manual
4.84 OPSTOP
OPSTOP
4-100
4 Command Language
This statement relates the CL coordinate system to the machine coordinate system, when the two are not
coincidental. All the CL coordinates after the ORIGIN statement are modified by the ORIGIN values.
x and y Specify the distance and direction along the CL X and Y-axes measured from the part
origin to the machine origin.
Example:
Input:
ORIGIN/-10,-10
GOTO/0,0
ORIGIN/0
GOTO/10,10
N004G01X1Z1$
N005X1Z1$
Related Commands:
TRANS
4-101
G-Post Reference Manual
This statement relates the CL coordinate system to the machine coordinate system, when the two are not
coincidental. All the CL coordinates after the ORIGIN statement are modified by the ORIGIN values.
x, y, and z Specify the distance and direction along the CL X, Y, and Z axes measured from the part
origin to the machine origin. Initially ORIGIN/0 is assumed.
a An angular value denoting an absolute rotary table position for future reference. Do not
use in MULTAX mode.
The x, y, and z values are stored until the rotary table is rotated to that angle by ROTABL. At that time the
x, y, and z values are used for the ORIGIN. The number of ORIGIN statements with different angular
values is limited to 36.
Note: In MULTAX mode an ORIGIN command using the a Parameter is invalid and ignored.
Example:
Input:
Related Commands:
TRANS
4-102
4 Command Language
4.87 PARTNO
PARTNO[text]
[text] is column 7 through 72 of the PARTNO statement, which is punched in man readable form.
This is the only statement which is processed prior to the MACHIN statement in a part program.
Related Commands:
PLABEL/OPTION,7
4-103
G-Post Reference Manual
INCR-DECR For variable lead threading, INCR states increasing lead and DECR states decreasing
lead, with t1 as the ending threads per unit.
The PITCH command is modal and the established lead remains in effect for all subsequent THREAD
commands, until changed by a new PITCH statement.
Related Commands:
PLABEL/OPTION,50
4-104
4 Command Language
4.89 PLABEL
4.89.1 PLABEL/OPTION,n,TO,v
This command allows the part programmer to choose certain options provided by the post processor.
To access the PLABEL/OPTION values directly from COMMON add 1830 to the option number and this
value will be the INTCOM location used by the desired PLABEL/OPTION. PLABEL/OPTION,1 =
INTCOM(1831), PLABEL/OPTION,2 = INTCOM(1832), PLABEL/OPTION,3 = INTCOM(1833)…
n v Function
Option 02 controls the verification print, which is the auxiliary information in the .LST file. It contains for
example, spindle speed, velocity, etc.
Values 01 through 04 indicate that all dimensions in the option file are in inches.
Values 11 through 14 indicate that all dimensions in the option file are in millimeters.
05 00 Unpack MCD file output with one block per line. (default)
01 Pack MCD file output into 72 columns.
4-105
G-Post Reference Manual
n v Function
The following chart defines the decimal values for ASCII characters. The G-Post requires the use of ASCII
decimal values where specified.
∴= 32 ! = 33 “ = 34 # = 35 $ = 36 % = 37 & =38 ‘ = 39
( = 40 ) = 41 * = 42 + = 43 , = 44 - = 45 . = 46 / = 47
0 = 48 1 = 49 2 = 50 3 = 51 4 = 52 5 = 53 6 = 54 7 = 55
8 = 56 9 = 57 : = 58 ; = 59 < = 60 = = 61 > = 62 ? = 63
@ = 64 A = 65 B = 66 C = 67 D = 68 E = 69 F = 70 G = 71
H = 72 I = 73 J = 74 K = 75 L = 76 M = 77 N = 78 O = 79
P = 80 Q = 81 R = 82 S = 83 T = 84 U = 85 V = 86 W = 87
X = 88 Y = 89 Z = 90 [ = 91 \ = 92 ] = 93 ^ =95 _= 96
PLABEL/OPTION,11,TO,37
4-106
4 Command Language
n v Function
Option 21 controls the format of the integer registers (N,G...) for punch output. The 4 digits correspond to
leading zeros, trailing zeros, plus sign, and decimal point. Any combination of the digits is acceptable. For
example, 1100 will punch leading and trailing zeros.
Option 22 controls the format of the decimal registers (X,Y...) for punch output. Any combination of the
digits is acceptable. For example, 1101 will punch leading and trailing zeros with decimal point.
Option 23 specifies the contents of I,J and K registers for a circle block in absolute mode.
Option 24 specifies the contents of I,J and K registers for a circle block in incremental mode.
Option 26 controls the output of those points in the CL file, which have identical coordinates and appear in
succession.
4-107
G-Post Reference Manual
n v Function
Option 27 controls the output of I,J and K registers in a circle block, when their value is zero.
28 Unused
Option 31 controls the print output of the tape information which appears to the left of the verification
print. This can be the tape image or optionally edited for readability. The editing places a decimal point for
decimal registers (X,Y..) and does not suppress zeros for integer registers (N,G..).
For some machine tools, the Rapid feedrate is required to be in IPM or IPR mode. Option 32 selects this
appropriate mode before the output of a rapid block. Assume the current feed mode in the part program is
IPR and your machine tool requires that rapid must be in IPM mode. The post processor will automatically
switch to IPM to output the rapid block and then switch back to IPR mode for the next move.
33 00 Use departure distance for circular INVERS time feedrate calculations. (default)
01 Use circle radius for circular INVERS time feedrate calculations.
When the post is in simulation mode, no output is created for the print and punch files. All processing takes
place so that all common locations within the post are updated. This option is normally set within FIL
programs.
4-108
4 Command Language
n v Function
Option 40 controls the motion analysis of rapid moves. This option applies only to non-cycle RAPID
moves.
Option 41 applies to machines with canned cycles. The Z value can be output as an absolute coordinate in a
cycle block or as an incremental value measured from the rapid stop point.
Option 42 controls the output of a positioning block after each tool change. This positioning block will
contain the tool change coordinates for automatic tool change machines or the current axes position for
manual tool change machines. It is output after each tool change for alignment.
Option 43 controls the output of motion in linear interpolation. Some machines will not allow XYZ in the
same block.
Some controllers have a built-in retract with G80 series cycles that causes a crash condition when the post
processor performs motion analysis in cycle mode. Option 44 will force the post processor to always output
cycle motion in one block.
4-109
G-Post Reference Manual
n v Function
Option 46 controls the M-code to be output when the Auto Break feature generates a break sequence.
Inverse time feedrate always uses analytical method and disregards tool length with rotary tables, for the
inverse feedrate arc length D=SQRTF(LIN**2 + ROT**2). Use ½ cutter height to shift tool-tip along the
tool-axis to find the current span length
Option 53 relates the CL coordinate axes to the Lathe coordinate axes, which can be interchanged for the
ease of programming.
4-110
4 Command Language
n v Function
Option 54 specifies the sequence of output for the axis preset blocks under SET/START,AUTO mode.
Option 56 controls the output of the thread lead registers when the thread lead is equal to zero.
59 Unused
Option 61 controls loading the verification registers with the POSTN statement. Verification is INTCOM
locations 27 through 52. Verify A=27, Verify Z=52.
Option 62 suppresses the output of dwell times in the verification column for the DELAY statement.
Option 63 has been added to allow blanks to be output with the multiple address string. Setting this option
to an ASCII pointer value will allow spaces to replace the character that is designated.
4-111
G-Post Reference Manual
n v Function
66 - 69 Unused
78 – 80 Unused
82 00 In MULTAX if no tool axis is present retain the previous tool axis. (default)
02 In MULTAX if no tool axis is present set tool axis to 0,0,1
89 Unused
4-112
4 Command Language
n v Function
Option 95 controls the information output at the beginning of the punch file.
96 Unused
98 Unused
Option 99 may be used to designate a different rewind stop code at the end of the tape.
100 Unsed
4-113
G-Post Reference Manual
PLABEL/OPTION Examples:
Example (M):
Input:
Example (L):
Input:
N001G71$
N002G90$
N003G94$
N004G01X1778Z127F00003$
N005X1016Z0508$
4-114
4 Command Language
4.89.2 PLABEL/MODIFY,n,TO,v,TYPE,t
PLABEL/MODIFY,n,TO,v,TYPE,t
This command is used to change the value of a common variable at location n to a value of v.
1) INTCOM(n) = v
2) RELCOM(n) = v
3) DBLCOM(n) = v
4) INTCOM(n) = ASCII(v)
5) INTCOM(v) = INTCOM(n)
6) RELCOM(v) = RELCOM(n)
7) DBLCOM(v) = DBLCOM(n)
8) INTCOM(v) = RELCOM(n)
9) INTCOM(v) = DBLCOM(n)
10) RELCOM(v) = INTCOM(n)
11) RELCOM(v) = DBLCOM(n)
12) DBLCOM(v) = INTCOM(n)
13) DBLCOM(v) = RELCOM(n)
14) INTCOM(v) = INTCOM(v) + n
15) INTCOM(v) = INTCOM(v) * n
16) RELCOM(v) = RELCOM(v) + n
17) RELCOM(v) = RELCOM(v) * n
18) DBLCOM(v) = DBLCOM(v) + n
19) DBLCOM(v) = DBLCOM(v) * n
20) INTCOM(v) = INTCOM(v) + INTCOM(n)
21) INTCOM(v) = INTCOM(v) * INTCOM(n)
22) RELCOM(v) = RELCOM(v) + RELCOM(n)
23) RELCOM(v) = RELCOM(v) * RELCOM(n)
24) DBLCOM(v) = DBLCOM(v) + DBLCOM(n)
25) DBLCOM(v) = DBLCOM(v) * DBLCOM(n)
26) DBLCOM(v) = DBLCOM(v) / DBLCOM(n)
PLABEL/MODIFY,470,TO,81,TYPE,1
4-115
G-Post Reference Manual
4.90 PIVOTZ
PIVOTZ/ON-OFF
If you have the option file enabled for planar machining output, then you can turn off planar output for full
5-axis contouring mode in the same program using PIVOTZ/OFF, It can be turned back on with
PIVOTZ/ON.
4-116
4 Command Language
4.91 POSTN
POSTN/[,XAXIS,xh][,YAXIS,yh]
This command modifies the home coordinates, used by the GOHOME statement.
Example:
Input:
POSTN/XAXIS,15,YAXIS,10
GOTO/P1
GOHOME
This command modifies the home coordinates, used by the GOHOME statement.
Example:
Input:
POSTN/XAXIS,15,ZAXIS,10
GOTO/P1
GOHOME
4-117
G-Post Reference Manual
4.91.3 POSTN/IN-OUT,a1,v1,a2,v2...,an,vn[,NEXT]
POSTN/IN-OUT,a1,v1,a2,v2,…,an,vn[,NEXT]
This command provides a variable insert to output selected tape codes to the punch file. This is a structured
INSERT statement and the post processor only validates the letter address. If you want to output a P value
then the post must have a P letter address.
a1-an Are the required letter addresses and must be 1 through 26 to indicate the alpha
characters A through Z.
If some data already exists for output, the IN option will combine the POSTN codes with the existing
block and the OUT option will clear the current block and start a new block for POSTN.
Example (M):
The following command generates a G40 block with the current X and Y coordinates:
Input:
G=7
X=24
Y=25
P1=POINT/10,10
—-
GOTO/P1
POSTN/OUT,G,40,X,(CANF(P1,1)),Y,(CANF(P1,2))
—-
FINI
Example (L):
The following command generates a G73 block with the current X and Z coordinates:
Input:
G=7
X=24
Z=26
P1=POINT/10,10
GOTO/P1
POSTN/OUT,G,73,X,(CANF(P1,2)),Z,(CANF(P1,1))
FINI
4-118
4 Command Language
POSTN/IN-OUT,a1,ICnnnn-RCnnnn-DCnnnn,…,an,vn[,NEXT]
This command allows to access of the G-Post INTCOM,RELCOM,DBLCOM and CHRCOM values by
the POSTN/cmd. This is similar to using the POSTF(1) function. This is a structured INSERT statement
and the post processor only validates the letter address.
a1-an Are the required letter addresses and must be 1 through 26 to indicate the alpha
characters A through Z.
Example:
NOTE: This format is allowed only when used inside a FIL file, it is invalid when used in the APT source
or CL file (ACL,NCL etc) as input to the G-Post.
4-119
G-Post Reference Manual
4.91.5 POSTN/ALL,OUT
POSTN/ALL,OUT
This command will output all the registers in the tape format with their current values in one block. Since
the codes are output in one block, any validity for the combination of the codes is not checked.
Example:
Input:
PARTNO
—
SEQNO/NEXT
POSTN/ALL,OUT
—
FINI
4.91.6 POSTN/ALL
POSTN/ALL
This command will clear all the registers in the tape format without generating any output. This command
can be used to repeat any modal tape codes.
Example:
Input:
PARTNO
—
COOLNT/MIST
POSTN/ALL
COOLNT/MIST $$ MODAL M-CODE FOR MIST WILL BE
$$ REPEATED BECAUSE OF POSTN
FINI
4-120
4 Command Language
4.92 PPRINT
PPRINT[text]
This statement allows the programmer comments and operator messages to appear in the post processor
print file and optionally in the punch file using the DISPLY/ON command..
[text] The characters from column 7 through 72 of the input statement, which is printed.
Related Commands:
DISPLY
4-121
G-Post Reference Manual
4.93 PREFUN
PREFUN/g[,NEXT]
NEXT Generates this G-code with the next output block. If NEXT is omitted, the G-code will be
output in a block by itself.
If the multiple G-code option is selected, a maximum of four PREFUN/g,NEXT’s may be programmed
per block.
This command should be used only when a post processor command is not available for this G-code. When
used, the post processor does not verify the validity of the G-code.
Example:
Input:
N004G22G33$
Related Commands:
PLABEL/OPTION,34
4-122
4 Command Language
4.94 RAPID
RAPID
Initiates rapid traverse feed for the next motion only. Subsequent motion will be at the programmed
feedrate.
Example (M):
Input:
Example (L):
Input:
PARTNO RAPID EXAMPLE
MACHIN/UNCL01,1
P1=POINT/10,10,0
P2=POINT/20,20,0
P3=POINT/30,30,0
—
FEDRAT/10,IPM
—
RAPID
GOTO/P1 $$ RAPID TRAVERSE
GOTO/P2 $$ FEED AT 10 IPM
GOTO/P3 $$ FEED AT 10 IPM
—
FINI
4-123
G-Post Reference Manual
4.95 REMARK
REMARK
REMARK is a programmer message and is not written to the listing or MCD files. It is basically ignored
and is thrown in the trash.
4-124
4 Command Language
4.96 REPEAT
4.96.1 REPEAT/a1,a2,v[,ON-OFF]
REPEAT/a1,a2,v[,ON-OFF]
This command is used to output an extra address and value automatically whenever a specific address is
output.
a1 1-26 representing A to Z. This is the address that is used to force output of the extra
address and value.
ON Specifies that a2 and v will be output every time a1 is output. The default condition is
that a2 and v will be output only the next time a1 is output.
4.96.2 REPEAT/a1,a2,a3,...,a26,t1,v1,ALL
REPEAT/a1,a2,a3,…,a26,t1,v1,ALL
This command is used to output an extra address and value automatically whenever a specific address is
output, except that any number of addresses,a1,a2,a3...,a25, may force the output of the address t1 with
the value of v1. This command does not have the ON-OFF option like the above command.
a1,a2,a3,...,a25 1-26 representing A to Z. These addresses are used as triggers to force output of the extra
address t1 and value v1.
ALL Specifies that any address a1,a2,a3,...,a25 will force the output of t1 and v1.
4.96.3 REPEAT/a1,v1
REPEAT/a1,v1
This command will output the address a1 with a value of v1 on every block until REPEAT/OFF is
encountered.
4-125
G-Post Reference Manual
4.96.4 REPEAT/OFF
REPEAT/OFF
Turns off all REPEAT commands and clears all stored REPEAT values.
Caution: REPEAT commands may be turned on and off at any time. It is important to
remember that it is possible to fill up all of the REPEAT locations. REPEAT/OFF clears all of
these locations.
Example:
Input:
REPEAT/26,7,43
REPEAT/26,8,2
RAPID,GOTO/4,5,6
Output:
N008X4.Y5.$
N0090G00G43Z6.H02$
Example:
Input:
REPEAT/24,25,26,8,99,ALL
RAPID,GOTO/10,10,10
Output:
N008X10.Y10.H99$
N009Z10.$
4-126
4 Command Language
4.97 RESET
RESET
This command generates a restart sequence, which contains the current speed, feed rate and coolant
conditions, with a motion block to the current axes position in absolute mode.
4-127
G-Post Reference Manual
This command retracts the tool tip at rapid rate to the last CLEARP/XYPLAN,d value.
If CLEARP/OFF is in effect, the spindle is retracted to the home coordinate at rapid rate, disregarding the
tool length.
Related Commands:
CLEARP
4-128
4 Command Language
4.99 REWIND
4.99.1 REWIND/[n]
REWIND/[n]
Generates a rewind M-code, normally M30. Some CAM systems require n to satisfy the syntax. It is
ignored by the post processor.
Related Commands:
PLABEL/OPTION,8
PLABEL/OPTION,11
4.99.2 REWIND/PUNCH
REWIND/PUNCH
Causes the file pointer to be repositioned to the first line of the Punch file. Any susbsiquent write to the
Punch file will cause a loss of all data currently in the file. Forcing the G-Post to exit, by sending it the
command FINI, after using REWIND/PUNCH will cause the Punch file to be empty.
4-129
G-Post Reference Manual
4.100.1 ROTABL/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a[,CLW-CCLW][,NEXT-
NOW]
ROTABL/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
INCR Specifies an incremental value of a in degrees from the current table position.
The value of a can be from -360 to +360.
NEXT Causes the table motion to be output with the next linear motion.
NOW Causes table motion to be output in a block by itself, initially NOW is assumed.
4.100.2 ROTABL/ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
ROTABL/ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
INCR Specifies an incremental value of a in degrees from the current table position. The value
of a can be from -360 to +360.
CLW-CCLW Specifies the direction of table rotation to be clockwise or counterclockwise. This option
is modal; initially CLW is assumed.
NEXT Causes the table motion to be output with the next linear motion.
NOW Causes table motion to be output in a block by itself, initially NOW is assumed.
4-130
4 Command Language
4.101.1 ROTATE/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a,[CLW-
CCLW][,NEXT][,OUT]
ROTATE/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW][,OUT]
INCR Specifies an incremental value of a in degrees from the current table position.
The value of a can be from -360 to +360.
NEXT Causes the table motion to be output with the next linear motion.
OUT Causes the a angle to be output in machine coordinates. OUT must be the last
entry specified on the ROTATE command or it will be ignored.
4-131
G-Post Reference Manual
4.102.1 ROTHED/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a[,CLW-
CCLW][,NEXT-NOW]
ROTHED/AAXIS-BAXIS-CAXIS,ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
INCR Specifies an incremental value of a in degrees from the current head position.
The value of a can be from -360 to +360.
NEXT Causes the head motion to be output with the next linear motion.
NOW Causes head motion to be output in a block by itself, initially NOW is assumed.
4.102.2 ROTHED/ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
ROTHED/ATANGL-INCR,a[,CLW-CCLW][,NEXT-NOW]
INCR Specifies an incremental value of a in degrees from the current head position. The value
of a can be from -360 to +360.
CLW-CCLW Specifies the direction of head rotation to be clockwise or counterclockwise. This option
is modal; initially CLW is assumed.
NEXT Causes the head motion to be output with the next linear motion.
NOW Causes head motion to be output in a block by itself, initially NOW is assumed.
4-132
4 Command Language
4.103 SELCTL
SELCTL/t
Note: Automatic tool preselect will be performed if the switch is set in the Option File Generator. There
would be no reason to use the SELCTL command if automatic tool preselects are being used. If automatic
tool preselects are performed the post processor will generate a tool list file using the same name as the
input file with the .TL1 extension.
3
8 1 1.00 .000 .000 .000 .000 0 0
16 1 1.00 .000 .000 .000 .000 0 0
24 1 1.00 .000 .000 .000 .000 0 0
The first number is the number of tool changes in this program. In this case 3 tool changes.
Each line there after is as follows:
First value is the CL record number of the tool change
Second value is the type of tool change, 1=LOADTL 2=TURRET
Third value is the tool number
Fourth value is the offset number
Fifth value is the Z LENGTH from LOADTL, Set to 0 if TURRET
Sixth value is the X gage length from TURRET, Set to 0 if LOADTL
Seventh value is the Y gage length from TURRET, Set to 0 if LOADTL
Eighth value is the CLW-CCLW from the TURRET, Set to 0 if LOADTL
Ninth value is the TURRET being used, 1=FRONT, 2=REAR, 3=SADDLE, 4=MAIN, 5=RAIL and
0=LOADTL
SELCTL/t
Generates a T-code to change the offset register number to t without indexing the turret.
4-133
G-Post Reference Manual
4.104.1 SELECT/h
SELECT/h
This statement generates a fixture offset code to initiate the X-Y fixture offsets, with the offset register
number h. The address is selected by the Option File Generator.
4.104.2 SELECT/gg,ADJUST,dd
SELECT/gg,ADJUST,dd
This statement generates a fixture offset gg G-code to initiate the X-Y fixture offsets, with the offset
register number dd. The address is selected by the Option File Generator.
4.104.3 SELECT/AUTO
SELECT/AUTO
A head rotation range that will position on either side of the vertical axis presents two possible machine
positions that will satisfy the geometry of a given location. The following vocabulary is provided so the
programmer can control which condition is satisfied.
This statement allows the A-axis to position between the front and rear positions.
4.104.4 SELECT/BOTH,START[,FRONT-REAR]
SELECT/BOTH,START[,FRONT-REAR]
A head rotation range that will position on either side of the vertical axis presents two possible machine
positions that will satisfy the geometry of a given location. The following vocabulary is provided so the
programmer can control which condition is satisfied.
This statement allows the A-axis to position to the front or the rear position initially and then change to the
opposite condition for the remainder of the CL points.
4-134
4 Command Language
4.104.5 SELECT/FRONT
SELECT/FRONT
A head rotation range that will position on either side of the vertical axis presents two possible machine
positions that will satisfy the geometry of a given location. The following vocabulary is provided so the
programmer can control which condition is satisfied.
This is the default modal head condition which confines the A-axis to the front position (1st and 4th
quadrants).
4.104.6 SELECT/REAR
SELECT/REAR
A head rotation range that will position on either side of the vertical axis presents two possible machine
positions that will satisfy the geometry of a given location. The following vocabulary is provided so the
programmer can control which condition is satisfied.
This statement confines the A-axis to the rear position (2nd and 3rd quadrants).
4.104.7 SELECT/XYPLAN-YZPLAN-ZXPLAN
SELECT/ XYPLAN-YZPLAN-ZXPLAN
If your control has multiple plane selections for circular interpolation, this command will set the desired
plane mode and output the G-code G17,G18 or G19 or as set in the Option File. You can optionally issue
this command to reset the mode back to G17 at each tool change. The default is G17 at the start unless
changed in the Option File Generator Start/End of Program/Default Prep Codes screen.
4-135
G-Post Reference Manual
4.105 SEQNO
4.105.1 SEQNO/k,INCR[,m[,n]]
SEQNO/k,INCR[,m[,n]]
n Causes sequence number output every nth block. Default condition n=1
4.105.2 SEQNO/k
SEQNO/k
4.105.3 SEQNO/0
SEQNO/0
4.105.4 SEQNO/OFF
SEQNO/OFF
4.105.5 SEQNO/ON
SEQNO/ON
Reinstates the sequence number output to its last condition after a SEQNO/OFF or SEQNO/0 request.
4.105.6 SEQNO/NEXT
SEQNO/NEXT
Generates the next block as an alignment block with the address selected by the Option File Generator.
Related Commands:
PLABEL/OPTION,30
4-136
4 Command Language
4.106.1 SET/START,AUTO[,OFF]
SET/START,AUTO[,OFF]
AUTO Causes the subsequent TURRET statements to generate preset blocks to adjust for the
gage lengths in the absolute mode. This is the default condition assumed.
4.106.2 SET/START
SET/START
Generates a block to preset the axes registers with the next CL coordinates.
4.106.3 SET/START,x,z
SET/START,x,z
x,z The values output for the X and Z axes in machine coordinates.
4-137
G-Post Reference Manual
4.107.1 SET/START[,XAXIS,x][,YAXIS,y][,ZAXIS,z][,AAXIS,a][,BAXIS,b][,CAXIS,c]
SET/START[,XAXIS,x][,YAXIS,y][,ZAXIS,z][,AAXIS,a][,BAXIS,b][,CAXIS,c]
Only the specified axes will be preset. They may appear in any order in the above statement.
Example:
Input:
SET/START,XAXIS,-1,BAXIS,90
GOTO/0,0,-.5
N0004G92X-1.Y-1.B90.$
N0005G01X0.Y0.Z-5.F10.$
4.107.2 SET/WAXIS,ATANGL,a
SET/WAXIS,ATANGL,a
This statement sets the constant draft angle ‘a’ used by the wire EDM 4-axis post configuration..
4.107.3 SET/WAXIS,LENGTH,w
SET/WAXIS,LENGTH,w
This statement sets the wire length ‘w’ used by the wire EDM 4-axis post configuration..
4-138
4 Command Language
4.107.4 SET/WAXIS,ADJUST,z)
SET/WAXIS,ADJUST,z
This statement sets the z-offset ‘z’ used by the wire EDM 4 axis post configuration..
4.107.5 SET/HED-HOLDER,n,x,y,z[,POSX-POSY-POSZ-NEGX-NEGY-NEGZ]
SET/HED-HOLDER,n,x,y,z[,POSX-POSY-POSZ-NEGX-NEGY-NEGZ]
This statement specifies a 90 degree attachment or a right angle head control for a 3-5 axis mill.
HED-HOLDER,n Specifies the holder number (n) that will generate the desired code (M, H etc) as
specified in the Option File Generator. You must specify n even if your
controller does not require the code to be output.
x,y,z Specifies the offset value measured from the normal spindle control point along
the original machine axis to the holder control point. These values must be
specified even if zero.
POSX Specifies the tool orientation or axis direction as pointing in the positive X
direction.
POSY Specifies the tool orientation or axis direction as pointing in the positive Y
direction.
POSZ Specifies the tool orientation or axis direction as pointing in the positive Z
direction.
NEGX Specifies the tool orientation or axis direction as pointing in the negative X
direction.
NEGY Specifies the tool orientation or axis direction as pointing in the negative Y
direction.
NEGZ Specifies the tool orientation or axis direction as pointing in the negative Z
direction.
Example:
4-139
G-Post Reference Manual
4.107.6 SET/HED-HOLDER,OFF
SET/HED-HOLDER,OFF
This statement resets the post processor to the default settings for a 90 degree attachment or a right angle
head control for a 3-5 axis mill. Normally this would tell the post processor that the right angle attachment
has been removed and the tool is oriented in the negative Z axis direction.
SET/HOLDER,n,SETOOL,x,y,z,ATANGL,a,SETANG,s
This statement specifies a 90 degree attachment or a right angle head control for a 3-5 axis mill.
HOLDER,n Specifies the holder number (n) that will generate the desired code (M, H etc) as
specified in the Option File Generator. You must specify n even if your
controller does not require the code to be output.
SETOOL,x,y,z Specifies the offset value measured from the normal spindle control point along
the original machine axis to the holder control point. These values must be
specified even if zero.
ATANGL,a Specifies the angle of the tool in the ZX plane as measured from +X to +Z axis.
For ease of use this angle will only vary from 0 to –180.
SETANG,s Specifies the angle of the tool in the XY plane as measured from +X to +Y axis.
Example:
SET/HOLDER,OFF
This statement resets the post processor to the default settings for a 90 degree attachment or a right angle
head control for a 3-5 axis mill. Normally this would tell the post processor that the right angle attachment
has been removed and the tool is oriented in the negative Z axis direction.
4-140
4 Command Language
4.108.1.1 SPINDL/s,RPM[,CLW-CCLW][,RANGE,n]
SPINDL/s,RPM[,CLW-CCLW][,RANGE,n]
4.108.1.2 SPINDL/ON-OFF
SPINDL/ON-OFF
4.108.2.1 SPINDL/s[,RPM-SFM][,CLW-CCLW][,RANGE,n][,MAXRPM,m][,RADIUS,r]
SPINDL/s,[,RPM-SFM][,CLW-CCLW][,RANGE,n][,MAXRPM,m][,RADIUS,r]
4-141
G-Post Reference Manual
RADIUS The current Machine X axis position If the machine X axis (CL Y) is at 0.0 (startup
default) and a RADIUS value is not programmed, an R0.0 will be output.
4.108.2.2 SPINDL/ON-OFF
SPINDL/ON-OFF
4.108.2.3 SPINDL/LOCK,AUTO-ON-OFF
SPINDL/LOCK,AUTO,LAST
SPINDL/LOCK,AUTO-ON-OFF
AUTO Inhibits speed changes for rapid moves and allows speed changes for feed moves
automatically. This is the default condition assumed.
4-142
4 Command Language
4.109.1 SPINDL/s[,CLW-CCLW][,RANGE,n]
SPINDL/s,[,CLW-CCLW][,RANGE,n]
4.109.2 SPINDL/ON-OFF
SPINDL/ON-OFF
4.109.3 SPINDL/LOCK
SPINDL/LOCK
SPINDL/PARLEL,XAXIS-YAXIS-ZAXIS
This statement is used for a MILL-TURN configured post processor to determine the current tool
orientation in effect when MODE/MILL is active.
XAXIS The tool axis is aligned with the X axis for MODE/MILL
YAXIS The tool axis is aligned with the Y axis for MODE/MILL
ZAXIS The tool axis is aligned with the Z axis for MODE/MILL
4-143
G-Post Reference Manual
Caution: This is not a post processor command or CL record but it is the first thing that happens when
the post processor starts processing. Using the Option File Generator you can specify the initial data in the
MCD file. Following is a list of possible output blocks for the start of each MCD file. Each output sequence
may be turned on or off using the Option File Generator. You cannot change the order of these output
blocks.
4. Program number
5. Time Stamp
4-144
4 Command Language
4.111 STOP
STOP
4-145
G-Post Reference Manual
4.112.1 THREAD/ON-TURN-FACE
THREAD/ON-TURN-FACE
Causes the next motion block to be output as a thread block. The thread chasing axis is stated to be TURN
for CL X or FACE for CL Y.
If ON is given, the post processor determines the thread chasing axis as follows:
Note: A PITCH statement must have been specified prior to the THREAD commands to establish the
required lead.
4.112.2 THREAD/OUT[,XAXIS,x][,YAXIS,y][,INCR]
THREAD/OUT[,XAXIS,x[,YAXIS,y][,INCR]
x Value to be output in the Z register in the next G33 block. If INCR is specified, the value
will be added to the register.
y Value to be output in the X register in the next G33 block. If INCR is specified, the
value will be added to the register.
INCR The values specified are added to the current axis position for output in the G33 block.
Example:
Input:
THREAD/OUT,YAXIS,0.125,INCR
PITCH/8
GOTO/10,3.875
THREAD/ON
GOTO/5,3.875
N0090G01X3.875Z10.$
N0100G33X4Z5.K125$
4-146
4 Command Language
4.112.3 THREAD/AUTO
THREAD/AUTO[,LEFT-RIGHT][,IN-OUT],START,s,LENGTH,l,DIAMTR,d1,d2,INCR,s1[,s2]
[,ATANGL,a][,PULBAC,d,a][,BOTH],[PITCH,p][,REPEAT,r][,OPSTOP][,OPSTOP]
[,SELECT,s][,CLEARP,x,y] [,FEDRAT,f1,f2,f3,f4,f5] [,START,s,n][,TAPER,x,y,a
The THREAD/AUTO command allows you to program an entire threading operation by means of a single
statement.
You can specify a variable number of data items, according to the options you desire, and you can specify
them in any order. Each item consist of either a vocabulary word only or a vocabulary word followed by
one or more entities in a fixed order.
START
LENGTH
DIAMTR
INCR
The THREAD/AUTO command assumes a point tip cutter and hence ignores the CUTTER statement in
effect.
The THREAD/AUTO process generates a series of passes, cutting into the part a specified amount on each
pass until the specified total depth has been reached.
5. The Step-in move, which moves the cutter into the part an amount specified by INCR. This move
is perpendicular to the centerline unless specified otherwise by ATANGL.
6. The actual threading move, which is parallel to the centerline unless specified otherwise by
TAPER.
7. The Pull-Back move, which moves the cutter away from the part. This move is perpendicular to
the centerline unless otherwise specified by PULBAC.
8. The Return move, which moves the cutter back to a position from which the step-in move for the
next pass can be made. This move is always parallel to the centerline.
RIGHT or LEFT
RIGHT Specifies a right hand thread. Threading moves are made in the direction of decreasing
centerline dimension, from tailstock towards the headstock. RIGHT is the default
condition.
LEFT Specifies a left hand thread. Threading moves are made in the direction of increasing
centerline dimension, from headstock towards the tailstock.
OUT Specifies an external thread. The stepover from one pass to the next is made in the
direction toward the centerline. OUT is the default condition.
4-147
G-Post Reference Manual
IN Specifies an internal thread. The stepover from one pass to the next is made in the
direction away from the centerline.
START,s Specifies the centerline dimension of the point where the thread move is to start.
LENGTH,l Specifies the length of the thread move, measured parallel to the centerline. The length is
measured from the centerline dimension specified by START,s in the threading
direction specified by RIGHT or LEFT.
DIAMTR,d1,d2 Specifies the major and minor diameters of the thread. The order in which the two
diameters are given is immaterial; the larger is used as the major diameter and the smaller
as the minor. External threads are cut from major diameter to minor; internal threads
from minor to the major.
INCR,s1 Specifies a constant incremental distance to cut into the part on each pass. The distance is
measured perpendicular to the centerline.
INCR,s1,s2 When you specify two values following INCR, the larger is used as the depth of cut for
the first pass and the smaller as the depth of cut for the final pass. Intermediate passes are
made at proportionately smaller depths to provide a smooth transition from the starting
depth to the final depth. If you specify two equal depth values, the result is the same as if
you specified a single value.
ATANGL,a Specifies the angle between the step-in move and a line perpendicular to the centerline. It
is positive if the step-in move is in the same general direction as the thread move;
negative if opposite. The angle must be less than 90 degrees in absolute value.
ATANGL,0 is assumed.
PULBAC,d,a Specifies the distance and angle of the pull-back move. The distance is measured from
the end of the threading move in a direction perpendicular to the centerline. The angle is
measured between the pull-back line and a line perpendicular to the centerline. It is
positive if the pull-back move is in the same general direction as the threading move;
negative if opposite. The angle must be less than 90 degrees in absolute value.
PULBAC,.5,0 is assumed.
BOTH Specifies that both the treading move and the pull-back move are to be made in threading
mode. By default the pull-back move is NOT made in threading mode.
PITCH,p Specifies the number of threads per inch. For multiple start threading you must specify
PITCH in the THREAD/AUTO command. Otherwise, you may specify PITCH either
in the THREAD/AUTO statement or as a regular post processor statement preceding the
THREAD/AUTO statement.
REPEAT,r Specifies the number of time the final pass should be repeated. The final pass is made at
least once; the REPEAT count specifies the number of additional times it should be
made. If you do not specify the REPEAT, REPEAT,0 is assumed; that is the final pass
is made only once.
The THREAD/AUTO data items SELECT, CLEARP, OPSTOP, and OPSKIP provide various options
relative to a move to a clearance point that is made on each repetition of the final pass except the last.
These words are ignored if REPEAT,O is given or implied since the final pass is made only once in this
case.
4-148
4 Command Language
SELECT,s Designates the point at which the optional operations are to be performed. SELECT,1
selects the intersection of the pull-back move and the return move and is assumed if
SELECT is not specified. SELECT,2 selects the intersection of the return move and the
step-in move.
CLEARP,x,y Designates the x and y coordinate of the clearance point. After the cutter reaches the
selected point, it then moves to the clearance point, an OPSTOP command is output, and
the cutter then moves back to the selected point, after which the regular path is resumed.
If you do not specify CLEARP, no clearance move is generated.
OPSTOP Is not necessary and is ignored if you specify CLEARP since an OPSTOP command is
automatically output at the clearance point. If you specify OPSTOP without CLEARP,
an OPTSOP command is output at the SELECT point.
OPSKIP generates a post processor OPSKIP/ON command preceding the move to the clearance
point and an OPSKIP/OFF following the move from the clearance point back to the
SELECT point. This causes block delete codes to be output with the moves to and from
the clearance point. OPSKIP is ignored if you do not also specify CLEARP.
FEDRAT,f1,f2,f3,f4,f5
The FEDRAT data item can be used to specify the feed rate for each of the four moves of a regular pass as
well as the move to and from the clearance point.
1. A non-zero scalar f causes the postprocessor command FEDRAT/f to be output preceding the move.
2. The word RAPID causes the postprocessor command RAPID to be output preceding the move.
3. A scalar zero causes no feed rate command, neither FEDRAT nor RAPID to be output preceding the
move with the result that the previous established FEDRAT command remains in effect.
FEDRAT,RAPID,0,RAPID,RAPID,RAPID
START,s,n You can program a multiple start thread by using this alternate form of the START data
item. The entry s specifies the centerline dimension of the point where the thread move is
to start. The entry n specifies the number of threads to be cut. The first thread is started at
the dimension s and each additional thread is offset in the direction opposite the threading
direction a distance equal to the lead divided by n, where the lead is the reciprocal of the
pitch. You must specify PITCH in the THREAD/AUTO statement when you program
multiple start threading. If n is not specified it is assumed to be 1, with the result that
only one thread is cut.
4-149
G-Post Reference Manual
Tapered Threading
TAPER,x,y,a You should specify TAPER only if the thread is not parallel to the centerline. The entries
x and y are the centerline and cross slide dimensions, respectively, of any point on the
major diameter of the thread, if external or minor diameter, if internal. The angle of taper,
a, is measured between the tapered line and the centerline and is positive if movement
along the taper is in the general direction opposite the stepover direction; negative if in
the same general direction.
The thread move is started at the point where the tapered line intersects the line
perpendicular to the centerline at the START dimension.
With a non-tapered thread, the position of the thread relative to the centerline is
established by the DIAMTR information, but with a tapered thread, the position is
established by the tapered line. The only purpose of the DIAMTR information is for
specifying the thread depth. In the expression DIAMTR,d1,d2 the values of d1 and d2
individually are not important – only their difference. The thread depth is calculated as
follows:
4-150
4 Command Language
4.113.1 TLSPEC/CENTER,RIGHT-LEFT,IN-OUT
TLSPEC/CENTER,RIGHT-LEFT,IN-OUT
This command is used by the post processor the determine the direction for drilling CYCLEs.
4.113.2 TLSPEC/OFFSET,RIGHT-LEFT-ON,DIAMTR,IN-OUT-ON
TLSPEC/OFFSET,RIGHT-LEFT-ON,DIAMTR,IN-OUT-ON
This command is NOT used by the post processor but is does set the internal flags in the post and is used
by NC Verify to determine the tool orientation to the part.
OFFSET,RIGHT Specifies the tool is offset to the right of a vertical line. (INTCOM(3450) = 1
OFFSET,LEFT Specifies the tool is offset to the left of a vertical line. (INTCOM(3450) = -1
4-151
G-Post Reference Manual
4.114 TMARK
TMARK/[n]
Causes a rewind stop code to be output. Certain CAM systems require n to satisfy the syntax. It is ignored
by the post processor.
The default rewind stop code (=) is set in the Option File Generator.
Note: To change the default rewind stop code from the equal sign (=) to the percent sign (%) set
PLABEL/OPTION,11,TO,37 using the Option File Generator.
Related Commands:
PLABEL/OPTION,8
PLABEL/OPTION,11
4-152
4 Command Language
4.115 TOLER
TOLER/n
Specifies the circular interpolation outer tolerance that the G-Post uses if it must output linear (G01) moves
instead of circular records (G02/G03, Chordal) in the MCD/Punch file.
Notes:
1. Do not change this unless your machine does not support circular interpolation (G02/G03).
2. You must put the TOLER/n command in your input file (ACL, NCL, etc) or you can add it to your
*.stb file. It cannot be set in a FIL file.
4-153
G-Post Reference Manual
This statement relates the machine coordinate system to the CL coordinate system, when the two are not
coincidental.
All the CL coordinates after the TRANS statement are modified by the TRANS values.
x,y Specify the distance and direction along the machine X and Y-axes measured from the
machine origin to the part origin. Initially TRANS/0 is assumed.
Example:
Input:
TRANS/10,10
P1=POINT/5,5,0
P2=POINT/3,3,0
GOTO/P1
GOTO/P2
TRANS/0
GOTO/10,10
N004G01X15Z15$
N005X13Z13$
N006X1Z1$
Related Command:
ORIGIN
4-154
4 Command Language
4.117.1 TRANS/x,y,z
TRANS/x,y,z
This statement relates the machine coordinate system to the CL coordinate system, when the two are not
coincidental.
All the CL coordinates after the TRANS statement are modified by the TRANS values.
x, y, z Specify the distance and direction along the machine X, Y, and Z-axes measured from the
machine origin to the part origin. Initially TRANS/0 is assumed.
Example:
Input:
GOTO/3,3,0
TRANS/10,10,1
P1=POINT/4,6,.5
P2=POINT/5,5,2
TRANS/0
GOTO/7,7,4
N0004G01X003Y003Z0$
N0005X014Y016Z0015$
N0006X015Y015Z003$
N0007X007Y007Z004$
Related Command:
ORIGIN
4-155
G-Post Reference Manual
4.117.2 TRANS/xi,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd
TRANS/xi,,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd
This statement relates the machine coordinate system to the CL coordinate system, when the two are not
coincidental. All the CL coordinates after the TRANS statement are modified by the TRANS values. A
rotation can be included with translation for the CL coordinates.
xi through zd are the canonical values of a mathematical matrix. A graph of the matrix follows:
X axis xi xj xk xd X Output
Y axis yi yj yk yd Y Output
Z axis zi zj zk zd Z Output
Note: To cancel the translation matrix, use TRANS/0. Initially TRANS/0 is assumed.
4-156
4 Command Language
4.117.3 TRANS/xi,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd,OPTION,[00-10-01-11]
TRANS/xi,,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd,OPTION,[00-10-01-11]
This TRANS statement is used to translate just the point or the vector.
OPTION Allows you to apply the translation to only the point or vector CL coordinates. In other
words, you can apply a separate matrix for point and another for the vector. If you want
the same matrix to be applied to both the point and vector, use the regular TRANS/(12
parameter) without the word OPTION.
Note: To cancel this TRANS, use a unit MATIRX with this TRANS command:
TRANS/1,0,0,0,0,1,0,0,0,0,1,0,OPTION,11.
4-157
G-Post Reference Manual
4.117.4 TRANS/OUT,OFF-m1
TRANS/OUT,OFF-m1
Set a transformation matrix to modify the output XYZ data to the tape file. Previous TRANS statements
only allowed modification of the input CL data. The m1 argument represents a matrix of 12 parameters, it
also sets the flag to translate subsequent XYZ output to tape file. This is different than the Output
Translation as set in the Option file Translation & Output panel which is a only a simple XYZ data
translation. This option is still available in the Option File Generator.
OFF Turn off the output translation previously set. This is the default setting.
m1 A 12 parameter data set representing a defined matrix to be used for this output
translation.
Restrictions:
1. The OUT option is only be useful for 5-axis machines, where you may want to apply a matrix to the
XYZ data on the way out after G-Post transformation for the machine kinematics.
2. The TRANS/OUT requires absolute output (G90) mode and will not work for incremental output (G91)
mode.
3. It will only modify G01/G00 motion from a GOTO/cmd and not any CYCLE/motion either hard or
soft cycle mode.
Example:
PARTNO TEST
MACHIN/UNCX01,1
MULTAX/ON
LOADTL/1
SPINDL/300
M1=MATRIX/XYROT,90
M2=DATA/M1
TRANS/OUT,M2 $$ ROTATE XY-TAPE DATA BY 90 DEGRESS
GOTO/-15,10,1,0,0,1
GOTO/0,0,1,0,0,1
TRANS/OUT,OFF
END
FINI
4-158
4 Command Language
4.118.1.1 TURRET/p,f,x,y[,CLW-CCLW]
TURRET/p,f,,x,y[,CLW-CCLW]
Generates a T-code for turret indexing. Assumes the subsequent CL coordinates refer to the tool tip.
x,y Are the gauge lengths measured from the turret reference point along CL axes.
4.118.1.2 TURRET/CENTER[,OFF]
TURRET/CENTER[,OFF]
Specifies that the subsequent CL coordinates refer to the turret reference point instead of the tool tip.
OFF Specifies that the CL coordinates refer to tool tip, which is the initial default condition.
4.118.1.3 TURRET/0
TURRET/0
Generates a T00 code and assumes that the subsequent CL coordinates refer to the turret reference point.
Related Command:
FROM
4-159
G-Post Reference Manual
Example:
Assuming that the tool is on turret face 1 and that offset register number 1 is to be used, the complete
Turret command is:
TURRET/1,1,-2.5,-4.5
The value of the gauge length along the CL X axis is -2.5, since the distance from the reference point to the
tool tip center is 2.5 in the negative direction. Similarly, the value of the gauge length along CL Y-axis is -
4.5 as shown in .
CL +Y
-TY 4.5
-TX 2.5
CL +X
Figure 46 First Quadrant Lathe Gauge Lengths
4-160
4 Command Language
Example:
Assuming that the tool is on turret face 1 and that offset register number 1 is to be used, the complete
Turret command is:
TURRET/1,1,-2.5,4.5
The value of the gauge length along the CL X axis is -2.5, since the distance from the reference point to the
tool tip center is 2.5 in the negative direction. Similarly, the value of the gauge length along CL Y-axis is
4.5 as shown in .
CL +X
-TX 2.5
TY 4.5
CL -Y
Figure 47 Fourth Quadrant Lathe Gauge Lengths
4-161
G-Post Reference Manual
Example:
VTL:
Assuming that the tool is on turret face 1 and that offset register number 1 is to be used, the complete
Turret command is:
TURRET/1,1,-2.5,-4.5
The value of the gauge length along the CL X axis is -2.5, since the distance from the reference point to the
tool tip center is 2.5 in the negative direction. Similarly, the value of the gauge length along CL Y-axis is -
4.5 as shown in .
CL +Y
-TY 4.5
-TX 2.5
CL +X
Figure 48 VTL Gauge Lengths
4-162
4 Command Language
4.118.2.1 TURRET/p,f,x,y[,CLW-CCLW][,FRONT-REAR]
TURRET/p,f,,x,y[,CLW-CCLW][,FRONT-REAR]
Generates a T-code for turret indexing and assumes that the subsequent CL coordinates refer the tool tip.
x,y Are the gage lengths measured from the turret reference point along CL XY axes.
FRONT
REAR Specifies the turret type. This is a modal option and initially the primary turret is
assumed.
4.118.2.2 TURRET/CENTER[,OFF]
TURRET/CENTER[,OFF]
Specifies that the subsequent CL coordinates refer to the turret reference point instead of the tool tip.
OFF Specifies that the CL coordinates refer to tool tip, which is the initial default condition.
4.118.2.3 TURRET/0
TURRET/0
Generates a T00 code and assumes that the subsequent CL coordinates refer to the turret reference point.
4.118.2.4 TURRET/FRONT-REAR
TURRET/FRONT-REAR
This command switches turret type without indexing the turret. Subsequent CL points should refer to the
turret selected. This command is recommended for use with zero gauge lengths.
Related Commands:
FROM
4-163
G-Post Reference Manual
Example:
Secondary Turret:
Assuming that the tool is on REAR turret face 1 and that offset register number 1 is to be used, the
complete Turret command is:
TURRET/1,1,-2.5,-4.5,REAR
The value of the gauge length along the CL X axis is -2.5, since the distance from the reference point to the
tool tip center is 2.5 in the negative direction. Similarly, the value of the gauge length along CL Y-axis is -
4.5 as shown in .
CL +Y
-TY 4.5
-TX 2.5
CL +X
Figure 49 Secondary Turret Gauge Lengths
4-164
4 Command Language
Example:
Primary Turret:
Assuming that the tool is on FRONT turret face 1 and that offset register number 1 is to be used, the
complete Turret command is:
TURRET/1,1,-2.5,4.5,FRONT
The value of the gauge length along the CL X axis is -2.5, since the distance from the reference point to the
tool tip center is 2.5 in the negative direction. Similarly, the value of the gauge length along CL Y-axis is
4.5 as shown in .
CL +X
-TX 2.5
TY 4.5
CL -Y
Figure 50 Primary Turret Gauge Length
4-165
COMMON Variables 5 Lathe Common
5.1 Introduction
This chapter contains a reference list of the Lathe G-Post COMMON variables. These COMMON
variables are what the G-Post uses to store all the information the post has about the machine configuration
and the current post processor run.
There are two types of COMMON variables used in the Lathe G-Post. They are INTCOM and DBLCOM
locations. The INTCOM locations are used to store integers or whole numbers, such as G/M codes. The
DBLCOM locations are used to store floating point numbers also know as scalars, such as axes locations.
Most of the COMMON locations in the Lathe G-Posts are single dimensional arrays. They store one value
or a set of data in a sequential manner. The ITSBIT(100) array is a single dimensioned and can can store
up to 100 numbers.
There are a few COMMON locations in the Lathe G-Posts that are double dimensional arrays. They store a
set of data in columns and rows like a spread sheet. The SPTABL(6,99) array is double dimensioned and
can store 6*99=594 numbers in 6-columns and 99-rows.
To set a particular location of a double dimensioned array with PLABEL or POSTF, you need to calculate
the location using the following formula:
N=(R-1)*A+L+C-1
Where:
Example:
N=(44-1)*6+3+452-1
5-1
G-Post Reference Manual INTCOM Variables
The tape order is determined be each letters position on the File Format -> MCD File screen of the Option File
Generator. Tape order values will be from 1 through 26 only.
5-2
INTCOM Variables 5 Lathe Common
5-3
G-Post Reference Manual INTCOM Variables
5-4
INTCOM Variables 5 Lathe Common
5-5
G-Post Reference Manual INTCOM Variables
5-6
INTCOM Variables 5 Lathe Common
5-7
G-Post Reference Manual INTCOM Variables
NOTE: The next 53 locations represent the EIA format of the letter address, this is a two-digit value. The first digit
represents the number of whole numbers (the numbers in front of the decimal place). The second digit represents the
number of fractional numbers (the numbers behind the decimal point). A value of 34 means there are 3 digits in front of
the decimal place and 4 digits behind the decimal place: 000.0000. A value of 40 means the number is a 4-digit whole
number. Before the first executable post statement, JFMT(n) contains four digits in the option file. The first two are for
inch and the second two are for metric. After the first executable post statement, this section contains only two digits.
FMT(nn) 0xxx Nth letter in tape. Add 0105+nn to get the location number (xxx).
Default = 0
Range = 0 to 9999
5-8
INTCOM Variables 5 Lathe Common
NOTE: The next 53 locations represent the address format for each letter address, this is a four-digit value. The
first digit is for leading zeros. The second digit is for trailing zeros. The third digit is for sign (+ for positive
numbers). The fourth digit is for decimal point. A value of 0 means the option is disabled and a value of 1 means
the option is enabled. The INTCOMs (1851) and (1852) must be set to zero for the JSPC variables to be activated.
JSPC(nn) 0xxx Nth letter in tape. Add 0158+nn to get the location number (xxx).
Default = 0
Range = 0 to 1111
5-9
G-Post Reference Manual INTCOM Variables
IAUXFN(nn) 0nnn M-code for Mnn or AUXFUN/nn. Add 0211+n to get the location
number.
Default = nn
Range = 0 to 32766
NOTE: To get M-codes of more than 2 digits, set the M-code between
0 and 99, then set the matching IAUXFN location to the desired M-
code
IBANER(131) 0312 Post banner containing post name, version, and date. Cannot
be set manually.
IBRKSW 0448 Break statement flag, to reinitialize common variables from CONTRL.
Default = 72 (OFF)
Range = 71 (ON), 72 (OFF)
5-10
INTCOM Variables 5 Lathe Common
ICARD 0453 Line count of packed punch files; column 77-80 of each line.
***Cannot be reset.
5-11
G-Post Reference Manual INTCOM Variables
5-12
INTCOM Variables 5 Lathe Common
5-13
G-Post Reference Manual INTCOM Variables
IFTRDW 0495 Flag to specify the turret dwell to be output in IPM or IPR mode
Default = 73 (IPM)
Range = 73 (IPM) or 74 (IPR)
NOTE: All G-code entries must be between 0 and 99. To get more than
two-digit G-codes, set the appropriate IPREFN location to the desired
G-code.
Example: If the dwell code was G104, set IGDWL to 4, and then set
IPREFN(4) to 104.
5-14
INTCOM Variables 5 Lathe Common
5-15
G-Post Reference Manual INTCOM Variables
5-16
INTCOM Variables 5 Lathe Common
ILOKSW 0532 For lathes to automatically lock and unlock spindle under
SFM mode.
Default = 80 (MLOKOF)
Range = MLOKOF INTCOM(1967) Default = 80
MLOKON INTCOM(1968) Default = 81
5-17
G-Post Reference Manual INTCOM Variables
IPCHNX 0616 Pointer into punch buffer for last character stored. ***Do not reset.
5-18
INTCOM Variables 5 Lathe Common
IPREFN(n) 0nnn G-code for Gnn or PREFUN/nn. Add 0620+n to get the
location number.
Default = nnn
Range = 0 to 32766
NOTE: To get G-codes of more than 2 digits, set the G-code between
0 and 99, then set the matching IPREFN location to the desired G-code.
Example: If the dwell code was G104, set IGDWL to 4, then set
IPREFN(4) to 104.
5-19
G-Post Reference Manual INTCOM Variables
IRPTWD(26,2) 0861 Storage area to combine two registers when using RPTWRD
routine. IRPTWD(A,B), Load 1-26 (A) to be the "trigger"
address for combining output. Where A=1, B=2, and so forth.
Default = 72 (OFF)
Range of (A,1) = 1-26, where A=1, B=2, and so forth. This is
the address to be output by the "trigger".
Range of (A,2) = 71 (ON): Output on each block until it is
set to 72 (OFF). 162 (NEXT): Output one time only.
NOTE: The feed rate code tables overlay the last 3 ranges of the
spindle code common locations. If you use the code tables, only three
spindle ranges are available!
5-20
INTCOM Variables 5 Lathe Common
5-21
G-Post Reference Manual INTCOM Variables
ISPNHI 1518 Highest spindle speed location in SPTABL for current range.
Default = 25 (NSPDHI(1))
Range = NSPDHI(1-6) INTCOM(1994-1999)
2 - 99 allowed for each range.
ISPNLW 1519 Lowest spindle speed location in SPTABL for current range.
Default = 1 (NSPDLW(1))
Range = NSPDLW(1-6) INTCOM(2000-2005)
1 - 98 allowed for each range.
ISPNRW 1520 Current spindle speed location in SPTABL for current range.
Default = 0
Range = 1 to 99
ITLTBL(99,3) 1528 Tool table to contain the integer values ISOURC, IRECRD
and offset number of the tool list
Default = 0
Range = 0 to 32766
5-22
INTCOM Variables 5 Lathe Common
ITRTPL 1829 For multiple turret lathes, specifies the last turret selected as 1-5
Default = 1 ITRTYP INTCOM(1830)
Range = 1 - 5 ITRTYP INTCOM(1830)
ITRTYP 1830 For multiple turret lathes, specifies the current turret in effect as 1-5
Default = 1 - FRONT
Range = 1 - FRONT
2 - REAR
3 - SADDLE
4 - MAIN
ITSBIT(100) 1831 User option area for PLABEL/Options. See PLABEL in the command
reference for more information.
ITSBIT 1831 Tab character and blank space output in MCD file.
Default = 00 - Do not output tab characters in the MCD file.
Range = 00 - Do not output tab characters in the MCD file.
01 - Output tab characters in the MCD file.
02 - Add a blank space before each letter address in the MCD
file.
ITSBIT 1832 Controls the verification print, which is the auxiliary information in the
.LST file. It contains for example, spindle speed, velocity, etc.
Default = 01 - Generate verification print.
Range = 01 - Generate verification print.
00 - Do not generate verification print.
02 - Generate non-modal verification print.
11 - Generate modal verification print and CL point.
12 - Generate non-modal verification print and CL point.
5-23
G-Post Reference Manual INTCOM Variables
ITSBIT 1833 Set the units coversion for the input/output files.
Default = 01 - Inch input / inch output.
Range = 01 - Inch input / inch output.
02 - Metric input / inch output.
03 - Metric input / metric output.
04 - Inch input / metric output.
NOTE: Values 01 through 04 indicate that all dimensions in the option file are in inches.
NOTE: Values 11 through 14 indicate that all dimensions in the option file are in
millimeters.
NOTE: INTCOMs 1839 through 1846 use numerical codes to represent characters. See the ASCII
character chart in Appendix A to find the appropriate decimal values. The G-Post requires the use of
ASCII decimal values where specified.
5-24
INTCOM Variables 5 Lathe Common
ITSBIT 1851 Controls the format of the integer registers (N,G...) for punch output.
The 4 digits correspond to leading zeros, trailing zeros, plus sign, and
decimal point. Any combination of the digits is acceptable. For
example, 1100 will punch leading and trailing zeros.
Default= 0000 - Punch per postprocessor specification.
Range= 0000 - Punch per postprocessor specification.
0100 - Punch trailing zeros.
1000 - Punch leading zeros.
ITSBIT 1852 Controls the format of the decimal registers (X,Y...) for punch output.
Any combination of the digits is acceptable. For example, 1101 will
punch leading and trailing zeros with decimal point.
Default= 0000 - Punch per postprocessor specification.
Range= 0000 - Punch per post processor specification.
0001 - Punch decimal point.
0010 - Punch sign.
0100 - Punch trailing zeros.
1000 - Punch leading zeros.
5-25
G-Post Reference Manual INTCOM Variables
ITSBIT 1853 Specifies the contents of I,J and K registers for a circle block in
absolute mode.
Default= 01 - Absolute arc distances.
Range= 01 - Absolute arc distances
02 - Distance from center to start point.
03 - Distance from start point to center.
04 - Center coordinates.
ISTBIT 1854 Specifies the contents of I,J and K registers for a circle block in
incremental mode.
Default= 01 - Absolute arc distances.
Range= 01 - Absolute arc distances
02 - Distance from center to start point.
03 - Distance from start point to center.
04 - Center coordinates.
ITSBIT 1856 Controls the output of those points in the CL file, which have identical
coordinates and appear in succession.
Default= 01 - Output the repeat point.
Range= 00 - Do not output repeat point.
01 - Output the repeat point.
02 - Output zero length move during MULTAX.
ITSBIT 1857 Controls the output of I,J and K registers in a circle block, when their
value is zero.
Default= 01 - Output IJK when zero.
Range= 00 - Do not output IJK when zero.
01 - Output IJK when zero.
ITSBIT 1859 Controls the output if true radial feed rate calculations for circular
records.
Default= 00 - Do not adjust feedrate for circles.
Range= 00 - Do not adjust feedrate for circles.
01 - Adjust feedrate for circles by cutter radius.
ITSBIT 1860 Controls the output of sequence numbers on INSERT and PPRINT
records.
Default= 00 - Output SEQNO condition for INSERT,DISPLY.
Range= 00 - Output SEQNO condition for INSERT,DISPLY.
01 - Ignore SEQNO condition for INSERT,DISPLY.
02 - Ignore SEQNO condition for DISPLY.
03 - Ignore SEQNO condition for INSERT.
5-26
INTCOM Variables 5 Lathe Common
ITSBIT 1861 Controls the print output of the tape information which appears to the
left of the verification print. This can be the tape image or optionally
edited for readability. The editing places a decimal point for decimal
registers (X,Y..) and does not suppress zeros for integer registers
(N,G..).
Default= 00 - Print the exact MCD image to the .LST file.
Range= 00 - Print the exact MCD image to the .LST file.
01 - Print the edited MCD image to the .LST file.
ITSBIT 1862 Selects this appropriate mode before the output of a rapid block.
Assume the current feed mode in the part program is IPR and your
machine tool requires that rapid must be in IPM mode. The post
processor will automatically switch to IPM to output the rapid block
and then switch back to IPR mode for the next move.
Default= 00 - Output Rapid in current mode.
Range= 00 - Output Rapid in current mode.
nn - Switch to mode (nn) to output Rapid.
ITSBIT 1863 Controls the Inverse Time Feed Rate circular move calculation.
Default= 00 - Use cicle arc length for circular feed rate calculations.
Range= 00 - Use cicle arc length for circular feed rate calculations.
01 - Use circle radius for circular feed rate calculations.
ITSBIT 1867 Simulation mode option: When the post is in simulation mode, no
output is created for the print and punch files. All processing takes
place so that all common locations within the post are updated. This
option is normally set within FIL programs.
Default= 00 - Simulation mode is turned off.
Range= 00 - Simulation mode is turned off.
01 - Simulation mode is turned on.
ITSBIT 1868 Merging post option, See chapter 8 for details of using UNCMRG.
Default= 00 - Do not allow option file to be used by UNCMRG.
Range= 00 - Do not allow option file to be used by UNCMRG.
01 - Allow option file to be used by UNCMRG.
5-27
G-Post Reference Manual INTCOM Variables
ITSBIT 1870 Controls the motion analysis of rapid moves. This option applies only
to non-cycle RAPID moves.
Default = 00 - XY & ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
Range = 00 - XY & ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
01 - XYZ & ROTARY (Advancing & Retracting)
02 - XY then ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
03 - XY then ROTARY then Z (Advancing), Z then ROTARY
then XY (Retracting)
04 - ROTARY then XY then Z (Advancing), Z then ROTARY
then XY (Retracting)
05 – ROTARY then XY then Z (Advancing), Z then XY then
ROTARY (Retracting)
ITSBIT 1871 Applies to machines with canned cycles. The Z value can be output as
an absolute coordinate in a cycle block or as an incremental value
measured from the rapid stop point.
Default = 00 - Output Z as absolute value.
Range = 00 - Output Z as absolute value.
01- Output Z as incremental value.
02 - Output Z as absolute incremental value.
ITSBIT 1872 Controls the output of a positioning block after each tool change. This
positioning block will contain the tool change coordinates for automatic
tool change machines or the current axes position for manual tool
change machines. It is output after each tool change for alignment.
Default = 01 - Generate XYZ positioning block.
Range = 01 - Generate XYZ positioning block.
00 - Do not generate positioning block.
02 - Generate XYZABC positioning block.
ITSBIT 1873 Controls the output of motion in linear interpolation. Some machines
will not allow XYZ in the same block.
Default = 00 - XYZ in one block.
Range = 00 - XYZ in one block.
01 - XY block followed by Z.
-1 - Z block followed by XY.
ITSBIT 1874 Force the post processor to always output cycle motion in one block.
Default = 01 - CYCLE motion in one block.
Range = 00 - CYCLE motion analysis enabled.
01 - CYCLE motion in one block.
5-28
INTCOM Variables 5 Lathe Common
ITSBIT 1875 Controls how the post processor processes a FROM statement.
Default = 02 - Process all FROM statements in the program.
Range = 00 - Ignore all FROM statement in the program.
01 - Process only the first FROM statement in the program.
02 - Process all FROM statements in the program.
03 - Process only the first FROM statement and output it as a
motion block (GOTO/…).
ITSBIT 1876 Controls the M-code to be output when the Auto Break feature
generates a break sequence.
Default = 30 - M-code is 30 for Auto Break.
Range = 30 - M-code is 30 for Auto Break.
Nn - Output Mnn on Auto Break.
ITSBIT 1877 Controls the value generated by the ARCSLP command for registers
(IJK) in a helical circular record.
Default = 00 - Absolute value of lead in radians.
Range = -1 - Disable ARCSLP, linearize the helical interpolation (G1).
00 - Absolute value of lead in radians.
01 - Lead in radians.
02 - Absolute value of lead in inch or metric units.
03 - Lead in inch or metric units.
ITSBIT 1878 Controls the Inverse Time Feed Rate calculations method.
Default = 00 - Inverse time feedrate uses iterative method.
Range = 00 - Inverse time feedrate uses iterative method.
01 - Inverse time feedrate uses analytical method.
02 - Inverse time feedrate uses analytical method and
disregard the tool length.
03 - Inverse time: L = x 2 + y2 + z2 ; R = a2 + b2 + c2; D =
√L+R
04 - Use ½ cutter height to shift tool tip along the tool axis to
calculate span length
Note: Inverse time feedrate always uses analytical method and disregards tool length with rotary tables, for the
inverse feedrate arc length D=SQRTF(LIN**2 + ROT**2). Use ½ cutter height to shift tool-tip along the tool-axis
to find the current span length
ITSBIT 1879 Used for handling the last point in a circular motion record if it falls
outside of the true arc of the circle.
Default = 00 - Do not check for last point on circle.
Range = 00 - Do not check for last point on circle.
01 - Output linear move if last point is not on the circle.
02 - Make end point correction but do not output the linear
move.
ITSBIT 1880 Controls how the post interprets the PITCH value.
Default = 00 - PITCH/t is threads per unit.
Range = 00 - PITCH/t is threads per unit.
01 - PITCH/t is direct lead.
5-29
G-Post Reference Manual INTCOM Variables
ITSBIT 1881 Controls the X output for verification in the LST file.
Default = 00 - Print verification X in radius.
Range = 00 - Print verification X in radius.
01 - Print verification X in diameter.
ITSBIT 1883 Rrelates the CL coordinate axes to the Lathe coordinate axes, which
can be interchanged for the ease of programming.
Default = 01 - Horizontal: CL X=Lathe Z, CL Y=Lathe X. (default)
Range = 01 - Horizontal: CL X=Lathe Z, CL Y=Lathe X. (default)
02 - Vertical: CL X=Lathe X, CL Y=Lathe Z.
ITSBIT 1884 Specifies the sequence of output for the axis preset blocks under
SET/START,AUTO mode.
Default = 00 - Output axis preset block after T-code.
Range = 00 - Output axis preset block after T-code.
01 - Output axis preset block before T-code.
ITSBIT 1886 Controls the output of the thread lead registers when the thread lead is
equal to zero.
Default = 00 - Output zero in thread register.
Range = 00 - Output zero in thread register.
01 - Do not output zero in thread register.
5-30
INTCOM Variables 5 Lathe Common
ITSBIT 1891 Controls loading the verification registers with the POSTN statement.
Verification is INTCOM locations 27 through 52. Verify A=27, Verify
Z=52.
Default = 00 - POSTN load A-Z and verification (A-Z) (non-modal).
Range = 00 - POSTN load A-Z and verification (A-Z) (non-modal).
01 - POSTN loads A-Z only; verification registers are not
loaded (non-modal).
10 - POSTN load A-Z and verification (A-Z). (modal)
11 - POSTN loads A-Z only; verification registers are not
loaded (modal).
ITSBIT 1892 Suppresses the output of dwell times in the verification column for the
DELAY statement.
Default = 00 - DELAY outputs verification.
Range = 00 - DELAY outputs verification.
01 - Suppress DELAY verification.
ITSBIT 1893 Allows blanks to be output with the multiple address string. Setting this
option to an ASCII pointer value will allow spaces to replace the
character that is designated.
Default = 00 - Suppress blanks from punch file.
Range = 00 - Suppress blanks from punch file.
n - IASCII (n) is used to output blanks to punch file.
ITSBIT 1895 Selects the mwthod by which the FEDRAT F code is output.
Default = 00 - Use normal F FEDRAT
Range = 00 - Use normal FEDRAT
01 - Use FEDRAT table codes.
02 - Use a FEDRAT formula for FEDRAT, the formula is
stored in DBLCOM(88)
5-31
G-Post Reference Manual INTCOM Variables
ITSBIT 1912 Controls the handling of CL points with 3 parameters when MULTAX
is enabled.
Default = 00 - If no tool axis is present retain the previous tool axis.
Range = 00 - If no tool axis is present retain the previous tool axis.
02 - If no tool axis is present set tool axis to 0,0,1
ITSBIT 1917 Controls the printing of the input statements to the LST file.
Default = 00 - Do not print input statements in list file.
Range = 00 - Do not print input statements in list file.
01 - Print input statements in list file.
ITSBIT 1920 Enabled/disables the use of the _MCDWT macro to edit the tape blocks
Default = 01 – Do not use the _MCDWT macro to edit the tape blocks.
Range = 01 – Do not use the _MCDWT macro to edit the tape blocks.
02 – Use the _MCDWT macro to edit the tapoe blocks.
ITSBIT 1923 Controls the number of degrees per block for the output of circular
interpolation.
Default = 360 – 360 degrees from the circle start point for a circle
record to break..
Range = 00 - Circle records break at every quadrant crossing
90, 180, 270, 360 - Number of degrees from the circle start
point for a circle record to break..
ITSBIT 1924 Controls the output to determine the center of the circle in a circular
interpolation block.
Default = 00 - Output IJK with circular G-codes.
Range = 00 - Output IJK with circular G-codes.
01 - Output R with circular G-codes.
02 - Output +R if angle is < 180, output –R if angle > 180.
03 - Same as 2 except if angle is = 360 output IJK.
5-32
INTCOM Variables 5 Lathe Common
ITSBIT 1925 Controls the information output at the beginning of the punch file.
Default = 00 - Startup information. Output G-codes and PARTNO.
Range = 00 - Startup information. Output G-codes and PARTNO.
01 - Suppress startup G-codes.
02 - Suppress PARTNO at startup.
03 - Suppress G-codes and PARTNO at startup.
ITSBIT 1929 Used to designate a different rewind stop code at the end of the tape.
Default = 00 - Use PLABEL (11) as end of tape rewind stop.
Range = 00 - Use PLABEL (11) as end of tape rewind stop.
nn - Use IASCII (nn) as end of tape rewind stop code.
IVIEW 1931 EIA view flag for circular interpolation -1 = APT +X to APT
+Y will be IGCCLW +1 = APT +X to APT +Y will be IGCLW
Default = -1
Range = 1, -1
5-33
G-Post Reference Manual INTCOM Variables
KSYM(10) 1943 Array to contain the special characters for punch output.
(1) $ End of block(2) > Leader(3) = Rewind stop code
(4) / Block delete(5) * Tab(6) ( - Control out(7) ) - Control in
(8)- Not used(9)- Not used(10)- Not used
Default = (1) 36, (2) 62, (3) 61, (4) 47, (5) 42, (6) 40,
(7) 41, (8) 0, (9) 0, (10) 0
Range = 32 to 96
LINCT 1954 Line count of the current page for the print output.
Default = 0
Range = 0 to 32766
LINSFM 1955 Flag to indicate for skipping SFM output for circular interpolation
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
5-34
INTCOM Variables 5 Lathe Common
MOVE 1971 Flag to indicate the type of move for the current GOTO point.
Default = 0
Range = 0 No move, 1 Z, 2 X, 3 ZX
5-35
G-Post Reference Manual INTCOM Variables
5-36
INTCOM Variables 5 Lathe Common
MXLINE 1988 Maximum number of lines per page for the print output file
Default = 51
Range = 1 to 32766
NSPDHI(6) 1994 Highest location in each range for the spindle table.
Default = (1) 25, (2) 25, (3) 0, (4) 0, (5) 0, (6) 0
Range = 2 to 99
NSPDLW(6) 2000 Lowest location in each range for the spindle table.
Default = (1) 1, (2) 1, (3) 0, (4) 0, (5) 0, (6) 0
Range = 1 to 98
NTHBLK 2007 SEQNO option to output sequence number every nth block.
Default = 1
Range = 1 to 32766
NTOOL 2008 Pointer into the tool table for last tool stored.
Default = 0
Range = 0 to 99
5-37
G-Post Reference Manual INTCOM Variables
NVW 2011 Total number of words for output. Tape words plus verification words.
Default = 17
Range = NTW (INTCOM(2010) + 1 to 6)
NZDATA 2014 Counter for the number of Z parameters stored from CYCLE command
Default = 0
Range = 1 to 20 (After a CYCLE command)
ITITLE(33) 2019 Array for user title. Set within the Option File Generator;
***Cannot be set manually.
5-38
INTCOM Variables 5 Lathe Common
LETRAD 2067 Letter address for RADIUS register with circular interpolation.
Default = 0 (Unused)
Range = 0 to 26 (A-Z)
IBRKFL 2210 Flag to indicate an auto break point has been reached on tape length.
Default = 0 (off)
Range = 0 - off
1 - Maximum on GOHOME
2 - Maximum on TURRET
3 - Maximum on OPSTOP
4 - Maximum on STOP
5 - Maximum no KEYWORD
5-39
G-Post Reference Manual INTCOM Variables
5-40
INTCOM Variables 5 Lathe Common
IOPSKN(9) 2459 Multiple OPSKIP numbers, output with the multiple OPSKIP option.
Default = -32767 (IEMPTY) (off)
Range = 1 - 32766
KSALIS(8,8) 2496 ASCII pointers for KSYM alias (1,1-8) - KSYM(1) (2,1-8)
Default = 0 (unused)
Range = 0, 32 - 96
ICLOUTSW 3426 Internal switch used with COOLNT. ***Do not reset.
5-41
G-Post Reference Manual INTCOM Variables
ISELOUTSW 3433 Internal switch used with SELECT. ***Do not reset.
ISELG 3434 Internal switch used with SELECT. ***Do not reset.
ICIRFDN 3436 Output redundant F-code with quadrant crossing circle output.
Default = 0 (off)
Range = 0 (off) , 1 (on)
KKDOFF 3440 Internal switch used with CUTCOM, ***Do not reset.
5-42
INTCOM Variables 5 Lathe Common
5-43
G-Post Reference Manual INTCOM Variables
5-44
INTCOM Variables 5 Lathe Common
5-45
G-Post Reference Manual INTCOM Variables
IPGMPROSW 3816 Prompt for the program number at the start switch.
Default = 0 (off)
Range = 0 (off) , 1 (on)
5-46
INTCOM Variables 5 Lathe Common
IFINI10(330) 3982 10 lines, 66 characters per line, of user defined end output.
This array can only be loaded by the OFG. ***Do not change.
ITLADJ 4313 Output the tool length compensation number the same as the tool
number when not specified in the LOADTL statement.
Default = 0 = Off
Range = 0 = Off
1 = On
ICCADJ 4314 Output the cutter compensation diameter offset number the same as the
tool number when not specified in the CUTCOM statement.
ICYOUTABC 4337 Output the current ABC values in the CYCLE block.
Default = 0, Always output the current ABC values in the CYCLE
block.
= 1, Do not output ABC in the CYCLE block.
5-47
G-Post Reference Manual INTCOM Variables
ICRCTCOMFG 4340 Output G02/G03 when the circular and CUTCOM plane do not match.
Default = 0, Do not output G02/G03
= 1, Output G02/G03 when the CUTCOM plane doesn’t match.
ITAPFLEXT(7) 4600 Optional tape file extension set by user in Optfile I4600=0/1 and
Up to 6-characters stored in I4601-4606 similar to Alias ASCII index.
Only valid filename characters (0-9,A-Z and Underscore) are valid.
Default = 0, default file extension
= 1, Use file extension define in Optfile
5-48
INTCOM Variables 5 Lathe Common
5-49
G-Post Reference Manual INTCOM Variables
IMOUTPTFG 4667 _OUTPT Macro flag. Set to enable or disable the _OUTPT macro.
Default = 0, Disabled _OUTPT tape block editor macro.
= 1, Enabled _OUTPT tape block editor macro.
IPGMLDBLK 4669 Skip the leading blanks and leading slash (/) character in the PARTNO
statement.
Default = 0, Use the 1st character in PARTNO.
= 1, Skip leading blanks and slash (/) in count
IG94CYCG00 4675 Skip G94/G95 prep code output with G00 blocks inside CYCLE output
Default = 0, Output G94/G95 for any RAPID block if set by IC(1862)
= 1, Skip G94/G95 for RAPID if inside CYCLE output
IGPDBGSQN 4676 Execute G-Post in Debug Mode, run the G-Post Debugger interface
Default = 0, Debug mode off
= 1, Enable G-Post debug mode and user interface
5-50
INTCOM Variables 5 Lathe Common
IHTMPACKFG 4680 HTML Packager options common. Each or the five digits at I4680
can be set to (0 or 1)to pick a file or selection of a file for packaging.
Default = 0, Do not package files into HTML format
= 00001, Add input (*.apt,*.acl,*.ncl) to package
= 00010, Add output (*.lst) to package
= 00100, Add output (*.tap) to package
= 01000, Add Option file uncx01.pnn to package
= 10000, Add FIL file uncx01.fnn to package
ISMTABFLG 4682 Generate tool simulation file containing time and absolute
positions for each of the XYZABC axes
Default = 0, No time and absolute position file needed
= 1, Generate time and absolute position file for XYZABC
NOTE: This common is part of the Lathe G-Post but not used since
there are no tool axis vectors.
ITCHGIDBEF 4698 User defined blocks output before the tool change block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
ITCHGIDAFT 4699 User defined blocks output after the tool change block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
IPGMRENPU1 4701 Flag to re-name the MCD / Tape file using the (PGM) Program
Number (e.g., 01234.pu1 where 01234 is the Program Number from the
Option File Generator) instead of the default name. The default file
name is test.pu1 or test.tap if "test" is the name of the input file such as
"test.apt" or "test.ncl".
IMPR2MCFG 4702 INTCOM location reserved as internal G-Post trace flag to be used with
PRTMCH functions. *** Do not use this location.
IMMC2PRFG 4703 INTCOM location reserved as internal G-Post trace flag to be used with
PRTMCH functions. *** Do not use this location.
5-51
G-Post Reference Manual INTCOM Variables
IGPBLDNUMB 4716 INTCOM location reserved as internal G-Post location to stored the G-
Post Build Number that is printed in the LST file.
*** Do not alter this location.
INCLDOLC72 4727 The CL file can contain a PPRINT / cmd with $-sign in column-72 or
73 for continuation, this generates a conversion error. This common
must be set to correct this. It must be set in the option file manually or
in the set common panel of Option File Generator.
Default = 0, Do not test for $ in column-72
= 1, Enable test for $ in column-72
5-52
INTCOM Variables 5 Lathe Common
IOPTVERNMB 4746 Optfile uncx01.pnn version number from 1st line V6.5
Default = 0, None
= n, Version number as 65
KG9899CODE 4747 Flag to indicate that a G98 or G99 has been loaded for output by
CYCLE/--,PULBAC command. This is an internal flag to remove it in
case of a software cycle was detected automatically later.
Default = 0, None
= n, 98 or 99 for G98 or G99 code has been output
KOPTHCLRDSTF 4750 Flag to indicate that a OP/THREAD to use the current point as set in
threading menu CLEAR_DIST=d or use the default of 0.05 as before.
Default = 0, Use 0.05 default distance and RAPID to thread start point
= 1, Use set CLEAR_DIST and feed to thread start point.
KCYCLPNTRVAL 4752 CYCLE G81 R-value is from last-Z instead of the default Drill height.
This applies only to hardware cycles to support Mori-Seki type of
machines.
Default = 0, R is from Drill-Z
= 1, R is from Last-Z output as positive value
= 2, R is from Last-Z output with a sign (Only be set in FIL)
ITAPOPTCORF 4754 Flag to auto correct tape address problems in legacy Option files (.Pnn).
Default = 0, No
= 1, Yes
5-53
G-Post Reference Manual DBLCOM Variables
CANON(6) 0004 XYZIJK of the circle center from the Type 3000 command
Default = 0.0
Range = (1-3) +-99999.0, (4-6) +-1.0
CIRCEN(6) 0010 XYZ of the circle center translated by ORIGIN and TRANS
Default = 0.0
Range = (1-3) +-99999.0, (4-6) Unused
CPRUNT 0025 Conversion factor to find length of tape unit from character
count that is 10 characters per inch
Default = 10.0
Range = 10.0 or .39370079
5-54
DBLCOM Variables 5 Lathe Common
DEPMAX 0068 Maximum linear departure that can be output in one block
Default = 99.9999
Range = +-99999.0
5-55
G-Post Reference Manual DBLCOM Variables
DWELS(10) 0077 Array to store automatic dwell time for certain functions. For
example, the T-code output for turret.
Default = (1) 2.0, (2-10) 0.0
Range = 0.0 to 99999.0
DWELTM 0087 Contains the dwell time required and output by dwell routine
Default = 0.0
Range = 0.0 to 99999.0
5-56
DBLCOM Variables 5 Lathe Common
FRAPID(6) 0096 Rapid rate value in units per minute for XY axes
5-57
G-Post Reference Manual DBLCOM Variables
5-58
DBLCOM Variables 5 Lathe Common
PRES(52) 0281 Contents to be output for the letter address A through verify(Z)
Default = EMPTY
Range = +-99999.0, EMPTY
PREV(52) 0345 Last contents output for the letter address A through verify(Z)
Default = EMPTY
Range = +-99999.0, EMPTY
5-59
G-Post Reference Manual DBLCOM Variables
RAPMNF 0414 Feed value to be used in unit per minute, when rapid traverse
distance is smaller than RAPMIN
Default = 0.0
Range = 0.0 to 99999.0
5-60
DBLCOM Variables 5 Lathe Common
RLEDER(3) 0418 Leader length for START, STOP and TOOL CHANGE
Default = (1) 14.0, (2) 0.0, (3) 0.0
Range = 0.0 to 99999.0
5-61
G-Post Reference Manual DBLCOM Variables
NOTE: The feedrate code tables overlay the last 3 ranges of the spindle
code common locations. If you use feedrate code tables, only three
spindle ranges are available!
5-62
DBLCOM Variables 5 Lathe Common
TLTABL(99,3) 1052 Gauge length X,Y and tool number stored for each tool in lathes
Default = 0.0
Range = +-99999.0
TURDST(5,2) 1360 For multiple turret lathes, storage area for separation
distances. They are measured from the primary turret to each
additional turret 1-5. 1; FRONT, 2:REAR, 3:SADDLE,
4:MAIN, and 5:RAIL
5-63
G-Post Reference Manual DBLCOM Variables
VALUEN 1372 Flag to indicate output of letter address and sign only
(888888.0)
***Do not change
VELOC 1373 Current velocity in units per minute for machine time
calculations
Default = 0.0
Range = 0.0 to 99999.0
5-64
DBLCOM Variables 5 Lathe Common
5-65
G-Post Reference Manual DBLCOM Variables
5-66
DBLCOM Variables 5 Lathe Common
5-67
G-Post Reference Manual DBLCOM Variables
DEGANG 1667 Total angular move for the current circle in degrees
Internally set. ***Do not reset
TTHRDS(4) 1671 Depth of cut per pass or starting depth of cut per pass.
TTHRDS(9) 1676 Feed rate for the step-in move of the thread.
TTHRDS(10) 1677 Feed rate for the thread move of the thread.
TTHRDS(11) 1678 Feed rate for the retract move of the thread.
TTHRDS(12) 1679 Feed rate for the return move of the thread.
5-68
DBLCOM Variables 5 Lathe Common
TTHRDS(13) 1680 Feed rate for the clearance point move of the thread.
TTHRDS(14) 1681 Retract distance for the retract move of the thread.
TTHRDS(15) 1682 Retract angle for the retract move of the thread.
TTHRDS(18) 1685 Select point used prior to the clearance point move for the thread.
TIMEFEED 1700 Total machine time while in feed rate mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMERAPD 1701 Total machine time while in rapid mode. Do not reset
Default = 0.0
Range = +-99999.0
5-69
G-Post Reference Manual DBLCOM Variables
TIMEDWEL 1702 Total machine time while in dwell mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMETLCH 1703 Total machine time while in tool change mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMEMISC 1704 Total machine time for miscellaneous commands. Do not reset
Default = 0.0
Range = +-99999.0
DISTFEED 1705 Stores the machine the accumulated motion distance for feed rate
moves. Do not reset
Default = 0.0
Range = +-99999.0
DISTRAPD 1706 Stores the machine the accumulated motion distance for rapid moves.
Do not reset
Default = 0.0
Range = +-99999.0
5-70
CHRCOM Variables 5 Lathe Common
CHRCOM Also known by the sub-scripted variable name TVARAB(230) is defined as follows:
Name/Location Description
5-71
COMMON Variables 6 Mill Common
6.1 Introduction
This chapter contains a reference list of the Mill G-Post COMMON variables. These COMMON variables
are what the G-Post uses to store all the information the post has about the machine configuration and the
current post processor run.
There are three types of COMMON variables used in the Mill G-Post. They are INTCOM, RELCOM and
DBLCOM locations. The INTCOM locations are used to store integers or whole numbers, such as G/M
codes. The RELCOM and DBLCOM locations are used to store short and long floating point numbers
also know as scalars, such as axes locations.
Most of the COMMON locations in the Mill G-Posts are single dimensional arrays. They store one value
or a set of data in a sequential manner. The ITSBIT(100) array is a single dimensioned and can can store
up to 100 numbers.
There are a few COMMON locations in the Mill G-Posts that are double dimensional arrays. They store a
set of data in columns and rows like a spread sheet. The SPTABL(6,99) array is double dimensioned and
can store 6*99=594 numbers in 6-columns and 99-rows.
To set a particular location of a double dimensioned array with PLABEL or POSTF, you need to calculate
the location using the following formula:
N=(R-1)*A+L+C-1
Where:
Example:
N=(44-1)*6+3+11-1
6-1
G-Post Reference Manual INTCOM Variables
6-2
INTCOM Variables 6 Mill Common
6-3
G-Post Reference Manual INTCOM Variables
6-4
INTCOM Variables 6 Mill Common
6-5
G-Post Reference Manual INTCOM Variables
6-6
INTCOM Variables 6 Mill Common
6-7
G-Post Reference Manual INTCOM Variables
JADDR(0nn) 0nnn nth letter in tape. Add 0052+n to get the location number
Default = unused
Range = 32-96
NOTE: The next 53 locations represent the EIA format of the letter address. This is a two-digit value that indicates
the size of the register. The first digit represents the number of whole numbers (the numbers in front of the decimal
place). The second digit represents the number of fractional numbers (the numbers behind the decimal point). A
value of 34 means there are 3 digits in front of the decimal place and 4 digits behind the decimal place: 000.0000. A
value of 40 means the number is a 4-digit whole number. Before the first executable post statement, JFMT(n)
contains four digits in the option file. The first two are for inch and the second two are for metric. After the first
executable post statement, this section contains only two digits.
6-8
INTCOM Variables 6 Mill Common
6-9
G-Post Reference Manual INTCOM Variables
JFMT(nn) 01nn nth letter in tape. Add 0105+nn to get the location number
Default = 0 (unused)
Range = 0 to 9999
Example: 1010 turns off trailing zeros, outputs a plus sign, and does
not print a decimal point
6-10
INTCOM Variables 6 Mill Common
6-11
G-Post Reference Manual INTCOM Variables
JSPC(nn) 0nnn nth letter in the series. Add 0158+n for the location number
Default = 0
Range = 0 to 1111 (0 = unused)
IAUXFN(nn) 0nnn M-code for Mnn or AUXFUN/nn. Add 0211+n for the location number
Default = nn
Range = 0 to 32766
6-12
INTCOM Variables 6 Mill Common
IBANER(131) 0312 Post banner containing post name, version, and date.
***Cannot be set manually.
ICARD 0453 Line count of packed output punch files; column 77-80 of each line.
***Cannot be reset.
6-13
G-Post Reference Manual INTCOM Variables
6-14
INTCOM Variables 6 Mill Common
6-15
G-Post Reference Manual INTCOM Variables
6-16
INTCOM Variables 6 Mill Common
IFXOLT 0496 Letter address for fixture offset used in SELECT statement
Default = 8 (H)
Range = 1-26, where A=1, B=2, and so forth
6-17
G-Post Reference Manual INTCOM Variables
6-18
INTCOM Variables 6 Mill Common
6-19
G-Post Reference Manual INTCOM Variables
6-20
INTCOM Variables 6 Mill Common
INDXOR 0536 Pointer to the next available location in the ORIGIN table for
four-parameter ORIGIN statement
Default = 1
Range = 0: Ignore four parameter ORIGIN
1-36: Accept four parameter ORIGIN
6-21
G-Post Reference Manual INTCOM Variables
6-22
INTCOM Variables 6 Mill Common
IPCHNX 0616 Pointer into punch buffer for last character stored; do not reset
NOTE: To get G-codes of more than 2 digits, set the G-code between
0 and 99, then set the matching IPREFN location to the desired G-code.
Example: If the dwell code was G104, set IGDWL to 4, then set
IPREFN(4) to 104
6-23
G-Post Reference Manual INTCOM Variables
IPX 0853 Pointer into PRESPT for multiple plane circular interpolation
Default = 1 for XY plane
Range = 1 to 3
IRPTWD(26,2) 0861 Storage area to combine two registers when using RPTWRD
routine. IRPTWD(A,B). Load 1-26 (A) to be the "trigger"
address for combining output where A=1, B=2, and so forth.
Default = 72 (OFF)
Range of (A,1)= 1-26, where A=1, B=2, and so forth.
This is the address to be output by the "trigger".
Range of (A,2)= 71 (ON): Output on each block until it is
set to OFF(72)
162 (NEXT): Output one time only
6-24
INTCOM Variables 6 Mill Common
NOTE: The feedrate code tables overlay the last 3 ranges of the spindle
code common locations. If you use the code tables, only three spindle
ranges are available!
ISETSW 1510 For a 5 Axis Head/Head machine, output the XYZ coordinate at the
spindle face or the pivot point. For other, non-head/head, 5 axis
machines this location can be set to 200+ as noted below.
Default = 0, (Default) output at pivot point
Range = 1, (Gantry) output at spindle face
= 2mn,(Other) Adjust as positive or negative distance
*** m/n denotes the vaule for the adjustment type positive/negative
m = 0 = do not adjust for tool length
1 = adjust for the tool length – positive direction
2 = adjust for the tool length – negative direction
n = 0 = do not adjust for pivot distance
1 = adjust for the pivot distance – positive direction
2 = adjust for the pivot distance – negative direction
= 301, (Other) Ouput Input/CL (XYZ) and ABC angles
= 302, (Other) Ouput Input/CL (XYZ) and Input/CL (IJK)
6-25
G-Post Reference Manual INTCOM Variables
ISPNHI 1518 Highest spindle speed location in SPTABL for current range
Default = 2 (NSPDHI(1))
Range = NSPDHI(1-6) INTCOM(1994-1999)
2 - 99 allowed for each range
ISPNLW 1519 Lowest spindle speed location in SPTABL for current range
Default = 1 (NSPDLW(1))
Range = NSPDLW(1-6) INTCOM(2000-2005)
1 - 98 allowed for each range
ISPNRW 1520 Current spindle speed location in SPTABL for current range
Default = 0
Range = 1 to 99
6-26
INTCOM Variables 6 Mill Common
ISTBLK 1524 Force the output of ABC-rotary axes with the next GOTO/cmd after a
tool change (LOADTL/cmd) under MULTAX mode.
Default = 0 (off)
Range = 0 to 1
0 Do not output same ABC after tool change
1 Force ABC output after tool change
2 Force ABC output on next block only
ITLTBL(99,3) 1528 Tool table to contain the integer values ISOURC, IRECRD
and offset number of the tool list
Default = 0
Range = 0 to 32766
6-27
G-Post Reference Manual INTCOM Variables
ITSBIT(100) 1831 User option area for PLABEL/Options. See PLABEL in the command
reference for more information.
ITSBIT 1831 Tab character and blank space output in MCD file.
Default = 00 - Do not output tab characters in the MCD file.
Range = 00 - Do not output tab characters in the MCD file.
01 - Output tab characters in the MCD file.
02 - Add a blank space before each letter address in the MCD
file.
ITSBIT 1832 Controls the verification print, which is the auxiliary information in the
.LST file. It contains for example, spindle speed, velocity, etc.
Default = 01 - Generate verification print.
Range = 01 - Generate verification print.
00 - Do not generate verification print.
02 - Generate non-modal verification print.
11 - Generate modal verification print and CL point.
12 - Generate non-modal verification print and CL point.
ITSBIT 1833 Set the units coversion for the input/output files.
Default = 01 - Inch input / inch output.
Range = 01 - Inch input / inch output.
02 - Metric input / inch output.
03 - Metric input / metric output.
04 - Inch input / metric output.
NOTE: Values 01 through 04 indicate that all dimensions in the option file are in inches.
NOTE: Values 11 through 14 indicate that all dimensions in the option file are in
millimeters.
6-28
INTCOM Variables 6 Mill Common
NOTE: INTCOMs 1839 through 1846 use numerical codes to represent characters. See the ASCII
character chart in Appendix A to find the appropriate decimal values. The G-Post requires the use of
ASCII decimal values where specified.
6-29
G-Post Reference Manual INTCOM Variables
ITSBIT 1851 Controls the format of the integer registers (N,G...) for punch output.
The 4 digits correspond to leading zeros, trailing zeros, plus sign, and
decimal point. Any combination of the digits is acceptable. For
example, 1100 will punch leading and trailing zeros.
Default= 0000 - Punch per postprocessor specification.
Range= 0000 - Punch per postprocessor specification.
0100 - Punch trailing zeros.
1000 - Punch leading zeros.
ITSBIT 1852 Controls the format of the decimal registers (X,Y...) for punch output.
Any combination of the digits is acceptable. For example, 1101 will
punch leading and trailing zeros with decimal point.
Default= 0000 - Punch per postprocessor specification.
Range= 0000 - Punch per post processor specification.
0001 - Punch decimal point.
0010 - Punch sign.
0100 - Punch trailing zeros.
1000 - Punch leading zeros.
ITSBIT 1853 Specifies the contents of I,J and K registers for a circle block in
absolute mode.
Default= 01 - Absolute arc distances.
Range= 01 - Absolute arc distances
02 - Distance from center to start point.
03 - Distance from start point to center.
04 - Center coordinates.
ISTBIT 1854 Specifies the contents of I,J and K registers for a circle block in
incremental mode.
Default= 01 - Absolute arc distances.
Range= 01 - Absolute arc distances
02 - Distance from center to start point.
03 - Distance from start point to center.
04 - Center coordinates.
ITSBIT 1856 Controls the output of those points in the CL file, which have identical
coordinates and appear in succession.
Default= 01 - Output the repeat point.
Range= 00 - Do not output repeat point.
01 - Output the repeat point.
02 - Output zero length move during MULTAX.
6-30
INTCOM Variables 6 Mill Common
ITSBIT 1857 Controls the output of I,J and K registers in a circle block, when their
value is zero.
Default= 01 - Output IJK when zero.
Range= 00 - Do not output IJK when zero.
01 - Output IJK when zero.
ITSBIT 1859 Controls the output if true radial feed rate calculations for circular
records.
Default= 00 - Do not adjust feedrate for circles.
Range= 00 - Do not adjust feedrate for circles.
01 - Adjust feedrate for circles by cutter radius.
ITSBIT 1860 Controls the output of sequence numbers on INSERT and PPRINT
records.
Default= 00 - Output SEQNO condition for INSERT,DISPLY.
Range= 00 - Output SEQNO condition for INSERT,DISPLY.
01 - Ignore SEQNO condition for INSERT,DISPLY.
02 - Ignore SEQNO condition for DISPLY.
03 - Ignore SEQNO condition for INSERT.
ITSBIT 1861 Controls the print output of the tape information which appears to the
left of the verification print. This can be the tape image or optionally
edited for readability. The editing places a decimal point for decimal
registers (X,Y..) and does not suppress zeros for integer registers
(N,G..).
Default= 00 - Print the exact MCD image to the .LST file.
Range= 00 - Print the exact MCD image to the .LST file.
01 - Print the edited MCD image to the .LST file.
ITSBIT 1862 Selects this appropriate mode before the output of a rapid block.
Assume the current feed mode in the part program is IPR and your
machine tool requires that rapid must be in IPM mode. The post
processor will automatically switch to IPM to output the rapid block
and then switch back to IPR mode for the next move.
Default= 00 - Output Rapid in current mode.
Range= 00 - Output Rapid in current mode.
nn - Switch to mode (nn) to output Rapid.
ITSBIT 1863 Controls the Inverse Time Feed Rate circular move calculation.
Default= 00 - Use cicle arc length for circular feed rate calculations.
Range= 00 - Use cicle arc length for circular feed rate calculations.
01 - Use circle radius for circular feed rate calculations.
6-31
G-Post Reference Manual INTCOM Variables
ITSBIT 1867 Simulation mode option: When the post is in simulation mode, no
output is created for the print and punch files. All processing takes
place so that all common locations within the post are updated. This
option is normally set within FIL programs.
Default= 00 - Simulation mode is turned off.
Range= 00 - Simulation mode is turned off.
01 - Simulation mode is turned on.
ITSBIT 1868 Merging post option, See chapter 8 for details of using UNCMRG.
Default= 00 - Do not allow option file to be used by UNCMRG.
Range= 00 - Do not allow option file to be used by UNCMRG.
01 - Allow option file to be used by UNCMRG.
ITSBIT 1870 Controls the motion analysis of rapid moves. This option applies only
to non-cycle RAPID moves.
Default = 00 - XY & ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
Range = 00 - XY & ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
01 - XYZ & ROTARY (Advancing & Retracting)
02 - XY then ROTARY then Z (Advancing), Z then XY and
ROTARY (Retracting)
03 - XY then ROTARY then Z (Advancing), Z then ROTARY
then XY (Retracting)
04 - ROTARY then XY then Z (Advancing), Z then ROTARY
then XY (Retracting)
05 – ROTARY then XY then Z (Advancing), Z then XY then
ROTARY (Retracting)
ITSBIT 1871 Applies to machines with canned cycles. The Z value can be output as
an absolute coordinate in a cycle block or as an incremental value
measured from the rapid stop point.
Default = 00 - Output Z as absolute value.
Range = 00 - Output Z as absolute value.
01- Output Z as incremental value.
02 - Output Z as absolute incremental value.
6-32
INTCOM Variables 6 Mill Common
ITSBIT 1872 Controls the output of a positioning block after each tool change. This
positioning block will contain the tool change coordinates for automatic
tool change machines or the current axes position for manual tool
change machines. It is output after each tool change for alignment.
Default = 01 - Generate XYZ positioning block.
Range = 01 - Generate XYZ positioning block.
00 - Do not generate positioning block.
02 - Generate XYZABC positioning block.
ITSBIT 1873 Controls the output of motion in linear interpolation. Some machines
will not allow XYZ in the same block.
Default = 00 - XYZ in one block.
Range = 00 - XYZ in one block.
01 - XY block followed by Z.
-1 - Z block followed by XY.
ITSBIT 1874 Force the post processor to always output cycle motion in one block.
Default = 01 - CYCLE motion in one block.
Range = 00 - CYCLE motion analysis enabled.
01 - CYCLE motion in one block.
ITSBIT 1875 Controls how the post processor processes a FROM statement.
Default = 02 - Process all FROM statements in the program.
Range = 00 - Ignore all FROM statement in the program.
01 - Process only the first FROM statement in the program.
02 - Process all FROM statements in the program.
03 - Process only the first FROM statement and output it as a
motion block (GOTO/…).
ITSBIT 1876 Controls the M-code to be output when the Auto Break feature
generates a break sequence.
Default = 30 - M-code is 30 for Auto Break.
Range = 30 - M-code is 30 for Auto Break.
Nn - Output Mnn on Auto Break.
ITSBIT 1877 Controls the value generated by the ARCSLP command for registers
(IJK) in a helical circular record.
Default = 00 - Absolute value of lead in radians.
Range = -1 - Disable ARCSLP, linearize the helical interpolation (G1).
00 - Absolute value of lead in radians.
01 - Lead in radians.
02 - Absolute value of lead in inch or metric units.
03 - Lead in inch or metric units.
6-33
G-Post Reference Manual INTCOM Variables
ITSBIT 1878 Controls the Inverse Time Feed Rate calculations method.
Default = 00 - Inverse time feedrate uses iterative method.
Range = 00 - Inverse time feedrate uses iterative method.
01 - Inverse time feedrate uses analytical method.
02 - Inverse time feedrate uses analytical method and
disregard the tool length.
03 - Inverse time: L = x2 + y2 + z2 ; R = a2 + b2 + c2; D =
√L+R
04 - Use ½ cutter height to shift tool tip along the tool axis to
calculate span length
Note: Inverse time feedrate always uses analytical method and disregards tool length with rotary tables, for the
inverse feedrate arc length D=SQRTF(LIN**2 + ROT**2). Use ½ cutter height to shift tool-tip along the tool-axis
to find the current span length
ITSBIT 1879 Used for handling the last point in a circular motion record if it falls
outside of the true arc of the circle.
Default = 00 - Do not check for last point on circle.
Range = 00 - Do not check for last point on circle.
01 - Output linear move if last point is not on the circle.
02 - Make end point correction but do not output the linear
move.
ITSBIT 1880 Controls how the post interprets the PITCH value.
Default = 00 - PITCH/t is threads per unit.
Range = 00 - PITCH/t is threads per unit.
01 - PITCH/t is direct lead.
ITSBIT 1881 Controls the X register output for posts with the Mill-Turn option set.
Default = 00 –Output X in radius for Mill & Turn.
Range = 00 - Output X in radius for Mill & Turn.
01 - Output X in diameter for Turn only.
02 - Output X in diameter for Mill & Turn.
ITSBIT 1883 Rrelates the CL coordinate axes to the Lathe coordinate axes, which
can be interchanged for the ease of programming.
Default = 01 - Horizontal: CL X=Lathe Z, CL Y=Lathe X. (default)
Range = 01 - Horizontal: CL X=Lathe Z, CL Y=Lathe X. (default)
02 - Vertical: CL X=Lathe X, CL Y=Lathe Z.
ITSBIT 1884 Specifies the sequence of output for the axis preset blocks under
SET/START,AUTO mode.
Default = 00 - Output axis preset block after T-code.
Range = 00 - Output axis preset block after T-code.
01 - Output axis preset block before T-code.
6-34
INTCOM Variables 6 Mill Common
ITSBIT 1886 Controls the output of the thread lead registers when the thread lead is
equal to zero.
Default = 00 - Output zero in thread register.
Range = 00 - Output zero in thread register.
01 - Do not output zero in thread register.
ITSBIT 1891 Controls loading the verification registers with the POSTN statement.
Verification is INTCOM locations 27 through 52. Verify A=27, Verify
Z=52.
Default = 00 - POSTN load A-Z and verification (A-Z) (non-modal).
Range = 00 - POSTN load A-Z and verification (A-Z) (non-modal).
01 - POSTN loads A-Z only; verification registers are not
loaded (non-modal).
10 - POSTN load A-Z and verification (A-Z). (modal)
11 - POSTN loads A-Z only; verification registers are not
loaded (modal).
ITSBIT 1892 Suppresses the output of dwell times in the verification column for the
DELAY statement.
Default = 00 - DELAY outputs verification.
Range = 00 - DELAY outputs verification.
01 - Suppress DELAY verification.
6-35
G-Post Reference Manual INTCOM Variables
ITSBIT 1893 Allows blanks to be output with the multiple address string. Setting this
option to an ASCII pointer value will allow spaces to replace the
character that is designated.
Default = 00 - Suppress blanks from punch file.
Range = 00 - Suppress blanks from punch file.
n - IASCII (n) is used to output blanks to punch file.
ITSBIT 1895 Selects the mwthod by which the FEDRAT F code is output.
Default = 00 - Use normal F FEDRAT
Range = 00 - Use normal FEDRAT
01 - Use FEDRAT table codes.
02 - Use a FEDRAT formula for FEDRAT, the formula is
stored in DBLCOM(88)
ITSBIT 1912 Controls the handling of CL points with 3 parameters when MULTAX
is enabled.
Default = 00 - If no tool axis is present retain the previous tool axis.
Range = 00 - If no tool axis is present retain the previous tool axis.
02 - If no tool axis is present set tool axis to 0,0,1
ITSBIT 1917 Controls the printing of the input statements to the LST file.
Default = 00 - Do not print input statements in list file.
Range = 00 - Do not print input statements in list file.
01 - Print input statements in list file.
ITSBIT 1920 Enabled/disables the use of the _MCDWT macro to edit the tape blocks
Default = 01 – Do not use the _MCDWT macro to edit the tape blocks.
Range = 01 – Do not use the _MCDWT macro to edit the tape blocks.
02 – Use the _MCDWT macro to edit the tapoe blocks.
6-36
INTCOM Variables 6 Mill Common
ITSBIT 1923 Controls the number of degrees per block for the output of circular
interpolation.
Default = 360 – 360 degrees from the circle start point for a circle
record to break..
Range = 00 - Circle records break at every quadrant crossing
90, 180, 270, 360 - Number of degrees from the circle start
point for a circle record to break..
ITSBIT 1924 Controls the output to determine the center of the circle in a circular
interpolation block.
Default = 00 - Output IJK with circular G-codes.
Range = 00 - Output IJK with circular G-codes.
01 - Output R with circular G-codes.
02 - Output +R if angle is < 180, output –R if angle > 180.
03 - Same as 2 except if angle is = 360 output IJK.
ITSBIT 1925 Controls the information output at the beginning of the punch file.
Default = 00 - Startup information. Output G-codes and PARTNO.
Range = 00 - Startup information. Output G-codes and PARTNO.
01 - Suppress startup G-codes.
02 - Suppress PARTNO at startup.
03 - Suppress G-codes and PARTNO at startup.
ITSBIT 1929 Used to designate a different rewind stop code at the end of the tape.
Default = 00 - Use PLABEL (11) as end of tape rewind stop.
Range = 00 - Use PLABEL (11) as end of tape rewind stop.
nn - Use IASCII (nn) as end of tape rewind stop code.
6-37
G-Post Reference Manual INTCOM Variables
KOMROT 1940 Flag to indicate combined rotation of the rotary and linear axis.
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
6-38
INTCOM Variables 6 Mill Common
KSYM(10) 1943 Array to contain the special characters for punch output
(1) $ End of block (6) ( Control out
(2) > Leader (7) ) Control in
(3) = Rewind stop code (8) O/H Block – SEQNO/NEXT
(4) / Block delete (9) INSERT Contin. Character
(5) * Tab (10)- Not used
Default = (1) 36, (2) 62, (3) 61, (4) 47, (5) 42
(6) 40, (7) 41, (8) 0, (9) 0, (10) 0
Range = 32 to 96
LINCT 1954 Line count of the current page for the print output
Default = 0
Range = 0 to 32766
6-39
G-Post Reference Manual INTCOM Variables
MOVE 1971 Flag to indicate the type of move for the current GOTO point
Default = 0
Range = 0 No move, 1 X, 2 Y, 3 XY, 4 Z, 5 XZ, 6 YZ, 7 XYZ
6-40
INTCOM Variables 6 Mill Common
MXLINE 1988 Maximum number of lines output per page for the print output file
Default = 51
Range = 1 to 32766
6-41
G-Post Reference Manual INTCOM Variables
NSPDHI(6) 1994 Highest location in each range for the spindle table
Default = (1) 2, (2) 2, (3) 2, (4) 0, (5) 0, (6) 0
Range = 2 to 99
NSPDLW(6) 2000 Lowest location in each range for the spindle table
Default = (1) 1, (2) 1, (3) 1, (4) 0, (5) 0, (6) 0
Range = 1 to 98
NTHBLK 2007 SEQNO option to output sequence number every nth block
Default = 1
Range = 1 to 32766
NTOOL 2008 Pointer into the tool table for last tool stored
Default = 0
Range = 0 to 99
NVW 2011 Total number of words for output: tape words plus verification words
Default = 27
Range = NTW (INTCOM(2010) + 1 to 5
6-42
INTCOM Variables 6 Mill Common
NZDATA 2014 Counter for the number of Z parameters stored from CYCLE command
Default = 0
Range = 1 to 20 (after a CYCLE command)
ITITLE(33) 2019 Array for user title; must be set from within the Option File
Generator; ***Cannot be set externally
6-43
G-Post Reference Manual INTCOM Variables
LETRAD 2067 Letter address for RADIUS register with circular interpolation
Default = 0 (Unused)
Range = 0 to 26 (A-Z)
IACTSW 2070 Switch to indicate motion from Type 2000 command; do not change
6-44
INTCOM Variables 6 Mill Common
6-45
G-Post Reference Manual INTCOM Variables
IBQUAD 2094 Switch to force secondary rotary axis angles into the first
and fourth quadrants
Default = 0 (Off) Shortest rotation
Range = 0 Off
1 Force into other quadrant
2 Take shortest rotation and set C=0 for (0,0,1),
C/A Table/Table only
12 Select positive A or B position only
13 Select negative A or B position only
INAUTO 2095 Switch for automatic inverse time feed rates for ROTARY moves
Default = 0 (Off)
Range = 0 Off
= 1 Output inverse for rotary
= 9394 IPM mode needed for GOTO with rotary
NOTE: 9394 is only valid when inverse time (G93) is not available on
your machine and set to NA.
6-46
INTCOM Variables 6 Mill Common
IANGSW 2098 Switch to set the quadrants where the head will position
Default = 148 (FRONT, Quadrants 1 & 4)
Range = 148 (FRONT, Quadrants 1 & 4)
149 (REAR, Quadrants 2 & 3)
88 (AUTO, Closet Resolve)
231 (BOTH + FRONT)
232 (BOTH + REAR)
0 (Default for C/B Head/Head only)
1 Enable optimized calculation (C/A Head/Head only!)
10 Legacy setting for C Head/B Head only)
2181 – 2204 These locations are used to save register specifications during
execution of a CL record and cannot be altered or used
6-47
G-Post Reference Manual INTCOM Variables
IWCSW 2454 Use version 4.2 of ROTABL. It was not correct but programmers
had fixed there programs to work with this problem.
Default = 0 5.3 version of ROTABL, corrected
Range = 1 4.2 version of ROTABL, incorrect
KOMADR(3) 2455 Address pointers for vector P & Q type cutter compensation
Default = (1): X axis address - 16 (P)
(2): Y axis address - 17 (Q)
(3): Z axis address 0 (unused)
Range = 1 to 26 (A to Z)
6-48
INTCOM Variables 6 Mill Common
NXTCIR 2460 Switch to indicate that the next CL record is a circle (used
only with vector cutter compensation)
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
NXTCLR 2461 Switch to indicate that the next CL record has been read
(used only with vector cutter compensation)
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
KKSTUP 2465 Switch to indicate that this is the first move after cutter
compensation startup (used only with vector cutter compensation)
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
KKMANL 2466 Switch to indicate that a manual vector input is in effect (used
only with vector cutter compensation)
Default = 72 (OFF)
Range = 71 (ON) or 72 (OFF)
6-49
G-Post Reference Manual INTCOM Variables
IERFIN 2481 Error count option will terminate processing when the
number of errors and warnings exceed this number
Default = 0 (off)
Range = 1 - 32766
KSALIS(8,8) 2496 ASCII pointers for KSYM alias (1,1-8) - KSYM(1) (2,1-8) -
KSYM(2), etc.
Default = 0 (unused)
Range = 0, 32 - 96
6-50
INTCOM Variables 6 Mill Common
ITMLBK 2703 Internal flag to identify feed reduction block in listing (nutator only);
***Do not change
Default = 0 (off)
Range = 0 (off) or 1 (on)
KKHOFF 2707 Switch to output Zlength (G43) CUTCOM with next Z Block
Default = 72 (off)
Range = 71 (on) Output CUTCOM with next Z block
72 (off) Do not output CUTCOM with next Z block
KKDOFF 2708 Switch to output Diameter CUTCOM (G41/G42) with next XY block
Default = -32767 (IEMPTY)
Range = 71 (on) CUTCOM pending with next XY block
72 (off) CUTCOM not pending with next XY move
6-51
G-Post Reference Manual INTCOM Variables
6-52
INTCOM Variables 6 Mill Common
ICLOUTSW 3426 Internal switch used with COOLNT. ***Do not reset.
ISELOUTSW 3433 Internal switch used with SELECT. ***Do not reset.
ISELG 3434 Internal switch used with SELECT. ***Do not reset.
ICIRFDN 3436 Output redundant F-code with quadrant crossing circle output.
Default = 0 (off)
Range = 0 (off) , 1 (on)
6-53
G-Post Reference Manual INTCOM Variables
ILTSPT 3437 LOADTL T-code and M-code are output on the same line
Default = 0
Range = 0 (T & M are output on same line)
1 (T & M are output on separate lines).
IPGMPROSW 3816 Prompt for the program number at the start switch.
Default = 0 (off)
Range = 0 (off) , 1 (on)
6-54
INTCOM Variables 6 Mill Common
IPNTVCT 3979 Internal Flag. Point / Vector Type for the OFG
Do Not Reset
Default = 0 = 12 parameter matrix
Range = 0 = 12 parameter matrix
1 = XY
2 = YZ
3 = ZX
6-55
G-Post Reference Manual INTCOM Variables
IFINI10(330) 3982 10 lines, 66 characters per line, of user defined end output.
This array can only be loaded by the OFG.
*** Do not change.
ITLADJ 4313 Output the tool length compensation number the same as the tool
number when not specified in the LOADTL statement.
Default = 0 = Off
Range = 0 = Off
1 = On
ICCADJ 4314 Output the cutter compensation diameter offset number the same as the
tool number when not specified in the CUTCOM statement.
Default = 0 = Off
Range = 0 = Off
1 = On
ITLPRE 4315 Preselect the next tool and create the tool list file .TL1.
Default = 0 Off, No tool preselects
Range = 0 Off, No tool preselects.
= 1 Tool preselects and preselect the 1 st tool following the last tool.
= 2 Tool preselects and preselect T00 following the last tool.
= 3 Tool preselects and do not preselect a tool following the last tool
6-56
INTCOM Variables 6 Mill Common
6-57
G-Post Reference Manual INTCOM Variables
ICYOUTABC 4337 Output the current ABC values in the CYCLE block.
Default = 0, Output the current ABC values in the CYCLE block.
= 1, Do not output ABC in the CYCLE block.
ICRCTCOMFG 4340 Output G02/G03 when the circular and CUTCOM plane do not match.
Default = 0, Do not output G02/G03
= 1, Output G02/G03 when the CUTCOM plane doesn’t match.
IRPSRPWRNF 4342 Output WARNING message for automatic _REPOS (RAPID moves).
Default = 0, Do not output
= 1, Output to LST file only
= 2, Output to MCD file only
= 3, Output to both MCD and Listing files.
IRPSRPRETF 4343 Apply feedrates to retract and approach moves (_REPOS moves).
Default = 0, Use current feed rate for both retract and advance moves
= 1, Use feed rates per DBLCOM(1026) and DBLCOM(1027).
6-58
INTCOM Variables 6 Mill Common
IRPSFDWRNF 4345 Output WARNING message for automatic _REPOS (Feed rate moves).
Default = 0, Do not output
= 1, Output to LST file only
= 2, Output to MCD file only
= 3, Output to both MCD and Listing files.
IRPSGMCHPF 4352 Automatic _REPOS require with this motion record. DO NOT RESET.
Default = 0, No
= 1, Yes
ICIRMINPNT 4354 Minimum number of point for CIRCLE test with PTC.
Default = 3
= 1, Skip the test
Range = 1 - 32767
6-59
G-Post Reference Manual INTCOM Variables
IMLXCYFL(6) 4594 Most machine tools support hardware cycles (G81 etc) only in the XY
plane or in 3-axes mode as set in the cycle panel G-code section. If
your machine is a 4/5-axes machine with rotary table, the G-Post will
rotate into XY-plane automatically for any tool axis. In this case, leave
the 1st setting to "Same as 3-axes mode". If your machine has rotary
head or you want to switch to a Software cycle in MULTAX/ON mode,
then you can select the "Mixed mode" and then set the desired option
for various tool axis input. If your machine tool supports hardware
cycles (G81 etc) in YZ and ZX plane cycles, you can also set them in
this panel.
6-60
INTCOM Variables 6 Mill Common
ITAPFLEXT(7) 4600 Optional tape file extension set by user in Optfile I4600=0/1 and
Up to 6-characters stored in I4601-4606 similar to Alias ASCII index.
Only valid filename characters (0-9,A-Z and Underscore) are valid.
Default = 0, default file extension
= 1, Use file extension define in Optfile
6-61
G-Post Reference Manual INTCOM Variables
IVSTMILPN 4623 Flag to indicate if user set Y-axis option in mill panel of the Mill-Turn
Section. This only applies to 5 axis C-Table B-Head Mill-Turn
machines. ***Do not change***
Default = 0, No
= 1, Yes
IABCLMTYP(3) 4629 Rotary axes ABC Min-Max limit value type: (linear/rotary 360degress)
Default = 0, Linear range like XYZ axes (Min=-15, Max=+90)
= 1, 360 Degree range ignore sign (Min=270, Max=90)
= 2, 360 Degree range check sign (Min=-270,Max=90)
6-62
INTCOM Variables 6 Mill Common
IABCLNGRT(3) 4636 Rotary axes ABC take long route flag for ANALYZ
Default = 0, No
= 1, Yes set by RPCHEK3
IMECOFHED 4640 Horizontal A/B Type Nutating Head flag and rotation direction for +90.
Default = 0, No (Normal A Nutator)
= 1, Yes (Horizontal Nutator, CCLW for +90 ”Mecof”)
= 2, Yes, (Horizontal Nutator, CLW for +90 “Selca”)
ILM3PSCHR 4649 Flag to look for 3 rd solution when automatic _REPOS is called..
Default = 0, No
= 1, Yes
ILM3PSAXS 4650 Axis that forced automatic _REPOS to be called. ***Do not reset
Default = 1, A Axis
= 2, B Axis
= 3, C Axis
6-63
G-Post Reference Manual INTCOM Variables
IRPSXYZCHK 4655 Flag to check for XYZ limits with auto REPOS mode.
This check is done only if the rotary axes ABC are in limits.
In other words, the order of test is ABC first then if ABC are OK,
then check YXZ next.
Default = 0, Do not check XYZ limits after ABC
= 1, Check XYZ limits after ABC
IRPSXYZAXS 4656 When INTCOM(4655) is active and one of the linear axes is out
of limits. This location is set to specify the axis out of limits..
Default = 0, no axis out of limits
= 24, X axis is out of limits
= 25, Y axis is out of limits
= 26, Z axis is out of limits
6-64
INTCOM Variables 6 Mill Common
ICIRUGWRN 4661 Option to output a warning when a circle is ignored and G01 moves are
generated by the G-Post.
Default = 0, No Warning is output
= 1, Output a warning if GOTO/xyz after the CIRCLE/cmd is
output as G01.
= 2, Output a warning is the CIRCLE/cmd or GOTO/xyz is
output as G01.
ITLXYZRPF 4663 By default, the G-Post uses the tool change location to determine
the RAPID move immediately after a tool change is an advance
or retract motion using the standard motion analysis. Some machines
move the tool to a safe position for M06 or G28 codes and the actual
tool change position may vary and thus can not be set in the Optfile to
a static location. This location has been added to always output XY
and then a Z-move for the RAPID motion that immediately follows a
tool change or a LOADTL/cmd and for any automatic re-position of the
rotary axes for RAPID motion.
IRTANGAX 4665 Alignment axis and direction for right angled head.
SET/cmd Axis Flag (0=NONE,1=NEGX,2=POSX,
3=NEGY,4=POSY,5=NEGZ,6=POSZ)
Default = 0, None
= 1, NEGX
= 2, POSX
= 3, NEGY
= 4, POSY
= 5, NEGZ
= 6, POSZ
6-65
G-Post Reference Manual INTCOM Variables
IRTANGLT 4666 Right angled head holder address to be output. Set by the Option File
Generator.
Default = 53, NA
Range = 1-25,53, (A-Z or NA)
IMOUTPTFG 4667 _OUTPT Macro flag. Set to enable or disable the _OUTPT macro.
Default = 0, Disabled _OUTPT tape block editor macro.
= 1, Enabled _OUTPT tape block editor macro.
IHELIXVD 4668 Accept ARCSLP/ON,z as actual z-change instead of the lead per 360
degree revolution for Mastercam input files.
Default = 0, ARCSLP/ON,z is true lead/360 degrees.
= 1, ARCSLP/ON,z is actual z-change for Mastercam.
IPGMLDBLK 4669 Skip the leading blanks and leading slash (/) character in the PARTNO
statement.
Default = 0, Use the 1st character in PARTNO.
= 1, Skip leading blanks and slash (/) in count
IRTABCSP(3) 4670 ABC axes address suppression flag with H90 support in 5 axis only.
Default = 0, No, do not suppress the axis address.
= 1, Yes, suppress the axis address.
IG94CYCG00 4675 Skip G94/G95 prep code output with G00 blocks inside CYCLE output
Default = 0, Output G94/G95 for any RAPID block if set
by ITSBIT(32)
= 1, Skip G94/G95 for RAPID if inside CYCLE output
IGPDBGSQN 4676 Execute G-Post in Debug Mode, run the G-Post Debugger interface
Default = 0, Debug mode off
= 1, Enable G-Post debug mode and user interface
ICKLMTGLPD 4678 When output is set to tool tip coordinates the XYZ limits are tested
with the tool tip coordinates.
Default = 0, Use tool tip coordinates for limit test
= 1, Use spindle gage reference point for limit test
6-66
INTCOM Variables 6 Mill Common
ICKLMTAXIS 4679 When any axis limit is exceeded this common will be set. You
can check this common in your FIL file to perform any action required
Default = 0, No limit error
= 1, One of the axes hit a limit
IHTMPACKFG 4680 HTML Packager options common. Each or the five digits at I4680
can be set to (0 or 1)to pick a file or selection of a file for packaging.
Default = 0, Do not package files into HTML format
= 00001, Add input (*.apt,*.acl,*.ncl) to package
= 00010, Add output (*.lst) to package
= 00100, Add output (*.tap) to package
= 01000, Add Option file uncx01.pnn to package
= 10000, Add FIL file uncx01.fnn to package
ISMTABFLG 4682 Generate tool simulation file containing time and absolute
positions for each of the XYZABC axes
Default = 0, No time and absolute position file needed
= 1, Generate time and absolute position file for XYZABC
ICYSCPLAPR 4684 Set cycle approach and retract to primary or secondary clearance
plane as defined in the CYCLE/--,RTRCTO,z2.
Default = 0, No extra approach move to secondary plane needed
= 1, Yes extra approach move to secondary plane required
This will enable a RAPID move to the secondary clearance plane at the
start of drilling each point. Default is to move to the R-plane.
Note: If a secondary plane address (W or similar) is set for G81 cycle,
this is not used as G81 RZW moves to (W) secondary clearance plane.
ICYSCPLRTR 4685 Make a (G0) retract move to secondary clearance plane value in
CY/--,RTRCTO,c2.
Default = 0, No retract G0 move needed
= 1, Output G0 move after cycle motion
This will enable a RAPID move to the secondary clearance plane at the
end of drilling each point. Default is to move to the R-plane.
Note: If a secondary plane address (W or similar) is set for G81 cycle,
this is not used as G81 RZW moves to (W) secondary clearance plane.
6-67
G-Post Reference Manual INTCOM Variables
ICSYSPLANE 4687 Flag for planar machining, This will allow planar machining by
generating the necessary blocks for the control.
Default = 0, No
= 1, Yes
ICSYSPIVOT 4688 Flag for current mode of PIVOTZ, Using the PIVOTZ/cmd your can
skip plane machining for full 5 axis contouring.
Default = 0, PIVOTZ/off
= 1, PIVOTZ/on
ICSYSMATRX 4689 Flag to specify plane for machining matrix is defined by the
CSYS/MSYS/CAMERA command in the input CL or get from the tool
axis of the GOTO/cmd.
Default: = 0, CSYS/MSYS/CAMERA command
= 1, Use tool axis of GOTO/cmd
= 2, CSYSMSYS/CAMERA command with origin shift
ICSYSMXGCD 4690 G code (G7/G68/etc) for the planar machining rotation angle block.
Default: = 0
Range: = 1 - 999
ICSYSMXABC 4691 Rotary letter address (ABC) to be output for the planar machining
rotation angle block.
Default: = 0, None
= 001, Output A angle
= 010, Output B angle
= 100, Output C angle
= 111, Output ABC angles
= 800, Output Siemens CYCLE800 format
ICSYSBKBEF 4692 Output positioning ABC angular move before the planar machining
rotation angle block.
Default: = 0, Do not output
= 1, Output
ICSYSBKAFT 4693 Output positioning ABC angular move after the planar machining
rotation angle block.
Default: = 0, Do not output
= 1, Output
ICSYSBKBGC 4694 G code for positioning ABC angular move before the planar machining
rotation angle block.
Default: = 0
Range: = 1 - 999
ICSYSBKAGC 4695 G code for positioning ABC angular move after the planar machining
rotation angle block.
Default: = 0
Range: = 1 - 999
ICSYSIDBEF 4696 User defined blocks output before the planar machining rotation angle
block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
6-68
INTCOM Variables 6 Mill Common
ICSYSIDAFT 4697 User defined blocks output after the planar machining rotation angle
block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
ITCHGIDBEF 4698 User defined blocks output before the tool change block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
ITCHGIDAFT 4699 User defined blocks output after the tool change block.
Default: = 0, No blocks output
Range: = 1 – 10, Number of blocks to output
ITCHGSKLEN 4700 G-Post normally will adjust the GOTO/xyz for the tool length
programmed in LOADTL/cmd. Using this option, you can set the
length to zero and program the true tool length at the NC machine
control..
Default = 0, Accept LOADTL/t,LENGTH,v and offset xyz
= 1, Ignore tool length (v) in LOADTL/t,LENGTH,v
IPGMRENPU1 4701 Flag to re-name the MCD / Tape file using the (PGM) Program
Number (e.g., 01234.pu1 where 01234 is the Program Number from the
Option File Generator) instead of the default name. The default file
name is test.pu1 or test.tap if "test" is the name of the input file such as
"test.apt" or "test.ncl".
Default = 0, Use the default file name
= 1, Use the program number as file name
= 2, Use the program number, skip prefix string
= 3, Use the program number, skip postfix string
= 4, Use the program number, skip pre and postfix strings
IMPR2MCFG 4702 INTCOM location reserved as internal G-Post trace flag to be used with
PRTMCH functions. *** Do not use this location.
IMMC2PRFG 4703 INTCOM location reserved as internal G-Post trace flag to be used with
PRTMCH functions. *** Do not use this location.
IOPMRPTYP 4705 Optimize goto sequence for Auto Repos selection flag.
Default = 0, None
= 1, RAPID-GOTO-FEDRAT-GOTO-RAPID
= 2, RAPID-GOTO-GOTO-RAPID
= 3, Use start-stop words like SPINDL/ON-GOTO-
SPINDL/OFF
6-69
G-Post Reference Manual INTCOM Variables
IOPMRPLGF 4708 Optimize print/trace flag to print Auto Repos optimize data to LST file.
Default = 0, No
= 1, Yes
IOPMRPSAP 4711 Optimize Auto Repos, internal select long route flag.
*** Do not alter this location.
Default = 0, Select short route angle for 1st goto
= 1, Select long route angle for 1st goto
IRPOSIDBRP 4712 Automatic Reposition user defined blocks, Before the Retract motion.
Default: = 0, No user blocks before the retract motion
Range: = 1 – 10, Number of user blocks to output before the retract
motion
IRPOSIDARP 4713 Automatic Reposition user defined blocks, After the Retract motion.
Default: = 0, No user blocks after the retract motion
Range: = 1 – 10, Number of user blocks to output after the retract
motion
IRPOSIDBAP 4714 Automatic Reposition user defined blocks, Before the Approach
motion.
Default: = 0, No user blocks before the approach motion
Range: = 1 – 10, Number of user blocks to output before the approach
motion
6-70
INTCOM Variables 6 Mill Common
IRPOSIDAAP 4715 Automatic Reposition user defined blocks, After the Approach motion.
Default: = 0, No user blocks after the approach motion
Range: = 1 – 10, Number of user blocks to output before the approach
motion
IGPBLDNUMB 4716 INTCOM location reserved as internal G-Post location to stored the G-
Post Build Number that is printed in the LST file.
*** Do not alter this location.
ICSYSAXOPP 4717 For Planar Machining Mode G-Post will resolve angles for the
secondary AB-axes to the primary side. With this option, you can
select the alternate solution of the two possible angles.
Default = 0, Do not select AB-angles for opposite solution
= 1, Select AB-angles for opposite solution
ICSYSAXLIM 4718 For Planar Machining Mode, with this option, you can output the A
angle to be in the range of 0 to 360 or -180 to +180.
Default = 0, Output A angle, 0-360
= 1, Output A angle, +/-180
ICSYSBXLIM 4719 For Planar Machining Mode, with this option, you can output the B
angle to be in the range of 0 to 360 or -180 to +180.
Default = 0, Output B angle, 0-360
= 1. Output B angle, +/-180
ICSYSCXLIM 4720 For Planar Machining Mode, with this option, you can output the C
angle to be in the range of 0 to 360 or -180 to +180.
Default = 0, Output C angle, 0-360
= 1, Output C angle, +/-180
ICSYSMCABC 4721 For Planar Machining Mode, the G7/G68 type angles can be output as
current ABC machine/euler angles instead of the default ABC
orthognal angles.
Default = 0, Output ABC orthognal angles
= 1, Output ABC machine axes angles
= 2, Output Euler angles
= 3, Output Euler angles Fanuc mode IJK
= 4, Output Euler angles Fanuc mode IJ,K=0
IRPSXYZRTX 4722 X limit exceeded flag to tells G-Post which of the rotary axis (ABC) to
rotate and find the opposite solution that will make XYZ within limit.
Default = 0, None given
= 1, A-axis
= 2, B-axis
= 3,=C-axis
IRPSXYZRTY 4723 Y limit exceeded flag to tells G-Post which of the rotary axis (ABC) to
rotate and find the opposite solution that will make XYZ within limit.
Default = 0, None given
= 1, A-axis
= 2, B-axis
= 3, C-axis
6-71
G-Post Reference Manual INTCOM Variables
IRPSXYZRTZ 4724 Z limit exceeded flag to tells G-Post which of the rotary axis (ABC) to
rotate and find the opposite solution that will make XYZ within limit.
Default = 0, None given
= 1, A-axis
= 2, B-axis
= 3, C-axis
IG93SIMIPM 4725 If your machine has no G93 for inverse time feed for combined linear
and rotary motion, you can use this option to let GPost emulate inverse
time feed with a smooth IPM feedrate in G94 mode.
Default = 0, No G93 simulation
= 1, Emulate G93 in IPM feed mode
IJKUNRNDSW 4726 Some controls want IJK data with G2/G3 circle motion before rounding
the machine point to pulse. This option will find IJK offsets before it is
rounded off, roundf(presmp,pulse).
Default = 0, No
= 1, Yes, find IJK before round off
INCLDOLC72 4727 The CL file can contain a PPRINT / cmd with $-sign in column-72 or
73 for continuation, this generates a conversion error. This common
must be set to correct this. It must be set in the option file manually or
in the set common panel of Option File Generator.
Default = 0, Do not test for $ in column-72
= 1. Enable test for $ in column-72
IRPOSIDMFR 4728 Repos user block motion selection. Setting this common enables the
output of the next eight commons (4729 through 4736).
Default = 0, Apply for both feed and rapid motion
= 1, Apply to feed and rapid motion separately
6-72
INTCOM Variables 6 Mill Common
6-73
G-Post Reference Manual INTCOM Variables
IOPTVERNMB 4746 Optfile uncx01.pnn version number from 1st line V6.5
Default = 0, None
= n, Version number as 65
KG9899CODE 4747 Flag to indicate that a G98 or G99 has been loaded for output by
CYCLE/--,PULBAC command. This is an internal flag to remove it in
case of a software cycle was detected automatically later.
Default = 0, None
= n, 98 or 99 for G98 or G99 code has been output
IRPOSARLIMF 4749 In an auto repos Approach/Retract motion, the ABC rotary axis can be
out of limits on some 5-axis machines. This flag is set to check for this
condition and ignore the ABC output if out of limit.
Default = 0, Output ABC
= 1, Do not output ABC if out of limit
KOPTHCLRDSTF 4750 Flag to indicate that a OP/THREAD to use the current point as set in
threading menu CLEAR_DIST=d or use the default of 0.05 as before.
Default = 0, Use 0.05 default distance and RAPID to thread start point
= 1, Use set CLEAR_DIST and feed to thread start point.
KCYCLPNTRVAL 4752 CYCLE G81 R-value is from last-Z instead of the default Drill height.
This applies only to hardware cycles to for Mori-Seki type of machines.
Default = 0, R is from Drill-Z
= 1, R is from Last-Z output as positive value
= 2, R is from Last-Z output with a sign (Only be set in FIL)
IRPSRPCALL 4753 Internal Flag to indicate if a PRTMCH call is from RPCHEK used by
Auto-Repos (Do not use in FIL).
Default = 0, Regular ty5000 call
= 1, Rpchek call
ITAPOPTCORF 4754 Flag to auto correct tape address problems in legacy Option files (.Pnn).
Default = 0, No
= 1, Yes
6-74
INTCOM Variables 6 Mill Common
IRPSLINTOLF 4755 Flag to skip lintol motion to the point in limit during automatic re-
position.
Default = 0, Do not skip LINTOL move.
= 1, Skip LINTOL move.
IPRT4CABANG 4756 Flag to use Head-Head calculation for angles in C/B or C/A Nutator
Table-Head machines.
Default = 0, No
= 1, Yes
= 2, Yes, Also offset C by 90-degress in the XY-plane.
ICSYSABCLM 4758 Flag to select the ABC angles that are within limits for planar
machining.
Default = 0, Do not check limits.
= 1, Output opposite angles that may be in the limits.
ICSYSZVECF 4759 Flag to indicate how to use Z-vector from CSYS/matrix for planar
machining. This flag is not normally used, default is the preferred
mode
Default = 0, Let GPost determines the Z-vector.
= 1, Use Z-vector from the CSYS/inverse matrix.
ILNTOLMETHD 4761 Flag to use newer linearization methods in the Option File Generator.
***Do not set unless one of the new methods is selected.
Default = 0, Not using new methods
= 1, Use distance with mid-point method
= 2, Use equal distance segments method
ISNGLINTOLF 4762 Flag to check for a singular axis move for linearization motion to a
point. Under this condition, the regular linearization algorithms may
not converge and/or generate proper LINTOL intermediate points.
Optionally, the move can be skipped or output n-number of
intermediate points at equal distance from start to end point.
Default = 0, No
= 1, Yes
= n, Output n-number intermediate points (n=2 to 99)
6-75
G-Post Reference Manual INTCOM Variables
IHLXSCALVEC 4764 Flag to scale ARCSLP/ON,z value by the current tool axis vector to
avoid G2/G3 helical motion along the wrong spindle axis.
Default = 0, Do not scale ARCSLP/z-value
= 1, Scale ARCSLP/z-value by the current tool axis vector
IRPOSARTLXF 4765 This flag is used to set the Automatic Reposition Approach/Retract
motion to use the new tool axis of the current GOTO/pnt that caused
the limit error after the retract move instead of the old tool axis from
the last GOTO/pnt. .
Default = 0, Use old tool axis of last point
= 1, Use new tool axis of next point
IPCHUPLWCASE 4766 This can be set to convert the tape file to upper or lower case at FINI.
NOTE: Use only if it is needed.
Default = 0, No conversion
= 1, Convert to upper case
= 2, Convert to lower case
6-76
RELCOM Variables 6 Mill Common
6-77
G-Post Reference Manual RELCOM Variables
NOTE: The feedrate code tables overlay the last 3 ranges of the spindle
code common locations. If you use feedrate code tables, only three
spindle ranges are available!
TLTABL(99,3) 0605 Tool length and tool number stored for each tool
Default = 0.0
Range = +-99999.0
6-78
DBLCOM Variables 6 Mill Common
ANGINC 0001 Rotary axis incremental angle from the last angular position
Default = 0.0
Range = +-99999.0
CANON(6) 0005 XYZIJK of the circle center from the Type 3000 command
Default = 0.0
Range = (1-3) +-99999.0, (4-6) +-1.0
CIRCEN(6) 0011 XYZ of the circle center translated by ORIGIN and TRANS
Default = 0.0
Range = (1-3) +-99999.0, (4-6) Unused
CPRUNT 0026 Conversion factor to find length of tape unit from character
count that is 10 characters per inch
Default = 10.0
Range = 10.0 or .39370079
6-79
G-Post Reference Manual DBLCOM Variables
6-80
DBLCOM Variables 6 Mill Common
DEPMAX 0079 Maximum linear departure that can be output in one block
Default = 999.9999
Range = +-99999.0
DWELMN(2) 0084 Minimum DWELL in IPM (1) and IPR (2) modes
Default = (1) - 0.1, (2) - 0.0
Range = .00001 to 99999.0
DWELMX(2) 0086 Maximum DWELL in IPM (1) and IPR (2) modes
Default = (1) - 99.99, (2) - 0.0
Range = .00001 to 99999.0
6-81
G-Post Reference Manual DBLCOM Variables
DWELTM 0098 Contains the DWELL time and output by DWELL routine
Default = 0.0
Range = 0.0 to 99999.0
FRAPID(6) 0107 Rapid rate value in units per minute for XYZABC axes
Default = (1-3) - 200.0, (4-6) - 1400.0
Range = 0.00001 to 99999.0
FUPMMN(6) 0114 Minimum feed in units per minute for XYZABC axes
Default = (1-6) 0.001
Range = 0.0 to 99999.0
FUPMMX(6) 0120 Maximum feed in units per minute for XYZABC axes
Default = (1-6) 200.0
Range = 0.0 to 99999.0
6-82
DBLCOM Variables 6 Mill Common
HELIXD 0129 Third linear axis feed per revolution for helical interpolation
Default = 0.0
Range = 0.0 to 99999.0
ORTBL(36,4) 0136 ORIGIN XYZ values table for t four parameter origin command
Default = 0.0
Range = (1-3) +-99999.0, (4) 0.0 to 360.0
PRES(52) 0292 Contents to be output for the letter address A through verify Z
Default = EMPTY
Range = +-99999.0, EMPTY
6-83
G-Post Reference Manual DBLCOM Variables
PREV(52) 0356 Last contents output for the letter address A through verify Z
Default = EMPTY
Range = +-99999.0, EMPTY
RAPMNF 0426 Feed value to be used in unit per minute, when rapid traverse
distance is smaller than RAPMIN
Default = 0.0
Range = 0.0 to 99999.0
6-84
DBLCOM Variables 6 Mill Common
RLEDER(3) 0430 Leader length for START, STOP, and tool change
Default = (1) 14.0, (2) 0.0, (3) 0.0
Range = 0.0 to 99999.0
6-85
G-Post Reference Manual DBLCOM Variables
DVARAB 0492 For MULTAX software cycles, retract mode. Set this to 1 to disable
the 0,0,1 tool axis vector test and force a G01 Fxxxx retract.
Default = 0
Range = 0 or 1
6-86
DBLCOM Variables 6 Mill Common
VALUEN 0511 Flag to indicate output of letter address and sign (888888.0)
***Do not change
VELOC 0512 Current velocity in units per minute for machine time calculations
Default = 0.0
Range = 0.0 to 99999.0
6-87
G-Post Reference Manual DBLCOM Variables
PVTDST 0635 Distance from the pivot point of a tool moving rotary axis to
the tool gauge point
Default = 0.0
Range = +-99999.0
PRMDIR 0652 Flag to indicate if primary rotary axis rotates per EIA standard
Default = 1.0
Range = 1.0 or -1.0
SECDIR 0657 Flag to indicate if secondary rotary axis rotates per EIA standard
Default = 1.0
Range = 1.0 or -1.0
6-88
DBLCOM Variables 6 Mill Common
FUTCNT(3) 0719 XYZ circle center of the next CL circle record. (Only used
with vector cutter compensation)
Default = 0.0
Range = +-99999.0
6-89
G-Post Reference Manual DBLCOM Variables
FUTRAD 0726 Radius value of the next CL circle record (used only with
vector cutter compensation)
Default = 0.0
Range = 0.0 to 99999.0
FUTRPT(3) 0727 XYZ values of the next linear CL record (used only with
vector cutter compensation)
Default = 0.0
Range = +-99999.0
VEKTOR(3) 0730 PQ vector values calculated from past, present and future
move (used only with vector cutter compensation)
Default = 0.0
Range = +-99999.0
PRVCPT(2,2) 0733 Last pair of XY coordinates of the last CL circle record (used
only with vector cutter compensation)
Default = 0.0
Range = +-99999.0
VECMAX(3) 0737 Maximum vector allowed (used only with vector cutcom)
Default = (1-2) 3.2767, (3) 0.0
Range = +-99999.0
VECMIN(3) 0740 Minimum vector allowed (used only with vector cutcom)
Default = (1-2) 3.2767, (3) 0.0
Range = +-99999.0
6-90
DBLCOM Variables 6 Mill Common
6-91
G-Post Reference Manual DBLCOM Variables
TMLFED 0887 Feedrate reduction in seconds for minimum time (nutator only)
Default = 0.0 (off)
Range = .00001 to 99999.0
6-92
DBLCOM Variables 6 Mill Common
DEGARC 0910 Total degrees of ARC for the current last circle move.
This is set internally. Do not reset
PVCLPT(6) 0911 Internal array to store the previous CL point during circle testing.
***Do not reset.
6-93
G-Post Reference Manual DBLCOM Variables
R40ABCFG 0985 A40= B40= C40= output for radius of rotation to adjust inverse
time feedrates. The A40/B40/C40 address is obtained from
KOMRAD(1-3), (INTCOM(2455-2457)). They will refer to the
PQ CUTCOM address and can be aliased to A40 B40 C40.
Default = 0 Do not output A40/B40/G40
= 1 Use machine coordinates and output non-modal
A40/B40/C40 for each ABC in a G01 block.
= 2 Use part coordinates and output non-modal
A40/B40/C40 for each ABC in a G01 block.
= 3 Use machine coordinates and output modal A40/B40/C40
for each ABC in a G01 block. Test for modality using EPSLN.
= 4 Use part coordinates and output modal A40/B40/C40
for each ABC in a G01 block. Test for modality using EPSLN.
= 5 Use machine coordinates and output modal A40/B40/C40
for each ABC in a G01 block. Test for modality using address
resolution.
= 6 Use part coordinates and output modal A40/B40/C40
for each ABC in a G01 block. Test for modality using address
resolution.
R40XSHFT 0986 A40= B40= C40=. X axis shift for the radius calculation.
Default = 0.0
Range = +-99999.0
R40YSHFT 0987 A40= B40= C40=. Y axis shift for the radius calculation.
Default = 0.0
Range = +-99999.0
6-94
DBLCOM Variables 6 Mill Common
R40ZSHFT 0988 A40= B40= C40=. Z axis shift for the radius calculation.
Default = 0.0
Range = +-99999.0
TIMEFEED 0989 Total machine time while in feed rate mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMERAPD 0990 Total machine time while in rapid mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMEDWEL 0991 Total machine time while in dwell mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMETLCH 0992 Total machine time while in tool change mode. Do not reset
Default = 0.0
Range = +-99999.0
TIMEMISC 0993 Total machine time for miscellaneous commands. Do not reset
Default = 0.0
Range = +-99999.0
DRPSFDRETZ 1025 Distance along tool axis to retract for automatic REPOS.
Default = 0.0
Range = +-99999.0
Warning: ***This may cause a crash on the machine tool since the G-Post will take the longer route.
DRPSFDRETF 1026 Feed rate for retract move along tool axis during automatic REPOS.
Default = 0.0 = use current feed rate
Range = +-99999.0
DRPSFDAPRF 1027 Feed rate for advance move along tool axis during automatic REPOS.
Default = 0.0 = use current feed rate
Range = +-99999.0
6-95
G-Post Reference Manual DBLCOM Variables
PVECTOL 1035 Tolerance testing for previous tool vector, same as VECTOL.
Default = 0.0 (Do not check vectors)
Range = .00001 - 99999.0
6-96
DBLCOM Variables 6 Mill Common
PVDELTAM(6) 1066 _REPOS axis deltas, saved via TY5000 for travel zone checks.
Default = 0.0
Range = +-99999.0
DRTANGOF (3) 1072 Holder offset values from SET/cmd subtracted from current
XYZ points.
Default = 0.0
Range = +-99999.0
DRTANGAR (3) 1075 Rotary axis adjust angle values for ABC set by the SET/cmd.
Default = 0.0
Range = +-99999.0
DTRNSOUTMX (12) 1078 Storage area for TRANS/OUT,- 12 parameter matrix G-Post.
Default = 0.0
Range = +-99999.0
CRTOL360PT 1090 Surfacm large arc test tolerance for 360 degreee arcs. .
Default = 0.0, Do not test Surfcam arcs
Range = +-99999.0
DCSYSAXMUL 1091 For Planar Machining Mode, Sets a scale factor for the A axis which is
used only for output of the angles.
Default = 0.0
Range = +-99999.0
DCSYSBXMUL 1092 For Planar Machining Mode, Sets a scale factor for the B axis which is
used only for output of the angles.
Default = 0.0
Range = +-99999.0
6-97
G-Post Reference Manual DBLCOM Variables
DCSYSCXMUL 1093 For Planar Machining Mode, Sets a scale factor for the C axis which is
used only for output of the angles.
Default = 0.0
Range = +-99999.0
PRESMPUR(6) 1094 Store unrounded present machine point xyzabc, same as presmp which
has been rounded to pulse.
Default = 0.0
Range = +-99999.0
PREVMPUR(6) 1100 Store unrounded previous machine point xyzabc, same as prevmp
which has been rounded to pulse.
Default = 0.0
Range = +-99999.0
CIRCENUR(6) 1106 Store unrounded circle center machine point xyzabc, same as circen
which has been rounded to pulse.
Default = 0.0
Range = +-99999.0
DLNTOLABCOUT 1112 Set a tolerance to skip same rotary ABC output in LINTOL mode or the
value same as ABC rotary register format of number of decimal places.
Example: for 3-places, set it to 0.001.
Default= 0 Output same ABC; any other tolerance value, test and skip
the ABC if the same.
Range = +-99999.0
DISTFEED 1113 Stores the machine the accumulated motion distance for feed rate
moves. ***Do not reset
Default = 0.0
Range = +-99999.0
DISTRAPD 1114 Stores the machine the accumulated motion distance for rapid moves.
***Do not reset
Default = 0.0
Range = +-99999.0
DCSYSG0ABC(3) 1115 Planar machining Positioning block (G0) angles output for ABC axes
after PIVOTZ/ON.
Default = 0.0
Range = +-99999.0
DCSYSG7ABC(3) 1118 Planar machining Rotation block (G7/G68/etc.) angles output for ABC
axes after PIVOTZ/ON.
Default = 0.0
Range = +-99999.0
DMU5AXYTLT 1121 5-axis C-table/B-table Nutator machine B-axis tilt angle from the XY
plane centerline.
Default = 0.0
Range = +-359.999
6-98
CHRCOM Variables 6 Mill Common
CHRCOM Also known by the sub-scripted variable name TVARAB(230) is defined as follows:
Name/Location Description
6-99
7 Default Settings
7 Default Settings
The Lathe and Mill G-Post come with the default settings listed in this chapter. Defaults include tape
format, output codes and relative post processor statements, and machine/control parameters.
Inch N30 G20 X24 Z24 I24 K24 F32 S20 T40 M20
Metric N30 G20 X33 Z33 I33 K33 F41 S20 T40 M20
Example:
N30 means the N letter address will be output with three places to the left of the decimal point and no
places to the right as follows:
X24 means the X letter address will be output with two places to the left of the decimal point and four
places to the right as follows:
Inch N30 G20 X34 Y34 R34 Z34 I34 J34 K34 F33 S40 T50 B33 D20 H20 M20
Metric N30 G20 X43 Y43 R43 Z43 I43 J43 K43 F42 S40 T50 B33 D20 H20 M20
7-1
G-Post Reference Manual
= TMARK/--
N SEQNO/--
G00 RAPID, Motion commands
G01 GOTO/--, Linear motion commands
G02 ARCMOV/--, Circular motion commands CLW
G03 ARCMOV/--, Circular motion commands CCLW
G04 DELAY/--
G33 THREAD/--
G34 THREAD/--
G35 THREAD/--
G90 MODE/90
G91 MODE/91
G92 SET/START,--
G94 FEDRAT/--,IPM
G95 FEDRAT/--,IPR
XZ GOTO, Motion commands
IK ARCMOV/--, THREAD/--, Circular and threading motion
F FEDRAT/--
S SPINDL/--
T TURRET/--;SELECT/--
M00 STOP
M01 OPSTOP
M02 END
M03 SPINDL/--,CLW
M04 SPINDL/--,CCLW
M05 SPINDL/OFF
M07 COOLNT/MIST
M08 COOLNT/FLOOD
M09 COOLNT/OFF
M23 TURRET/--,CLW
M24 TURRET/--,CCLW
M30 REWIND/--
M50 FEDRAT/LOCK,OFF
M51 FEDRAT/LOCK,ON
/ OPSKIP/-- , Delete blocks
>>>> LEADER/--, Spaces
= TMARK/--
N SEQNO/--
G00 RAPID, GOTO/-- , Motion Commands
G01 GOTO/--, Linear motion commands
G02 ARCMOV/--, Circular motion commands CLW
G03 ARCMOV/--, Circular motion commands CCLW
G04 DELAY/--
7-2
7 Default Settings
7-3
G-Post Reference Manual
Number of axes 2 XZ
Built in translation 0, 0
Axes inversion +1, +1
Axes limit minimum 0.0, 0.0
Axes limit maximum 10.0, 10.0
Home point 10.0, 10.0
Rapid feedrate 300.0, 300.0
Feedrate minimum 0.01, 0.01
Feedrate maximum 300.0, 300.0
Feedrate minimum in revolutions 0.01
Feedrate maximum in revolutions 9.9999
Rapid F-code Not applicable
Machine resolution 0.0001
Maximum linear departure 99.9999
Maximum circle radius 99.9999
Minimum rapid distance 0.0
Feedrate for above distance Not applicable
Spindle type Spindle table
Spindle speed minimum 84.0, 262.0
Spindle speed maximum 651.0, 2014.0
Dwell minimum in seconds 0.0001
Dwell maximum in seconds 99.9999
Dwell minimum in revolutions 0.01
Dwell maximum in revolutions 99.99
Dwell time output with TURRET 2.0
Leader for start, STOP, TURRET 14.0, 0.0, 0.0
Leader at the end of program 36.0
Reader speed CPS 300.0
Maximum sequence number 999
7-4
7 Default Settings
7-5
8 UNCMRG
The method used by UNCMRG requires that multiple option files have been generated. The maximum
number of option files allowed to merged at one time is eight (8).
As a safety feature for non-merging G-Post users, each option file must have INTCOM(1868) (PLABEL
OPTION #38) set to 1. This is accomplished by checking the Merging post option on the General tab
of the Start/End of Program menu. This must be done for each post used in the merging process.
The part program is required to have a MACHIN statement for each option file and the merging utility. The
first MACHIN statement in the part program will be that of the post responsible for creating the start-up
tape data. This may include man-readable PARTNO, leader, TMARK or G-codes.
The statement used to control which option file is to be executed by each section of the program is:
Example:
This example shows how to set up G-Post with multiple posts processors and merge their output using the
R11 file.
1. Post files Uncl01.p11,f11 = Starting turning post, MODE/TURN,11 in the source program does a
turning operation.
2 Post files Uncx01.p12,f12 = Mill mode parallel to Z-machine axis and XZC are output.
MODE/MILL,12 in the source program does a drilling operation along Z.
3. Post files Uncx01.p13,f13 = Mill mode parallel to X-machine axis and XZC are output.
MODE/MILL,13 in the source program does a drilling along X.
4. Make a text file named uncl01.r11 in the user or \camlib\ directory with the entries below:
$$-comment lines are optional
8-1
G-Post Reference Manual
5. When you select the lathe post number 11, uncl01.p11 from the CIMpro GUI CAD/CAM
Interface screen, all the 3-posts will be run and merged into one tape file. If the .R11 was not used
the users would have to select each post, Lathe #11, Mill #12, Mill #13 and UNCMGR,1 from the
available posts list.
Note: You must set the merge option in the Option file of each post.
Special Note: The PTC CAD/CAM Interface already has this feature but uses the files UNCX01.Mxx
and UNCL01.Mxx. and will not use the R file.
MACHIN/UNCMRG,1
The UNCMRG post processor MACHIN statement must be the last in the MACHIN section of the part
program. It will always have option number 1 as its argument.
8-2
8 UNCMRG
8.4 Conclusion
Note that when a MODE statement is programmed, all of the required machine information is put in effect.
If the SPINDL or FEDRAT had not been programmed in the MODE/MILL section, a warning would have
been output cautioning that the minimums would be used.
If the SPINDL or FEDRAT had not been programmed in the MODE/TURN section, the last value
programmed in the start-up would have been in effect since .
One of the functions of the MODE statement is to turn the MACHIN switch ON and OFF
8-3
9 4-Axis Merging Lathes
PLABEL/OPTION,55 controls the type of merging and merged CL file printing. This option MUST be
set in the Option File to process properly.
Commands:
OP/n1[,HED,n2]
The OP command is used to designate an operation number n1. HED,n2 is used to designate the primary
(HED,1) or secondary axis (HED,2). If HED is omitted, HED,1 is assumed.
Processing order:
The merging section of the post processor converts these to COMBIN and HEAD commands and creates
the merged CL file.
The FIL (Factory Interface Language) filters the COMBIN and HEAD commands to generate the proper
post processor commands to create the desired output.
Example:
APT program:
9-1
G-Post Reference Manual
SPINDL/200
FEDRAT/10
FROM/10,5
GOTO/10,2.002
GOTO/1,2.002
RAPID
GOTO/10,5.002
OP/20
SPINDL/100
FEDRAT/5
GOTO/10,1.003
GOTO/10,5.003
OP/10,HED,2
FROM/12,-5
GOTO/12,-4.004
GOTO/11,-4.004
GOTO/12,-4.004
GOTO/12,-5.004
FINI
CL File created:
9-2
9 4-Axis Merging Lathes
17 HEAD/102
17 FROM/ 12.000, -5.000, 0.000
18 GOTO/ 12.000, -4.004, 0.000
19 GOTO/ 11.000, -4.004, 0.000
20 GOTO/ 12.000, -4.004, 0.000
9 HEAD/101
9 GOTO/ 1.000,2.002,0.000
21 HEAD/102
21 GOTO/12.000, -5.004, 0.000
21 HEAD/102,NOMORE
10 HEAD/101
10 RAPID
10 GOTO/ 10.000, 5.002,0.000
10 COMBIN/10,NOMORE
11 OP/20
12 SPINDL/100
13 FEDRAT/5
14 GOTO/ 10.000, 1.003,0.000
15 GOTO/ 10.000, 5.003,0.000
15 FINI
9-3
G-Post Reference Manual
MCD Output:
N5 G70$
N10 G90$
N15 G94$
N20 ( *****START OF MERGING OP=10 )$
N25 G97 S200 M3$
N30 G1 X2.002 Z10. F10. $
N35 U-4.004 W12. $
N40 W11. $
N45 W12. $
N50 X2.002 Z1. $
N55 U-5.004 W12. $
N60 G0 X5.002 Z10. $
N65 ( *****END OF MERGING OP=10 )$
N70 S100 $
N75 G1 X1.003 F5. $
N80 X5.003 $
N85 M02 $
Example:
APT program:
CL File created:
9-4
9 4-Axis Merging Lathes
6 OP 10
8 SPINDL 200
10 FEDRAT 10
12 FROM 10.000 5.000 0.000
14 GOTO 10.000 2.000 0.000
16 GOTO 1.000 2.000 0.000
18 RAPID
20 GOTO 10.000 5.000 0.000
22 OP 20
24 SPINDL 100
26 FEDRAT 5
28 GOTO 10.000 1.000 0.000
30 GOTO 10.000 5.000 0.000
32 OP 10 HED 2
34 FROM 12.000 -5.000 0.000
36 GOTO 12.000 -4.000 0.000
38 GOTO 11.000 -4.000 0.000
40 GOTO 12.000 -4.000 0.000
42 GOTO 12.000 -5.000 0.000
44 FINI
9-5
G-Post Reference Manual
MCD Output:
N5 G70$
N10 G90$
N15 G94$
N20 ( *****START OF MERGING OP=10 )$
N25 P101 $
N30 G97 S200 M3$
N35 G1 X2. Z10. F10. $
N40 Z1. $
N45 G0 X5. Z10. $
N50 G1 U-4. W12. F10. $
N55 W11. $
N60 W12. $
N65 U-5. $
N70 ( *****END OF MERGING OP=10 )$
N75 S100 $
N80 G1 X1. Z10. F5. $
N85 X5. $
N90 M02 $
9-6
10 ARC / NURBS Fitting
The Curve Fitting (CRVFIT) process has been implemented in both the APT and G-Post systems. The
difference being, it is optional with the APT system and must be purchased to be used with your custom
posts. It is a standard feature of the G-Post and no additional purchase is needed.
The Option File Generator has a separate panel which allows you to activate (i.e. Set INTCOM(4334) = 1)
and set all of the default parameters for the Curve Fitting (CRVFIT) routines. You can use this panel to set
the values or use the CRVFIT/--- commands in the input CLfile.
Note: You can NOT use CRVFIT/--- commands in a FIL file as the curve fitting process is completed
prior to FIL being executed. Again, you can set the CRVFIT/--- options globally in option file or in the
input file.
PPWORD/CRVFIT,1093
PPWORD/MOVNRB,1094
10-1
G-Post Reference Manual
10.4.1 CRVFIT/ARC,ON
This command initiates the "arc fit" process of the CL file. The next non-RAPID GOTO/x,y,z(,i,j,k) will
start the arc fitting process and it will continue until a non-GOTO CL record or the maximum number of
points is encountered.
Sets DBLCOM(994) = 71
10.4.2 CRVFIT/ARC,OFF
This command disables the "arc fit" process of the CL file. No arc fitting will be executed until
CRVFIT/ARC,ON is encountered.
Sets DBLCOM(994) = 72
During the arc fitting process a set of linear GOTO/x,y,z(,i,j,k) points are converted into circular motion
that fit the tolerance and other options specified. This may reduce the MCD file size or generate a smooth
machining operation.
10.4.3 CRVFIT/ARCSLP,ON-OFF
10.4.4 CRVFIT/XYZ,0-1
Specifies a condition to output arc data as MOVNRB/--- to support circular interpolation in any plane, such
as Siemens CIP format.
0 = no 3D arc. Default
1 = output 3D arc data
Sets DBLCOM(1009)
10.4.5 CRVFIT/RADIUS,1,r1
Sets DBLCOM(0999)
10-2
10 ARC / NURBS Fitting
10.4.6 CRVFIT/RADIUS,2,r2
Sets DBLCOM(1000)
Note: It is suggested not to change these values, since the G-Post has a maximum radius and will switch
into linear interpolation for any large radius automatically.
10.4.7 CRVFIT/SPLINE,ON
Sets DBLCOM(996) = 71 or ON
10.4.8 CRVFIT/SPLINE,OFF
The NURBS fitting process is to convert a set of linear GOTO/x,y,z(,i,j,k) into NURBS curve motion that
fit the tolerance and other options specified. This may reduce the MCD file size or generate a smooth
machining operation. The output of NURBS parameters and the points of the NURBS curve will be output
as MOVNRB/--- command as explained later in this document.
10.4.9 CRVFIT/TYPE,e1
Sets DBLCOM(997)
10.4.10 CRVFIT/PLANE,YXPLAN-YZPLAN-ZXPLAN-ALL
Sets DBLCOM(998)
10.4.11 CRVFIT/TOLER,1,t1
Sets DBLCOM(1001)
10-3
G-Post Reference Manual
10.4.12 CRVFIT/TOLER,2,t2
Sets DBLCOM(1002)
10.4.13 CRVFIT/TOLER,3,t3
Sets DBLCOM(1003)
10.4.14 CRVFIT/TOLER,4,t4
Sets DBLCOM(1004
10.4.15 CRVFIT/TOLER,5,t5
Sets DBLCOM(1005)
10.4.16 CRVFIT/TOLER,6,t6
Sets DBLCOM(1006)
10.4.17 CRVFIT/TOLER,7,t7
Sets DBLCOM(1007)
10.4.18 CRVFIT/TOLER,8,t8
Sets DBLCOM(1008)
10-4
10 ARC / NURBS Fitting
10.4.19 CRVFIT/POINT,1,p1
Sets DBLCOM(1010)
10.4.20 CRVFIT/POINT,2,p2
Sets DBLCOM(1011)
The MOVNRB/--- command represents a spline motion and will have to be formatted for the proper
controller (FANUC, Siemens, etc.) Also a MOVNRB/--- will be generated by the optional
CRVFIT/XYZ,1 option to output a Siemens CIP block.
1. MOVNRB/ON,o,k,w,n,s
2. MOVNRB/1,k1..kk
3. MOVNRB/2,cp1...cpn
4. MOVNRB/NEXT
GOTO/p1,p2...pn
5. MOVNRB/OFF
The 1st line specifies the (o = order of the curve, k = number of knots, w = number of weights as always 0,
n = number of control points, s = curve length).
The 2nd line specifies the actual knot values as scalars. The maximum number of knot values will be 24 in
one command. If there are more knots, then there will be another MOVNRB/1 command and so on.
The 3rd line specifies the actual control points as xyz data. The maximum number of xyz values will be 24
in one command. If there are more points, then there will be another MOVNRB/2 command and so on.
The 4th line specifies the start of the original points that were converted into spline data. This is given, in
case the machine does not have a certain NURBS function and can output G01 motion, ignoring the
MOVNRB command.
10-5
G-Post Reference Manual
The sequence of a MOVNRB/--- command for a cubic spline, CRVFIT/TYPE,1 is as follows: There will
not be any knot values and only control points
1. MOVNRB/ON,o,k=0,w,n,s
2. MOVNRB/2,cp1...cpn
3. MOVNRB/NEXT
GOTO/p1,p2...pn
4. MOVNRB/OFF
The control points actually represent the polynomial coefficients for a cubic spline. These are the three
vector data along xyz axes and the start point. The parameter space t = is from 0 to 1, to satisfy the equation
d+ at+ bt2+ct3. For each curve segment, there will be 12-scalar values (1-3 = d start xyz, 4-6 = a(xyz), 7-9 =
b(xyz), 10-12 = c(xyz).
The sequence of a MOVNRB/--- for an arc, CRVFIT/XYZ,1, is as follows: There will be 7 knot values
and 2 control points
1. MOVNRB/ON,o=3,k=7,w,n=2,s
2. MOVNRB/1,xyz,ijk,r
3. MOVNRB/2,cp1,cp2
4. MOVNRB/NEXT
CIRCLE/xyz,ijk,r
GOTO/p1,p2,…,pn
5. MOVNRB/OFF
The knot values represent the circle center (xyz), axis (ijk) and radius (r). The 1st control point is the mid
point of the arc and the 2nd control point is the end point of the arc. This can be used to output the Siemens
CIP block and skip the CIRCLE/--- and original GOTO/x,y,z(,i,j,k) for the arc.
10.5.4 MOVNRB/M3AXIS-M5AXIS
The PTC Pro/E system generates this command to indicate a pre-fit NURB (3 or 5 Axis) with GOTO
points. In this case, G-Post will not do any Curve Fitting and will only format the data for Siemens,
Fanuc etc output.
10.5.5 MOVNRB/3002-5002
This command supports pre-fit Nurb curve data output by CATIA in the *.aptsource file as below for 3 and
5 axes format. By setting Intcom(4335) to 0,1 or 2, G-Post can then convert this code to the desired format
and output to the tape file. For this case, do not enable "Curve Fit" in the Option file, since this is pre-fit
data. Either set Intcom(4335) in the FIL file or manually edit into the Option file.
10-6
10 ARC / NURBS Fitting
Example:
3-axis format:
BEGIN NURBS_SIEMENS (D=3,F=25.000,AXIS= 0.00000, 0.00000, 1.00$
000)
N0, XT= 0.00000, YT= 0.00000, ZT= 0.00000,DK= 0.00000,W= $
1.00000;
N1, XT= 0.31961, YT= 0.05915, ZT= 0.00000,DK= 0.00000,W= $
1.00000;
N2, XT= 0.63426, YT= 0.14295, ZT= 0.00000,DK= 0.97493,W= $
1.00000;
N3, XT= 0.94559, YT= 0.23556, ZT= 0.00000,DK= 0.00000,W= $
1.00000;
END NURBS
5-axis format:
BEGIN NURBS_SIEMENS (D=3,F=80.000,AXIS=VAR,LENGTH= 2.000)
N0, XT= 19.18055, YT= -42.44969, ZT= -6.28780, XH= 19.180191, YH=$
-37.474471, ZH= 43.464058,DK=0.000,W=1.000;
N1, XT= 19.18049, YT= -41.57342, ZT= 2.47480, XH= 19.180128, YH=$
-36.598205, ZH= 52.226657,DK=0.000,W=1.000;
N2, XT= 19.18042, YT= -40.69716, ZT= 11.23740, XH= 19.180065, YH=$
-35.721939, ZH= 60.989257,DK=26.419,W=1.000;
N3, XT= 19.18036, YT= -39.82089, ZT= 20.00000, XH= 19.180002, YH=$
-34.845674, ZH= 69.751856,DK=0.000,W=1.000;
END NURBS
ACL file:
CATIA Cimpro interface will convert this into ACL records 3-axis:
MOVNRB/3002
MOVNRB/1,ORDER,FEED,AXIS-I,J,K
MOVNRB/2,CPT-XYZ,KNOT,WEIGHT
MOVNRB/3,CPT-XYZ,KNOT,WEIGHT
ETC...
MOVNRB/OFF
CATIA Cimpro interface will convert this into ACL records 5-axis:
MOVNRB/5002
MOVNRB/1,ORDER,FEED,AXIS,LENGTH
MOVNRB/2,CPT-XYZ,CPT-UVW,KNOT,WEIGHT
MOVNRB/3,CPT-XYZ,CPT-UVW,KNOT,WEIGHT
ETC...
MOVNRB/OFF
10-7
G-Post Reference Manual
Q: Will the arc fitting substitute helical motion for linear motion, G01's?
A: Yes – using the CRVFIT/ARCSLP,ON option. This will check the Z-change along the tool axis to be
constant and be within the stated tolerance, as specified by the CRVFIT/TOLER,6,t6 command. When
this is satisfied, an ARCSLP/ON,--- command will be output before the circular motion. This will instruct
the G-Post to perform helical interpolation motion for the circular records in the MCD file (G02/G03
blocks will contain I, J, K lead values).
Q: Will arc fitting produce circular motion, G02 and G03's, when the tool axis is not fixed (constant)?
A: No - the tool axis must remain constant for both arc and NURBS fitting.
Note: The CUTCOM/plane must be in the same plane as the circular plane, G02/G03. this condition is
tested by G-Post.
10-8
10 ARC / NURBS Fitting
The general curve fitting tolerance t1 is used for all arc fitting and NURBS curves creation and
interpolation etc.
The chordal tolerencet8, specified by the CRVFIT/TOLER,8,t8 command, is used to accept adjacent
points and to determine if they are on the circle or spline.
The z-tolerance t2 , specified by the CRVFIT/TOLER,2,t2 command, is used to test if the input points,
when rotated into the XY-plane, have the same z-value. Only points that are in the same plane will be
selected for curve fitting.
If ARCSLP/ON is programmed, two adjacent points must have a z-change but can not exceed the second z
by tolerance t6, specified by the CRVFIT/TOLER,6,t6 command. This will prevent a desired delta-z
move from being converted into an helical motion.
The tool axis vector tolerance t3, specified by the CRVFIT/TOLER,3,t3 command, is used to test if the
input tool axis is a constant. Only points with the same tool axis vector will be selected for curve fitting.
The direction tolerance t4, specified by the CRVFIT/TOLER,4,t4 command, is used to accept adjacent
points and to determine if there is a reversal in direction or steep angular change. Note this values is given
in degrees.
The distance tolerance t5, specified by the CRVFIT/TOLER,5,t5 command, is used to accept adjacent
points and to determine if the points are too far apart from each other, such as a long linear move.
The ratio tolerance t7, specified by the CRVFIT/TOLER,7,t7 command, is tested after the arc fitting. If
the number of arcs fit exceed this ratio to the original points, then the arc fitting for this region is skipped
and the original GOTO/x,y,z(,I,j,k) points will be used. For instance, if we selected 100 points for a region
and we converted those to 90 or less arcs, the tolerance must <= 10% to accept the arc fitting.
10-9
G-Post Reference Manual
10.7 Examples
There are several test files available for both APT and G-Post for CRVFIT implementation. You can
obtain these test files from Austin N.C., Inc. free of charge. Visit our WEB Site at
http://www.austinnc.com and go to the Support page to download the Curve Fitting test files. Look at
the FIL files to get an understanding of the various formats from CRVFIT. This will help you to
implement the MCD format in your custom post.
For G-Post, you can simply select the desired format FANUC, Siemens, etc. in the option file generator and
the MCD is automatically formatted.
1 PARTNO ARCFIT
2 MACHIN/UNCX01,1
3 MULTAX/ON
4 CLPRNT
5 CUTTER/0,0,0,0,0,0,5
6 SPINDL/300
7 FEDRAT/10
8 CRVFIT/ARC,ON
9 FROM /.70710678,0,-.70710678,.70710678,0,.70710678
10 GOTO /.70699909,.01745241,-.70699908,.70710678,0,.70710678
11 GOTO /.70667603,.0348995,-.70667603,.70710678,0,.70710678
12 GOTO /.70613772,.05233596,-.70613772,.70710678,0,.70710678
13 GOTO /.70538431,.06975647,-.7053843,.70710678,0,.70710678
14 GOTO /.70441603,.08715574,-.70441603,.70710678,0,.70710678
15 GOTO /.70323318,.10452846,-.70323318,.70710678,0,.70710678
16 GOTO /.70183612,.12186934,-.70183611,.70710678,0,.70710678
17 GOTO /.70022527,.1391731,-.70022527,.70710678,0,.70710678
18 GOTO /.69840112,.15643446,-.69840112,.70710678,0,.70710678
19 GOTO /.69636424,.17364818,-.69636424,.70710678,0,.70710678
20 GOTO /.69411524,.190809,-.69411524,.70710678,0,.70710678
21 GOTO /.6916548,.20791169,-.6916548,.70710678,0,.70710678
22 GOTO /.68898368,.22495105,-.68898368,.70710678,0,.70710678
23 GOTO /.68610269,.2419219,-.68610269,.70710678,0,.70710678
24 GOTO /.6830127,.25881904,-.6830127,.70710678,0,.70710678
25 GOTO /.67971466,.27563736,-.67971466,.70710678,0,.70710678
26 GOTO /.67620958,.2923717,-.67620958,.70710678,0,.70710678
27 GOTO /.67249851,.30901699,-.67249851,.70710678,0,.70710678
28 GOTO /.6685826,.32556815,-.6685826,.70710678,0,.70710678
29 GOTO /.66446303,.34202014,-.66446302,.70710678,0,.70710678
30 GOTO /.66014105,.35836795,-.66014105,.70710678,0,.70710678
31 GOTO /.65561799,.37460659,-.65561799,.70710678,0,.70710678
32 GOTO /.65089522,.39073113,-.65089522,.70710678,0,.70710678
10-10
10 ARC / NURBS Fitting
33 GOTO /.64597419,.40673664,-.64597419,.70710678,0,.70710678
34 GOTO /.64085638,.42261826,-.64085638,.70710678,0,.70710678
35 GOTO /.63554337,.43837115,-.63554336,.70710678,0,.70710678
36 GOTO /.63003676,.4539905,-.63003675,.70710678,0,.70710678
37 GOTO /.62433823,.46947156,-.62433823,.70710678,0,.70710678
38 GOTO /.61844953,.48480962,-.61844953,.70710678,0,.70710678
39 GOTO /.61237244,.5,-.61237244,.70710678,0,.70710678
40 GOTO /.60610881,.51503807,-.60610881,.70710678,0,.70710678
41 GOTO /.59966056,.52991926,-.59966056,.70710678,0,.70710678
42 GOTO /.59302965,.54463903,-.59302965,.70710678,0,.70710678
43 GOTO /.58621809,.5591929,-.58621809,.70710678,0,.70710678
44 GOTO /.57922797,.57357644,-.57922797,.70710678,0,.70710678
45 GOTO /.5720614,.58778525,-.5720614,.70710678,0,.70710678
46 GOTO /.56472059,.60181502,-.56472058,.70710678,0,.70710678
47 GOTO /.55720775,.61566147,-.55720775,.70710678,0,.70710678
48 GOTO /.54952518,.62932039,-.54952518,.70710678,0,.70710678
49 GOTO /.54167522,.64278761,-.54167522,.70710678,0,.70710678
50 GOTO /.53366026,.65605903,-.53366026,.70710678,0,.70710678
51 GOTO /.52548275,.66913061,-.52548275,.70710678,0,.70710678
52 GOTO /.51714516,.68199836,-.51714516,.70710678,0,.70710678
53 GOTO /.50865005,.69465837,-.50865005,.70710678,0,.70710678
54 GOTO /.5,.70710678,-.5,.70710678,0,.70710678
55 GOTO /.49119765,.7193398,-.49119764,.70710678,0,.70710678
56 GOTO /.48224567,.7313537,-.48224567,.70710678,0,.70710678
57 GOTO /.47314679,.74314482,-.47314679,.70710678,0,.70710678
58 GOTO /.46390379,.75470958,-.46390379,.70710678,0,.70710678
59 GOTO /.45451948,.76604444,-.45451948,.70710678,0,.70710678
60 GOTO /.44499672,.77714596,-.44499672,.70710678,0,.70710678
61 GOTO /.43533841,.78801075,-.4353384,.70710678,0,.70710678
62 GOTO /.42554748,.79863551,-.42554748,.70710678,0,.70710678
63 GOTO /.41562694,.80901699,-.41562694,.70710678,0,.70710678
64 GOTO /.40557979,.81915204,-.40557979,.70710678,0,.70710678
65 GOTO /.3954091,.82903757,-.39540909,.70710678,0,.70710678
66 GOTO /.38511796,.83867057,-.38511796,.70710678,0,.70710678
67 GOTO /.37470951,.8480481,-.37470951,.70710678,0,.70710678
68 GOTO /.36418692,.8571673,-.36418692,.70710678,0,.70710678
69 GOTO /.35355339,.8660254,-.35355339,.70710678,0,.70710678
70 GOTO /.34281217,.87461971,-.34281217,.70710678,0,.70710678
71 GOTO /.33196653,.88294759,-.33196653,.70710678,0,.70710678
72 GOTO /.32101976,.89100652,-.32101976,.70710678,0,.70710678
73 GOTO /.30997521,.89879405,-.30997521,.70710678,0,.70710678
74 GOTO /.29883624,.90630779,-.29883624,.70710678,0,.70710678
75 GOTO /.28760624,.91354546,-.28760624,.70710678,0,.70710678
76 GOTO /.27628863,.92050485,-.27628863,.70710678,0,.70710678
77 GOTO /.26488686,.92718385,-.26488686,.70710678,0,.70710678
78 GOTO /.25340441,.93358043,-.25340441,.70710678,0,.70710678
79 GOTO /.24184476,.93969262,-.24184476,.70710678,0,.70710678
80 GOTO /.23021145,.94551858,-.23021145,.70710678,0,.70710678
81 GOTO /.21850801,.95105652,-.21850801,.70710678,0,.70710678
82 GOTO /.20673802,.95630476,-.20673802,.70710678,0,.70710678
83 GOTO /.19490504,.9612617,-.19490504,.70710678,0,.70710678
84 GOTO /.1830127,.96592583,-.1830127,.70710678,0,.70710678
85 GOTO /.17106461,.97029573,-.17106461,.70710678,0,.70710678
86 GOTO /.15906442,.97437006,-.15906442,.70710678,0,.70710678
87 GOTO /.14701577,.9781476,-.14701577,.70710678,0,.70710678
10-11
G-Post Reference Manual
88 GOTO /.13492234,.98162718,-.13492234,.70710678,0,.70710678
89 GOTO /.12278781,.98480775,-.1227878,.70710678,0,.70710678
90 GOTO /.11061587,.98768834,-.11061587,.70710678,0,.70710678
91 GOTO /.09841024,.99026807,-.09841024,.70710678,0,.70710678
92 GOTO /.08617464,.99254615,-.08617464,.70710678,0,.70710678
93 GOTO /.07391279,.9945219,-.07391279,.70710678,0,.70710678
94 GOTO /.06162842,.9961947,-.06162842,.70710678,0,.70710678
95 GOTO /.04932528,.99756405,-.04932528,.70710678,0,.70710678
96 GOTO /.03700711,.99862953,-.03700711,.70710678,0,.70710678
97 GOTO /.02467767,.99939083,-.02467767,.70710678,0,.70710678
98 GOTO /.01234072,.9998477,-.01234072,.70710678,0,.70710678
99 GOTO /0,1,0,.70710678,0,.70710678
100 GOTO /.70710678,0,-.70710678,.70710678,0,.70710678
101 END
101 FINI$$
13:43:55 Scheduled Section 1-2
13:43:56 Scheduled Section 2
13:43:56 Scheduled Section 3
Rec Isn ** Cutter Location File Data **
2 1 PARTNO ARCFIT
4 2 MACHIN UNCX01 1
6 3 MULTAX/ON
8 5 CUTTER 0 0 0 0 0 0 5
10 6 SPINDL 300
12 7 FEDRAT 10
15 9 FROM .7071068 .0000000 -.7071068 .7071068 .0000000 .7071068
18 10 GOTO .7069991 .0174524 -.7069991 .7071068 .0000000 .7071068
19 10 CIRCLE .0054700 .0001347 -.0054374 .7071232 .0000010 .7070904 .9922861
10-12
10 ARC / NURBS Fitting
3 6 $ ARCFIT
6 10 N1 M41$
6 10 N2 S00300 M03$
10 18 N3 G1 X.9998 Y.0175 Z0. A90. B45. F10.$ .9998 .0175 .0000 90.000 45.000
10 21 N4 G3 X.9301 Y.3661 I-.9921 J-.0174$ .9301 .3661
10 23 N5 G3 X.7423 Y.668 I-.9305 J-.3692$ .7423 .6680
10 25 N6 G3 X.4064 Y.9127 I-.7521 J-.6796$ .4064 .9127
10 27 N7 G3 X0. Y1. I-.4064 J-.9025$ .0000 1.0000
10 27 N8 G1 X1. Y0.$ 1.0000 .0000
101 29 N9 M02$
101 31 %$
0 TAPE TIME WARNING
PAGE 1.56 .30 0
TOTAL 1.56 .30 0
1 AUSTIN N.C. UNCX01 6.0.WN00 B- 3.0 MACHIN/UNCX01, 1 DATE: 6/23/2005 PAGE 2
FANUC 5-AXIS NURB
ARCFIT (INCH)
INPUT CLREC N4G2Q24P5X34Y34R34Z34A43B33I34J34K34F32S5T2D2H2M2E2L4W32
10-13
G-Post Reference Manual
10.7.2 A simple example of NURBS fit in APT and output: (same program as
above)
10-14
10 ARC / NURBS Fitting
46 GOTO /.56472059,.60181502,-.56472058,.70710678,0,.70710678
47 GOTO /.55720775,.61566147,-.55720775,.70710678,0,.70710678
48 GOTO /.54952518,.62932039,-.54952518,.70710678,0,.70710678
49 GOTO /.54167522,.64278761,-.54167522,.70710678,0,.70710678
50 GOTO /.53366026,.65605903,-.53366026,.70710678,0,.70710678
51 GOTO /.52548275,.66913061,-.52548275,.70710678,0,.70710678
52 GOTO /.51714516,.68199836,-.51714516,.70710678,0,.70710678
53 GOTO /.50865005,.69465837,-.50865005,.70710678,0,.70710678
54 GOTO /.5,.70710678,-.5,.70710678,0,.70710678
55 GOTO /.49119765,.7193398,-.49119764,.70710678,0,.70710678
56 GOTO /.48224567,.7313537,-.48224567,.70710678,0,.70710678
57 GOTO /.47314679,.74314482,-.47314679,.70710678,0,.70710678
58 GOTO /.46390379,.75470958,-.46390379,.70710678,0,.70710678
59 GOTO /.45451948,.76604444,-.45451948,.70710678,0,.70710678
60 GOTO /.44499672,.77714596,-.44499672,.70710678,0,.70710678
61 GOTO /.43533841,.78801075,-.4353384,.70710678,0,.70710678
62 GOTO /.42554748,.79863551,-.42554748,.70710678,0,.70710678
63 GOTO /.41562694,.80901699,-.41562694,.70710678,0,.70710678
64 GOTO /.40557979,.81915204,-.40557979,.70710678,0,.70710678
65 GOTO /.3954091,.82903757,-.39540909,.70710678,0,.70710678
66 GOTO /.38511796,.83867057,-.38511796,.70710678,0,.70710678
67 GOTO /.37470951,.8480481,-.37470951,.70710678,0,.70710678
68 GOTO /.36418692,.8571673,-.36418692,.70710678,0,.70710678
69 GOTO /.35355339,.8660254,-.35355339,.70710678,0,.70710678
70 GOTO /.34281217,.87461971,-.34281217,.70710678,0,.70710678
71 GOTO /.33196653,.88294759,-.33196653,.70710678,0,.70710678
72 GOTO /.32101976,.89100652,-.32101976,.70710678,0,.70710678
73 GOTO /.30997521,.89879405,-.30997521,.70710678,0,.70710678
74 GOTO /.29883624,.90630779,-.29883624,.70710678,0,.70710678
75 GOTO /.28760624,.91354546,-.28760624,.70710678,0,.70710678
76 GOTO /.27628863,.92050485,-.27628863,.70710678,0,.70710678
77 GOTO /.26488686,.92718385,-.26488686,.70710678,0,.70710678
78 GOTO /.25340441,.93358043,-.25340441,.70710678,0,.70710678
79 GOTO /.24184476,.93969262,-.24184476,.70710678,0,.70710678
80 GOTO /.23021145,.94551858,-.23021145,.70710678,0,.70710678
81 GOTO /.21850801,.95105652,-.21850801,.70710678,0,.70710678
82 GOTO /.20673802,.95630476,-.20673802,.70710678,0,.70710678
83 GOTO /.19490504,.9612617,-.19490504,.70710678,0,.70710678
84 GOTO /.1830127,.96592583,-.1830127,.70710678,0,.70710678
85 GOTO /.17106461,.97029573,-.17106461,.70710678,0,.70710678
86 GOTO /.15906442,.97437006,-.15906442,.70710678,0,.70710678
87 GOTO /.14701577,.9781476,-.14701577,.70710678,0,.70710678
88 GOTO /.13492234,.98162718,-.13492234,.70710678,0,.70710678
89 GOTO /.12278781,.98480775,-.1227878,.70710678,0,.70710678
90 GOTO /.11061587,.98768834,-.11061587,.70710678,0,.70710678
91 GOTO /.09841024,.99026807,-.09841024,.70710678,0,.70710678
92 GOTO /.08617464,.99254615,-.08617464,.70710678,0,.70710678
93 GOTO /.07391279,.9945219,-.07391279,.70710678,0,.70710678
94 GOTO /.06162842,.9961947,-.06162842,.70710678,0,.70710678
95 GOTO /.04932528,.99756405,-.04932528,.70710678,0,.70710678
96 GOTO /.03700711,.99862953,-.03700711,.70710678,0,.70710678
97 GOTO /.02467767,.99939083,-.02467767,.70710678,0,.70710678
98 GOTO /.01234072,.9998477,-.01234072,.70710678,0,.70710678
10-15
G-Post Reference Manual
99 GOTO /0,1,0,.70710678,0,.70710678
100 GOTO /.70710678,0,-.70710678,.70710678,0,.70710678
101 END
101 FINI$$
08:25:09 Scheduled Section 1-2
08:25:09 Scheduled Section 2
08:25:09 Scheduled Section 3
Rec Isn ** Cutter Location File Data **
10-16
10 ARC / NURBS Fitting
10-17
G-Post Reference Manual
10-18
10 ARC / NURBS Fitting
-38 ENDIF
-39 PKN(I1)=POSTF(7,(J1+1))
-40 J1=J1+1
-41 LB10)CONTIN
-42 $$ NO WEIGHTS
-43 $$ GET CONTRL POINTS
-44 DMY=POSTF(14)
-45 J1=4
-46 DO/LB20,I1=1,KCP
-47 IF(J1 .GE. MXWD2) THEN
-48 DMY=POSTF(14)
-49 J1=4
-50 ENDIF
-51 PCX(I1)=POSTF(7,(J1+1))
-52 PCY(I1)=POSTF(7,(J1+2))
-53 PCZ(I1)=POSTF(7,(J1+3))
-54 J1=J1+3
-55 LB20)CONTIN
-56 $$ FANUC FORMAT FOR A 4TH ORDER NURB IS:
-57 $$ G05 P10000
-58 $$ G06.2 P4 K1 CPX CPY CPZ
-59 $$ K2 CPX CPY CPZ
-60 $$ ...
-61 $$ KN-3
-62 $$ KN-2
-63 $$ KN-1
-64 $$ KN
-65 POSTN/ALL
-66 GOTO/PCX(1),PCY(1),PCZ(1)
-67 POSTN/OUT,7,5,16,10000
-68 POSTN/OUT,17,6.2,16,KRD,11,PKN(1),24,PCX(1),25,PCY(1),26,PCZ(1)
-69 PLABEL/OPTION,61,TO,10
-70 DO/LB30,I1=2,KCP
-71 DMY=POSTF(3,3,(355+11))
-72 POSTN/OUT,11,PKN(I1),24,PCX(I1),25,PCY(I1),26,PCZ(I1)
-73 LB30)CONTIN
-74 PLABEL/OPTION,61,TO,0
-75 I1=I1+1
-76 DO/LB30,J1=I1,KNT
-77 POSTN/OUT,11,PKN(J1)
-78 LB30)CONTIN
-79 POSTN/OUT,7,5,16,0
-80 $$ SKIP THE GOTO/PTS UNTIL MOVNRB/OFF
-81 DMY=POSTF(14)
-82 DMY=POSTF(20)
-83 IW4=POSTF(7,4)
-84 IF(IW4 .NE. (ICODEF(NEXT)))JUMPTO/LB80
-85 DO/LB40,I1=1,2
-86 I1=1
-87 DMY=POSTF(14)
-88 IW2=POSTF(7,2)
-89 IW3=POSTF(7,3)
-90 IF(IW2.EQ.2000 .AND. IW3.EQ.(ICODEF(MOVNRB)))I1=3
-91 LB40)CONTIN
-92 JUMPTO/LB90
10-19
G-Post Reference Manual
-93 $$ MOVNRB/BAD
-94 LB80)CONTIN
-95 DMY=POSTF(21)
-96 DMY=POSTF(13)
-97 JUMPTO/LB90
-98 LB90)CONTIN
-99 CIMFIL/OFF
-100 FINI
1 AUSTIN N.C. UNCX01 6.0.WN00 B- 3.0 MACHIN/UNCX01,11 DATE: 6/28/2000 PAGE 1
FANUC 5-AXIS NURB
NURB FIT (INCH)
INPUT CLREC N4G2Q24P5X34Y34R34Z34A43B33I34J34K34F32S5T2D2H2M2E2L4W32
3 6 $ NURB FIT
6 10 N1 M41$
6 10 N2 S00300 M03$
10 18 N3 G1 X.707 Y.0175 Z-.707 A90. B-0. F10.$ .7070 .0175 -.7070 90.000 .000
10 18 N4 G5 P10000$
10 18 N5 G6.2 P4 X.707 Y.0175 Z-.707 K0.$ .7070 .0175 -.7070
10 18 N6 X.7041 Y.2559 Z-.7041 K0.$ .7041 .2559 -.7041
10 18 N7 X.5599 Y.7675 Z-.5599 K0.$ .5599 .7675 -.5599
10 18 N8 X.1975 Y1. Z-.1975 K0.$ .1975 1.0000 -.1975
10 18 N9 X0. Y1. Z0. K.4607$ .0000 1.0000 .0000
10 18 N10 K1.$
10 18 N11 K1.$
10 18 N12 K1.$
10 18 N13 K1.$
10 18 N14 G5 P0$
10 26 N15 G1 X1. Y0. Z0. B45.$ 1.0000 .0000 .0000 45.000
101 28 N16 M02$
101 30 %$
0 TAPE TIME WARNING
PAGE 2.06 .04 0
TOTAL 2.06 .04 0
1 AUSTIN N.C. UNCX01 5.4.WN00 B- 3.0 MACHIN/UNCX01,11 DATE: 6/28/2000 PAGE 2
FANUC 5-AXIS NURB
NURB FIT (INCH)
INPUT CLREC N4G2Q24P5X34Y34R34Z34A43B33I34J34K34F32S5T2D2H2M2E2L4W32
10-20
11 HTML Packager-Simulator
To have your post processor create this file you will have to enable it. Open your Option File and go to the
File Formats -> HTML Packager screen and click on the files you want in your HTML file. The
CIMpro GUI has a new view option for the HTML file.
There is an optional configuration file for the HTML Packager called the mark file. This file is named
UNCX01.Kxx (Mill post) or UNCL01.Kxx (Lathe post). The HTML file can have an index or markers
for quick navigation/location during the browser view. For this purpose, a mark file is used namely *.Knn.
This mark file allows for the addition of any addition information the user would like to include in the
HTML file.
By default, the G-Post uses a "mark" file UNCX01.K00 or UNCL01.K00 from the \CAMLIB\ directory
as shipped on the CD. For each post execution, you can control the mark file by creating uncx01.Knn,
where nn is the matching post number similar to the Option File.
The line file=* can be generic (*=SRC,ACL,LST,TAP,OPT or FIL) to indicate which file needs to have an
index. G-Post will change this to an actual file name (test.apt,lst etc) during the execution.
The line colm=n, indicates what column to match the string specified in text=string or all subsequent
strings until a new colm=n is stated. Use colm=0, for match at any location of the line. If colm=n, is not
given colm=1 is the default.
The line text=string, is the string to search and make an index. It is case sensitive and any number of
text=lines can be given.
The line limt=n, indicates how many matches to be found. Default is limt=50 for each file at start.
11-1
G-Post Reference Manual
Example:
A new utility Whtmlpack.exe is now available in the \CAMSYS\ directory. You can launch this from via
command line in Windows to combine any desired files.
Whtmlpack Input_description_file.inp
Input_description_file.inp is a text file that contains information as to what files need to be packed and
how. It has the following format of one line per description.
11-2
11 HTML Packager-Simulator
Example:
To make an HTML file of mytest.ncl and mytest.tap, use the below command syntax.
\camsys\Whtmlpack mytest.inp
Contents of mytest.inp
mytest.htm
mytest.mrk or none if there is no "mark" file for indexing
mytest.ncl
mytest.tap
# my sample
file=test.ncl (must be actual file name and not generic)
text=LOADTL
end
11-3
12 Appendix A
∴= 32 ! = 33 “ = 34 # = 35 $ = 36 % = 37 & =38 ‘ = 39
( = 40 ) = 41 * = 42 + = 43 , = 44 - = 45 . = 46 / = 47
0 = 48 1 = 49 2 = 50 3 = 51 4 = 52 5 = 53 6 = 54 7 = 55
8 = 56 9 = 57 : = 58 ; = 59 < = 60 = = 61 > = 62 ? = 63
@ = 64 A = 65 B = 66 C = 67 D = 68 E = 69 F = 70 G = 71
H = 72 I = 73 J = 74 K = 75 L = 76 M = 77 N = 78 O = 79
P = 80 Q = 81 R = 82 S = 83 T = 84 U = 85 V = 86 W = 87
X = 88 Y = 89 Z = 90 [ = 91 \ = 92 ] = 93 ^ =95 _= 96
Table 12-1 ASCII Character Table
12-1
13 Appendix B
⇒ To output the radius of rotation used by some controllers to adjust the feed rates has been added.
Some MAHO 5 axis machines use A40raidus B40raidus C40radius to update the feed rates.
New variable,
The A40/B40/C40 address is obtained from KOMADR(1-3) INTCOM (2455-2457). These locations refer
to the PQ CUTCOM addresses P and Q and you can use the alias to get the strings A40, B40 and C40.
You can specify a shift of XYZ for the radius calculation such as the pivot distance for Z axis etc.
New variable,
Example:
CIMFIL/ON,MACHIN
DMY = POSTF(13)
DMY = POSTF(2,3,985,1) $$ OUTPUT NON-MODAL A40-C40
DMY = POSTF(2,3,988,3.1) $$ SHIFT Z 3.1
DMY = POSTF(2,1,2455,16) $$ A AXIS ADDRESS = P
DMY = POSTF(2,1,2456,0) $$ NO B AXIS ADDRESS
DMY = POSTF(2,1,2457,17) $$ C AXIS ADDRESS = Q
CIMFIL/OFF
13-1
G-Post Reference Manual
⇒ To adjust the output XYZ coordinates along the tool axis for a dual rotary head machine you need
to set the OTRANV common variable, it is DBLCOM (918). Initially this value is set to Zero and if this is
set to a value, the XYZ will be modified by this distance along the current tool axis.
⇒ The current CIRCLE information can be retrieved from the following common locations:
Lathe
circle start angle (DBLCOM (1666))
total angle (DBLCOM(1667))
circle direction (INTCOM (538)).
⇒ An output address multiplier has been added for each output address. Setting these locations will
force the post to multiply the current output value by this multiplier prior to it being output.
Lathe
DBLCOM (1610) – DBLCOM(1661) a through verify z. Dwell IPM is DBLCOM(1662) and DWELL IPR
is DBLCOM(1663).
⇒ G93 F# to match the Cincinnati hi-speed machines. Using 1/2 cutter height to shift tool-tip along
the tool-axis to find the current span length.
⇒ INTCOM (1510) has been added for dual rotary head machines (HEAD/HEAD) to output tool tip
programming instead of pivot point programming. Set INTCOM(1510) as follows:
⇒ The Postprocessor Revision and Build numbers are now stored in DBLCOM.
Revision number is in DBLCOM(919) and Build number is in DBLCOM(920)
⇒ Added DBLCOM (917) as a tolerance to test the circle X, Y, Z, I, J, and K value for small
deviations from there normal plane (G17, G18, G19). By default no deviation is permitted. Setting
DBLCOM(917) to a value other then Zero, say .001, will allow for noisy points and tool axis vectors.
Default = 0
ICLRED - INTCOM (457) The switch to indicate whether a circle automatically reads the next CL
Record. has been updated to accept the following values:
13-2
13 Appendix B
⇒ INTCOM (615) IPCHCT can be set to 80 or 120 to generate longer MCD/Punch lines.
⇒ INTCOM(3301) has been added to allow up to 120 characters in the tape output line.
⇒ Added a check for IBQUAD INTCOM (2094). When IBQUAD is equal to two (2) the post will
not reposition the C Axis to zero when a tool axis of 0,0,1 is encountered.
⇒ On a dual rotary head machine (HEAD/HEAD), a check has been added for the PVTDS2
DBLCOM (653) being greater than zero. If PVTDS2 is greater than zero the PVTDS2 DBLCOM(635) is
recalculated to be (PVTDST-PVTDS2) and the machine points are modified.
⇒ OPSKIP/ON,n and OPSKIP/n,ON can be set with different output formats as follows:
⇒ VECTOL DBLCOM (891) can be set with a vector tolerance resolution. Then the post will test
all vector components and set them to zero if less than VECTOL.
⇒ IBQUAD INTCOM (2094) can be set to 0. 1 or 2. When set to 0 the nutator will resolve the
shortest direction. When set to 1 the nutator will resolve in the plus direction. When set to 2 the nutator will
resolve in the negative direction.. The default is 0, which is recommended.
⇒ IZRANG DBLCOM (2706) can be set to 0, 1, 2 or 3. When set to 0 the rotary axis will output +-0
for +-0 and +-360 for +-360. When set to 1 the rotary axis will output -360 for -0. When set to 2 the rotary
axis will output +360 for +0. When set to 3 the rotary axis will output +-0 as +-360. The default is 0
⇒ Complete axis travel limits are now printed to the listing file.
⇒ INTCOM (2717) can be set to 1 to skip the Z test for one circle move following the
ARCSLP/OFF command.
⇒ When using a tilt wire EDM post (INTCOM (2713) =0 ) the default wire height is set in
DBLCOM (889) and is 1.00 by default.
13-3
14 Glossary
14 Glossary
This glossary is intended to familiarize users with some of the common names and terms used with Austin
N.C., Inc.’s NC software.
This section of the glossary describes the files the G-Post uses during the post processing session.
VTB File: The VTB file is used by the APT system or CAD/CAM Interfaces chosen when
executing the G-Post. It contains any vocabulary words that the CAD/CAM systems uses that are not
standard in our system and any words added by the user. The VTB file is named UNCASnn.vtb for the
standard CAD/CAM Interfaces and UNCAPnn.vtb for the CAD/CAM Interfaces that utilize part of the
APT system. (nn = the CAD/CAM Interface number, i.e. CATIA = UNCAS17.vtb)
STB File: The STB file is used by the APT system or CAD/CAM Interfaces chosen when
executing the G-Post. It contains any commands that are to be automatically included into the beginning of
the Input Source file. The STB file is named UNCASnn.stb for the standard CAD/CAM Interfaces and
UNCAPnn.stb for the CAD/CAM Interfaces that utilize part of the APT system. (nn = the CAD/CAM
Interface number, i.e. CATIA = UNCAS17.stb)
INC File: The INC file is used by the APT System or CAD/CAM Interfaces chosen when
executing the G-Post. It is the default file type for commands included into the source file using the
INCLUD/ command. Included files are not required to have the extention of .inc but it will be the assumed
extention if one is not specified as part of the file name on the INCLUD/{filename} command.
Pnn File: This file is the Option File created by the Option File Generator. It contains all the users
selected preferences that are different from the Post Processor Defaults. The value for nn will be a number
between 01 and 99 and represents the post processor number. This value can be changed to a four digit
number (0001 – 9999) in the System Settings, the default is two digits.
Fnn File: This is the FIL file created by the Option File Generator, Advanced -> FIL Editor, or
manually using any text editor. It contains any FIL commands that the user requires to alter the G-Post’s
output to the MCD/Punch file. The value for nn will be a number between 01 and 99 and represents the
post processor number. This value can be changed to a four digit number (0001 – 9999) in the System
Settings, the default is two digits.
Snn File: This file is a backup copy of the Option File and is created every time an Option File is
opened for editing by the Option File generator. The value for nn will be a number between 01 and 99 and
represents the post processor number. This value can be changed to a four digit number (0001 – 9999) in
the System Settings, the default is two digits.
Dnn File: This file is used when the user chooses to initialize their Option File using a system
supplied default Option File. There are several system supplied default Option Files for each machine type.
The name of these files will be UNCL01.Dnn for the Lathe G-Post and UNCX01.Dnn for the
Mill/Wire/Laser/Punch G-Post. The value for nn will be a number between 01 and 99 similar to the post
processor number.
F00 File: This file is the default FIL file for a given machine type and is used by the Option File
Generator when selecting Advanced -> FIL Editor.
D00 File: This file is the default Option file for a given machine type and is used by the Option File
Generator when you select Method of Initialization -> Post Processor Defaults.
14-1
G-Post Reference Manual
V00 File: Used to store the common PPWORDs for the PTC version of the G-Post.
INF File: This file is the initialization file for a given machine type, used by the Option File
Generator.
FIL File: These are sample FIL template files released with the CD such as
_OUTPT.FIL,_MCDWT.FIL and _REPOS.FIL. Stored in CAMLIB directory.
This section of the glossary describes files that G-Post uses during G-Post processing session. Most of the
files will be named *.typ, where * is the name of your input source file.
ACL File: The ACL (ASCII Cutter Location) file is generated by the APT system or CAD/CAM
interface chosen when executing the G-Post. This file is an ASCII representation of the CL data. It is
also used bye the plot utility wncplot3d.exe in CIMpro.
LST File: Verification listing file created by the G-Post. It contains detailed information such as axes
position, tool list,warnings,cyle time etc.
PU1/TAP File: This the MCD, punch or tape file for the the machine tool created by the G-Post.
You can change the file type in the Option File Generator -> MCD File Format panel.
ERR File: Created by G-Post to indicate it terminated with an error condition. If there is no error in
processing, then this file will not be created.
LOG File: Created by wprtsysid.exe for license information. Also may be created by G-Post to
show input file,start and stop times of a G-Post run.
TL1 File: A temporay file created by the G-Post containing all the tools in a CL file. It is used for tool
pre-select option as set in the Option File.
APT File: Surfcam input source to G-Post or APT input source for the APT processor.
pptable File: Can be used in your CATIA system to specify syntax of a G-Post command when
creating the Aptsource file. Stored in CAMSYS directory.
Xnn File: A temporary file created by CAD/CAM interfaces like *.X08 for the UG-CLS-APT
interface. This may be used by the APT processor before running the G-Post.
R00 File: Used by the Mill-Turn or multiple post runs with UNCMRG post. It is named
UNCX01.R01 etc.
14-2
14 Glossary
M00 File: Used by the Mill-Turn or multiple post runs with UNCMRG post for PTC or Surfcam
versions of G-Post. It is named UNCX01.M01 etc.
MBX File: A temporary file created by the CIMpro to indicate G-Post is run status. If MBX file is
deleted, CIMpro will return to ready state.
DBX File: Same as MBX file - but used by G-Post in debug mode.
QBX File: Same as MBX file - used by CIMpro for multiple file processing mode.
TAB File: This is generated for the PTC system for simulation with their mechanism package. It
contains the axis absolute position and time value for each XYZABC axis.
TBL File: Local settings for the CIMpro system for the various options in the file config.tbl stored in
the CAMSYS directory.
BIN File: Can be used as the name for encrypted files for G-Post created with the utility
wncrypt.exe and used with INCLUD/BINARY,{filename} command in FIL files.
MCR File: APT macro Used by the UG CLS-APT interface. This file can be modified by the user to
process UG-circle data. Stored in the CAMLIB directory.
HTM File: Created by the G-Post for HTML package view in CIMpro. You need to set the option in
the Option File to make this file.
K00 File: This is used by the HTML packager to create an index. It is named UNCX01.K00,K01 etc
and is also refered to as the Mark File.
INI File: A temporary file created by the plot utility, wncplot3d.exe, to save the current view
settings,scale etc during a plot session.
STL File: Used by the plot utility, wncplot3d.exe, to represent the solid shape of a tool during
simulation. Stored in the CAMSYS directory.
ACX File: A temporary file created by the plot utility, wncplot3d.exe, to store the exapanded data in
the ACL file like circle motion.
FTB File: A system level FIL file that is automatically included for the Surfcam System (Spost).
14-3
Index
Index
CRVFIT/SPLINE,ON.......................................... 10-3
CRVFIT/TOLER,1,t1 .......................................... 10-3
A CRVFIT/TOLER,2,t2 .......................................... 10-4
CRVFIT/TOLER,3,t3 .......................................... 10-4
ACL File .............................................................. 14-2 CRVFIT/TOLER,4,t4 .......................................... 10-4
ACX File ............................................................. 14-3 CRVFIT/TOLER,5,t5 .......................................... 10-4
Alphabet Numbering Table ................................. 12-1 CRVFIT/TOLER,6,t6 .......................................... 10-4
Appendix A – Alpha Characters .......................... 12-1 CRVFIT/TOLER,7,t7 .......................................... 10-4
Appendix B - Additional Functions ..................... 13-1 CRVFIT/TOLER,8,t8 .......................................... 10-4
APT File .............................................................. 14-2 CRVFIT/TYPE,e1 ............................................... 10-3
APT setup requirements: ..................................... 10-1 CRVFIT/XYZ,0-1 ............................................... 10-2
Aptsource File ..................................................... 14-2 Current Files ........................................................ 3-22
ARC / NURBS Fitting ......................................... 10-1 Curve Fitting Vocabulary Words: ....................... 10-1
ARC / NURBS Fitting - FAQ .............................. 10-8 Customization ........................................................ 1-3
ARCDAT ............................................................... 4-2 CUTCOM (L) ...................................................... 4-16
ARCMOV.............................................................. 4-3 CUTCOM (M) ..................................................... 4-17
ARCSLP (M) ......................................................... 4-4 CYCLE ................................................................ 4-19
ASCII Character Table ........................................ 12-1 CYCLE - Couplet ................................................ 4-21
Automatic MACHIN statement selection .............. 8-1 CYCLE - Standard............................................... 4-20
AUXFUN .............................................................. 4-5 CYCLE - UG Double Couplet ............................. 4-22
CYCLE/AVOID (M) ........................................... 4-23
CYCLE/BORE (L) - Hardware ........................... 4-26
B
CYCLE/BORE (L) - Software............................. 4-27
CYCLE/BORE (M) - Hardware .......................... 4-28
BIN File ............................................................... 14-3
CYCLE/BORE (M) - Software ........................... 4-29
BREAK.................................................................. 4-6
CYCLE/BRKCHP (L) - Hardware ...................... 4-30
CYCLE/BRKCHP (L) - Software ....................... 4-31
C CYCLE/BRKCHP (M) - Hardware ..................... 4-32
CYCLE/BRKCHP (M) - Software ...................... 4-33
CAMERA (M) ....................................................... 4-7 CYCLE/CSINK (L) - Hardware .......................... 4-34
CHECK (L) .................................................... 4-8, 4-9 CYCLE/CSINK (L) - Software ........................... 4-35
CIRCLE ............................................................... 4-10 CYCLE/CSINK (M) - Hardware ......................... 4-36
CL Data generated from CRVFIT ....................... 10-5 CYCLE/CSINK (M) - Software .......................... 4-37
CLEARP (M)....................................................... 4-11 CYCLE/DEEP (L) - Hardware ............................ 4-38
CLEARP/XYPLAN,d-OFF ................................. 4-11 CYCLE/DEEP (L) - Software ............................. 4-39
CLEARP/ZAXIS,z1-OFF,TABLE,w1-OFF ....... 4-11 CYCLE/DEEP (M) - Hardware ........................... 4-40
CLRSRF (M) ....................................................... 4-13 CYCLE/DEEP (M) - Software ............................ 4-41
CLS File............................................................... 14-2 CYCLE/DEEPCL (M) - Hardware ...................... 4-42
Command Reference ...................................... 1-4, 4-1 CYCLE/DRILL (L) - Hardware .......................... 4-43
Conclusion ............................................................. 8-3 CYCLE/DRILL (L) - Software ........................... 4-44
Confiurations ......................................................... 2-1 CYCLE/DRILL (M) - Hardware ......................... 4-45
COOLNT (L) ....................................................... 4-14 CYCLE/DRILL (M) - Software .......................... 4-46
COOLNT (M) ...................................................... 4-15 CYCLE/FACE (L) - Hardware ............................ 4-47
Creating a New Post Processor Option File........... 3-7 CYCLE/FACE (L) - Software ............................. 4-48
CRVFIT Command: ............................................ 10-2 CYCLE/FACE (M) - Hardware........................... 4-49
CRVFIT/ARC,OFF ............................................. 10-2 CYCLE/FACE (M) - Software ............................ 4-50
CRVFIT/ARC,ON ............................................... 10-2 CYCLE/MILL (M) - Hardware ........................... 4-51
CRVFIT/ARCSLP,ON-OFF ............................... 10-2 CYCLE/MILL (M) - Software ............................ 4-52
CRVFIT/PLANE,… ............................................ 10-3 CYCLE/ON-OFF................................................. 4-23
CRVFIT/POINT,1,p1 .......................................... 10-5 CYCLE/REAM (L) - Hardware .......................... 4-53
CRVFIT/POINT,2,p2 .......................................... 10-5 CYCLE/REAM (L) - Software ............................ 4-54
CRVFIT/RADIUS,1,r1 ........................................ 10-2 CYCLE/REAM (M) - Hardware ......................... 4-55
CRVFIT/RADIUS,2,r2 ........................................ 10-3 CYCLE/REAM (M) - Software........................... 4-56
CRVFIT/SPLINE,OFF ........................................ 10-3 CYCLE/TAP (L) - Hardware .............................. 4-57
i
G-Post Reference Manual
H
D
HEAD .................................................................. 13-2
D00 File ............................................................... 14-1 HEAD (L) ............................................................ 4-82
DBX File ............................................................. 14-3 Help Menu ........................................................... 3-21
DEBUGG ............................................................ 4-69 How To Use the Option File Generator ................. 3-2
DEBUGG/FRONT .............................................. 4-69 HTM File ............................................................. 14-3
DEBUGG/OFF .................................................... 4-69 HTML Packager .................................................. 11-1
DEBUGG/ON,CLW ............................................ 4-69 HTML Packager - command line version............ 11-2
DEBUGG/ON,n,TO,m,1-3 (L) ............................ 4-69
DEBUGG/ON,n,TO,m,1-3 (M) ........................... 4-69
Default Machine/Control Parameters .................... 7-4 I
Default Output Codes and Relative Commands .... 7-2
Default Settings ..................................................... 7-1 INC File ............................................................... 14-1
Default Tape Format .............................................. 7-1 Inch Only Machine ................................................ 2-4
DELAY................................................................ 4-70 INCLUD .............................................................. 4-83
DISPLY ............................................................... 4-72 INF File ............................................................... 14-2
DISPLY/NEXT ................................................... 4-73 INI File ................................................................ 14-3
DISPLY/ON-OFF ................................................ 4-72 INSERT ............................................................... 4-84
DMIS ................................................................... 4-74 Introduction .................................................... 3-4, 6-1
Dnn File ............................................................... 14-1 Introduction to G-Post ........................................... 1-1
E K
ii
Index
O
M
OP/THREAD (L) ................................................. 4-96
M00 File .............................................................. 14-3 Opening an Existing Post Processor Option File . 3-10
MACHIN ............................................................. 4-89 OPSKIP ............................................................... 4-98
MACHIN Statement for Automatic Tape Break . 4-91 OPSKIP/n1,n2,n3,…,ON-OFF ............................ 4-99
Machine Tool Configurations ................................ 2-4 OPSKIP/ON-OFF ................................................ 4-98
Main Menu Area .................................................. 3-13 OPSTOP ............................................................ 4-100
Main Panel ........................................................... 3-13 Option File Generator Main Menu ...................... 3-12
Manual Conventions .............................................. 1-4 Optional Output Files .......................................... 11-1
MBX File ............................................................. 14-3 ORIGIN (L) ....................................................... 4-101
MCHTOL ............................................................ 4-92 ORIGIN (M) ...................................................... 4-102
MCR File ............................................................. 14-3 Output Files ........................................................... 1-3
Merging – P Code .................................................. 9-4 Overview ............................................................... 1-1
Merging - XZ-UW ................................................. 9-1 Overview of the Option File Generator ................. 3-2
Metric Only Machine............................................. 2-4
Mill - Common Variables ...................................... 6-1
Mill CHRCOM Variables .................................... 6-97 P
Mill DBLCOM Variables .................................... 6-77
Mill Default Codes ................................................ 7-2 PARTNO ........................................................... 4-103
Mill Default Parameters ......................................... 7-5 PITCH (L) ......................................................... 4-104
Mill Defaults .......................................................... 7-1 PIVOTZ ............................................................. 4-116
Mill G-Post - UNCX01.......................................... 2-2 PLABEL ............................................................ 4-105
Mill INTCOM Variables ....................................... 6-2 PLABEL/MODIFY,n,TO,v,TYPE,t .................. 4-115
Mill Motion Analysis........................................... 2-13 PLABEL/OPTION,n,TO,v ................................ 4-105
Mill RELCOM Variables .................................... 6-75 Pnn File ................................................................ 14-1
Mill, Wire EDM, Live Tooling Lathe Configurations POSTN .............................................................. 4-117
........................................................................... 2-9 POSTN/ IN-OUT,a1,ICnnnn-RC-nnnn-
Mill-Turn Configurations .................................... 2-11 DCnnnn...,an,vn[,NEXT]............................... 4-119
MODE ................................................................. 4-93 POSTN/[XAXIS,xh][,YAXIS,yh] (L) ............... 4-117
MODE/90-91 ....................................................... 4-93 POSTN/[XAXIS,xh][,YAXIS,yh][,ZAXIS,zh],[…] 4-
MODE/INCR[,OFF] ................................... 4-86, 4-93 117
MODE/INVERS,AUTO-ON-OFF ...................... 4-93 POSTN/ALL...................................................... 4-120
MODE/MILL-TURN .......................................... 4-94 POSTN/ALL,OUT ............................................ 4-120
MODE/MILL-TURN,o1,s1 Command ................. 8-2 POSTN/IN-OUT,a1,v1,a2,v2…an,vn[,NEXT] . 4-118
MODE/MILL-TURN,v[,nnnn] ............................ 4-94 PPRINT ............................................................. 4-121
MODE/TABLE-ZAXIS [,ADJUST,d] ................ 4-94 pptable File .......................................................... 14-2
MODE/YAXIS,ON-OFF-AUTO ........................ 4-94 PREFUN ............................................................ 4-122
MOVNRB............................................................ 10-6 Processing a CAD/CAM CL File .......................... 1-2
MOVNRB Command - NURBS ......................... 10-5 Processing an APT Program ................................. 1-1
MOVNRB Command - Spline............................. 10-6 Programming Example: ......................................... 8-2
MOVNRB/3002-5002 ......................................... 10-6 PU1/TAP File ...................................................... 14-2
MOVNRB/M3AXIS-M5AXIS............................ 10-6 Pull Down Menus ................................................ 3-20
MULTAX ............................................................ 4-95
Multi-Dimensional Arrays ..................................... 6-1
Multiple Turret Lathe ........................................ 4-164 Q
iii
G-Post Reference Manual
R SET/START,[,XAXIS][,YAXIS][,ZAXIS],… . 4-138
SET/START,AUTO[,OFF] ............................... 4-137
R00 File ............................................................... 14-2 SET/START,x,z ................................................ 4-137
RAPID ............................................................... 4-123 SET/WAXIS,ADGUST,z .................................. 4-139
REMARK .......................................................... 4-124 SET/WAXIS,ATANGL .................................... 4-139
REPEAT ............................................................ 4-125 SET/WAXIS,LENGTH ..................................... 4-139
REPEAT/a1,a2,a3,…,a26,t1,v1,ALL ................ 4-125 Setting up a Windows Shortcut ............................. 3-5
REPEAT/a1,a2,v[,ON-OFF] ............................. 4-125 Simulation File .................................................... 11-3
REPEAT/a1,v1 .................................................. 4-125 Single Turret Lathe ............................................ 4-160
REPEAT/OFF.................................................... 4-126 Snn File.............................................................. 14-1
RESET ............................................................... 4-127 SPINDL CSFM Machine .................................. 4-142
RETRCT (M)..................................................... 4-128 SPINDL Non CSFM Machine .......................... 4-142
REWIND ........................................................... 4-129 SPINDL (L) ....................................................... 4-142
REWIND/[n] ..................................................... 4-129 SPINDL (M) ...................................................... 4-144
REWIND/PUNCH............................................. 4-129 SPINDL/LOCK ................................................. 4-144
ROTABL (M) .................................................... 4-130 SPINDL/LOCK,AUTO,LAST .......................... 4-143
ROTABL/AAXIS,BAXIS,CAXIS,… ............... 4-130 SPINDL/ON-OFF ........................ 4-142, 4-143, 4-144
ROTABL/ATANGL-INCR,a[,CLW- SPINDL/PARLEL,… ........................................ 4-144
CCLW][,NEXT-NOW] ................................. 4-130 SPINDL/s,RPM[,CLW-CCLW][,RANGE,n].... 4-142
ROTATE (M) .................................................... 4-131 SPINDL/s[,CLW-CCLW][,RANGE,n] ............. 4-144
ROTATE/AAXIS,BAXIS,CAXIS,ATANGL- SPINDL/s[,RPM-SFM][,CLW-
INCR,a,… ...................................................... 4-131 CCLW][,RANGE,n][.MAXRPM,m][,RADIUS,r]
ROTATE/ATANGL-INCR,a[,CLW- ....................................................................... 4-142
CCLW][,NEXT-NOW] ................................. 4-132 Stand Alone Operation .......................................... 3-5
ROTHED (M) .................................................... 4-132 Starting from CimPRO .......................................... 3-4
ROTHED/AAXIS,BAXIS,CAXIS,ATANGL- Starting the Option File Generator ........................ 3-4
INCR,a,… ...................................................... 4-132 STARTUP Sequence ......................................... 4-145
STB File............................................................... 14-1
STL File ............................................................... 14-3
S STOP ................................................................. 4-146
Switchable Inch/Metric Machine ........................... 2-3
SELCTL ............................................................ 4-133
SELCTL/t (L) .................................................... 4-133
SELCTL/t (M) ................................................... 4-133 T
SELECT (M) ..................................................... 4-134
SELECT/AUTO ................................................ 4-134 TAB File .............................................................. 14-3
SELECT/BOTH,START[,FRONT-REAR] ...... 4-134 TBL File .............................................................. 14-3
SELECT/FRONT .............................................. 4-135 The Option File Generator ..................................... 3-1
SELECT/gg,ADJUST,dd................................... 4-134 THREAD (L) ..................................................... 4-147
SELECT/h ......................................................... 4-134 THREAD/AUTO[,…] ....................................... 4-148
SELECT/REAR ................................................. 4-135 THREAD/ON-TURN-FACE ............................ 4-147
SEQNO .............................................................. 4-136 THREAD/OUT[,…] .......................................... 4-147
SEQNO/0 ........................................................... 4-136 TL1 File ............................................................... 14-2
SEQNO/k ........................................................... 4-136 TLSPEC (L)....................................................... 4-152
SEQNO/k,INCR[,m[,n]] .................................... 4-136 TLSPEC/CENTER,RIGHT-LEFT,IN-OUT...... 4-152
SEQNO/NEXT .................................................. 4-136 TLSPEC/OFFSET,RIGHT-LEFT-ON,DIAMTR,IN-
SEQNO/OFF ..................................................... 4-136 OUT-ON ........................................................ 4-152
SEQNO/ON ....................................................... 4-136 TMARK ............................................................. 4-153
SET (L) .............................................................. 4-137 TOLER .............................................................. 4-154
SET (M) ............................................................. 4-138 Tool Bar ............................................................... 3-19
SET/HED-HOLDER,n,x,y,z[,…] ...................... 4-140 TRANS (L) ........................................................ 4-155
SET/HED-HOLDER,OFF ................................. 4-140 TRANS (M) ....................................................... 4-156
SET/HOLDER,n,SETOOL,x,y,z,ATANGL,a,SETA TRANS/OUT,OFF-m1 ...................................... 4-159
NG,s (PTC Format) ....................................... 4-141 TRANS/x,y,z ..................................................... 4-156
SET/HOLDER,OFF (PTC Format) ................... 4-141 TRANS/xi,xj,xk,xd,yi,yj,,yk,yd,zi,zj,zk,zd ....... 4-157
SET/START ...................................................... 4-137
iv
Index
TRANS/xi,xj,xk,xd,yi,yj,,yk,yd,zi,zj,zk,zd[,OPTION, V
00-01-10] ....................................................... 4-158
TURRET (L) ..................................................... 4-160 V00 File ............................................................... 14-2
TURRET/0 ............................................. 4-160, 4-164 VTB File .............................................................. 14-1
TURRET/CENTER[,OFF] ..................... 4-160, 4-164
TURRET/FRONT-REAR.................................. 4-164
TURRET/p,f,x,y[,CLW-CCLW] ....................... 4-160 W
TURRET/p,f,x,y[,CLW-CCLW][,FRONT-REAR] 4-
164 Window Menu ..................................................... 3-21
Two Type of 4 Axis Merging: ............................... 9-1
X
U
Xnn File ............................................................... 14-2
UNCMRG Post Processor ..................................... 8-1
Units of Measure ................................................... 2-3
Using the Option File Generator............................ 3-6
Utilities Menu ...................................................... 3-21