You are on page 1of 93

Post Processors Whats new for Mastercam v9

This document contains details on changes to the MP


post language, changes to the Numbered Questions in Posts
and NCI file changes in Mastercam v9
For complete documentation on Mastercam Post Processors,
please contact your dealer about obtaining the Post Processor Docs CD.

Jump to

NEW Post files on the Mastercam v9 CD


Post Variables
Post Blocks (Lathe Misc Ops functions)
NCI information
Post changes for FULL ARCS and HELIX ARCS capability in v9
'TOOL_ZERO' command variable
FORCE function
ERROR_MSG command variable
Long Filenames for Post Processors

*SPECIAL NOTE* on Mastercam Wire v9 wire libraries

What the UPDATEPST9 post update utility does.


Post Variables (added or altered in PST file)
Post Numbered Questions (added or altered in PST file)
Language translation capabilities

New pre-defined MP variables for v9


Variable

Product

add_thdzclr

arc_pitch

L/M

breakarcs

L/M/W

brk_cutpos2

L/M

clmp_op

clmp_spindle

contour_pos

contour_typ

do_full_arc

L/M/W

drl_rot_vecx

L/M

drl_rot_vecy

L/M

drl_rot_vecz

L/M

error_msg

L/M/W

full_arc_flg

L/M/W

helix_arc

L/M

landheight

miscops_mi1 mi10

miscops_mr1 mr10

mrg_subfile

L/M/W

post_version

L/M/W

pst_rpd_fr

L/M/W

sprogname

L/M/W

stck_adv_fr

stck_appr_fr

stck_chuk_end_dx

stck_chuk_end_dz

stck_chuk_end_x

stck_chuk_end_z

stck_chuk_st_dx

stck_chuk_st_dz

stck_chuk_st_x

stck_chuk_st_z

stck_clear

stck_final_z

stck_grip

stck_init_z

stck_op

stck_spindle

stck_tool_x

sub_org_chn_no

L/M/W

sub_org_grp_id

L/M/W

sub_org_inc

L/M/W

sub_org_m1 m9

L/M/W

sub_org_mny_t

L/M/W

sub_org_nst_flg

L/M/W

sub_org_nxt_h

L/M/W

sub_org_nxt_t

L/M/W

sub_org_nxt_tid

L/M/W

sub_org_op_id

L/M/W

sub_org_ref_id

L/M/W

sub_org_sec_no

L/M/W

sub_org_totl_no

L/M/W

sub_org_trnmthd

L/M/W

sub_org_trns_id

L/M/W

sub_org_trnstyp

L/M/W

sub_org_trnsx

L/M/W

sub_org_trnsy

L/M/W

sub_org_trnsz

L/M/W

sub_rd_level

L/M/W

sub_seq_typ

L/M/W

subfile

L/M/W

t_orgin_x, y, z

L/M

t_wcs_m1 m9

L/M

tlstck_on

tool_zero

L/M/W

wfull_arc_flg

L add_thdzclr
Variable Type
Category
Description

Values

Post switch variable


Thread
add_thdzclr adds the value thdzclr to thdz2 and zeroes thdzlcr.
This happens before pthread0 so the old post calculations
work out correctly.
Value

Off

On

Code Example
Notes

None

See Lathe Threading Cycles.pdf for more information.

M/L arc_pitch
Variable Type
Category
Description

Values
Code Example
Notes

Calculated variable
Motion, Arc
The linear axis pitch distance of the helix motion
currently being processed. This is the distance the
linear axis would move in 360deg. sweep of the circular
motion of the helix.
signed value
None

See helix_arc for related information

breakarcs
Variable Type
Category
Description

Post switch variable


Post switch, Arc
Break arcs at the circle quadrants.
Break arcs to limit sweep angle to 180 degrees (added in v9)

Values
0

Arcs remain as they are read from the NCI file.

Arcs are broken at quadrants.


2 Arcs are broken so no segment is greater than 180 degrees of
sweep. (New in v9)
Code Example
Notes

breakarcs : 1 # Break arcs into quadrants

do_full_arc : 1 setting OVERRIDES the breakarcs setting.


See do_full_arc for related information.

brk_cutpos2
Variable Type
Category
Description

Values
Code Example
Notes

Calculated variable
Break
Provide the current value of cutpos2 flag during break up of
move .
See for cutpos2 values
None

See Break Up of Motion.pdf for more information.

L clmp_op
Variable Type
Category
Description
Values

0
1
2
Code Example
Notes

NCI variable
Lathe Misc Ops - Chuck function information
The selected Operation mode:
Integer
Clamp
Un-clamp
Re-position
None

L clmp_spindle
Variable Type
Category
Description
Values

NCI variable
Lathe Misc Ops functions information
Active spindle for clamp/unclamp
Integer

Left Spindle

Right Spindle Height

Code Example
Notes

None

Lathe chuck clamp/unclamp operation

W contour_pos
Variable Type

NCI variable

Category
Description
Values

Chain height button selected on the Contour parameters page


Value

XY Height

Land Height

UV Height

Code Example
Notes

None

W contour_typ
Variable Type

NCI variable

Category
Description
Values
Code Example
Notes

Contour type button selected on the Contour parameters page


0, 1, 2, 3, 4 (left right)
None

do_full_arc
Variable Type
Category
Description

Post switch variable


Post switch, Arc
Allow full circle (360 degree sweep) arc motion output.
(Only valid for toolpaths created in v9 or above)

Values
0

Full 360 degree arcs will be broken into two 180 degree moves.

Any full 360 degree arcs will passed to the post processor.

Code Example
Notes

do_full_arc : 1 #Allow full arc output data to post processor (PST)

