302 Postblocks
302 Postblocks
302 Postblocks
2 Postblock Descriptions
A postblock is a labeled block, or series of lines, of MP language code in the post customization file
(.PST file). The post executable file (the .DLL file) interprets the code in the postblocks to create a list
of instructions that produce the NC output, perform calculations and call other postblocks. These
blocks of MP language code produce the NC output.
For more information about the use of postblocks, see Volume 1, Postblocks.
Postblocks by category
The MP language contains hundreds of predefined postblocks. It can be very difficult to find the
postblock you want without putting them into some type of order. Presented here are lists of categories
and sub-categories by product. The second listings are the same as the category lists but with the
postblock labels in each category. Use the links to jump from the categories to the category with
postblock labels. Select the postblock label link to jump to a detailed description of the postblock.
Postblock categories
Preparatory Preparatory
Parameter Parameter
Header Header
Comment Comment
Dwell Dwell
Arc Arc
Rotary
Five-axis
Five-axis drill
Drill point
Thread
2D conversion
Technology
Subprogram
Command
Parameter Parameter
Obsolete Obsolete
Whatno Whatno
Synclath
Post-process Post-process
pprep pprep
pq pq
Preparatory
Parameter
pwrttparam pwrttparam
Pre-output
Tool change Wire canned cycle
prd1000 pcan0
psof00 pedm0
ptlchg00
End of file
peof00
Five-axis
pmx0
Linear
plin0
Arc
pcir0
Drill
pdrill0
Thread
pthread0
pdrill30
pdrill50
Header
pheader pheader
Tool change
ptlchg1002 ptlchg1002
Start of file
pmiscparam pmiscparam
pmiscint pmiscint
pmiscreal pmiscreal
psof psof
msof
lsof
ptlchg ptlchg
mtlchg
ltlchg
ptlchg0 ptlchg0
mtlchg0
ltlchg0
End of file
peof peof
meof
leof
Comment
pscomm0 pscomm0
pcomment pcomment
pcomment0 pcomment0
pcomment_end pcomment_end
November 2002 Mastercam Version 9.1 MP Post Reference Guide 2-5
Chapter 2 Postblocks Volume 3
Cutter compensation
pcancelcc pcancelcc
Dwell
pdwl_spd pdwl_spd
Linear rapid
prapid prapid
mrapid
lrapid
Linear feed
plin plin
mlin
llin
Linear Z only
pzrapid pzrapid
pz pz
Arc
pcir pcir
mcir
lcir
Rotary
prot
Five-axis
pmat
ptplane
protofs
pmx
pdrill3
pdrill5
Drill
lbore1
lbore2
lchpbrk
ldrill
lmisc1
lmisc2
lpeck
ltap
mbore2
mchpbrk
mdrill
mmisc1
mmisc2
mpeck
mtap
pbore1
pbore2
pcanceldc
pchpbrk
pdrill
pdrlcst
pmisc1
pmisc2
ppeck
ptap
pblockdrl
Drill point
lbore1_2
lbore2_2
lchpbrk_2
ldrill_2
lmisc1_2
lmisc2_2
lpeck_2
ltap_2
mbore1_2
mbore2_2
mchpbrk_2
mdrill_2
mmisc1_2
mmisc2_2
mpeck_2
Thread (Lathe)
pg32
pg32e
pg76
pg92
pthdext
pthdface
pthdint
pthrg32_1
pthrg32_2
pthrg32_3
pthrg32_4
pthrg76_1
pthrg92_1
pthrg92_2
pthrg92_3
pthrg92_4
pchuck
pstck_bar_fd
pstck_flip
pstck_trans
psteadyrest
ptailstock
UV taper
pedm
2D conversion
pdir_tapr
pdir_tp_end
Technology
Path end
ptoolend ptoolend
mtoolend
ltoolend
Subprogram
psub_end_m
psub_st_s
psub_end_s
psub_call_s
Command
psub_st_m
psub_call_m
psub_call_mm
prcc_call_st
prcc_call_end
pfcc_call
Command
prcc_setup
pcan1 – pcan8
pcancst
pcancelcyc
pcan1_2 - pcan8_2
pcancst_2
Parameter
pparameter pparameter
Post-process
ppost ppost
Postblock end
pcir_end pcir_end
pdrl_end pcan_end
plin_end plin_end
pmx_end pedm_end
psof_end psof_end
pthd_end (Lathe) plow_uv_end
ptlchg_end ptlchg_end
ptlchg0_end ptlchg0_end
Obsolete
leof0 peof0
lsof0 psof0
meof0 psubcall
msof0
peof0
prot0
psof0
pcir1 pcir1
pcir2 pcir2
plin1 pcir3
plin2 pedm1
pmx1 pedm2
pmx2 pedm3
pz1 plin1
plin2
plin3
pz1
Synclath
psynclath
Command
psub_st_m
psub_call_m
psub_call_mm
M Mill
L Lathe
W Wire
R Router
The postblock descriptions include a section that details the variables that are assigned or calculated just
prior to the postblock call. Some variables are calculated that are common to several postblock labels.
A link is provided in this section to those commonly calculated variables
Notes Initialize or assign usecanbore2 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See whatline in Volume 3, Numeric Variables for more
information.
Notes Initialize or assign usecanbore1 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanbore2 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
W pcan0
Postblock Type Pre-output postblock
NCI Gcode 81, 100
Category Pre-output, wire canned cycle
Description Common pre-output postblock call before call to specific wire canned
cycle (pcan1 – pcan8, pcan1_2 – pcan8_2 and pcancst, pcancst_2)
Dependencies None
Assigned or NCI Gcode 81 - Variables common to wire canned cycle Gcode 81
Calculated NCI Gcode 100 - Variables common to wire canned cycle Gcode 100
Variables
Recommended None
Variables
Code Example Post dependent
Notes Not used for NC output; used to manipulate data read.
W pcan_end
Postblock Type Standard postblock
NCI Gcode 81, 100
Category Wire canned cycle
Description This postblock is called after all calls to the active canned cycle
postblock are completed.
Dependencies
M/L/W/R pcancelcc
Postblock Type Standard postblock
NCI Gcode 1004
Category Cutter compensation
Description Cancel cutter compensation postblock
Dependencies None
Assigned or Blank line
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes The 1004 Gcode is in the NCI file after the NCI line containing the 140
cc cancel cutter compensation at contour end. Use of this postblock to
cancel cutter compensation is not recommended to.
W pcancelcyc
Postblock Type Standard postblock
NCI Gcode 80
Category Wire canned cycle
Description Cancel wire canned cycle
Dependencies None
Assigned or Blank line
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes
M/L/R pcanceldc
Postblock Type Standard postblock
NCI Gcode 80
Category Drill
Description Cancel canned drill cycle
Dependencies The appropriate usecan… variable = 1 for the specified cycle drillcyc or a
custom canned cycle is selected (drillcyc is from 8 to 19).
Assigned or Blank line in NCI
Calculated
Variables
Recommended None
Variables
Code Example pcanceldc #Cancel Canned Cycle
n, "G80", e
Notes Initialize or assign the appropriate usecan… variable to 1 for the drill
cycle in use to enable a call to this postblock. Custom canned cycles
always call this postblock. See Volume 1, Working with Drill Cycles for
more information.
W pcancst
Postblock Type Standard postblock
NCI Gcode 81
Category Wire canned cycle
Description Define wire canned cycle
Dependencies cancyc = 8-19
W pcancst_2
Postblock Type Standard postblock
NCI Gcode 100
Category Wire canned cycle point
Description Drill additional points with the wire canned cycle established with define
wire can cycle (NCI Gcode 81).
Dependencies ‘cancyc’ = 8-19
Assigned or Variables common to wire canned cycle Gcode 100
Calculated
Variables
Recommended Variables common to wire canned cycle Gcode 100
Variables
Code Example Post dependent
Notes Wire canned cycles have no specific definition. No option is provided
for long cycle output. Cancyc 8-19 call only this postblock. The post
writer must branch based on cancyc.
Notes Initialize or assign usecanchip = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanchip = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
L pchuck
Postblock Type Standard postblock
NCI Gcode 903
Category Lathe Misc. Ops function
Description Lathe Chuck
Dependencies None
Assigned or clmp_spindle, clmp_op, stck_chuk_st_z, stck_chuk_st_x, stck_chuk_end_z,
Calculated stck_chuk_end_x
Variables
miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
Notes The postblocks mcir and lcir are used with the mill/turn post customization
files. Router calls the postblock that mill would use. See “Postblock Call
Dependencies” in Volume 1, Postblocks, for more information.
W pcir
Postblock Type Standard postblock
NCI Gcode 2, 3, 22, 23, 32, 33
Category Arc
Description Postblock call to output the circular move, where:
M/L/R pcir_end
Postblock Type Standard postblock
NCI Gcode 2, 3
Category Arc
Description This postblock is called after all calls to pcir are completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on NCI Gcode 2 or 3 termination.
The pcir (mcir or lcir) circular output postblocks may be called multiple
times to process an arc move depending on any motion break up in effect.
(breakarcs : 1 # break arc at quadrants)
pcir_end is called after the arc motion is processed.
See the related plin_end postblock.
W pcir_end
Postblock Type Standard postblock
NCI Gcode 2, 3, 32, 33
Category Arc
Description This postblock is called after all calls to pcir are completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on NCI Gcode 2, 3, 32, 33 termination.
The pcir circular output postblocks may be called multiple times to
process an arc move depending on any motion break up in effect.
(breakarcs : 1 # break arc at quadrants)
pcir_end is called after the arc motion is processed.
See the related plin_end postblock
M/L/R pcir0
Postblock Type Pre-output postblock
NCI Gcode 2, 3
Category Pre-output, arc
Description This postblock allows manipulation of circular motion NCI data prior to
the normal postblock calls for circular moves.
Dependencies None
Assigned or gcode, plane, cc, xnci, ynci, znci, xcnci, ycnci, zcnci, xc, yc, zc, fr, xs, ys,
Calculated ipr_actv, fr_pos
Variables Variables common to mill/lathe next variable routine
Variables common to comments
Variables common to canned text
Recommended None
Variables
Code Example pcir0 #Circular movement, mill motion test
linarc = zero
if rotary_type = one, linarc = one #Axis substitution
W pcir3
Postblock Type Standard postblock
NCI Gcode 2, 3
Category Obsolete, Whatno
Description The whatno procedure produces calls to postblocks based on the
occurrence after a tool change and the value of the numeric variable
whatline.
Dependencies whatno = 0 and whatline = 1, 2, 3
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example See “Postblock Call Dependencies” in Volume 1, Postblocks, for more
information. The postblock pcir3 is only in the Wire post executable.
Do not set whatno to 0 (no).
M/L/W/R pcomment
Postblock Type Standard postblock, Command postblock
NCI Gcode 1005, 1006, 1007, 1008
Category Comment
Description Postblock call for NC output of NCI file comments. If the command
variable comment is in the post customization file, comments before the
tool change in the NCI file are buffered for output at the command word.
Dependencies comment is found in the post customization file.
Notes If the command variable comment is not in the post customization file,
comments are output with an immediate call to the postblock pcomment.
See Volume 1, How Comments from the NCI Work for more
information.
M/L/W/R pcomment0
Postblock Type Standard postblock, Command postblock
NCI Gcode 1005, 1006, 1007, 1008
Category Comment
Description This postblock is called every time a comment is read in from the NCI
file. This allows the post to examine the comment gcode
(1005,1006,1007,1008) and the actual comment string, which is passed in
the pre-defined string variable scomm0. You can also examine the value
in the variable comm._cnt.
Dependencies
Notes See Volume 1, How Comments from the NCI Work for more
information!
M/L/W/R pcomment_end
Postblock Type Standard postblock, Command postblock
NCI Gcode 1005, 1006, 1007, 1008
Category Comment
Description This postblock is called after the comment output loop (calls to the
pcomment postblock). The comm_cnt variable is reset to zero on this call.
Dependencies
Notes See Volume 1, How Comments from the NCI Work for more
information!
W pconchg
Postblock Type Standard postblock
NCI Gcode 1010
Category Technology
Description Postblock call for technology change on wirepath.
Dependencies None
Assigned or overburn, ccode, offset, tldia, reg1, reg2, reg3, reg4, reg5, reg6, reg7, reg8,
Calculated reg9, reg10, tlrad, dofs, lofs
Variables
Recommended None
Variables
Code Example pconchg #Control setting change
n, ccode, offset, e
Notes
W pdir_tapr
Postblock Type Pre-output postblock
NCI Gcode 0, 1, 2 or 3
Category 2D conversion
Description Postblock call in wire 2D to 4-axis conversion to allow switching the
numeric variable linarc to select direct or taper processing.
Dependencies use_2d_uv = 1, plot_2d_uv = negative setting
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See Volume 2, Wire 2-Axis to 4-Axis Conversion for more information.
W pdir_tp_end
Postblock Type Pre-output postblock
NCI Gcode 0, 1, 2 or 3
Category 2D conversion
Description Postblock call in wire 2D to 4-axis conversion to allow switching the
numeric variable linarc off after conversion processing.
Dependencies use_2d_uv = 1, plot_2d_uv = negative setting
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See Volume 2, Wire 2-Axis to 4-Axis Conversion for more information.
Notes Initialize or assign usecandrill = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
M/L/R pdrl_end
Postblock Type Standard postblock
NCI Gcode 81, 100
Category Drill
Description This postblock is called after all calls to the active canned cycle
postblock are completed.
Dependencies
Assigned or
Calculated
Variables
Recommended Variables common to drill canned cycle Gcode 81
Variables Variables common to drill canned cycle Gcode 100
Code Example
M/L/R pdrill0
Postblock Type Pre-output postblock
NCI Gcode 81, 100
Category Pre-output, drill
Description This postblock allows manipulation of drill cycle NCI data prior to the
normal postblock calls for drilling output (canned or long code).
Dependencies None
Assigned or All – gnci, gcode, xnci, ynci, depth, znci, u, v, w, refht, initht, zdrl (mill), xdrl
Calculated (lathe), dwell, rev_drl5, frplunge, xs, ys,
Variables NCI Gcode 81 - drillcyc, x ( lathe), z (lathe), tosz, peck1, peck2, peckclr, retr,
shftdrl, mi1drl, mi2drl, rev_drl5, fr_pos, ipr_actv
NCI Gcode 100 - m1 – m9
Variables common to mill/lathe contour flags
Recommended None
Variables
Code Example Post dependent
Notes See Volume 1, Working with Drill Cycles for more information.
Notes Initialize or assign usecandrill = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
M pdrill3
Postblock Type Standard postblock
NCI Gcode 81, 100
Category 5-axis drill
Description This postblock is intended to support tool plane drilling with 5 axis
machines. Output postlines are written in this postblock.
Dependencies rpd_typ_v7 is set to 1, rotaxtyp is less than 6, the appropriate usecan…
variable is set to 0, drill5 is 0, and the postblock is declared in the post.
Assigned or NCI Gcode 81 - Variables common to drill canned cycle Gcode 81
Calculated NCI Gcode 100 - Variables common to drill canned cycle Gcode 100
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in your post customization
file. The post should be upgraded to function with rpd_typ_v7 is set to 0.
See Volume 1, Working with Drill Cycles for more information.
M pdrill5
Postblock Type Standard postblock
NCI Gcode 81, 100
Category 5-axis drill
Description This postblock is intended to support 5-axis drilling. Output postlines are
written in this postblock.
Dependencies rpd_typ_v7 is set to 1, rotaxtyp is less than 6, the appropriate usecan…
variable is set to 0, drill5 is 1 ,and the postblock is declared in the post.
Assigned or NCI Gcode 81 - Variables common to drill canned cycle Gcode 81
Calculated NCI Gcode 100 - Variables common to drill canned cycle Gcode 100
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in your post customization
file. The post should be upgraded to function with rpd_typ_v7 is set to 0.
See Volume 1, Working with Drill Cycles for more information.
M pdrill30
Postblock Type Pre-output postblock
NCI Gcode 81, 100
Category Pre-output, 5-axis drill
Description This postblock is intended to support tool plane drilling with 5-axis
machines. Calculations for output are written in this postblock. The
postblock pdrill3 is called immediately after this call.
Dependencies rpd_typ_v7 is set to 1, rotaxtyp is less than 6, the appropriate usecan…
variable is set to 0, drill5 is 0, and the postblock pdrill3 is declared in the
post.
Assigned or NCI Gcode 81 - Variables common to drill canned cycle Gcode 81
Calculated NCI Gcode 100 - Variables common to drill canned cycle Gcode 100
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in your post customization
file. The post should be upgraded to function with rpd_typ_v7 is set to 0.
See Volume 1, Working with Drill Cycles for more information.
M pdrill50
Postblock Type Pre-output postblock
NCI Gcode 81, 100
Category Pre-output, 5-axis drill
Description This postblock is intended to support 5-axis drilling. Calculations for
output are written in this postblock. The postblock pdrill5 is called
immediately after this call if it was declared in the post; otherwise the
linear routine is called.
Dependencies rpd_typ_v7 is set to 1, rotaxtyp is less than 6, the appropriate usecan…
variable is set to 0, and drill5 is 1.
Assigned or NCI Gcode 81 - Variables common to drill canned cycle Gcode 81
Calculated NCI Gcode 100 - Variables common to drill canned cycle Gcode 100
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in your post customization
file. The post should be upgraded to function with rpd_typ_v7 is set to 0.
See Volume 1, Working with Drill Cycles for more information.
M/L/R pdrlcst
Postblock Type Standard postblock
NCI Gcode 81
Category Drill
Description Define custom canned drill cycle
Dependencies drillcyc = 8 to 19
M/L/R pdrlcst_2
Postblock Type Standard postblock
NCI Gcode 100
Category Drill point
Description Drill additional points with the custom canned drill cycles
(NCI Gcode 81).
Dependencies drillcyc = 8 to 19
M/L/R pdwl_spd
Postblock Type Standard postblock
NCI Gcode 4
Category Dwell
Description Output dwell, spindle speed and direction changes.
Dependencies None
Assigned or gcode, dwell, ss, spdir, css_actv
Calculated NOT READ IN PREPARATORY – n, gnci
Variables
Recommended n, gcode, dwell, spdir, css_actv
Variables
Code Example Post dependent
Notes
W pdwl_spd
Postblock Type Standard postblock
NCI Gcode 4
Category Dwell
Description Output dwell.
Dependencies None
Assigned or gcode, dwell
Calculated NOT READ IN PREPARATORY – n, gnci
Variables
Recommended n, gcode, dwell
Variables
Code Example Post dependent
Notes
W pedm
Postblock Type Standard postblock
NCI Gcode 11
Category UV taper
Description Postblock called for 4-axis taper wirepaths.
Dependencies None
Assigned or Variables common to wire taper Gcode 11
Calculated
Variables
Recommended Variables common to wire taper Gcode 11
Variables
Code Example Post dependent
Notes See Volume 2, 4-Axis Wire Output Processing for more information.
W pedm_end
Postblock Type Standard postblock
NCI Gcode 11
Category UV taper
Description This postblock is called after the call to pedm is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on NCI Gcode 11 termination (4-axis taper mode path).
See the related pedm postblock
W pedm0
Postblock Type Pre-output postblock
NCI Gcode 11
Category Pre-output, UV taper
Description Allows manipulation of NCI Gcode 11 (taper wirepath) data prior to wr
and wq calculations.
Dependencies qrtyp = 1
W peof, peof0
Postblock Type Standard postblock
NCI Gcode 1003
Category End of file
Description Postblock call for the end of file. Used to generate the rapid return to
home position and the end-of-tape or end-of-file codes.
Dependencies posttype = 1 and pass is not zero, call postblock peof
posttype = 1 and pass is zero, call postblock peof0
M/L/R peof00
Postblock Type Pre-output postblock
NCI Gcode 1003
Category Pre-output, end of file
Description Allow manipulation of data before calls to end-of-file postblocks.
Dependencies None
Assigned or xh, yh, zh
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes
L pfcc_call
Postblock Type Standard postblock
NCI Gcode 1018
Category Lathe canned cycle
Description Lathe canned turning cycle postblock call to output NC code for finish
path recall.
Dependencies rcc_flg = 7
L pg32
Postblock Type Standard postblock
NCI Gcode 201
Category Thread
Description Traditional longhand threading postblock call.
Dependencies Selection is for longhand, alternating or box thread; thdtype is set to 0, 2
or 3.
Assigned or Variables common to lathe thread cycle
Calculated
Variables
Recommended n, x, z, fr_pos
Variables
Code Example Post dependent
Notes This call only has the position calculated for the first move to cut level
available. See Volume 3, Lathe Threading Cycles for more information.
L pg32e
Postblock Type Standard postblock
NCI Gcode 201
Category Thread
Description Longhand threading postblock at end of cycle.
Dependencies Selection is for longhand, alternating or box thread; thdtype is set to 0, 2
or 3.
Assigned or Variables common to lathe thread cycle
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes This call has the position calculated for the last cut rapid position at the
start of the thread. See Volume 3, Lathe Threading Cycles for more
information.
L pthd_end
Postblock Type Standard postblock
NCI Gcode 201
Category Threading
Description This postblock is called after the calls to the threading postblocks are
completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on Gcode 201 termination.
See related lathe threading postblocks.
See Volume 2, Lathe Threading Cycles for more information.
L pg76
Postblock Type Standard postblock
NCI Gcode 200 and 201
Category Thread
Description Lathe canned thread cycle postblock call.
Dependencies Selection is for canned thread; thdtype is set to 1.
Assigned or Variables common to lathe thread cycle
Calculated
Variables
Recommended n, thdx2, thdz2, thdlead, thdfirst, thdlast, nspring, thdfinish, thdpulloff, thdangle
Variables
Code Example pg76old #G76 threading style
pbld, n, “G76”, *thdx2, *thdz2, *thddepth,
*thdfirst, *thdangle, *thdlead, e
L pg92
Postblock Type Standard postblock
NCI Gcode 200 and 201
Category Thread
Description Selection is for box thread; ‘thdtype’ is set to 2.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes This postblock is predefined but no internal call is ever made to it. Do
not use this postblock. Use the pthrg92_1 - pthrg92_4, pg32 and pg32e
postblocks. See Volume 3, Lathe Threading Cycles for more
information.
M/L/R pheader
Postblock Type Pre-output postblock
NCI Gcode 1001
Category Header
Description Write the beginning of the NC program. Normally, the beginning of the
tape or file header is coded in this postblock.
Dependencies None
Assigned or Variables read at mill/lathe tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended Variables read at mill/lathe tool change
Variables Variables common to mill/lathe tool change
W pheader
Postblock Type Pre-output postblock
NCI Gcode 1001
Category Header
Description Write the beginning of the NC program. Normally, the beginning of the
tape or file header is coded in this postblock.
Dependencies None
Assigned or Variables read at wire tool change
Calculated Variables common to wire tool change
Variables
Recommended Variables read at wire tool change
Variables Variables common to wire tool change
W plin
Postblock Type Standard postblock
NCI Gcode 1, 21, 31
Category Linear feed
Description Linear move at feed rate.
Dependencies None
Assigned or Variables common to wire linear motion, lower
Calculated
If ‘uvflag’ >= 2, variables common to wire linear motion, upper
Variables
Recommended Variables common to wire linear motion, lower
Variables
If ‘uvflag’ >= 2, variables common to wire linear motion, upper
M/L/R plin_end
Postblock Type Standard postblock
NCI Gcode 1
Category Linear feed
Description This postblock is called after all calls to plin are completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes The plin (mlin or llin) linear output postblocks may be called multiple times
to process a move depending on any motion break up in effect. plin_end is
called after the linear motion is processed.
See the related pcir_end postblock
W plin_end
Postblock Type Standard postblock
NCI Gcode 1 (also 21, 31 if 4-axis wirepath)
Category Linear feed
Description This postblock is called after all calls to plin are completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes The plin linear output postblocks may be called multiple times to process a
move depending on any motionbreakup in effect. plin_end is called after
the linear motion is processed.
See the related pcir_end postblock for Wire.
M/L/R plin0
Postblock Type Pre-output postblock
NCI Gcode 0, 1, 11
Category Pre-output, linear
Description This postblock allows manipulation of linear motion NCI data prior to
the normal postblock calls for linear moves.
Dependencies If rotaxtyp is less than 6, called before the normal output for the NCI
Gcode 0 and 1.
If rotaxtyp is greater than 6, called for NCI Gcode 0, 1 and 11.
Assigned or ALL - gnci, gcode, xnci, ynci, znci, xs, ys, fr, ipr_actv, fr_pos
Calculated Variables common to mill/lathe next variable routine
Variables Variables common to comments
Variables common to canned text
NCI Gcode 0, 1 - cc
NCI Gcode 11 - u, v, w, p_svec, q_svec, r_svec, rev5, cutpos, cuttyp, vert_tool,
lower_x, lower_y, lower_z, upper_x, upper_y, upper_z, mill5
Recommended None
Variables
plin0 #Linear movement, mill motion test
Code Example
brklinestype = zero
if rotary_type = two, #Polar
[
brklinestype = rotary_axis + three
]
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See “Postblock Call Dependencies”in Volume 1, Postblocks for more
information. The postblock plin3 is only in the Wire post executable.
Do not set whatno to 0 (no).
W plin3
Postblock Type Standard postblock
NCI Gcode 1
Category Obsolete, Whatno
Description The whatno procedure produces calls to postblocks based on the
occurrence after a tool change and the value of the numeric variable
whatline.
Dependencies whatno = 0 and whatline = 1, 2, 3
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See “Postblock Call Dependencies”in Volume 1, Postblocks for more
information. The postblock plin3 is only in the Wire post executable.
Do not set whatno to 0 (no).
W plow_uv_end
Postblock Type Standard postblock
NCI Gcode 20, 21, 22, 23
Category UV direct
Description This postblock is called after the call to plin or pcir is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on NCI Gcode 20,21, 22, 23 termination (4-axis Direct mode
path).
See the related postblocks plin and pcir.
M pmat
Postblock Type Pre-output postblock
NCI Gcode 1000, 1001, 1002
Category 5-axis
Description This postblock can be used to access the mapping matrix to modify it
from the post customization file.
Dependencies rotaxtyp = 2 and 4 use the mapping matrix.
Notes Initialize or assign usecanmisc1 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanmisc2 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanmisc1 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanmisc2 = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
M/L/R pmiscint
Postblock Type Standard postblock
NCI Gcode 1012
Category Start of file
Description Access miscellaneous integers.
Dependencies None
Assigned or mi1, mi2, mi3, mi4 ,mi5, mi6, mi7, mi8, mi9, mi10, mergenumber, merge_end
Calculated
Variables
Recommended mi1, mi2, mi3, mi4 ,mi5, mi6, mi7, mi8, mi9, mi10
Variables
Code Example Post dependent
Notes
W pmiscint
Postblock Type Standard postblock
NCI Gcode 1012
Category Start of file
Description Access miscellaneous integers.
Dependencies None
Assigned or mi1, mi2, mi3, mi4 ,mi5, mi6, mi7, mi8, mi9, mi10
Calculated
Variables
Recommended mi1, mi2, mi3, mi4 ,mi5, mi6, mi7, mi8, mi9, mi10
Variables
Code Example Post dependent
Notes
M/L/R pmiscparam
Postblock Type Standard postblock
NCI Gcode 1013
Category Start of file
Description Access miscellaneous parameters.
Dependencies None
Assigned or cc, tldia, tcr, cctotip, tlplnno, tox, toy, toz, opcode, toolname, tlrad, trflat,
Calculated strtool, strtoolpath, strtoolext, ccomp, cc_pos
Variables
Recommended None
Variables
Code Example Post dependent
Notes
W pmiscparam
Postblock Type Standard postblock
NCI Gcode 1013
Category Start of file
Description Access miscellaneous parameters.
Dependencies None
Assigned or cc, tldia, tcr, overburn, wire, power, wox, woy, woz, opcode, toolname, tlrad, zx,
Calculated zy, strtool, strtoolpath, strtoolext
Variables
Recommended None
Variables
Code Example Post dependent
Notes
M/L/W/R pmiscreal
Postblock Type Standard postblock
NCI Gcode 1011
Category Start of file
Description Access miscellaneous reals.
Dependencies None
Assigned or mr1, mr2, mr3, mr4, mr5, mr6, mr7, mr8, mr9, mr10
Calculated
Variables
Recommended mr1, mr2, mr3, mr4, mr5, mr6, mr7, mr8, mr9, mr10
Variables
Code Example Post dependent
Notes
M/R pmx
Postblock Type Standard postblock
NCI Gcode 11
Category 5-axis
Description The postblock is for 5-axis NC output specific to the NCI Gcode 11.
Dependencies rotaxtyp less than or equal to 6. drill5 equal to 0.
M/L/R pmx_end
Postblock Type Standard postblock
NCI Gcode 11
Category 5-axis motion
Description This postblock is called after the call to pmx is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on NCI Gcode 11 termination.
M/R pmx0
Postblock Type Pre-output postblock
NCI Gcode 11, 81, 100, 1000, 1001, 1002, specified postblock calls
Category Pre-output, 5-axis
Description The purpose of this postblock is to allow calculations and customization
in the post customization file of 5 axis and tool plane NCI data.
Dependencies If rotaxtyp is less than 6, called before the normal output for the NCI
Gcode 11, 81, 100, 1000, 1001, 1002
If rotaxtyp is greater than 6, called just before the call to the predefined
postblocks in the Predefined Postblocks - Database Order (Mill/Lathe)
from prapid to pg32e.
Assigned or Variables available at this call are dependent on the rotaxtyp selection.
Calculated
Variables
Recommended Variables available at this call are dependent on the rotaxtyp selection.
Variables
Code Example Post dependent
Notes See Volume 2, Rotary Processing for more information.
M/R pmx1
Postblock Type Standard postblock
NCI Gcode 11
Category Obsolete, Whatno
Description Generated lead in/lead out for a 5-axis toolpath.
Dependencies rotaxtyp <= 6, drill5 = 0.
M/R pmx2
Postblock Type Standard postblock
NCI Gcode 11
Category Obsolete, Whatno
Description Generated lead in/lead out for a 5-axis toolpath.
Dependencies rotaxtyp <= 6, drill5 = 0.
M/L/W/R pparameter
Postblock Type Standard postblock
NCI Gcode 1020 (Operation file), 10000s, 20000s
Category Parameter
Description The purpose of this postblock is to allow the operation and tool
parameters to be captured during the normal processing of the NCI file.
Dependencies System numbered questions q1501 or q1502 must be set to write 10000s
parameters. The tool name is captured if strtool_v7 is 1.
Assigned or prmcode, sparameter
Calculated strtool, strtoolpath, strtoolext (NCI Gcode 20001)
Variables
Recommended prmcode, sparameter
Variables
Code Example Post dependent
Notes See Parameter Information in Volume 2 and in Volume 3 for more
information.
Notes Initialize or assign usecanpeck = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
Notes Initialize or assign usecanpeck = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
M/L/W/R ppost
Postblock Type Post-process postblock
NCI Gcode 1003
Category Post process
Description This postblock is used to process the NC output files after the normal
posting process is complete. Files can be renamed, opened, and modified
by the post writer.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes No input/output files are open when ppost is called. Do not attempt file
routines in this postblock, including NC output, without using one of the
file functions to open the file first.
M/L/W/R pprep
Postblock Type Pre-process postblock
NCI Gcode Before NCI file read
Category Pre-process
Description This postblock is used to manipulate any post variables after the post
customization file has been parsed and the variable initializations are
complete.
Dependencies None
Assigned or sub_level
Calculated Global variables calculated at post initialization
Variables
Recommended Post dependent
Variables
Code Example Post dependent
Notes No input/output files are open when pprep is called. Do not attempt file
routines in this postblock, including NC output. Send messages through
the user prompt functions.
The NCI file is open at this call and cannot be renamed.
M/L/W/R pq
Postblock Type Pre-process postblock
NCI Gcode Before NCI file read
Category Pre-process
Description This postblock is used to manipulate any post variables after the post
customization file has been parsed and the variable initializations are
complete.
Dependencies None
Assigned or sub_level
Calculated Global variables calculated at post initialization
Variables
Recommended Post dependent
Variables
Code Example Post dependent
Notes The NC file is open at this call and cannot be renamed.
W pradlist
Postblock Type Preparatory postblock
NCI Gcode 1001
Category Preparatory
Description Call to output wire radius list.
Dependencies listrad is set to 1 and bldnxtool is set to 1.
W prapid
Postblock Type Standard postblock
NCI Gcode 0
Category Linear rapid
Description Linear move at rapid rate.
Dependencies None
Assigned or Variables common to wire linear motion, lower
Calculated
If uvflag >= 2, variables common to wire linear motion, upper
Variables
Recommended Variables common to wire linear motion, lower
Variables
If uvflag >= 2, variables common to wire linear motion, upper
L prcc_call_end
Postblock Type Standard postblock
NCI Gcode 1019
Category Lathe canned cycle
Description Lathe canned turning cycle postblock call to output NC code for end of
finish path.
Dependencies tool_op = 208 (Groove), rcc_flg = 3 (not called on NCI Gcode 1019)
Canned roughing, rcc_flg = 5
Assigned or Variables common to subprogram end
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See Volume 3, How Lathe Canned Cycles Work for more information.
W prcc_call_end
Postblock Type Standard postblock
NCI Gcode None
Category Not used in Wire, Lathe canned cycle.
Description None
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not used in Wire.
L prcc_call_st
Postblock Type Standard postblock
NCI Gcode 1018
Category Lathe canned cycle
Description Lathe canned turning cycle postblock call to output NC code for start of
finish path.
Dependencies tool_op = 208 (Groove), rcc_flg = 3 (not called on NCI Gcode 1018)
Canned roughing, rcc_flg = 4
Assigned or Variables common to subprogram start
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes See Volume 3, How Lathe Canned Cycles Work for more information.
W prcc_call_st
Postblock Type Standard postblock
NCI Gcode None
Category Not used in Wire, Lathe canned cycle.
Description None
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not used in Wire.
L prcc_setup
Postblock Type Command postblock
NCI Gcode None
Category Lathe canned cycle, command
Description Lathe canned turning cycle postblock call to capture roughing tool
information. This postblock is called at the command variable
c_rcc_setup.
Dependencies rcc_flg = 1, c_rcc_setup on postline.
W prcc_setup
Postblock Type Command postblock
NCI Gcode None
Category Not used in Wire, Lathe canned cycle, command.
Description None
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes Not used in Wire.
M/L prd1000
Postblock Type Pre-output postblock
NCI Gcode 1000, 1001, 1002
Category Pre-output, tool change
Description Intended to allow user to access matm1 through matm9 and vtlofsx, vtlofsy,
vtlofsz.
Dependencies rotaxtyp less than 6
W prd1000
Postblock Type Pre-output postblock
NCI Gcode None
Category Not used in Wire
Description None
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not used in Wire.
M/L/R prot
Postblock Type Standard postblock
NCI Gcode 1000, 1002
Category Rotary, Obsolete
Description Postblock call intended for output of tool plane rotation.
Dependencies None
Assigned or Variables read at tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in the post customization file
for rotary output. Not all mapping routines are complete where this call
occurs. Generally it is better to output the rotary positioning in the tool
change postblocks.
M/L/R prot0
Postblock Type Standard postblock
NCI Gcode 1001
Category Obsolete
Description Postblock call intended for output of tool plane rotation.
Dependencies None
Assigned or Variables read at tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended None
Variables
Code Example Post dependent
Notes It is not recommended to use this postblock in the post customization file
for rotary output. Not all mapping routines are complete where this call
occurs. Generally it is better to output the rotary positioning in the tool
change postblocks.
M/R protofs
Postblock Type Standard postblock
NCI Gcode 1013
Category 5-axis
Description Access miscellaneous parameters with 5-axis posts.
Dependencies rotaxtyp greater than 1.
Assigned or cc, tldia, tcr, cctotip, tlplnno, tox, toy, toz, opcode, toolname, tlrad, trflat,
Calculated strtool, strtoolpath, strtoolext, ccomp, cc_pos
Variables
Recommended cc, tldia, tcr, cctotip, tlplnno, tox, toy, toz, opcode, toolname, tlrad, trflat,
Variables strtool, strtoolpath, strtoolext, ccomp, cc_pos
M/L/W/R pscomm0
Postblock Type Standard postblock
NCI Gcode 1005, 1006, 1007, 1008
Category Comment
Description Postblock call for NC output of NCI file comments without buffering.
Dependencies None
Assigned or Variables common to comments
Calculated
Variables
Recommended n, scomm0
Variables
Code Example pscomm0 #Comment from manual entry
scomm0
Notes NCI Gcode 1007 (comments on output line) are output immediately.
W psof, psof0
Postblock Type Standard postblock
NCI Gcode 1001
Category Start of file
Description Postblock call for the start-of-file rapid position.
Dependencies posttype = 1 and pass is not zero, call postblock psof
posttype = 1 and pass is zero, call postblock psof0
M/L psof00
Postblock Type Pre-output postblock
NCI Gcode 1001
Category Pre-output, start of file
Description Allow manipulation of data before calls to start-of-file postblocks.
Dependencies None
Assigned or Variables read at tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended None
Variables
Code Example Post dependent
Notes This postblock is called just prior to the call to pheader postblock.
M/L/R/W psof_end
Postblock Type Standard postblock
NCI Gcode 1001
Category Start of file
Description This postblock is called after the call to psof is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on Gcode 1001 termination or tlchng_aft completion.
See tlchng_aft in Volume 3, Numeric Variables for more information.
See ptlchg1002 postblock for related information.
L pstck_bar_fd
Postblock Type Standard postblock
NCI Gcode 902
Category Lathe Misc. Ops function
Description Lathe Stock Advance (Bar-Feed/Pull)
Dependencies None
Assigned or stck_spindle, stck_op, stck_clear, stck_grip, stck_init_z, stck_final_z,
Calculated stck_chuk_st_z, stck_chuk_st_x, stck_chuk_end_z, stck_chuk_end_x
Variables
miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
L pstck_flip
Postblock Type Standard postblock
NCI Gcode 901
Category Lathe Misc. Ops function
Description Lathe Stock Flip
Dependencies None
Assigned or stck_spindle, stck_init_z, stck_final_z, stck_chuk_st_z, stck_chuk_st_x,
Calculated stck_chuk_end_z, stck_chuk_end_x
Variables
miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
L pstck_trans
Postblock Type Standard postblock
NCI Gcode 900
Category Lathe Misc. Ops function
Description Lathe Stock Transfer
Dependencies None
Assigned or stck_spindle, stck_init_z, stck_final_z, stck_chuk_st_z, stck_chuk_st_x,
Calculated stck_chuk_end_z, stck_chuk_end_x, stck_chuk_st_dz, stck_chuk_st_dx,
Variables stck_chuk_end_dz, stck_chuk_end_dx
miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
L psteadyrest
Postblock Type Standard postblock
NCI Gcode 905
Category Lathe Misc. Ops function
Description Lathe SteadyRest
Dependencies None
Assigned or stck_init_z, stck_final_z
Calculated
Variables miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
M/L/R psub_call_m
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Subprogram postblock call for transform subprograms with single tool.
Intended for NC output to call the subprogram. This postblock is called
at the command variable c_msng.
Dependencies sub_level = 1 or 2, c_msng on postline.
W psub_call_m
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam Wire. See Volume 2, How Subprograms
Work for more information..
M/L/R psub_call_mm
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Subprogram postblock call for transform subprograms with multiple
tools. Intended for NC output to call the subprogram. This postblock is
called at the command variable c_mmlt.
Dependencies sub_level = 1 or 2, c_mmlt on postline.
W psub_call_mm
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam WireSee Volume 2, How Subprograms
Work for more information.
M/L/R psub_call_s
Postblock Type Standard postblock
NCI Gcode 1018
Category Subprogram
Description Subprogram postblock call for non-transform subprograms. Intended for
NC output to call the subprogram.
Dependencies sub_level = 1 or 2
W psub_call_s
Postblock Type Standard postblock
NCI Gcode 1018
Category Subprogram
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam V8 Wire.
M/L/R psub_end_m
Postblock Type Standard postblock
NCI Gcode 1019
Category Subprogram
Description Subprogram postblock call for transform subprograms. Intended for NC
output to end the subprogram.
Dependencies sub_level = 1 or 2
W psub_end_m
Postblock Type Standard postblock
NCI Gcode 1019
Category Subprogram
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam V8 Wire.
M/L/R psub_end_s
Postblock Type Standard postblock
NCI Gcode 1019
Category Subprogram
Description Subprogram postblock call for non-transform subprograms. Intended for
NC output to end the subprogram.
Dependencies sub_level = 1 or 2
W psub_end_s
Postblock Type Standard postblock
NCI Gcode 1019
Category Not used V8 Wire, subprogram
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam V8 Wire.
M/L/R psub_st_m
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Subprogram postblock call for transform subprograms. Intended for NC
output to start the subprogram.
Dependencies sub_level = 1 or 2
W psub_st_m
Postblock Type Command postblock
NCI Gcode 1018
Category Subprogram, command
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam V8 Wire.
M/L/R psub_st_s
Postblock Type Standard postblock
NCI Gcode 1018
Category Subprogram
Description Subprogram postblock call for non-transform subprograms. Intended for
NC output to start the subprogram.
Dependencies sub_level = 1 or 2
W psub_st_s
Postblock Type Standard postblock
NCI Gcode 1018
Category Subprogram
Description Supports automatic subprograms.
Dependencies None
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example None
Notes Not implemented in Mastercam V8 Wire.
W psubcall
Postblock Type Standard postblock
NCI Gcode 1015
Category Obsolete
Description Subprogram postblock call in Wire.
Dependencies subprg > 0
Assigned or subtyp, subno, td_ct_flg, tabcut, wtrim, skimpass, cutx, cuty, trimplane1,
Calculated trimplane2, reg1, reg2, reg3, reg4, reg5, reg6, reg7, reg8, reg9, reg10
Variables
Recommended None
Variables
Code Example Post dependent
Notes This postblock is not normally used with a subprogram because it
performs the postblock call prior to reading tool change information.
See Volume 2, How Subprograms Work for more information.
M/L psynclath
Postblock Type Standard postblock
NCI Gcode 1005, 1006, 1008
Category Obsolete, synclath
Description Used by the Synclath C-Hook (Mastercam Version 6) for processing
toolpaths modified to support sync codes and multiple turret lathes.
Dependencies scomm is number preceded by the ~ (tilde).
L ptailstock
Postblock Type Standard postblock
NCI Gcode 904
Category Lathe Misc. Ops function
Description Lathe Tailstock
Dependencies None
Assigned or tlstck_on, stck_init_z, stck_final_z
Calculated
Variables miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5,
miscops_mi6, miscops_mi7, miscops_mi8, miscops_mi9, miscops_mi10
miscops_mr1, miscops_mr2, miscops_mr3, miscops_mr4, miscops_mr5,
miscops_mr6, miscops_mr7, miscops_mr8, miscops_mr9, miscops_mr10
Recommended
Variables
Code Example Post dependent
Notes
Notes Initialize or assign usecantap = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
R pblockdrl
Postblock Type Standard postblock
NCI Gcode 83
Category Drill (Block drilling)
Description See note below
Dependencies
Notes Initialize or assign usecantap = 1 before this call to activate the canned
drill cycle call. Otherwise the cycle is written long code using linear
movements. See Volume 1, Working with Drill Cycles for more
information.
L pthdext
Postblock Type Pre-output postblock
NCI Gcode 201
Category Thread
Description Allows overwriting values used in external thread calculations before the
threading routine calls.
Dependencies External thread
Assigned or gnci, nspring, thdfinish, thdpulloff, nstarts, thdxclr, thdangle, thdequcut, thdncuts,
Calculated thdx1, thdx2, thdz1, thdz2, thdlead, thdfirst, thdlast, thdzclr, thda1, thda2,
Variables thdtype, thdx3, thdface, ipr_actv, fr_pos
Variables common to mill/lathe next variable routine
Variables common to comments
Variables common to canned text
L pthdface
Postblock Type Pre-output postblock
NCI Gcode 201
Category Thread
Description Allows overwriting values used in face thread calculations before the
threading routine calls.
Dependencies Face thread, thdface = 1
Assigned or gnci, nspring, thdfinish, thdpulloff, nstarts, thdxclr, thdangle, thdequcut, thdncuts,
Calculated thdx1, thdx2, thdz1, thdz2, thdlead, thdfirst, thdlast, thdzclr, thda1, thda2,
Variables thdtype, thdx3, thdface, ipr_actv, fr_pos
Variables common to mill/lathe next variable routine
Variables common to comments
Variables common to canned text
L pthdint
Postblock Type Pre-output postblock
NCI Gcode 201
Category Thread
Description Allows overwriting values used in internal thread calculations before the
threading routine calls.
Dependencies Internal thread
Assigned or gnci, nspring, thdfinish, thdpulloff, nstarts, thdxclr, thdangle, thdequcut, thdncuts,
Calculated thdx1, thdx2, thdz1, thdz2, thdlead, thdfirst, thdlast, thdzclr, thda1, thda2,
Variables thdtype, thdx3, thdface, ipr_actv, fr_pos
Variables common to mill/lathe next variable routine
Variables common to comments
Variables common to canned text
L pthread0
Postblock Type Pre-output postblock
NCI Gcode 201
Category Pre-output, thread
Description Allows access to thread variables after the NCI line is read and before the
lathe thread routines are called.
Dependencies None
Assigned or nspring, thdfinish, thdpulloff, nstarts, thdxclr, thdangle, thdequcut, thdncuts,
Calculated thdx1, thdx2, thdz1, thdz2, thdlead, thdfirst, thdlast, thdzclr, thda1, thda2,
Variables thdtype, thdx3, thdface, ipr_actv, fr_pos
Variables common to comments
Variables common to canned text
Recommended None
Variables
Code Example Post dependent
Notes These variables are read from the both NCI Gcode 200 and 201 lines.
See Volume 2, Lathe Threading Cycles for more information.
L pthrg76_1
Postblock Type Standard postblock
NCI Gcode 201
Category Thread
Description Calculate the position of the lathe canned thread cycle start.
Dependencies Selection is for canned thread, thdtype is set to 1. The postblock must be
present for the x and z positions to be calculated.
Assigned or Variables common to lathe thread cycle
Calculated
Variables
Recommended n, x, z, fr_pos
Variables
Code Example Post dependent
Notes This call only has the position calculated for the rapid start position at the
thread start and above the thread available.
See Volume 2, Lathe Threading Cycles for more information.
W ptlchg
Postblock Type Standard postblock
NCI Gcode 1002
Category Actual tool change
Description Wire pass change. Position from pass to pass or contour to contour.
Dependencies None
Assigned or Variables read at wire tool change
Calculated Variables common to wire tool change
Variables
Recommended Variables read at wire tool change
Variables Variables common to wire tool change
M/L/R/W ptlchg_end
Postblock Type Standard postblock
NCI Gcode 1002
Category Null tool change
Description This postblock is called after the call to ptlchg is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on Gcode 1002 termination or tlchng_aft completion.
See related ptlchg postblock for Mill/Lathe/Router.
See related ptlchg postblock for Wire.
W ptlchg0
Postblock Type Standard postblock
NCI Gcode 1000
Category Null tool change
Description Wire pass change. Position from pass to pass or contour to contour.
Dependencies None
Assigned or Variables read at wire tool change
Calculated Variables common to wire tool change
Variables
Recommended Variables read at wire tool change
Variables Variables common to wire tool change
M/L/R/W ptlchg0_end
Postblock Type Standard postblock
NCI Gcode 1000
Category Null tool change
Description This postblock is called after the call to ptlchg0 is completed.
Dependencies None
Assigned or
Calculated
Variables
Recommended
Variables
Code Example Post dependent
Notes Called on Gcode 1000 termination or tlchng_aft completion.
See related ptlchg0 postblock for Mill/Lathe/Router.
See related ptlchg0 postblock for Wire.
M/L/R ptlchg00
Postblock Type Pre-output postblock
NCI Gcode 1000, 1002
Category Pre-output, tool change, null tool change
Description Allow manipulation of data before calls to tool change postblocks.
Dependencies None
Assigned or Variables read at mill/lathe tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended None
Variables
Code Example Post dependent
Notes This postblock is called just prior to the call to ptlchg1002, ltlchg0, mtlchg0,
ptlchg0, ltlchg, mtlchg, ptlchg postblocks.
M/L/R ptlchg1002
Postblock Type Standard postblock
NCI Gcode 1000, 1001, 1002
Category Tool change
Description Postblock called with the tlchng_aft strategy on the actual NCI Gcode tool
change. tlchng_aft strategy reads the first toolpath move after the tool
change NCI Gcode and then calls the normal tool change postblock. This
prevents skipping information on the first move after a tool change.
Dependencies tlchng_aft = 1 to calls on NCI Gcode 1001, 1002
tlchng_aft = 2 to calls on NCI Gcode 1000, 1001, 1002
Assigned or Variables read at mill/lathe tool change
Calculated Variables common to mill/lathe tool change
Variables
Recommended Variables read at mill/lathe tool change
Variables Variables common to mill/lathe tool change
W ptlchg1002
Postblock Type Standard postblock
NCI Gcode 1000, 1001, 1002
Category Tool change
Description Postblock called with the tlchng_aft strategy on the actual NCI Gcode tool
change. tlchng_aft strategy reads the first toolpath move after the tool
change NCI Gcode and then calls the normal tool change postblock. This
prevents skipping information on the first move after a tool change.
Dependencies tlchng_aft = 1 to calls on NCI Gcode 1001, 1002
tlchng_aft = 2 to calls on NCI Gcode 1000, 1001, 1002
Assigned or Variables read at wire tool change
Calculated Variables common to wire tool change
Variables
Recommended Variables read at wire tool change
Variables Variables common to wire tool change
W ptoolend
Postblock Type Standard postblock
NCI Gcode 1011
Category Path end
Description The 1011 NCI Gcode is the first NCI line that starts the tool change series
of NCI lines. This call is performed before any values are passed from
the Miscellaneous Reals to output NC code to end the prior tool.
Dependencies Not called on the first 1011 in the NCI file.
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes
M/L/R ptooltbl
Postblock Type Preparatory postblock
NCI Gcode 0, 1, 2, 3, 11, 81, 200
Category Preparatory
Description Calls to this postblock occur after the tool change NCI Gcodes (1000,
1001 or 1002) and on the calling NCI Gcodes during a preparatory read
of the NCI file.
Dependencies tooltable = 1
tooltable = 3
The postblock ptooltbl must be declared in the post and pwrtt is not
declared .
A tool change Gcode of 1000, 1001 or 1002 was prior to the trigger NCI
Gcode except NCI Gcode 11 and 81 where tool change Gcode of 1001 or
1002 is the trigger.
Assigned or Variables read at tool change
Calculated
Variables
Recommended None
Variables
Code Example None
Notes ptooltbl is an antiquated procedure. Use the procedure pwrtt for more
complete and accurate processing. The postblock is not called if the tool
number repeats. See Volume 1, How Preparatory Postblocks Work for
more information.
W ptooltbl
Postblock Type Preparatory postblock
NCI Gcode 0, 1, 2, 3, 20, 21, 22, 23, 30, 31, 32, 33, 11, 81
Category Preparatory
Description Calls to this postblock occur after the tool change NCI Gcodes (1001 or
1002) and on trigger NCI Gcode during a preparatory read of the NCI
file.
Dependencies tooltable = 1
tooltable = 3
The postblock ptooltbl must be declared in the post and pwrtt is not
declared .
A tool change Gcode of 1000, 1001 or 1002 was prior to the trigger NCI
Gcode except NCI Gcode 11 and 81 where tool change Gcode of 1001 or
1002 is the trigger.
Assigned or Variables read at tool change
Calculated
Variables
Recommended None
Variables
Code Example None
Notes ptooltbl is an antiquated procedure. Use the procedure pwrtt for more
complete and accurate processing.
See Volume 1, How Preparatory Postblocks Work for more information.
M/L/R ptplane
Postblock Type Standard postblock
NCI Gcode 0, 1, 11, linearized motion
Category 5-axis
Description This postblock was intended to provide for tool plane offset.
Dependencies rotaxtyp is equal to 4
W ptprlist
Postblock Type Preparatory postblock
NCI Gcode 1001
Category Preparatory
Description Call to output wire taper list.
Dependencies listtpr is set to 1 and bldnxtool is set to 1.
M/L/R pwrtt
Postblock Type Preparatory postblock
NCI Gcode 1000, 1001, 1002 (optionally 1003)
Category Preparatory
Description Calls to this postblock occur on the tool change NCI Gcodes during a
preparatory read of the NCI file. All NCI lines from the previous tool are
read prior to the postblock call.
Dependencies tooltable = 1
tooltable = 3
The postblock pwrtt must be declared in the post.
Assigned or ttplane, wt_max, x_max, y_max, z_max, x_min, y_min, z_min, rcc_flg, lower_x,
Calculated lower_y, lower_z, upper_x, upper_y, upper_z, next_dc, nextop, nextccomp,
Variables nextcflg, mill5
Variables read at tool change
W pwrtt
Postblock Type Preparatory postblock
NCI Gcode 1000, 1001, 1002 (optionally 1003)
Category Preparatory
Description Calls to this postblock occur on the tool change NCI Gcodes during a
preparatory read of the NCI file. All NCI lines from the previous tool are
read prior to the postblock call.
Dependencies tooltable = 1
tooltable = 3
The postblock pwrtt must be declared in the post customization file.
Assigned or ttplane, wt_max, x_max, y_max, z_max, x_min, y_min, z_min, nextop,
Calculated nextccomp, nextcflg
Variables Variables read at wire tool change
M/L/W/R pwrttparam
Postblock Type Preparatory postblock
NCI Gcode 1005, 1006, 1007, 1008, 1020 (Operation file), 10000s, 20000s
Category Preparatory, Parameter
Description Calls to this postblock occur during the preparatory read of the NCI file.
The purpose of this postblock is to allow the parameter and comments to
be captured during the pre-read routine.
Dependencies tooltable = 1
tooltable = 3
The postblock pwrtt and pwrttparam must be declared in the post
customization file. The tool name is captured if strtool_v7 is 1.
Assigned or prmcode, sparameter
Calculated strtool, strtoolpath, strtoolext (NCI Gcode 20001)
Variables
Recommended prmcode, sparameter
Variables
Code Example Post dependent
Notes Any NCI lines and variables read prior to the postblock call are
accessible. See Volume 2, Parameter Information, and Volume 1, How
Preparatory Postblocks Work for more information.
M/L/R pz
Postblock Type Standard postblock
NCI Gcode 1
Category Linear Z only
Description Linear feed Z only
Dependencies None
Assigned or Variables common to mill/lathe linear motion
Calculated
Variables
Recommended Variables common to mill/lathe linear motion
Variables
Code Example Post dependent
Notes See “Postblock Call Dependencies” in Volume 1, Postblocks, for more
information.
W pz
Postblock Type Standard postblock
NCI Gcode 1
Category Linear Z only
Description Linear feed Z only
Dependencies None
Assigned or Variables common to wire linear motion, lower
Calculated
If uvflag >= 2, variables common to wire linear motion, upper
Variables
Recommended Variables common to wire linear motion, lower
Variables
If uvflag >= 2, variables common to wire linear motion, upper
M/L/W/R pz1
Postblock Type Standard postblock
NCI Gcode 1
Category Obsolete, Whatno
Description The whatno procedure produces calls to postblocks based on the
occurrence after a tool change and the value of the numeric variable
whatline.
Dependencies whatno = 0 and whatline = 1
Assigned or None
Calculated
Variables
Recommended None
Variables
Code Example Post dependent
Notes Do not set whatno to 0 (no) in a PST.
See “Postblock Call Dependencies” in Volume 1, Postblocks, for more
information.
M/L/R pzrapid
Postblock Type Standard postblock
NCI Gcode 0
Category Linear Z only
Description Linear rapid Z only
Dependencies None
Assigned or Variables common to mill/lathe linear motion
Calculated
Variables
Recommended Variables common to mill/lathe linear motion
Variables
Code Example Post dependent
Notes See “Postblock Call Dependencies” in Volume 1, Postblocks, for more
information.
W pzrapid
Postblock Type Standard postblock
NCI Gcode 0, 20, 30
Category Linear Z only
Description Linear rapid Z only
Dependencies None
Assigned or Variables common to wire linear motion, lower
Calculated
If uvflag >= 2, variables common to wire linear motion, upper
Variables
Recommended Variables common to wire linear motion, lower
Variables
If uvflag >= 2, variables common to wire linear motion, upper
Notes
Notes
Notes
Notes
Notes These variables are read from the both NCI Gcode 200 and 201
lines.