Beruflich Dokumente
Kultur Dokumente
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
Variable Product
add_thdzclr L
arc_pitch L/M
breakarcs L/M/W
brk_cutpos2 L/M
clmp_op L
clmp_spindle L
contour_pos W
contour_typ W
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 W
miscops_mi1 mi10 L
miscops_mr1 mr10 L
mrg_subfile L/M/W
post_version L/M/W
pst_rpd_fr L/M/W
sprogname L/M/W
stck_adv_fr L
stck_appr_fr L
stck_chuk_end_dx L
stck_chuk_end_dz L
stck_chuk_end_x L
stck_chuk_end_z L
stck_chuk_st_dx L
stck_chuk_st_dz L
stck_chuk_st_x L
stck_chuk_st_z L
stck_clear L
stck_final_z L
stck_grip L
stck_init_z L
stck_op L
stck_spindle L
stck_tool_x L
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 L
tool_zero L/M/W
wfull_arc_flg W
L add_thdzclr
Variable Type Post switch variable
Category Thread
Description add_thdzclr adds the value thdzclr to thdz2 and zeroes thdzlcr.
This happens before pthread0 so the old post calculations
work out correctly.
Values Value
0 Off
1 On
Code Example None
Values
Notes
L clmp_spindle
Variable Type NCI variable
Category Lathe Misc Ops functions information
Description Active spindle for clamp/unclamp
Values Integer
0 Left Spindle
1 Right Spindle Height
Code Example None
Notes
W contour_typ
Variable Type NCI variable
Category
Notes
do_full_arc
Variable Type Post switch variable
Category Post switch, Arc
Description
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.
1 Any full 360 degree arcs will passed to the post processor.
Code Example do_full_arc : 1 #Allow full arc output data to post processor (PST)
Values Value
Code Example
Notes Reserved for right angle head support.
error_msg
Variable Type Post switch variable
Category Post switch, Process modification
Description Controls the display of error messages during post processing.
Values
Notes
L miscops_mi1 - miscops_mi10
Variable Type NCI variable
Category Lathe Misc Ops information, Misc integers
Description Miscellaneous integers entered in Custom Parameters values
dialog box. from within a Misc Ops function.
Values Integer value
Code Example None
Notes 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_end_z
Variable Type NCI variable
Category Lathe Misc Ops functions information
Description Final Z axis Chuck Position
Values
Notes 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 NCI variable
Category Lathe Misc Ops functions information
Description Destination chuck X axis reference position before transfer
Values
Notes 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 NCI variable
Category Lathe Misc Ops functions information
Description Initial Z axis Chuck Position
Values
Notes 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 NCI variable
Category Lathe Misc Ops functions information
Description Stock clearance value for stock pull operation
Values
Notes 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 NCI variable
Category Lathe Misc Ops functions information
Description Grip length value for stock pull operation
Values
Notes 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 NCI variable
Category Lathe Misc Ops functions information
Description Stock advance operation method
Values Integer
0 Push stock
1 Push stock with Use Tool Stop option
2 Pull stock
Code Example None
Notes See stck_clear and stck_grip. Used with Lathe Stock Advance
(Bar-Feed/Pull) function (NCI 902).
L stck_spindle
Variable Type NCI variable
Category Lathe Misc Ops functions information
Description Active spindle with stock to transfer
Values Integer
0 Left spindle
1 Right Spindle
Code Example None
Notes Used with Lathe Stock Transfer function (NCI 900), Lathe Stock
Flip function (NCI 901) and Lathe Stock Advance (Bar-
Feed/Pull) function (NCI 902).
L stck_tool_x
Variable Type NCI variable
Category Lathe Misc Ops functions information
Description Tool X axis position for bar stop / puller.
Values
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_grp_id
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Operation ID as seen in operation manager (The transform
operation ID when a Transform subprogram).
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_trns_id
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Non-transform: Not used.
Transform: Not used.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_sec_no
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description 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.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_totl_no
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Non-transform: Total number of instances, 1 based.
Transform: Total number of instances, 1 based.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_ref_id
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Non-transform: Reference, 0 = non-transform <0 = non-
transform being referenced by a transform somewhere else.
Transform: Reference, greater than 0 is a transform.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_chn_no
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Non-transform: Unique number for new chain/chain shift
Transform: iteration of transform, base 1
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_inc
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Subprogram absolute or incremental flag.
Values Integer
0 Absolute
1 Incremental
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_trnstyp
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Transform subprogram transform type.
Values Integer
0 Mirror
1 Rotate
2 Scale (Not used)
3 Translate
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_trnmthd
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Transform subprogram transform method.
Values On sub_trnstyp:
0 Mirror - 0=X axis, 1=Y axis, 2=ent. not par., 3=X and Y
1 Rotate - 0=tplane, 1=tplane origin only, 2-coordinates
2 Scale (Not used)
3 Translate - 0=tplane, 1=tplane origin only, 2-coordinates
Code Example None
Notes 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 NCI variable
Category Subprogram, V9 subprogram
Description Transform subprogram transform toolplane matrix.
Values Value
Code Example None
Notes 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 NCI variable
Category Subprogram, V9 subprogram
Description Transform subprogram transform method.
Values On sub_trnstyp:
0 Mirror -
sub_trnsx: Y mirror, X intersection
sub_trnsy: X mirror, Y intersection
sub_trnsz: not used
1 Rotate -
sub_trnsx: X center rotation
sub_trnsy: Y center rotation
sub_trnsz: Z center rotation
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_nxt_t
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Subprogram first tool in the transform group.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_nxt_h
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Subprogram first head number in the transform group.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_nxt_tid
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Subprogram first tool ID in the transform group.
Values Integer
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_mny_t
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Transform subprogram contains more than one tool.
Values Integer
0 Single tool in subprogram.
1 Multiple tools in subprogram.
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_org_nst_flg
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Flag indicates conditions on nested subprogram levels that do not
require a coordinate shift.
Values Integer
0 Shift should be applied to this subprogram call
1 Original copied source in nested chain
2 Source path in nested chain to new pattern
10 Single level nested call depth
100 All nested subprograms consist of separate subs
1000 All nested subprograms consist of incremental subs
Code Example None
Notes The first subprogram information read at the current nested level.
See How Subprograms Work.pdf for more information.
sub_seq_typ
Variable Type NCI variable
Category Subprogram, V9 subprogram
Description Subprogram sequence number control
Values Integer
0 No sequence numbering control
1 Resets the sequence number to seqno at the start of each
subprogram
Code Example None
Notes
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, 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
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, stck_chuk_st_z,
Calculated 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 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
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 miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5, miscops_mi6,
Variables 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 miscops_mi1, miscops_mi2, miscops_mi3, miscops_mi4, miscops_mi5, miscops_mi6,
Variables 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
Lathe Misc Ops NCI sample
1025
0000000000 Canned Text
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
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)
g 900 gcode
g 901 gcode
g 902 gcode
g 911 gcode
1 Miscellaneous real 1 miscops_mr1
2 Miscellaneous real 2 miscops_mr2
3 Miscellaneous real 3 miscops_mr3
4 Miscellaneous real 4 miscops_mr4
5 Miscellaneous real 5 miscops_mr5
6 Miscellaneous real 6 miscops_mr6
7 Miscellaneous real 7 miscops_mr7
8 Miscellaneous real 8 miscops_mr8
9 Miscellaneous real 9 miscops_mr9
10 Miscellaneous real 10 miscops_mr10
g 912 gcode
1 Miscellaneous integer 1 miscops_mi1
2 Miscellaneous integer 2 miscops_mi2
3 Miscellaneous integer 3 miscops_mi3
4 Miscellaneous integer 4 miscops_mi4
5 Miscellaneous integer 5 miscops_mi5
6 Miscellaneous integer 6 miscops_mi6
7 Miscellaneous integer 7 miscops_mi7
8 Miscellaneous integer 8 miscops_mi8
9 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
1 Operation id op_id
2 Finish spawned nocore_fin
from NoCore
3 Internal toolpath tool_op
opcode 74 Contour
75 Canned
76 No Core
77 Manual Entry
78 Point
79 4-axis
80 Transform
4 Construction cplnno
view number
5 X coordinate of corgx (relative to view)
construction
plane origin
6 Y coordinate of corgy (relative to view)
construction
plane origin
7 X coordinate of corgz (relative to view)
construction
plane origin
8 Cutter cc_computer
compensation in
computer
9 Work offset workofs
number
10 Metric is used met_tool
11 Punch, Die, Open pdo_type
flag 0 Punch
1 Die
2 Open
12 spindle_no
13 rpd_hght
14 landheight
15 Contour type contour_typ 0, 1, 2, 3, 4 (left right)
button selected
16 Chain height contour_pos 0 XY Height
button selected 1 Land Height
2 UV Height
L/ M/ W 1027 (Working Coordinate System)
g
1 2 3 4 5 6 7 8 9 10 11 12
g 1027 gcode
1 X vector X in WCS t_wcs_m1
2 X vector Y in WCS t_wcs_m2
3 X vector Z in WCS t_wcs_m3
4 Y vector X in WCS t_wcs_m4
5 Y vector Y in WCS t_wcs_m5
6 Y vector Z in WCS t_wcs_m6
7 Z vector X in WCS t_wcs_m7
8 Z vector Y in WCS t_wcs_m8
9 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
# --------------------------------------------------------------------------
# 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 #Allow full circle output? 0=no, 1=yes
helix_arc :0 #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)
Lathe:
HITACHI HITEC-TURN.PST HITACHI SEIKI HT20RIII Lathe Post
HITACHI HITEC-TURN.TXT Post Text file for above post processor
Wire:
MPWDSMK30.PST SODICK MARK30 Wire Post
MPWDSMK30.PST Post Text file for above post processor
[- end of document -]