See Break Up of Motion.pdf for more information.


do_full_arc : 1 setting OVERRIDES the breakarcs setting.
See breakarcs for related information.

M/L drl_rot_vecx, drl_rot_vecy, drl_rot_vecz


Variable Type
Category

Future development
Drill

Description
Values

Value

Code Example
Notes

Reserved for right angle head support.

error_msg
Variable Type
Category
Description

Post switch variable


Post switch, Process modification
Controls the display of error messages during post processing.

Values
0

send all error messages to an error log file (default setting)

send all error messages encountered to screen (No log file)

send only one error message of each type encountered to screen


(an error log file is also created with this setting)

Code Example
Notes

error_msg : 1

# Display error each error message only once

With a setting of 0 or 2, if errors are encountered during


posting an error log file is created and the user is prompted OK or
CANCEL. If OK is selected the error log file will be displayed in
the default text editor that is defined in the Mastercam
configuration (CFG) file.
Note: If error_msg is not defined in the PST, the default behavior
is the 0 setting.
The error log file will be placed in the NC file destination folder
with he same filename as the NC file, but with a .ERR filename
extension.

full_arc_flg
Variable Type
Category
Description

Values

Calculated variable
Motion, Arc motion
Flags if current arc is a full circle (360 deg. sweep)
in a single NC block. (new in v9)
Integer

No, this is not a full arc

Yes, this is a full arc

Code Example
Notes

None

See related do_full_arc and breakarcs.

M/L helix_arc
Variable Type
Category
Description

Values

Post switch variable


Post switch, Arc
Controls output of arcs when doing helix motion.
(added in v9)
Integer

Do not output arcs on helix motion. (linearize the motion)

Allow arc output on helix motion in all planes.

Allow arc output on helix motion in XY plane only.

Code Example
Notes

helix_arc : 1 #Support helix output, 1=all planes, 2=XY plane only.

See arc_pitch for related information.

W landheight
Variable Type

NCI variable

Category
Description

Landheight value from Contour parameters page

Values
Code Example
Notes

None

L miscops_mi1 - miscops_mi10
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Lathe Misc Ops information, Misc integers
Miscellaneous integers entered in Custom Parameters values
dialog box. from within a Misc Ops function.
Integer value
None

The miscellaneous integers are provided to allow custom support


in the post customization file. These may have specific meanings
based on how the post was written. Always open the post
customization file in an editor and read the comments on how the
post is using the miscellaneous integers.

L miscops_mr1 - miscops_mr10
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Lathe Misc Ops information, Misc reals
Miscellaneous reals entered in Custom Parameters values dialog
box. from within a Misc Ops function.
Decimal value
None

The miscellaneous reals are provided to allow custom support in


the post customization file. These may have specific meanings
based on how the post was written. Always open the post
customization file in an editor and read the comments on how the
post is using the miscellaneous reals.

mrg_subfile
Variable Type

Command variable

Category

Command, Sub file

Description
Code Example
Notes

Merge contents of all the subprogram output streams.


None

subout is automatically set to zero (merge to NC output).


See File Manipulation.pdf for more information.

post_version
Variable Type

Post data variable

Category
Description
Values

Code Example
Notes

Post version tag information


The value comes from the Post Numbered Question:
1999. Product major version number that post supports? 9
None

If the value entered in the post numbered question 1999


is less than the current product version, MP.DLL will
issue a warning that the post should be updated.

pst_rap_fr
Variable Type
Category
Description
Values

Post data variable


Feedrate
Rapid Feedrate setting.
Set from the Post Numbered Questions:
38. Rapid feedrate? 300.0
1538. Rapid feedrate (metric)? 10000.0

Code Example
Notes

None

Which value read is based on the active Mastercam


configuration (CFG) setting, English or Metric

sprogname
Variable Type
Category
Description

Values
Code Example
Notes

File name variable


NC file
The NC file name. This string variable outputs the program name
(NC file name) as typed or upper case depending on the value set
to progname.
String
pheader
#NC header information
sprogname

See Numeric Variables.pdf for more information.


This variable is intended to replace the command variable
progname.
The variable initialization setting of progname : 1 tells the post
to output the text string data in sprogname in UPPERCASE letters.

L stck_adv_fr
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Stock advance feedrate for stock push/pull operation

Values
Code Example
Notes

None

See stck_appr_fr. Used with Lathe Stock Advance (BarFeed/Pull) function (NCI 902).

L stck_appr_fr
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Stock approach feedrate for stock push/pull operation

Values
Code Example
Notes

None

See stck_adv_fr. Used with Lathe Stock Advance (BarFeed/Pull) function (NCI 902).

L stck_chuk_end_dx
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Destination chuck X axis reference position after transfer

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900)

L stck_chuk_end_dz
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Destination chuck Z axis reference position after transfer

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900)

L stck_chuk_end_x
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Final X axis Chuck Position

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe


Stock Flip function (NCI 901), Lathe Stock Advance (BarFeed/Pull) function (NCI 902) and Lathe Chuck function (NCI
903).

L stck_chuk_end_z
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Final Z axis Chuck Position

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901), Lathe Stock Advance (Bar-Feed/Pull)
function (NCI 902) and Lathe Chuck function (NCI 903).

L stck_chuk_st_dx
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Destination chuck X axis reference position before transfer

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900)

L stck_chuk_st_dz
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Destination chuck Z axis reference position before transfer

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900)

L stck_chuk_st_x
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Initial X axis Chuck Position

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901), Lathe Stock Advance (Bar-Feed/Pull)
function (NCI 902) and Lathe Chuck function (NCI 903).

