Artcam Post Processor Configur
Artcam Post Processor Configur
Artcam Post Processor Configur
Post Processor
Configuration Guide
By Delcam
Important Notice
Delcam plc has no control over the use made of the
software described in this manual and cannot accept
responsibility for any loss or damage howsoever caused
as a result of using the software. Users are advised that
all the results from the software should be checked by a
competent person, in accordance with good quality
control procedures.
Introduction 1
What is a post processor ?................................................. 1
Why a configurable post processor ?................................ 3
Heidenhain Output
0 BEGIN PGM 1248 MM
1 TOOL DEF 1 L+0,000 R+0,000
2 TOOL CALL 1 Z S3000,000
3 L Z+10,000 F9999 M03
4 L X+0,000 Y+0,000 Z+10,000 F9999 M03
5 L X+0,001 Y+9,999 Z+10,000 F M
6 L Z+0,000 F360 M
7 L X+0,101 F720 M
8 L X+3,000 F M
.
.
Introduction • 1
Fanuc Output
%
:1248
N10G91G28X0Y0Z0
N20G40G17G80G49
N30T1M6
N40G90G54
N50G43Z10.000H1
N60G0X0.000Y0.000S3000M3
N70X0.001Y9.999
N80G1X0.001Y9.999Z0.000F360.0
N90G1X0.101Y9.999Z0.000F720.0
N100X3.000
.
.
2 • Introduction
Why a configurable post processor ?
Introduction • 3
; Heidenhain configuration file - Metric version
;
; History
;
; Who When What
; === ======== =========================
; BEM 01/04/94 Written
; bem 21/03/00 Added DESCRIPTION and
; FILE_EXTENSION fields
;
DESCRIPTION = "Heidenhain (*.tap)"
;
FILE_EXTENSION = "tap"
;
UNITS = MM
; Carriage return - line feed at end of each line
END_OF_LINE = "[13][10]"
; Block numbering
LINE_NUM_START = 0
LINE_NUM_INCREMENT = 1
LINE_NUM_MAXIMUM = 999999
; Set up default formatting for variables
; Spindle Speed
FORMAT = [S|@|S|1,3]
; Feed Rate
FORMAT = [F|#||1.0]
; Tool moves in x,y and z
FORMAT = [X|#| X|+1,3]
FORMAT = [Y|#| Y|+1,3]
FORMAT = [Z|#| Z|+1,3]
; Home tool positions
FORMAT = [XH|@|X|+1,3]
FORMAT = [YH|@|Y|+1,3]
FORMAT = [ZH|@|Z|+1,3]
; Set up program header
START = "[N] BEGIN PGM 1248 MM"
START = "[N] TOOL DEF 1 L+0,000 R+0,000"
START = "[N] TOOL CALL 1 Z [S]"
START = "[N] L [ZH] F9999 M03"
START = "[N] L [XH] [YH] [ZH] F9999 M03"
; Program moves
RAPID_FEED_RATE = 9999
4 • Introduction
FEED_RATE_MOVE = "[N] L[X][Y][Z] F[F] M"
; End of file
END = "[N] STOP M02"
END = "[N] END PGM 1248 MM"
Introduction • 5
Configuring A New Post
Processor
Overview
The entries in the configuration file fall into five main
categories which are described briefly below.
Global Statements
These determine the descriptive name for the post and its
file extensions, whether the output is in mm or inches,
line numbering information, line terminators and default
formatting for numeric fields.
Start Of File
This section deals with lines which must be output at the
start of every program. This information usually has the
program name, commands for switching on the spindle,
moves from the home position etc.
Tool Moves
This section details how the actual tool moves are output
for the machine tool. The tool moves are sub-divided into
two further categories.
Cutting Moves
These are moves made with the tool cutting
material and are made at the speeds specified
within ArtCAM when the toolpath was created.
Toolchanges
If the machine tool is equiped with an automatic
toolchanger, or the user wants to allow manual
toolchanges part way through an output file, the
TOOLCHANGE statement can be used to output the
appropriate commands.
NOTE: Toolchangers are NOT supported by MillWizard.
End Of File
This section deals with lines which must be output at the
end of every program. This section usually contains
commands for switching off the spindle, moving the tool
back to the home position etc.
Name Value
[F] Current feed rate in default units/min
[FR] Rapid feed rate in default units/mm
[FP] Plunge feed rate in default units/mm
[FC] Standard feedrate in default units/mm
[N] Current line number
[XH] Tool home position X co-ord
[YH] Tool home position Y co-ord
[ZH] Tool home position Z co-ord
[RH] Tool home position rotary angle
[N] Current line number
[S] Spindle speed in r.p.m
[SZ] Safe Z position from toolpath
[T] Current tool number
[TP] Previous tool number
[X] X co-ord of tool position in default units
[Y] Y co-ord of tool position in default units
[Z] Z co-ord of tool position in default units
[R] Angle in degrees for rotary axis
[XMIN] Minimum x value of relief
[YMIN] Minimum y value of relief
[ZMIN] Minimum z value of relief
[XMAX] Maximum x value of relief
[YMAX] Maximum y value of relief
[ZMAX] Maximum z value of relief
[TOOLDESC] Tool description string
[PATHNAME] Pathname of postprocessed file
[FILENAME] Filename of postprocessed file
[V|O|S|F|m]
Where
X,Y,Z,XH,YH,ZH [V|@||1.3|1.0]
S,F,N [V|@||1.0|1.0]
Format string
flags
Optional character or characters that control justification
of output and printing of signs, blanks, and decimal
points. (See Flag Directives below.) More than one flag
can appear in a format specification.
width
Number that specifies minimum number of characters
output. (See Width Specification below.)
Flag Directives
Precision Specification
Global Statements
Description
This specifies the descriptive name which is displayed in
the drop down list used to select the post processor
within the application. All the standard description
strings incorporate the default extension in brackets at
the end. In addition if there are both mm and inch
versions of the same post processor the type should be
indicated in the description.
File Extension
This specifies the file extension used for files created
with this post processor.
FILE_EXTENSION = "tap"
UNITS = optional
possible values:
MM - all positions in mm, feed rates in mm/min
INCH - all positions in inches, feed rates in inches/min
default value: MM
Example
UNITS = INCH
Line Numbering
A number of statements are available to control the
sequencing of line numbers within the output program.
All these statements are optional as many controls do not
require line numbers at all. Line numbers are actually
output using the [N] variable and the actual formatting
for the line number value output is specified by setting
the format for the [N] variable.
LINE_NUM_START = optional
Specifies the starting value for line numbers (accessed
through N variable).
default
LINE_NUM_START = 10
default
LINE_NUM_INCREMENT = 2
LINE_NUM_MAXIMUM = optional
Specifies the maximum value allowed for line numbers.
When the line number value exceeds this value, line
numbering will start again at NUM_START.
default
LINE_NUM_MAXIMUM = 999999
RAPID_FEED_RATE = optional
End of line
Most controls will expect a standard sequence of
characters at the end of each line sent. rather than
including these characters in every line specification in
the configuration file, they can be specified using this
statement and the post processor will append them to
every line output. This statement is optional, but if it is
not specified the user must add the required end of line
characters to each line definition in the file which
requires them.
END_OF_LINE = optional
Example
END_OF_LINE = "[13][10]"
Examples
FORMAT = [F|#||1.0]
Anywhere [F] is used in the file the feed rate value
will only be output if it has changed (# field) and
will not have any decimal point or decimal places
displayed (1.0 field).e.g. for feed = 123.456
123
FORMAT = [X|@|X|+1,3]
Anywhere [X] is used in the file it will always be
output (@ field), will be preceded by "X" and + or
- to indicate its sign (+ field). The value itself will
have 3 decimal places and instead of a decimal
point a comma will be used. e.g. for X = 12.123
X12,123
START = optional
%
:1248
N10G40G17G80G49
N12T1M6
N14G90G54
N16G43Z10.000
N18G0X0.000Y0.000S12000
Tool moves
The statements described in this section are used to
output the actual tool moves to the program file. Only
one of the statements (FEED_RATE_MOVE) is
compulsory, the others just allow more control over the
output if required.
FIRST_FEED_RATE_MOVE FIRST_RAPID_RATE_MOVE
RAPID_RATE_MOVE
FEED_RATE_MOVE
FORMAT = [X|#|X|1.3]
FORMAT = [Y|#|Y|1.3]
FORMAT = [Z|#|Z|1.3]
FORMAT = [F|@|F|1.1]
FORMAT = [N|@|N|1.0]
.
.
FIRST_FEED_RATE_MOVE = "[N]G1[X|@][Y|@][Z|@][F]"
FEED_RATE_MOVE = "[N][X][Y][Z]"
Output
N1226G1X123.450Y234.560Z5.670F789.1
N1228Y345.890Z4.210
FIRST_RAPID_RATE_MOVE = "[N]G0[X|@][Y|@][Z|@]"
RAPID_RATE_MOVE = "[N][X][Y][Z]"
Output
N1226G0X123.450Y234.560Z5.670
N1228Y345.890Z4.210
FORMAT = [X|@||1.0|100.0]
FORMAT = [Y|@||1.0|100.0]
FORMAT = [Z|@||1.0|100.0]
FORMAT = [F|@||1.0|0.0166]
FEED_RATE_CHANGE = "V [F]"
RAPID_FEED_RATE = 3840
.
RAPID_RATE_MOVE="Z [X],[Y],[Z]"
Output
V 64
Z 12345,23456,567
Z 12345,34589,421
Toolchanges
The TOOLCHANGE statement is used to output one or
more lines into the file when a toolchange occurs. The
variable [T] holds the new toolnumber. By default most
TOOLCHANGE = optional
End of file
These statements are used to specify the lines sent at the
send of the file. As many lines as required can be
specified using any of the defined variables. The
variables XH, YH and ZH can be used to initiate
movement back to the home tool position. This statement
is optional.
END = optional
N4798G28G91Z0
N4800G49H0
N4802G28X0Y0
N4804M30
Location of files
The post processor configuration files will be stored in a
sub-directory called postp, below the directory in which
ArtCAM was originally installed.
Change to the specified directory and copy the
configuration file you wish to use as a starting point for
your new post processor to a new file. e.g. copy the file
fanuc.con to new_mc.con.
NOTE: Remember to change the “DESCRIPTION”
statement within the file to ensure it is displayed with a
different name to the original.
If creating a new file from scratch just create the file as a
plain text file.
DESCRIPTION
default
None
END_OF_LINE
Example
END_OF_LINE = "[13][10]"
will add a carriage return, line feed combination to the
end of each output line. This is the standard line
termination for DOS text files.
default
None
FEED_RATE_CHANGE
default
None
Fanuc
FORMAT = [X|#|X|1.3]
FORMAT = [Y|#|Y|1.3]
FORMAT = [Z|#|Z|1.3]
FORMAT = [F|@|F|1.1]
FORMAT = [N|@|N|1.0]
.
.
FIRST_FEED_RATE_MOVE = "[N]G1[X|@][Y|@][Z|@][F]"
FEED_RATE_MOVE = "[N][X][Y][Z]"
N1226G1X123.450Y234.560Z5.670F789.1
N1228Y345.890Z4.210
V 13
Z 12345,23456,567
Z 12345,34589,421
Heidenhain
FORMAT = [X|#|X|+1,3]
FORMAT = [Y|#|Y|+1,3]
FORMAT = [Z|#|Z|+1,3]
FORMAT = [F|#||1,0]
.
.
FEED_RATE_MOVE = "[N] L [X][Y][Z] F[F] M"
default
None - but user must supply definition
FILE_EXTENSION
default
None - but user should supply definition
default
None
FIRST_RAPID_RATE_MOVE
default
None
FORMAT
FORMAT = [V|O|S|F|m]
Where
V = Letter representing variable.
O = @ if value always output.
# if only output if changed
since last value output.
S = String to print before value.
F = Format string
default
X,Y,Z,XH,YH,ZH,R [V|@||1.3|1.0]
S,F,FR,FC,FP,N [V|@||1.0|1.0]
LINE_NUM_INCREMENT
Specifies the increment used for the line numbers
(accessed through [N] variable).
default
LINE_NUM_INCREMENT = 2
LINE_NUM_MAXIMUM
default
LINE_NUM_MAXIMUM = 999999
LINE_NUM_START
default
LINE_ NUM_START = 10
possible values:
X - all moves in X are wrapped onto rotary axis
Y - all moves in Y are wrapped onto rotary axis
default
None
N1226G0X123.450Y234.560Z5.670
N1228Y345.890Z4.210
Roland
FORMAT = [X|@||1.0|100.0]
FORMAT = [Y|@||1.0|100.0]
FORMAT = [Z|@||1.0|100.0]
FORMAT = [F|@||1.0|0.0166]
FEED_RATE_CHANGE = "V [F]"
RAPID_FEED_RATE = 3840
.
.
RAPID_RATE_MOVE="Z [X],[Y],[Z]"
V 64
Z 12345,23456,567
Z 12345,34589,421
Heidenhain
FORMAT = [X|#| X|+1,3]
FORMAT = [Y|#| Y|+1,3]
FORMAT = [Z|#| Z|+1,3]
FORMAT = [F|#||1,0]
RAPID_FEED_RATE = 9999
.
.
RAPID_RATE_MOVE = "[N] L[X][Y][Z] F[F] M"
default
None
RETRACT_MOVE
default
None
START
default
None
TOOLCHANGE
default
None
UNITS
possible values:
MM - all positions in mm, feed rates in mm/min
INCH - all positions in inches, feed rates in inches/min
default
UNITS = MM
Introduction
This section includes a listing of three of the
configuration files supplied with ArtCAM. Examples of
the output produced by each file are also provided. These
examples should help in finding the right style of
variable formatting to use when a particular output
format is desired.