Professional Documents
Culture Documents
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
Product L L/M L/M/W L/M L L W W L/M/W L/M L/M L/M L/M/W L/M/W L/M W L L L/M/W L/M/W L/M/W L/M/W L L L L L L
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 sub_org_grp_id sub_org_inc sub_org_m1 m9 sub_org_mny_t sub_org_nst_flg sub_org_nxt_h sub_org_nxt_t sub_org_nxt_tid sub_org_op_id sub_org_ref_id sub_org_sec_no sub_org_totl_no sub_org_trnmthd sub_org_trns_id sub_org_trnstyp sub_org_trnsx sub_org_trnsy sub_org_trnsz sub_rd_level
L L L L L L L L L L L L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W L/M/W
L add_thdzclr
Variable Type Category Description
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
None
M/L arc_pitch
Variable Type Category Description
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
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 1
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
Calculated variable Break Provide the current value of cutpos2 flag during break up of move . See for cutpos2 values
None
L clmp_op
Variable Type Category Description Values
NCI variable Lathe Misc Ops - Chuck function information The selected Operation mode: Integer Clamp Un-clamp Re-position
None
0 1 2
Code Example Notes
L clmp_spindle
Variable Type Category Description Values 0 1 Code Example Notes
NCI variable Lathe Misc Ops functions information Active spindle for clamp/unclamp Integer Left Spindle Right Spindle Height
None
W contour_pos
Variable Type Category Description Values 0 1 2 Code Example Notes
NCI variable
Chain height button selected on the Contour parameters page Value XY Height Land Height UV Height
None
W contour_typ
Variable Type Category Description Values Code Example Notes
NCI variable
right)
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)
Full 360 degree arcs will be broken into two 180 degree moves. Any full 360 degree arcs will passed to the post processor.
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.
Value
error_msg
Variable Type Category Description Values 0 1 2
Post switch variable Post switch, Process modification Controls the display of error messages during post processing.
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)
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
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
None
M/L helix_arc
Variable Type Category Description
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.
helix_arc : 1 #Support helix output, 1=all planes, 2=XY plane only.
W landheight
Variable Type Category Description Values Code Example Notes
None
NCI variable
L miscops_mi1 - miscops_mi10
Variable Type Category Description
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
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 Category Description Code Example Notes
Command variable Command, Sub file 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 Category Description Values
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
None
Which value read is based on the active Mastercam configuration (CFG) setting, English or Metric
sprogname
Variable Type Category Description
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Stock advance feedrate for stock push/pull operation
See stck_appr_fr. Used with Lathe Stock Advance (BarFeed/Pull) function (NCI 902).
L stck_appr_fr
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Stock approach feedrate for stock push/pull operation
See stck_adv_fr. Used with Lathe Stock Advance (BarFeed/Pull) function (NCI 902).
L stck_chuk_end_dx
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Destination chuck X axis reference position after transfer
L stck_chuk_end_dz
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Destination chuck Z axis reference position after transfer
L stck_chuk_end_x
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Final X axis Chuck Position
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Final Z axis Chuck Position
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Destination chuck X axis reference position before transfer
L stck_chuk_st_dz
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Destination chuck Z axis reference position before transfer
L stck_chuk_st_x
Variable Type Category Description Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Initial X axis Chuck Position
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Initial Z axis Chuck Position
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Stock clearance value for stock pull operation
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.
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Grip length value for stock pull operation
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.
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 0 1 2 Code Example Notes
NCI variable Lathe Misc Ops functions information Stock advance operation method Integer Push stock Push stock with Use Tool Stop option Pull stock
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 0 1 Code Example Notes
NCI variable Lathe Misc Ops functions information Active spindle with stock to transfer Integer Left spindle Right Spindle
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 Values Code Example Notes
None
NCI variable Lathe Misc Ops functions information Tool X axis position for bar stop / puller.
sub_org_op_id
Variable Type Category Description
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
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
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
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
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
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
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 0 1 Code Example Notes
NCI variable Subprogram, V9 subprogram Subprogram absolute or incremental flag. Integer Absolute Incremental
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 Values 0 1 2 3 Code Example Notes
NCI variable Subprogram, V9 subprogram Transform subprogram transform type. Integer Mirror Rotate Scale (Not used) Translate
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 0 1 2 3 Code Example Notes
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
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.
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
None
2 3
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 0 1 Code Example Notes
NCI variable Subprogram, V9 subprogram Transform subprogram contains more than one tool. Integer Single tool in subprogram. Multiple tools in subprogram.
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
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 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 0 1
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
None
sub_rd_level
Variable Type Category Description Values -1 0 Greater than 0 Code Example Notes
Calculated variable Subprogram, V9 subprogram Current internal subprogram nested level Integer Non-transform subprogram The main output level (NC) Current internal nested subprogram level (output is buffered at toolchanges, use sub_level to get the current output level).
None
subfile
Variable Type Category Description Values 0 1 2 Code Example Notes
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.
See File Manipulation.pdf and How Subprograms Work.pdf for more information.
L tlstck_on
Variable Type Category Description Values 0 1 Code Example Notes
NCI variable Lathe Misc Ops functions information Retract or engage the tailstock Integer Retract tailstock operation Engage tailstock operation
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.
Do NOT call Tool Zero type postblocks Call Tool Zero type postblocks (if Tool # = 0)
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_wcs_m1 - t_wcs_m9
Variable Type Category Description Values Code Example Notes
None
NCI variable NCI, Working Coordinate System plane Working Coordinate System matrix.
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 Values 0 1 Code Example Notes
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) No, this is not a full arc Yes, this is a full arc move
None
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
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
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
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
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
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
Post dependent
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.
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 2 3 1 2 Arc move clockwise Arc move counterclockwise Plane position Cutter compensation gcode gcode plane cc, ccomp 0 40 41 42 140 3 4 5 6 7 8 9 10 Z position X position Absolute Z axis arc center Absolute X axis arc center (Not used) Feed rate Control flags Full arc flag fr cur_cflg full_arc_flg 0 1 NOT a full arc move Full arc move (360 deg. sweep) Positive Negative Feed rate in units per minute Feed rate in units per revolution znci, z xnci, x zc xc (relative to plane) (relative to plane) (Not used) Cutter compensation modal Cancel cutter compensation in the control Cutter compensation in the control = left Cutter compensation in the control = right Cancel cutter compensation last move in the contour
M 2 or 3 (Arc Move)
g 1 2 3 4 5 6 7 8 9
g 2 3 1 Arc move clockwise Arc move counterclockwise Plane position gcode gcode plane 0 XY plane 1 YZ plane 2 XZ plane 2 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 3 4 5 6 7 8 X position Y position Absolute X axis arc center Absolute Y axis arc center Z position Feed rate xnci, x ynci, y xc yc znci, z fr Positive Feedrate per minute Negative Feedrate per revolution -1 Unchanged -2 Rapid 9 10 Control flags Full arc flag cur_cflg full_arc_flg 0 1 NOT a full arc move Full arc move (360 deg. sweep) (relative to plane) (relative to plane)
22 Direct 4-axis lower guide arc move clockwise 23 Direct 4-axis lower guide arc move counterclockwise 1 2 (Not used) Wire compensation
gcode
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
3 4 5 6 7 8 9 10
X position Y position Absolute X axis arc center Absolute y axis arc center Z position Feed rate Wire taper Corner type
xnci, x ynci, y xc yc znci, z fr wt wc 0 1 2 3 4 5 Conical Sharp Constant Other Fixed Fishtail Positive Feedrate per minute -1 Unchanged (relative to plane) (relative to plane)
11 12 13
cur_cflg wc_rad warc_ctyp 0 Conical 1 Sharp 2 Constant 3 Other 4 Fixed 5 Fish Tail
14 15
See postblock
pstk_trans
See postblock
pstck_flip
stck_appr_fr stck_adv_fr
stck_chuk_st_z stck_chuk_st_x stck_chuk_end_z stck_chuk_end_x
feed rate that the bar puller uses while moving into position feed rate that the stock advances at
Chuck Z axis position before advance Chuck X axis position before advance Chuck Z axis position after advance Chuck x axis position after advance
See postblock
pstck_bar_fd
See postblock
pchuck
See postblock
ptailstock
See postblock
psteadyrest
corgy
(relative to view)
corgz
(relative to view)
cc_computer
9 10 11
spindle_no rpd_hght landheight contour_typ contour_pos 0 1 2 0, 1, 2, 3, 4 (left XY Height Land Height UV Height right)
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
# 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
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
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.)
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 MILL2.SET MILLPWR II - 3 AXIS Mill Post Post Text file for above post processor 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 MPLOKUMA.PST MPLOKUMA.TXT MPLHT42SP.PST MPLHT42SP.TXT LATHE2.SET HITACHI SEIKI HT20RIII Lathe Post Post Text file for above post processor OSP7000 (OSP-U100L) 2 AXIS OKUMA with LAP3 CYCLES Lathe Post Post Text file for above post processor HARDINGE CONQUEST T42SP Lathe Post Post Text file for above post processor 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 WIRE9.PNQ SODICK MARK30 Wire Post Post Text file for above post processor List of Post Numbered Questions used by Wire v9
[- end of document -]