L stck_chuk_st_z
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Initial Z axis Chuck Position

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901), Lathe Stock Advance (Bar-Feed/Pull)
function (NCI 902) and Lathe Chuck function (NCI 903).

L stck_clear
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Stock clearance value for stock pull operation

Values
Code Example
Notes

None

See stck_op. Used with Lathe Stock Advance (Bar-Feed/Pull)


function (NCI 902).

L stck_final_z
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Final Z position of the stock (Stock Transfer, Stock Flip, Stock
Advance), Tailstock or SteadyRest depending on Misc Ops
function.

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901), Lathe Stock Advance (Bar-Feed/Pull)
function (NCI 902), Lathe Tailstock function (NCI 904) and
Lathe SteadyRest function (NCI 905).

L stck_grip
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Grip length value for stock pull operation

Values
Code Example
Notes

None

See stck_op. Used with Lathe Stock Advance (Bar-Feed/Pull)


function (NCI 902).

L stck_init_z
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Initial Z position of the stock (Stock Transfer, Stock Flip, Stock
Advance), Tailstock or SteadyRest depending on Misc Ops
function.

Values
Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901), Lathe Stock Advance (Bar-Feed/Pull)
function (NCI 902), Lathe Tailstock function (NCI 904) and
Lathe SteadyRest function (NCI 905).

L stck_op
Variable Type
Category
Description
Values

NCI variable
Lathe Misc Ops functions information
Stock advance operation method
Integer

Push stock

Push stock with Use Tool Stop option

Pull stock

Code Example
Notes

None

See stck_clear and stck_grip. Used with Lathe Stock Advance


(Bar-Feed/Pull) function (NCI 902).

L stck_spindle
Variable Type
Category
Description
Values

NCI variable
Lathe Misc Ops functions information
Active spindle with stock to transfer
Integer

Left spindle

Right Spindle

Code Example
Notes

None

Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901) and Lathe Stock Advance (BarFeed/Pull) function (NCI 902).

L stck_tool_x
Variable Type
Category
Description

NCI variable
Lathe Misc Ops functions information
Tool X axis position for bar stop / puller.

Values
Code Example
Notes

None

Used with Lathe Stock Advance (Bar-Feed/Pull) function (NCI


902).

sub_org_op_id
Variable Type

NCI variable

Category

Subprogram, V9 subprogram

Description

Non-transform: subprogram #
Transform: subprogram #

Values
Code Example
Notes

Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_grp_id
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Operation ID as seen in operation manager (The transform
operation ID when a Transform subprogram).
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_trns_id
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Non-transform: Not used.
Transform: Not used.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_sec_no
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Non-transform: output sub = 1 iterate from base 1, valid > 0,
negative if copy in a transform.
Transform: output sub = 0 iterate from base 0, valid >=0.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_totl_no
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Non-transform: Total number of instances, 1 based.
Transform: Total number of instances, 1 based.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_ref_id
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Non-transform: Reference, 0 = non-transform <0 = nontransform being referenced by a transform somewhere else.
Transform: Reference, greater than 0 is a transform.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_chn_no
Variable Type
Category
Description

Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Non-transform: Unique number for new chain/chain shift
Transform: iteration of transform, base 1
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_inc
Variable Type
Category
Description
Values

NCI variable
Subprogram, V9 subprogram
Subprogram absolute or incremental flag.
Integer

Absolute

Incremental

Code Example
Notes

None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_trnstyp
Variable Type
Category
Description

NCI variable
Subprogram, V9 subprogram
Transform subprogram transform type.

Values

Integer

Mirror

Rotate

Scale (Not used)

Translate

Code Example
Notes

None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_trnmthd
Variable Type
Category
Description
Values

NCI variable
Subprogram, V9 subprogram
Transform subprogram transform method.
On sub_trnstyp:

Mirror - 0=X axis, 1=Y axis, 2=ent. not par., 3=X and Y

Rotate - 0=tplane, 1=tplane origin only, 2-coordinates

Scale (Not used)

Translate - 0=tplane, 1=tplane origin only, 2-coordinates

Code Example
Notes

None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_m1 sub_org_m9
Variable Type
Category
Description
Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Transform subprogram transform toolplane matrix.
Value
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_trnsx, sub_org_trnsy, sub_org_trnsz


Variable Type
Category
Description
Values

NCI variable
Subprogram, V9 subprogram
Transform subprogram transform method.
On sub_trnstyp:

Mirror sub_trnsx: Y mirror, X intersection


sub_trnsy: X mirror, Y intersection
sub_trnsz: not used

Rotate sub_trnsx: X center rotation


sub_trnsy: Y center rotation
sub_trnsz: Z center rotation

Scale (Not used)

Translate sub_trnsx: X trans. relative origin


sub_trnsy: Y trans. relative origin
sub_trnsz: Z trans. relative origin

Code Example
Notes

None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_nxt_t
Variable Type
Category
Description
Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Subprogram first tool in the transform group.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_nxt_h
Variable Type
Category
Description
Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Subprogram first head number in the transform group.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_nxt_tid
Variable Type
Category
Description
Values
Code Example
Notes

NCI variable
Subprogram, V9 subprogram
Subprogram first tool ID in the transform group.
Integer
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_mny_t
Variable Type
Category
Description
Values

NCI variable
Subprogram, V9 subprogram
Transform subprogram contains more than one tool.
Integer

Single tool in subprogram.

Multiple tools in subprogram.

Code Example
Notes

None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_org_nst_flg
Variable Type
Category
Description

Values

NCI variable
Subprogram, V9 subprogram
Flag indicates conditions on nested subprogram levels that do not
require a coordinate shift.
Integer

Shift should be applied to this subprogram call

Original copied source in nested chain

Source path in nested chain to new pattern

10
100
1000
Code Example
Notes

Single level nested call depth


All nested subprograms consist of separate subs
All nested subprograms consist of incremental subs
None

The first subprogram information read at the current nested level.


See How Subprograms Work.pdf for more information.

sub_seq_typ
Variable Type
Category
Description
Values

NCI variable
Subprogram, V9 subprogram
Subprogram sequence number control
Integer

No sequence numbering control

Resets the sequence number to seqno at the start of each


subprogram

Code Example
Notes

None

See How Subprograms Work.pdf for more information.

sub_rd_level
Variable Type
Category
Description
Values

Calculated variable
Subprogram, V9 subprogram
Current internal subprogram nested level
Integer

-1

Non-transform subprogram

The main output level (NC)

Greater than 0

Current internal nested subprogram level (output is buffered at


toolchanges, use sub_level to get the current output level).

Code Example

None

Notes

See How Subprograms Work.pdf for more information.

subfile
Variable Type
Category
Description
Values
0

Post switch variable


Sub files
Control use/creation of nested subprogram files.
Integer
Disabled

Open the file removing all contents.

Open the file and append to contents.

Code Example
Notes

See File Manipulation.pdf and How Subprograms Work.pdf for


more information.

L tlstck_on
Variable Type
Category
Description
Values

NCI variable
Lathe Misc Ops functions information
Retract or engage the tailstock
Integer

Retract tailstock operation

Engage tailstock operation

Code Example
Notes

Used with Lathe Tailstock function (NCI 904).

tool_zero
Variable Type
Category
Description

Post switch variable


Post switch, Process modification
Enable calling the Tool Zero type postblocks:
psof0, peof0, lsof0, leof0, msof0, meof0.

Values
0

Do NOT call Tool Zero type postblocks

Call Tool Zero type postblocks (if Tool # = 0)

Code Example
Notes

tool_zero : 1

# Do call Tool Zero type postblocks

The Tool Zero type postblocks are rarely used.


They are NOT required to be in a v9 PST file.
If you wish to use these postblocks, you must have
them defined, and tool_zero : 1 in the PST, so those
postblocks will be called (If current Tool# = 0).

t_origin_x, t_origin_y, t_origin_z


Variable Type
Category
Description

NCI variable
Global post variable
Working Coordinate System origin.

Values
Code Example
Notes

None

See t_wcs_m1 - t_wcs_m9

t_wcs_m1 - t_wcs_m9
Variable Type
Category
Description

NCI variable
NCI, Working Coordinate System plane
Working Coordinate System matrix.

Values
Code Example

None

Notes

The tool plane matrix is defined relative to the world coordinate


system
t_wcs_m1 through t_wcs_m3 represent the X vector
(X, X through X, Z).
t_wcs_m4 through t_wcs_m6 represent the Y vector
(Y, X through Y, Z).
t_wcs_m7 through t_wcs_m9 represent the Z vector
(Z, X through Z, Z).
See t_origin_x, t_origin_y, t_origin_z

W wfull_arc_flg
Variable Type
Category
Description

Post variable
Motion, Arc motion
Flags if current arc in the UV plane is a full circle
(360 deg. sweep) in a single NC block. (new in v9)

Values
0

No, this is not a full arc

Yes, this is a full arc move

Code Example
Notes

None

See related do_full_arc and breakarcs and full_arc_flg.

New postblocks for v9 (Lathe Misc Ops functions)


New postblocks have been added to support the Lathe Misc Ops functions in v9.
calls pstck_trans
calls pstck_flip
calls pstck_bar_fd
calls pchuck
calls ptailstock
calls psteadyrest

Also see Misc Ops NCI sample

NCI code = 900


NCI code = 901
NCI code = 902
NCI code = 903
NCI code = 904
NCI code = 905

L pstck_trans
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
900
Lathe Misc. Ops function
Lathe Stock Transfer
None
stck_spindle, stck_init_z, stck_final_z, stck_chuk_st_z, stck_chuk_st_x, stck_chuk_end_z,
stck_chuk_end_x, stck_chuk_st_dz, stck_chuk_st_dx, 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
Notes

Post dependent

pstck_flip
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
901
Lathe Misc. Ops function
Lathe Stock Flip
None
stck_spindle, stck_init_z, stck_final_z, stck_chuk_st_z, stck_chuk_st_x, stck_chuk_end_z,
stck_chuk_end_x
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
Notes

Post dependent

pstck_bar_fd
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
902
Lathe Misc. Ops function
Lathe Stock Advance (Bar-Feed/Pull)
None
stck_spindle, stck_op, stck_clear, stck_grip, stck_init_z, stck_final_z, stck_chuk_st_z,
stck_chuk_st_x, stck_chuk_end_z, stck_chuk_end_x
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
Notes

Post dependent

pchuck
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
903
Lathe Misc. Ops function
Lathe Chuck
None
clmp_spindle, clmp_op, stck_chuk_st_z, stck_chuk_st_x, stck_chuk_end_z,
stck_chuk_end_x
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
Notes

Post dependent

ptailstock
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
904
Lathe Misc. Ops function
Lathe Tailstock
None
tlstck_on, stck_init_z, stck_final_z
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
Notes

Post dependent

psteadyrest
Postblock Type
NCI Gcode
Category
Description
Dependencies
Assigned or
Calculated
Variables

Standard postblock
905
Lathe Misc. Ops function
Lathe SteadyRest
None
stck_init_z, stck_final_z
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
Notes

Post dependent

Lathe Misc Ops NCI sample


1025
0000000000

Canned Text

1020
NONE

Stock Parameters

4. 3.2 3.2 -2. 0. 0. 0 0. 0. 0. 0. 0 5000

9110. 0. 0. 0. 0. 0. 0. 0. 0. 0.
Misc Ops - Misc. Reals
9120 0 0 0 0 0 0 0 0 0
Misc Ops - Misc. Integers
900

0 -4. 2. 8. 1. -2. 0. 8. 1. -1.5 1.


Lathe Stock Transfer (pstck_trans)

The NCI 1025 , NCI 1020, NCI 911 and NCI 912 are always included with the
Misc Ops NCI 900, 901, 902, 903, 904, 905 data.
Note that the Lathe Stock Advance operation is the only Misc Ops function that
also generates Toolchange NCI information in the NCI data.

Whats new in the NCI file for v9


This section contains definitions of NCI data types that have been
added or altered in Mastercam v9. Altered information on NCI
types that existed prior to v9 are highlighted in yellow.

L 2 or 3 (Arc Move)
M 2 or 3 (Arc Move)
W 2, 3, 22, or 23 (Arc Move)
L 900 (Stock Transfer Misc Ops function)
L 901 (Stock Flip Misc Ops function)
L 902 (Stock Advance Misc Ops function)
L 903 (Chuck Misc Ops function)
L 904 (TailStock Misc Ops function)
L 905 (SteadyRest Misc Ops function)
L 911 (Misc Ops custom parameters - Reals)
L 912 (Misc Ops custom parameters - Integers)
W 1016 (Additional Miscellaneous Parameters)
L/ M/ W 1027 (Working Coordinate System)

L 2 or 3 (Arc Move)
g
1 2 3 4 5 6 7 8 9
g

Arc move
clockwise

gcode

Arc move
counterclockwise

gcode

Plane position

plane

Cutter compensation

cc,
ccomp

(Not used)
0

Cutter compensation modal

40

Cancel cutter compensation in the


control

41

Cutter compensation in the control


= left

42

Cutter compensation in the control


= right

140

Cancel cutter compensation last


move in the contour

Z position

znci, z

X position

xnci, x

Absolute Z axis arc


center

zc

(relative to plane)

Absolute X axis arc


center

xc

(relative to plane)

(Not used)

Feed rate

Control flags

cur_cflg

10

Full arc flag

full_arc_flg

fr

Positive
Negative

Feed rate in units per minute


Feed rate in units per revolution

NOT a full arc move

Full arc move (360 deg. sweep)

M 2 or 3 (Arc Move)
g
1 2 3 4 5 6 7 8 9
g

Arc move
clockwise

gcode

Arc move
counterclockwise

gcode

Plane position

plane

0 XY plane
1 YZ plane
2 XZ plane

Cutter compensation

cc,
ccomp

0 Cutter compensation modal


(no change)
40 Cancel cutter compensation in the
control
41 Cutter compensation in the control
= left
42 Cutter compensation in the control
= right
140 Cancel cutter compensation last
move in the contour

X position

xnci, x

Y position

ynci, y

Absolute X axis arc


center

xc

(relative to plane)

Absolute Y axis arc


center

yc

(relative to plane)

Z position

znci, z

Feed rate

fr

Positive Feedrate per minute


Negative Feedrate per revolution
-1 Unchanged
-2 Rapid

Control flags

cur_cflg

10

Full arc flag

full_arc_flg

NOT a full arc move

Full arc move (360 deg. sweep)

W 2, 3, 22, or 23 (Arc Move)


g
1 2 3 4 5 6 7 8 9 10 11 12 13 14
g

Arc move
clockwise

gcode

Arc move
counterclockwise

gcode

22 Direct 4-axis lower


guide arc move
clockwise

gcode

23 Direct 4-axis lower


guide arc move
counterclockwise

gcode

(Not used)

Wire compensation

cc,
ccomp

0 Wire compensation modal


(no change)
40 Cancel wire compensation in the
control
41 Wire compensation in the control
= left
42 Wire compensation in the control
= right
140 Cancel wire compensation last
move in the contour

X position

xnci, x

Y position

ynci, y

Absolute X axis arc


center

xc

(relative to plane)

Absolute y axis arc


center

yc

(relative to plane)

Z position

znci, z

Feed rate

fr

Positive Feedrate per minute


-1 Unchanged

Wire taper

10

Corner type

11

Control flags

wt
wc

Conical

Sharp

Constant

Other

Fixed

Fishtail

cur_cflg

12

Corner type radius

wc_rad

13

Arc type

warc_ctyp

0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fish Tail

14

Arc type radius

wcor_rad

15

Full arc flag

full_arc_flg

NOT a full arc move

Full arc move (360 deg. sweep)

L 900 (Stock Transfer Misc Ops function)


g
1 2 3 4 5 6 7 8 9 10 1
g

900

gcode
Active spindle for
stock to transfer

stck_spindle

0 main
1 sub

stck_init_z

Z coordinate on stock to be
transferred

stck_final_z

Z coordinate on transferred stock

stck_chuk_st_z

Source chuck Z axis reference


position before transfer

stck_chuk_st_x

Source chuck X axis reference


position before transfer

stck_chuk_end_z

Source chuck Z axis reference


position after transfer

stck_chuk_end_x

Source chuck X axis reference


position after transfer

stck_chuk_st_dz

Destination chuck Z axis reference


position before transfer

stck_chuk_st_dx

Destination chuck X axis reference


position before transfer

10

stck_chuk_end_dz

Destination chuck Z axis reference


position after transfer

11

stck_chuk_end_dx

Destination chuck X axis reference


position after transfer

See postblock pstk_trans

L 901 (Stock Flip Misc Ops function)


g
1 2 3 4 5 6 7
g
1

901

gcode
Active spindle for
stock to transfer

stck_spindle

0 main
1 sub

stck_init_z

Z coordinate on stock before flip

stck_final_z

Z coordinate on stock after flip

stck_chuk_st_z

Chuck Z axis position before flip


Chuck X axis position before flip

stck_chuk_st_x

stck_chuk_end_z

Chuck Z axis position after flip

stck_chuk_end_x

Chuck x axis position after flip

See postblock pstck_flip

L 902 (Stock Advance Misc Ops function)


g
1 2 3 4 5 6 7 8 9 10 11 12
g

902

gcode
Active spindle for
stock to transfer

stck_spindle

0 main
1 sub

stck_op

Push stock

Push stock with Use Tool Stop


option

Pull stock

stck_clear

Stock clearance (pull stock method)

stck_grip

Grip length (pull stock method)

stck_tool_x

Tool X axis position for bar stop /


puller

stck_init_z

Z coordinate of stock before advance

stck_final_z

Z coordinate of stock after advance

stck_appr_fr

feed rate that the bar puller uses


while moving into position

stck_adv_fr

feed rate that the stock


advances at

10

stck_chuk_st_z

Chuck Z axis position before


advance

11

stck_chuk_st_x

Chuck X axis position before


advance

12

stck_chuk_end_z

Chuck Z axis position after advance

13

stck_chuk_end_x

Chuck x axis position after advance

See postblock pstck_bar_fd

L 903 (Chuck Misc Ops function)


g
1 2 3 4 5 6
g

903

gcode

clmp_spindle

clmp_op

Active spindle for clamp/unclamp


0 Operation: Clamp
1 Operation: Un-clamp
2 Operation: Re-position

stck_chuk_st_z

Original Z axis Chuck Position

stck_chuk_st_x

stck_chuk_end_z

Final Z axis Chuck Position

stck_chuk_end_x

Final X axis Chuck Position

See postblock pchuck

Original X axis Chuck Position

L 904 (TailStock Misc Ops function)


g
1 2 3
g

904

gcode
tlstck_on

0 Retract tailstock operation


1 Engage tailstock operation

stck_init_z

Initial Z position of tailstock

stck_final_x

Final Z position of tailstock

See postblock ptailstock

L 905 (SteadyRest Misc Ops function)


g
1 2
g

905

gcode

stck_init_z

Initial steady rest position

stck_final_z

Final steady rest position

See postblock psteadyrest

L 911 (Misc Ops custom parameters - Reals)


g
1 2 3 4 5 6 7 8 9 10
g

911

gcode

Miscellaneous real 1

miscops_mr1

Miscellaneous real 2

miscops_mr2

Miscellaneous real 3

miscops_mr3

Miscellaneous real 4

miscops_mr4

Miscellaneous real 5

miscops_mr5

Miscellaneous real 6

miscops_mr6

Miscellaneous real 7

miscops_mr7

Miscellaneous real 8

miscops_mr8

Miscellaneous real 9

miscops_mr9

10

Miscellaneous real 10

miscops_mr10

L 912 (Misc Ops custom parameters - Integers)


g
1 2 3 4 5 6 7 8 9 10
g

912

gcode

Miscellaneous integer 1

miscops_mi1

Miscellaneous integer 2

miscops_mi2

Miscellaneous integer 3

miscops_mi3

Miscellaneous integer 4

miscops_mi4

Miscellaneous integer 5

miscops_mi5

Miscellaneous integer 6

miscops_mi6

Miscellaneous integer 7

miscops_mi7

Miscellaneous integer 8

miscops_mi8

Miscellaneous integer 9

miscops_mi9

10

Miscellaneous integer 10

miscops_mi10

W 1016 (Additional Miscellaneous Parameters)


g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
g

1016

gcode

Operation id

Finish spawned
from NoCore

nocore_fin

op_id

Internal toolpath
opcode

tool_op
74

Contour

75

Canned

76

No Core

77

Manual Entry

78

Point

79

4-axis

80

Transform

Construction
view number

cplnno

X coordinate of
construction
plane origin

corgx

(relative to view)

Y coordinate of
construction
plane origin

corgy

(relative to view)

X coordinate of
construction
plane origin

corgz

(relative to view)

Cutter
compensation in
computer

Work offset
number

cc_computer

workofs

10

Metric is used

met_tool

11

Punch, Die, Open


flag

pdo_type

12

Punch

Die

Open

spindle_no

13

rpd_hght

14

landheight

15

Contour type
button selected

contour_typ

16

Chain height
button selected

contour_pos

0, 1, 2, 3, 4 (left right)
0

XY Height

Land Height

UV Height

L/ M/ W 1027 (Working Coordinate System)


g
1 2 3 4 5 6 7 8 9 10 11 12
g
1

1027

gcode
X vector X in WCS

t_wcs_m1

X vector Y in WCS

t_wcs_m2

X vector Z in WCS

t_wcs_m3

Y vector X in WCS

t_wcs_m4

Y vector Y in WCS

t_wcs_m5

Y vector Z in WCS

t_wcs_m6

Z vector X in WCS

t_wcs_m7

Z vector Y in WCS

t_wcs_m8

Z vector Z in WCS

t_wcs_m9

10

X axis origin

t_origin_x

11

Y axis origin

t_origin_y

12

Z axis origin

t_origin_z

What the UPDATEPST9 post update utility does


Every MP-style PST from a version of Mastercam prior to v9 should be updated using
the post update utility UPDATEPST9.DLL This can be run as a C-Hook or from the
NC Utils Post Proc Update PST menu selection. This utility adds new variables
and numbered questions to the PST (post processor) file. In addition it adds default text
prompts to the TXT file associated to that PST.
( eg. MPFAN.PST would have an associated TXT file named MPFAN.TXT )
See Using the post text file.pdf

Post Variables (added to PST file by UPDATEPST9)


UPDATEPST9 Adds these new variable definitions
(helix_arc is NOT added to Wire posts)
do_full_arc : 0 #Allow full circle output? 0=no, 1=yes
helix_arc : 0 #Support helix arc output, 0=no, 1=all planes, 2=XY plane only
IMPORTANT information regarding do_full_arc and helix_arc

Post Numbered Questions (added or altered in PST file)


The Post Numbered Questions used by each product are also listed in the product specific
\POSTS directory in MILL9.PNQ, LATHE9.PNQ and WIRE9.PNQ
Numbered Questions added to ALL posts (Mill, Lathe and Wire)
1538. Rapid feedrate (metric)? 10000.0
1999. Product major version number that post supports? 9
# METRIC misc
1601. Default
1602. Default
1603. Default
1604. Default
1605. Default
1606. Default
1607. Default
1608. Default
1609. Default
1610. Default

reals entry fields


miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real
miscellaneous real

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1 (mr1) (metric)? 0.0


2 (mr2) (metric)? 0.0
3 (mr3) (metric)? 0.0
4 (mr4) (metric)? 0.0
5 (mr5) (metric)? 0.0
6 (mr6) (metric)? 0.0
7 (mr7) (metric)? 0.0
8 (mr8) (metric)? 0.0
9 (mr9) (metric)? 0.0
10 (mr10) (metric)? 0.0

# Enable misc reals entry fields


1611.
1612.
1613.
1614.
1615.
1616.
1617.
1618.
1619.
1620.

Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable

miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous

real
real
real
real
real
real
real
real
real
real

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1? y
2? y
3? y
4? y
5? y
6? y
7? y
8? y
9? y
10? y

# Enable misc integers entry fields


1621.
1622.
1623.
1624.
1625.
1626.
1627.
1628.
1629.
1630.

Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable

miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous

integer
integer
integer
integer
integer
integer
integer
integer
integer
integer

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1? y
2? y
3? y
4? y
5? y
6? y
7? y
8? y
9? y
10? y

Numbered Questions added to Lathe and Mill/Turn posts


# Enable LATHE misc integers entry fields
1631.
1632.
1633.
1634.
1635.
1636.
1637.
1638.
1639.
1640.

Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable

lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe

miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous

real
real
real
real
real
real
real
real
real
real

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1? y
2? y
3? y
4? y
5? y
6? y
7? y
8? y
9? y
10? y

# Enable LATHE misc reals entry fields


1641.
1642.
1643.
1644.
1645.
1646.
1647.
1648.
1649.
1650.

Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable
Enable

lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe
lathe

miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous

real
real
real
real
real
real
real
real
real
real

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1? y
2? y
3? y
4? y
5? y
6? y
7? y
8? y
9? y
10? y

# MINIMUM feedrate allowed when using Surface Finish type feed


3010. Minimum inch/revolution feedrate? .002
3011. Minimum mm/revolution feedrate? .05
# LATHE misc reals (METRIC)
3601.
3602.
3603.
3604.
3605.
3606.
3607.
3608.
3609.
3610.

Default
Default
Default
Default
Default
Default
Default
Default
Default
Default

miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous
miscellaneous

real
real
real
real
real
real
real
real
real
real

variable
variable
variable
variable
variable
variable
variable
variable
variable
variable

1 (mr1) (metric)? 0.0


2 (mr2) (metric)? 0.0
3 (mr3) (metric)? 0.0
4 (mr4) (metric)? 0.0
5 (mr5) (metric)? 0.0
6 (mr6) (metric)? 0.0
7 (mr7) (metric)? 0.0
8 (mr8) (metric)? 0.0
9 (mr9) (metric)? 0.0
10 (mr10) (metric)? 0.0

Numbered Questions added to WIRE posts


(**Version 8.1 and greater, N = None is no longer an option**)
The post update utility alters the optional text to remove the obsolete N option,
and if the setting was N, it will be changed to L.
1023. Auto entry(L=line, Y=line+arc, A=2lines+arc)? L
1024. Auto exit(L=line, R=arc, Y=line+arc, A=2lines+arc)? L
# Added METRIC settings to WIRE posts for version 9.0
4065.
4068.
4074.
4195.

Maximum step size for 4 axis wirepaths (metric)? 10000.0


Maximum UV axis distance from XY (metric)? 500.0
Minimum arc length (metric)? 0.005
Tool motion step_size (metric)? 5.0

Language translation using UPDATEPST9


Many new Post Numbered Questions are added to the PST file when updated. You can alter the text that
UPDATEPST9.DLL inserts. All the post numbered questions are contained in the UPDATEPST9.PNQ file.
This file can be found in the CHOOKS directory of the Mastercam installation. The text is the information
between the decimal point and the question mark. You can also change the answer to the question.
1611. Enable miscellaneous real variable 1? y

Note that post numbered questions that already exist in a PST will not be changed, even if that questions text
was altered in the PNQ file. Only numbered questions that would be new in the PST being updated are
effected. Header type comments are also inserted for the new numbered question sections. You can translate
these section comments by altering the text found at the end of the UPDATEPST9.TXT file under the
[pst_comments] section marker. (Lines numbered 5001. 5016.)
# -------------------------------------------------------------------------# Enable/Disable Miscellaneous Real Variable switches
in UPDATEPST9.TXT
# -------------------------------------------------------------------------1611. Enable miscellaneous real variable 1? y
in UPDATEPST9.PNQ

Using do_full_arc and helix_arc functionality.


The UPDATEPST9 post update utility adds these new variable definitions
to the PST file (helix_arc is not added to Wire posts)
do_full_arc : 0
helix_arc
:0

#Allow full circle output? 0=no, 1=yes


#Support helix arc output, 0=no, 1=all planes, 2=XY plane only

Since both variables are initialized to 0, NO changes will occur in the NC output from the post.
If you wish to enable either of these functions
ADDITIONAL changes to the PST will be required to almost every post processor!
These changes are not always complex. The code segment below shows the changes required in the
std. MPFAN.PST to output correct NC code when doing full arcs (do_full_arc = 1) or helix_arcs
(helix_arc = 1 or helix_arc = 2)
parc

#Select the arc output format


if arcoutput = zero | full_arc_flg |
i, j, k #Arc output for IJK
else,
[
#Arc output for R
if abs(sweep) <= 180 | arcoutput=one,
result = nwadrs(srad, arcrad)
else,
result = nwadrs(srminus, arcrad)
*arcrad
]

arc_pitch,

The post logic now checks to see if the full_arc_flg is true or if arc_pitch is true (non-zero).
If so, the post will output the arc motion using the I,J,K arc center format.
Note that the do_full_arc : 1 setting OVERRIDES the breakarcs setting.
See breakarcs for important related information.

Force function
New function force() has been added.
This function allows forcing the variable to output on the next output call and then modality is
reapplied from the format statement.
Output calls that reset this flag are: normal output, forced output(*), dependent output(`).
This function takes two arguments so a range of variables can be forced to output.
Argument one is the lower index position in the variable database and argument two is
the higher index in the variable database.
EX. result = force(x,z)
Forces out x, y, z on the next output call.
EX. result = force(x,x)
Forces out only x on next output call.
The selector variable of a string select table can be set to force and the string output is then forced on
the next output.
EX. result = force(gcode,gcode)
sgcode, e
(Note: Strings can't be directly forced with this function.)

Tool_Zero command variable.


Version 9 by default no longer calls the tool zero postblocks:
psof0, peof0, lsof0, leof0, msof0, meof0
These Tool Zero type postblocks are rarely used.
They are NOT required to be in a v9 PST file.
If you wish to use these postblocks, you must have
them defined, and tool_zero : 1 in the PST, so those
postblocks will be called (If current Tool# = 0).
See: Tool_Zero for more information.

Long filenames for Post Processors.


Long filenames are now supported by MP.DLL, MPL.DLL and MPWIRE.DLL .
The dialog text boxes in Mastercam Mill, Lathe and Wire have been expanded to
properly display these long filenames. Note that the useful size limit on the post processor
filenames that will be displayed in these areas of the system is 35 characters.

Attention! Mastercam Wire EDM users updating to Version 9


Do not use Version 8 Mitsubishi wire power settings libraries with Version 9.
Version 8 Mitsubishi libraries will create incorrect wirepath offsets if used with
Mastercam Wire Version 9.
Background
During Version 9 development, CNC Software changed the Mitsubishi power settings libraries to
display both wire radius and wire diameter values. The Version 9 Mitsubishi post processor will use the
radius value (TLRAD) instead of the diameter value (TLDIA) to accurately represent the wire offset
for each skim pass.
To update existing post processors
Post processor changes will be required if your post uses the TLDIA variable!
To alter existing wire post processors to work properly with the new wire library format in v9,
you will need to replace occurrences of the variable TLDIA with TLRAD in your PST file.
As always be sure to have a backup of the original PST file! You will also want to test the
revised post processor to ensure proper output of these wire offset values.
To convert existing Mitsubishi libraries
Use the Mits8to9.dll to convert Version 8 Mitsubishi libraries. This C-Hook will use values in the
Version 8 libraries to create libraries suitable for use with Version 9.

New Post Files on the Mastercam v9 CD


Mill:
MPGEN5X.PST
MPGEN5X.PSB
MPGEN5X.TXT

Configurable 5-axis Mill Post


Binary file REQUIRED by MPGEN5X.PST
Post Text file for above post processor

Search for this line in the MPGEN5X.PST for the list of configuration variables used
#These switches need to be set for this 5 axis post:
MPMILLPWR.PST
MPMILLPWR.TXT

MILLPWR II - 3 AXIS Mill Post


Post Text file for above post processor

MILL2.SET

An alternate 'stripped down' output Setup Sheet format


Note that MILL.SET has also been altered to provide
additional time and feedrate details. Output of these
details is controlled by variable settings in the SET file.

MILL9.PNQ

List of Post Numbered Questions used by Mill v9

Lathe:
HITACHI HITEC-TURN.PST
HITACHI HITEC-TURN.TXT

HITACHI SEIKI HT20RIII Lathe Post


Post Text file for above post processor

MPLOKUMA.PST
MPLOKUMA.TXT

OSP7000 (OSP-U100L) 2 AXIS OKUMA with


LAP3 CYCLES Lathe Post
Post Text file for above post processor

MPLHT42SP.PST
MPLHT42SP.TXT

HARDINGE CONQUEST T42SP Lathe Post


Post Text file for above post processor

LATHE2.SET

An alternate 'stripped down' output Setup Sheet format


Note that LATHE.SET has also been altered to provide
additional time and feedrate details. Output of these
details is controlled by variable settings in the SET file.

LATHE9.PNQ

List of Post Numbered Questions used by Lathe v9

Wire:
MPWDSMK30.PST
MPWDSMK30.PST

SODICK MARK30 Wire Post


Post Text file for above post processor

WIRE9.PNQ

List of Post Numbered Questions used by Wire v9

[- end of document -]

You might also like