MCAMX5 NCI Parameter Ref PDF
MCAMX5 NCI Parameter Ref PDF
NCI changes
Supporting new 1031/1032 lines
New & changed parameters
TECH libraries interface reference
Reference tables
NCI Gcodes
Tool information (20000s parameters)
Operation & toolpath parameters
Machine definition parameters
Control definition parameters
Machine group parameters
Quick StartNCI & Parameter Reference
How do I?
Click on each link to see step-by-step instructions plus sample code.
Capturing a string from a 10000s parameter
Capturing the value of a single 10000s parameter
Building a table of parameter values
Capturing a string from a 20000s line
Capturing all the parameters in a 20000s line and storing them in an array
Capturing a single parameter from a 20000s line
Capturing a range of parameters from a 20000s line
Implementing tool inspection for lathe grooves
Capturing machine definition parameters
Getting the entity ID
Capturing control definition parameters
Capturing machine group parameters
Doing a parameter dump: outputting all the parameters
Reading operation parameters from any postblock
Setting options for transform operation parameters
Reading parameters during the NCI pre-read routine
Mastercam X5
NCI & Parameter
Reference
October, 2010
Mastercam X5 NCI & Parameter Reference
Date: October, 2010
Copyright 2010 CNC Software, Inc. All rights reserved.
First Printing: October, 2010
Software: Mastercam X5
Part number: X5-PDF-NC
TERMS OF USE Use of this document is subject to the Mastercam End User License
Agreement. A copy of the Mastercam End User License Agreement is
included with the Mastercam product package of which this docu-
ment is part. The Mastercam End User License Agreement can also be
found at:
www.mastercam.com/legal/licenseagreement/
vii
Contents
1. Introduction......................................................................................................... 1
Contacting CNC Software ....................................................................... 1
Changes for X5 ................................................................................................. 3
Corrections......................................................................................................... 3
Changes to NCI Reference ................................................................................. 3
New NCI lines for Transform Custom Parameters .................................... 4
New and changed operation parameters .......................................................... 6
Mill / General parameters .......................................................................... 6
Lathe parameters ..................................................................................... 14
Wire parameters ....................................................................................... 22
2. Working with Parameters
and Toolpath Data.......................................................................................... 25
Working with NCI toolpath data ................................................................... 26
Working with operation (10000s) parameters ........................................... 27
Capturing values for 10000s parameters ......................................................... 28
Capturing a string from a 10000s parameter ........................................... 29
Capturing numeric values from 10000s parameters ................................ 30
Validating parameters with UpdatePost ......................................................... 33
Working with 20000s lines ........................................................................... 34
Capturing parameters from 20000s lines ........................................................ 35
Capturing a string from a 20000s line ...................................................... 36
Capturing numeric values from a 20000s line ......................................... 37
Lathe tool inspection comments ............................................................. 41
Working with machine definition, control definition,
and machine group parameters .................................................................... 44
Capturing machine definition parameters...................................................... 45
Getting the entity ID ................................................................................. 46
Capturing control definition parameters ........................................................ 48
Capturing machine group parameters ............................................................ 49
Advanced techniques for working with operation parameters ................. 51
Reading parameters during the NCI pre-read routine.................................... 51
Doing a parameter dump: outputting all the parameters............................... 52
Reading operation parameters from any postblock........................................ 54
Setting options for transform operation parameters ...................................... 55
viii MASTERCAM X5 / NCI & Parameter Reference
3. NCI Reference ................................................................................................. 57
NCI Gcodes ..................................................................................................... 58
tool_op$ codes ....................................................................................... 126
Control Flags Parameters............................................................................... 146
Tool information (20000s parameters)....................................................... 150
Mill/Router/Generic...................................................................................... 151
Lathe............................................................................................................... 158
Wire ................................................................................................................ 164
Parameters for custom interfaces.................................................................. 165
Common parameters ............................................................................. 166
Agievision parameters ............................................................................ 170
TECH library parameters ....................................................................... 190
Validating the post for custom interfaces .............................................. 193
4. Parameter Reference................................................................................. 195
Operation & toolpath parameters................................................................ 196
Common parameters..................................................................................... 196
Mill & Router parameters............................................................................... 214
Lathe parameters ........................................................................................... 281
Wire parameters............................................................................................. 309
Machine definition parameters ................................................................... 319
Machine definition: visual reference............................................................. 319
Machine Definition Manager ................................................................. 320
General machine parameters ................................................................. 321
Op. feed rate limits /axis motion/orientation tab............................. 321
Axis feed rate limits tab ....................................................................... 322
CPlane, WCS, HTC/VTL tab................................................................ 323
Coolant/Flushing/Options tab........................................................... 324
Tool/material libraries tab.................................................................. 325
Machine dynamics tab........................................................................ 326
Component geometry (common) .......................................................... 327
Solid geometry ..................................................................................... 327
Block geometry .................................................................................... 328
Cylinder geometry ............................................................................... 329
Extruded geometry .............................................................................. 330
Revolved geometry .............................................................................. 331
Position/Orientation tab..................................................................... 332
Component properties (individual) ....................................................... 333
Automatic tool changer parameters .................................................. 333
Chuck parameters................................................................................ 334
Chuck geometry (parametric) dialog box.......................................... 335
Chuck jaws parameters ....................................................................... 336
Bar stock parameters........................................................................... 337
Turret parameters................................................................................ 338
Turret geometry (parametric) dialog box .......................................... 339
Gang tool parameters.......................................................................... 340
Tailstock parameters ........................................................................... 341
Tailstock geometry .............................................................................. 342
Tailstock center parameters ............................................................... 343
Steady rest parameters........................................................................ 344
ix
Linear axis parameters ........................................................................ 345
Linear axis parameters (programmed motion)................................. 346
Rotary axis parameters........................................................................ 347
Tool spindle parameters ..................................................................... 348
Tool component parameters .............................................................. 349
Router spindle parameters ................................................................. 350
Router spindle position....................................................................... 351
Router piggyback spindle parameters ............................................... 352
Router piggyback spindle position..................................................... 353
Wire guide parameters ........................................................................ 354
Machine definition: list of parameters .......................................................... 354
Control definition parameters...................................................................... 382
Control definition: visual reference............................................................... 382
Overall parameters ................................................................................. 382
Tolerance page ....................................................................................... 383
Communications page ........................................................................... 384
Files page ................................................................................................ 385
NC Dialog page (MillLatheRouter) ..................................................... 386
NC Output page ...................................................................................... 387
Misc. Int/Real Values page ..................................................................... 388
Work System page .................................................................................. 389
Tool page (MillRouter) ......................................................................... 390
Tool page (Lathe) ................................................................................... 391
Linear page (MillRouter) ...................................................................... 392
Linear page (LatheMill/TurnWire) ..................................................... 393
Arc page (MillRouter) ........................................................................... 394
Arc page (LatheWire) ............................................................................ 395
Rotary page (MillRouterLathe) ........................................................... 396
Feed page (MillRouter) ......................................................................... 397
Feed page (Lathe) ................................................................................... 398
Feed page (Wire) .................................................................................... 399
Cutter Compensation page .................................................................... 400
Machine Cycles page (MillRouterLathe) ............................................ 401
Drill Cycles page (MillRouterLathe) ................................................... 402
Lathe Canned Cycles page (Lathe) ......................................................... 403
Subprograms page ................................................................................. 404
Start/Leads page (Wire) .......................................................................... 405
Cuts page (Wire) ..................................................................................... 406
Corner page (Wire) ................................................................................. 407
Corner page (Wire) ................................................................................. 408
Reverse Cuts Contour page (Wire) ......................................................... 409
Reverse Cuts Auxiliary page (Wire) ........................................................ 410
4-Axis Paths page (Wire) ......................................................................... 411
Nocore page (Wire) ................................................................................ 412
Control definition: list of parameters ............................................................ 412
Machine group parameters ......................................................................... 429
Machine group properties: visual reference.................................................. 429
Files tab (Machine Group Properties) .................................................... 430
Tool Settings tab (Machine Group Properties) ...................................... 431
Stock Setup tabMill/Router (Machine Group Properties) ................. 432
x MASTERCAM X5 / NCI & Parameter Reference
Stock Setup tabLathe (Machine Group Properties) ........................... 433
Safety Zone tab (Machine Group Properties) ........................................ 434
Machine group properties: list of parameters ............................................... 434
Quick Start
chapter 1
Introduction
Welcome to the Mastercam X5 NCI & Parameter Reference. This guide
documents the NCI Gcodes and operation parameters that together
encapsulate Mastercam operations and toolpaths. It serves two main
purposes:
A reference to all the parameters and NCI Gcodes.
Guidelines and Example:s for reading operation parameters,
including parameters for machine definitions, control
definitions, and machine groups.
This edition incorporates new features for Mastercam X5, introduced in
October, 2010. It includes the additional parameters used by new
toolpaths, as well as new parameter read functions.
Contacting CNC Software
Use the following websites to find information on Mastercam:
For assistance with installing Mastercam, its HASP or NetHASP, or to
obtain more information on using Mastercam, contact your local
Mastercam Reseller. If your Reseller is unavailable, you can call CNC
Technical Support Services Monday through Friday, 8:00 a.m.5:30 p.m.,
USA Eastern Standard Time.
When calling CNC Software for technical support, please follow these
guidelines:
Be sure you have already tried to contact your Mastercam
Reseller.
Provide the serial number of your HASP or NetHASP.
Be ready to describe the problem in detail. Write down what
happened, particularly if you cannot call immediately after the
problem occurs.
Be in front of your computer when you call.
If possible, try to duplicate the problem before calling. Our
Support Services technician may require you to duplicate the
problem while you are on the phone.
When you call, have ready a complete description of your
hardware, including your operating system (OS), central
processing unit (CPU), graphics card and settings, and
memory.
www.emastercam.com Mastercam global user forum
www.mastercam.com CNC Software, Inc. corporate website
www.mastercamedu.com CNC Software, Inc. Educational
Division website
2 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
You can also leave a message for CNC Support Services twenty-four hours a day, seven
days a week via our email or website addresses. When sending email, please include:
The serial number of your HASP or NetHASP
Telephone number and contact information where you can be reached
Files required to reproduce an issue, such as .MCX and post files
TIP: Use Mastercams Zip2Go utility to gather Mastercam part data into a
compressed .Z2G file. This utility makes it easy to provide your Reseller or CNC
Support Services with a file attachment that contains the information they need.
Zip2Go scans the machine groups in your current part file and captures informa-
tion such as your Mastercam configuration, machine definition, and post files. For
more information on using Zip2Go, please refer to the Mastercam Help.
Important Contact Information
Address CNC Software, Inc.
671 Old Post Road
Tolland, Connecticut, 06084-9970
USA
Phone (860) 875-5006
Fax (860) 872-1565
FTP Address ftp://ftp.mastercam.com
Internet Address http://www.mastercam.com
email [email protected]
INTRO / Changes for X5 3
Quick Start
Changes for X5
The following sections summarize the changes that have been made to this document
for Mastercam X5.
Corrections
M L R 81 : Start Drill Cycle changed U-V-W
M R L 1016 : Additional Miscellaneous Parameters, W 1016 : Additional
Miscellaneous Parameters corrected parameters 1 & 17
L M R 1018 : Subprogram Start Definition, L M R 1019 : Subprogram End
Definition corrected parameters 1 & 3
Corrections to the following parameter numbers: 1502615031; 10214; 13143/
13144; 15240; 12673
Changes to NCI Reference
See NCI Reference
starting on page 57.
The following NCI changes were made for Mastercam X5:
New predefined variables have been introduced for NCI 999 line: M R L W 999 :
Start of operation on page 101.
New NCI 20800 line: 20800 : Tool diameter for multiaxis comp in control on page
157.
Parameter added to NCI 1016 line: M R L 1016 : Additional Miscellaneous
Parameters on page 124.
New clmp_op$ value : L 903 : Chuck Misc Ops function on page 95.
Parameter 15 added to Wire NCI 1010 line: W 1010 : Wire Condition Change on
page 116
New NCI 1031 line: L M R W 1031 Custom reals for transform operations on page
143.
New NCI 1032 line: L M R W 1032 Custom ints for transform operations on page
144.
See New NCI lines for Transform Custom Parameters on page 4 for a detailed
article about implementing this feature and supporting the 1031/1032 lines.
Quick Start
Quick Start
Quick Start
Intro
4 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
New NCI lines for Transform Custom Parameters
One of the new features in Mastercam X5 is the ability to define custom parameters for
transform operations. You can define up to 4 integer parameters and 4 real (decimal)
parameters:
These work in much the same way as other custom parameters for drill operations and
misc operations. The following sections describe how to take advantage of this feature.
INTRO / Changes for X5 5
Quick Start
Defining the field labels
The Control Definition Manager includes a new Text page, called Transform Operation.
Use it to enter the desired labels for the fields:
Supporting the new parameters in your post
Two new NCI lines have been created to make the values available to your post:
1031 for the custom reals. This calls a new entry postblock, ptransreal$.
1032 for the custom integers. This calls a new entry postblock, ptransint$.
Each line has 10 parameters, even though in X5 only the first four are supported;
parameters 510 are for future use.
See L M R W 1031 Custom reals for transform operations on page 143 and L M R W 1032
Custom ints for transform operations on page 144.
6 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
New predefined variables have been created to store the values:
trans_mr1$trans_mr10$ for the custom reals
trans_mi1$trans_mi10$ for the custom integers
The new lines will be output following the 1020 lines. The new predefined variables will
retain their values until the next 1031/1032 is output. This means that the post writer
needs to reset them between transform operations, if desired.
Note that our generic posts will not contain any default implementation of the new
postblocks. Post writers need who want to use this feature in X5 will need to declare and
initialize the new postblocks from scratch.
New and changed operation parameters
See Parameter
Reference starting on
page 195.
This section lists the new and changed parameters for Mastercam X5. Each table in this
section shows only the new/changed parameters; please go to the Parameter Reference
chapter to see the complete tables.
Mill / General parameters
STL_COMPONENT
STL_COMPONENT_01
STL_COMPONENT_02
NC_DIALOG_MILL_CTRL
GROUP_PG2
OP_FEEDRATE_OPTIMIZATION
17952 Entity ID of Mastercam STL entity (new for X5)
17953 Entity ID of Mastercam STL entity (new for X5)
17954 Entity ID of Mastercam STL entity (new for X5)
18255 Not Used (removed for X5)
19122 Send tool to clear position to go home (lathe only)
(removed for X5)
15712 Is feed rate optimization on ? (new for X5)
15713 Use STL stock model ? (new for X5)
15714 Filename of STL stock model (new for X5)
15715 Draw STL option is selected (new for X5)
15716 Stock color (new for X5)
15717 STL color (new for X5)
PRM_HF_STOCK (new for X5)
15719 Z clearance (incremental) (new for X5)
INTRO / Changes for X5 7
Quick Start
PRM_HF_STOCK
PRM_VOL_INFO
15720 Stock (bitmap) tolerance (new for X5)
15721 Draw stock option is selected (new for X5)
15722 RAM (new for X5)
15723 Check for collisions option is selected (new for X5)
15724 Minimum collision volume (new for X5)
15725 Allow tool to cut outside the stock boundary option
is selected (new for X5)
PRM_VOL_INFO (new for X5)
15726 Minimum feed rate (new for X5)
15727 Maximum feed rate (new for X5)
15728 Maximum air cutting feed rate (new for X5)
15729 Up feed rate scale factor (new for X5)
15730 Down feed rate scale factor (new for X5)
15731 Calculated volume (new for X5)
15740 Highfeed stock model : minimum X coord (new for
X5)
15741 Minimum Y coord (new for X5)
15742 Minimum Z coord (new for X5)
15743 Highfeed stock model : maximum X coord (new for
X5)
15744 Maximum Y coord (new for X5)
15745 Maximum Z coord (new for X5)
15732 Highfeed reference tool : diameter (new for X5)
15733 Shape: FLAT_TL, SPH_TL, BULL_TL (new for X5)
15734 Corner radius (new for X5)
15735 Depth of cut (new for X5)
15736 Feedrate at depth (new for X5)
15737 Cross-section area of tool (derived value) (new for X5)
15738 Plunge rate (new for X5)
15739 Volume removal rate (new for X5)
8 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
OP_SMOOTHING_5D
OP_COMMON
PRM_CIRCMILL
15702 lower toolpath smoothing tolerancesame in all
directions (sphere) (new for X5)
15703 reserved for future use (new for X5)
15704 reserved for future use (new for X5)
15705 reserved for future use (new for X5)
15706 reserved for future use (new for X5)
15707 Overall smoothing on/off (new for X5)
15708 0 = advanced smoothing, 1 = simplified (new for X5)
15709 filtering level : 0 = no filtering, 1 = low, 2 = medium, 3 =
high (new for X5)
15710 Filtering on/off (new for X5)
15711 reserved for future use (new for X5)
15783 Indicates whether the tool uses the alternate index
position: (new for X5)
40282 Enable Semi-Finish passes option (new for X5)
40283 Enable Finish passes option (new for X5)
40284 Semi-finish override feed rate (new for X5)
40285 Semi-finish override spindle speed (new for X5)
40286 Use semi-finish override feed rate ? (new for X5)
40287 Use semi-finish override spindle speed ? (new for X5)
40288 Finish override feed rate (new for X5)
40289 Finish override spindle speed (new for X5)
40290 Use finish override feed rate ? (new for X5)
40291 Use finish override spindle speed ? (new for X5)
40292 Entry pass override feed rate (new for X5)
40293 Use entry pass override feed rate ? (new for X5)
40294 Exit pass override feed rate (new for X5)
40295 Use exit pass override feed rate ? (new for X5)
INTRO / Changes for X5 9
Quick Start
PRM_XFORM
PRM_XFORM_MIRROR
PRM_XFORM_ROTATE
40296 High speed entry angle, in radians (new for X5)
40297 Enable High speed entry option? (new for X5)
PRM_XFORM_MISC_OPS (new for X5)
15772 Remove comments option : 1 = strip out
comments from source operations (new for X5)
15746 SourceGeometry or SourceNCI.
1 = transform source ops geometry, 0 = transform
source ops NCI (new for X5)
15747 1 = create named views for transformed
toolplanes (new for X5)
15002 Look for pre-defined work offset #s when
xforming the Tplane (True/False) (removed for
X5)
15750 Reference point for X-axis/Y-axis/angle (new for X5)
15751 Reference point for X-axis/Y-axis/angle (new for X5)
15752 Reference point for X-axis/Y-axis/angle (new for X5)
15753 Angle (in degrees) (new for X5)
15782 Maintain start point : 1 = move the start point, 0 = use
the first entity (new for X5)
15059 Method generated (endpoint, midpoint, etc.) (Removed
for X5)
15060 Method generated (endpoint, midpoint, etc.) (Removed
for X5)
15061 T values (Removed for X5)
15062 T values (Removed for X5)
15063 T values (Removed for X5)
15064 T values (Removed for X5)
15065 Selected entities ID numbers (Removed for X5)
15066 Selected entities ID numbers (Removed for X5)
15754 Distance mode : 0 = Angle between option; 1 = Total
sweep option (new for X5)
15755 Type mode : 0 = rotate; 1 = translate-and-rotate (new
for X5)
15047 Method generated: endpoint, midpoint, etc. (removed
for X5)
15048 T values (removed for X5)
15049 T values (removed for X5)
15050 Selected entities ID number (removed for X5)
10 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_XFORM_TRANSLATE
PRM_XFORM_MISC_OPS
PRM_XFORM_VIEW002
PRM_NESTING
15754 Distance mode: 0 = Distance between option, 1 = Total
distance option (new for X5)
15755 Delta distance: X (new for X5)
15756 Delta distance: Y (new for X5)
15757 Delta distance: Z (new for X5)
15034 Method generated: endpoint, midpoint, etc. (removed
for X5)
15035 Method generated: endpoint, midpoint, etc. (removed
for X5)
15036 T values (removed for X5)
15037 T values (removed for X5)
15038 T values (removed for X5)
15039 T values (removed for X5)
15040 Selected entities ID number (removed for X5)
15041 Selected entities ID number (removed for X5)
15774 Transform operation custom parameters : integer #1
(new for X5)
15775 Transform operation custom parameters : integer #2
(new for X5)
15776 Transform operation custom parameters : integer #3
(new for X5)
15777 Transform operation custom parameters : integer #4
(new for X5)
15778 Transform operation custom parameters : real #1 (new
for X5)
15779 Transform operation custom parameters : real #2 (new
for X5)
15780 Transform operation custom parameters : real #3 (new
for X5)
15781 Transform operation custom parameters : real #4 (new
for X5)
15403 View origin (changed to 15749)
15749 View number at time of creation (changed for X5
used to be 15403)
15748 Check for duplicates... option is selected when saving
scrap (new for X5)
INTRO / Changes for X5 11
Quick Start
PRM_SRF_RGH_PROJECT
PRM_SRF_RGH_RESTMILL
PRM_SRF_FIN_PROJECT
PRM_2D_HMM
12111 NCI filename (removed for X5)
40241 When All previous operations are selected : 0 =
All groups, 1 = Machine group only, 2 = Toolpath
group only (new for X5)
12111 NCI filename (removed for X5)
40219 Dynamic pocket Ramp feed rate (new for X5)
40220 Dynamic pocket Dwell before cut spindle speed (new
for X5)
40221 Dynamic pocket entry ramp angle, in radians (new for
X5)
40222 Dynamic pocket entry pitch (new for X5)
40223 Gap size above top of stock ( Z clearance) (new for X5)
40224 Additional slot width for medial entry ramp (new for
X5)
40225 Dynamic pocket Ramp spindle speed (new for X5)
40226 Dynamic pocket Entry method (new for X5)
40227 Use Entry feeds/speeds ? (new for X5)
40228 Select Plunge angle or Entry pitch : 0 - use entry pitch,
1 - use plunge angle (new for X5)
40229 Select Center helix on point option : 1 - option is
selected (new for X5)
40230 Optimize cut order within pocket : 1 = optimize cut
order, 0 = use nearest cut (new for X5)
40231 Dynamic pocket Helix radius (new for X5)
40232 Dynamic pocket Trochoidal loop radius (new for X5)
40233 Dynamic pocket Micro lift distance (new for X5)
40234 Rest material : reference cutter Diameter (new for X5)
40235 Rest material : reference cutter Corner radius (new
for X5)
40236 Rest material : Stock resolution (3D bitmap spacing)
(new for X5)
40237 Remaining stock Adjustment distance (new for X5)
40238 Previous operation selected for rest material (new for
X5)
40239 Rest material defined as : 0-All previous operations, 1-
One other operation, 2-Roughing Tool, 3-CAD file, 4-
future use (new for X5)
12 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_SRF_HMM (X)
40240 Adjustment to remaining stock : 0-none, 1-decrease
(to ignore cusps), 2-increase machine cusps, 3-future
use (new for X5)
40241 When All previous operations are selected : 0 = All
groups, 1 = Machine group only, 2 = Toolpath group
only (new for X5)
40242 Is high efficiency machining available ?? (new for X5)
40243 1 = High Efficiency Machining option is selected (new
for X5)
40244 1 = High Radial Chip Thinning Only option is selected
(new for X5)
40245 HEM factor value (new for X5)
40246 Chip thickness value (new for X5)
40247 SFM value (new for X5)
40248 HEM feed rate (new for X5)
40249 HEM spindle speed (new for X5)
40250 HEM Stepover % (new for X5)
40251 Island taper angle value (new for X5)
40252 1 = Island facing option is selected (new for X5)
40253 Dynamic contour : Stock thickness (new for X5)
40254 Dynamic contour : Toolpath radius that shaped the
stock (new for X5)
40255 Dynamic contour : Stock thickness (new for X5)
40256 Island facing : Overlap % (new for X5)
40257 Island facing : Overlap amount (new for X5)
40258 Island facing : approach distance (new for X5)
40259 Island facing : Stock above islands amount (new for
X5)
40260 Number of contour finish passes (new for X5)
40261 Contour finish pass spacing (new for X5)
40299 0 = do not sort machining boundaries; 1 = do sort
machining boundaries (new for X5)
40300 0 = do not sort avoidance boundaries; 1 = do sort
avoidance boundaries (new for X5)
40301 1 = use islands to expand machining regions (new for
X5)
40302 Dynamic pocket bit flags (new for X5)
40303 0 = single region; 1 = multiple regions (new for X5)
12680 Sets the stock adjustment method (removed for X5)
40241 When All previous operations are selected : 0 = All groups,
1 = Machine group only, 2 = Toolpath group only (new for
X5)
40262 OptiRough : Trochoidal loop radius (new for X5)
INTRO / Changes for X5 13
Quick Start
PRM_STOCK_MODEL
40263 OptiRough : Additional slot width for medial entry ramp
(new for X5)
40264 Helix ramp depth (new for X5)
40265 OptiRough : Ramp feed rate (new for X5)
40266 OptiRough : Dwell before cut spindle speed (new for X5)
40267 Enable Stepup option (new for X5)
40268 Toolpath radius amount (new for X5)
40269 OptiRough : Micro lift distance (new for X5)
40270 OptiRough : Back feedrate (new for X5)
40271 Hybrid WS : limiting angle (slope transition) (new for X5)
40272 OptiRough : Ramp spindle speed (new for X5)
40273 Rough cut Cutting method : 0 = Climb, 1 = Conventional
(new for X5)
40274 1 = Add holder clearance to bottom of holder (new for X5)
40275 1 = Use core mill as raw passes, 0 = Use area mill as raw
passes (new for X5)
40276 Select Plunge angle or Entry pitch : 0 - use Entry pitch, 1 -
use Plunge angle (new for X5)
40277 Use Entry feeds/speeds ? (new for X5)
40278 Retract style, as follows: (new for X5)
40279 1 = Stepup option is selected (new for X5)
40280 Stepup rest boundary calculation method: 0 = Use pocket
bitmap subtraction algorithm, 1 = Use pocket boundary
subtraction algorithm (new for X5)
40298 Sliver thickness (stock thinner than this value will vanish);
applied when Mill vertical walls option is selected (new
for X5)
15758 reserved for stock model operation (new for X5)
15759 reserved for stock model operation (new for X5)
15760 reserved for stock model operation (new for X5)
15761 reserved for stock model operation (new for X5)
15762 reserved for stock model operation (new for X5)
15763 reserved for stock model operation (new for X5)
15764 reserved for stock model operation (new for X5)
14 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_SRF_FLOW5AX
PRM_SRF_4AX
PRM_SWARF_5AX
PRM_MSURF_5AX
PRM_SLICE_5AX
PRM_PORT_5AX
PRM_CIRCLE_5AX
PRM_MINTILT
Lathe parameters
OP_COMMON_LATHE
15765 reserved for stock model operation (new for X5)
15766 reserved for stock model operation (new for X5)
15767 reserved for stock model operation (new for X5)
15768 reserved for stock model operation (new for X5)
15769 reserved for stock model operation (new for X5)
15770 reserved for stock model operation (new for X5)
15771 reserved for stock model operation (new for X5)
40281 5-axis comp in control value (new
for X5)
40281 5-axis comp in control value (new for X5)
40281 5-axis comp in control value (new for X5)
40281 5-axis comp in control value (new for X5)
40281 5-axis comp in control value (new for X5)
40281 5-axis comp in control value (new for X5)
40281 5-axis comp in control value (new for X5)
40217 Shank and holder clearancestock to leave
separation from part (new for X5)
40218 Number of tool vectors which cant find a satisfactory
tilt, if any (new for X5)
13458 Retract clearance for lathe canned toolpaths (new for X5)
INTRO / Changes for X5 15
Quick Start
PRM_LROUGH
PRM_LCUTOFF_FS
PRM_LFINISH
PRM_LATHE_EE
PRM_LATHE_EE_VEC003
PRM_LTOOL_INSPECT (new for X5)
13566 Exit distance (new for X5)
13438 Front clearance angle for plunging (note: this is in
radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for plunging
(new for X5)
13458 0= retract at feed rate, 1= rapid retract (not currently
used) (new for X5)
13460 Retract feed rate (not currently used) (new for X5)
13461 Retract feed rate typeR = per revolution, M = per
minute (not currently used) (new for X5)
13582 Rapid retract? True = rapid, false = feed rate. (new
for X5)
13506 Use variable depth? (not currently used) (new for
X5)
13507 Variable depth angle (not currently used) (new for
X5)
13568 Radius at which to apply the secondary feed rate (new for X5)
13569 Change feed rate at selected radius ?? (new for X5)
13570 Change spindle speed at selected radius ?? (new for X5)
13571 New feed rate to apply (new for X5)
13572 New spindle speed to apply (new for X5)
13573 Is new spindle speed CSS ? (new for X5)
13438 Front clearance angle for plunging (note: this is
in radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for
plunging (new for X5)
PRM_LATHE_EE_VEC003 Entry vector, plunge finish (new for X5)
PRM_LATHE_EE_VEC004 Exit vector, plunge finish (new for X5)
13519 Lead-out vector angle (cosine) (new for X5)
13520 Lead-out vector angle (sine) (new for X5)
13521 Arc (new for X5)
13522 Arc (new for X5)
16 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_LATHE_EE_VEC004
13523 Lead-out arc radius (new for X5)
13524 Arc (new for X5)
13525 Lead-out arc sweep (radians) (new for X5)
13526 Use entry/exit vector (True/False) (new for X5)
13527 Use entry/exit arc (True/False) (new for X5)
13528 Amount to extend/shorten the first/last move in
toolpath (new for X5)
13529 Extend/shorten first/last move in toolpath enabled
(True/False) (new for X5)
13530 Retraction vector: 1 = rapid, 0 = feed (new for X5)
13531 Exit vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular (new for X5)
13532 Retraction vector: feed rate (new for X5)
13533 Retraction vector feed rate type: R = feed/rev, M =
feed/minute, S = same as toolpath (new for X5)
13534 Use auto entry/exit (True/False) (new for X5)
13535 Minimum auto entry length (new for X5)
13536 Adjust contour first/last entities (True/False) (new for
X5)
13537 Amount to lengthen/shorten contour first/last entity
(new for X5)
13538 Use amount to lengthen/shorten contour first/last
entity (True/False) (new for X5)
13539 Length of line added to contour first/last entity (new
for X5)
13540 Angle of line added to contour first/last entity (new for
X5)
13541 Add a line perpendicular to contour first/last entity
(True/False) (new for X5)
13542 Lead-out vector angle (cosine) (new for X5)
13543 Lead-out vector angle (sine) (new for X5)
13544 Arc (new for X5)
13545 Arc (new for X5)
13546 Lead-out arc radius (new for X5)
13547 Arc (new for X5)
13548 Lead-out arc sweep (radians) (new for X5)
13549 Use entry/exit vector (True/False) (new for X5)
13550 Use entry/exit arc (True/False) (new for X5)
13551 Amount to extend/shorten the first/last move in
toolpath (new for X5)
13552 Extend/shorten first/last move in toolpath enabled
(True/False) (new for X5)
13553 Retraction vector: 1 = rapid, 0 = feed (new for X5)
INTRO / Changes for X5 17
Quick Start
PRM_LGROOVE
PRM_GROOVE_SHAPE
PRM_LTOOL_INSPECT
13554 Exit vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular (new for X5)
13555 Retraction vector: feed rate (new for X5)
13556 Retraction vector feed rate type: R = feed/rev, M =
feed/minute, S = same as toolpath (new for X5)
13557 Use auto entry/exit (True/False) (new for X5)
13558 Minimum auto entry length (new for X5)
13559 Adjust contour first/last entities (True/False) (new for
X5)
13560 Amount to lengthen/shorten contour first/last entity
(new for X5)
13561 Use amount to lengthen/shorten contour first/last
entity (True/False) (new for X5)
13562 Length of line added to contour first/last entity (new
for X5)
13563 Angle of line added to contour first/last entity (new for
X5)
13564 Add a line perpendicular to contour first/last entity
(True/False) (new for X5)
13458 (not currently used) (new for X5)
13581 (not currently used) (new for X5)
13137 Groove defintion type: 0 = 1 point, 1 = 2 point,
2 = 3 line, 3 = 2 boundary method (chain) (moved for
X5)
13363 Spline linearization tolerance (was 10305) (moved
for X5)
13138 Groove cut direction: 0 = OD, 1 = ID, 2 = face,
3 = back, 4 = angle (moved for X5)
10307 Groove angle (moved for X5)
13415 1 = Implement Tool Inspection stop (moved for X5)
13416 Tool inspection position: 0 = Home position, 1 = User
defined (moved for X5)
13417 1 = Enable stop after Each groove (moved for X5)
13418 1 = Enable stop after Each depth cut (moved for X5)
13419 1 = Enable stop after specified Number of plunges
(moved for X5)
13420 1 = Enable stop after specified Length of time in cut
(see 13457) (moved for X5)
18 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_GROOVE_ROUGH
13421 1 = Enable stop after specified Length of cut (see
13459) (moved for X5)
13422 Number of passes or cuts between stops (moved for
X5)
13427 1 = Enable tool inspection comment (moved for X5)
13428 Text string for tool inspection comment (moved for
X5)
13429 1 = Enable the Use reference points option on tool
inspection retract and approach moves (moved for
X5)
13430 Type of retract position for tool inspection: 1 =
absolute, 0 = incremental (moved for X5)
13431 1 = Enable retract move in world X axis (typically this
appears in the dialog box as Z) (moved for X5)
13432 1 = Enable retract move in world Y axis (typically this
appears in the dialog box as X or D). (moved for X5)
13433 1 = Enable retract move in world Z axis. (moved for
X5)
13434 World X coordinate of tool inspection coordinates
(typically this appears in the dialog box as Z). This
could be absolute or incremental (see 13430). (moved
for X5)
13435 World Y coordinate of tool inspection coordinates
(typically this appears in the dialog box as X or D). This
is always output as a radius value. This could be
absolute or incremental. (see 13430) (moved for X5)
13436 (not currently used) (moved for X5) (moved for X5)
13437 1 = Enable stop after First plunge (moved for X5)
13457 Length of time (in seconds) between stops, when 13420
= 1 (new for X5)
13459 Distance between stops, when 13421 = 1 (new for X5)
13462 Stop between cuts : 1= Only between passes option,
0= Exact length and time option (stop between cuts)
(new for X5)
13463 Lead-in/out distance for mid-cut tool inspection
(when 13462=0) (new for X5)
13464 min distance from end of pass to do tool inspection in
mid cut (when 13462=0) (new for X5)
13406 1 = Enable First Plunge Feed Rate option (moved for
X5)
13407 Feed rate of first cut to depth (moved for X5)
13408 Feed rate type of first cut to depth: R = feed/rev, M =
feed/minute (note: output is the ASCII code for R or M)
(moved for X5)
INTRO / Changes for X5 19
Quick Start
PRM_GROOVPRM_GROOVE_FINISH
PRM_LPLUNGE
PRM_PLUNGE_ROUGH
13240 Finish backoff (moved for X5)
13241 Backoff type: 0 = invalid (pre v9.1), 1 = percent of tool
width, 2 = distance (moved for X5)
13403 Finish dwell type: 0 = none, 1 = seconds, 2 = revolutions
(moved for X5)
13404 Finish dwell time (seconds) (moved for X5)
13405 Finish dwell (revolutions) (moved for X5)
13409 1 = Enable Finish feed rate option (moved for X5)
13410 Finish feed rate (moved for X5)
13411 Finish feed type: R = feed/rev, M = feed/minute,
S=surface finish (micro-in or micron) (note: output is
the ASCII code for R/M/S) (moved for X5)
13412 1 = Enable Finish spindle speed option (moved for
X5)
13413 Finish spindle speed (moved for X5)
13414 Finish spindle speed mode: 1 = CSS, 0 = RPM (moved
for X5)
13425 Finish groove overlap position: 0 = User-selected
position, 1 = middle of groove (moved for X5)
13426 Overlap distance: used when overlap is in the middle of
the groove (moved for X5)
PRM_GROOVE_SHAPE (new for X5)
PRM_PLUNGE_ROUGH (new for X5)
PRM_PLUNGE_FINISH (new for X5)
PRM_LTOOL_INSPECT (new for X5)
13475 Retract type : 1= rapid, 2= at feed rate (new for X5)
13476 Feed rate for retract (new for X5)
13477 Type of retract feed rate : R= per rev, M= per minute
(new for X5)
13465 1 = Rough the groove option selected (new for X5)
13466 1 = Finish each groove before roughing next option
selected (new for X5)
13467 First pass cut direction: 0 = positive, 1 = negative, 2 =
center start (not used), 3 = chain direction (new for
X5)
13468 Depth of cut (amount) (new for X5)
13469 Depth of cut (% of tool) (new for X5)
13470 Min cut depth (amount) (new for X5)
13471 Min cut depth (% of tool) (new for X5)
13472 Stock to leave in X (new for X5)
20 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_PLUNGE_FINISH
13473 Stock to leave in Z (new for X5)
13474 1= Zig-zag cut (new for X5)
13478 Spindle transition dwell type : 0 = none, 1 = seconds, 2
= revolutions (new for X5)
13479 Dwell time (seconds) (new for X5)
13480 Dwell (revolutions) (new for X5)
13481 1 = Cleanup steps option selected (new for X5)
13482 Maximum step size before cleanup is neededpercent
of tool width (new for X5)
13483 Prevent hanging ring selection :0 = do nothing, 1 =
remove in both directions, 2 = remove positive, 3 =
remove negative (new for X5)
13484 Step size as % of tool width (new for X5)
PRM_LATHE_EE (new for X5)
13485 Plunge feed rate (new for X5)
13486 Plunge feed rate type : R = per rev, M = per minute
(new for X5)
13487 Plunge spindle speed (new for X5)
13488 Plunge spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13489 Turn feed rate (new for X5)
13490 Turn feed rate type : R = per rev, M = per minute (new
for X5)
13491 Turn spindle speed (new for X5)
13492 Turn spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13493 Approach clearance distance (new for X5)
13494 Stock clearance distance (new for X5)
13495 Enable Finish groove option (new for X5)
13496 Enable back offset number option (new for X5)
13497 Back offset number to use (new for X5)
13498 Stock to leave in X (new for X5)
13499 Stock to leave in Z (new for X5)
13500 Tool deflection backoff distance (new for X5)
13501 Approach clearance distance (new for X5)
13502 Cut direction: 0 = positive, 1 = negative (new for X5)
13503 Plunge dwell type : 0 = none, 1 = seconds, 2 =
revolutions (new for X5)
13504 Dwell time (seconds) (new for X5)
13505 Dwell (revolutions) (new for X5)
PRM_LATHE_EE (new for X5)
13509 Plunge feed rate (new for X5)
INTRO / Changes for X5 21
Quick Start
PRM_LCUTOFF
PRM_LCAN_ROUGH
PRM_LSTOCK_XFER
PRM_LSTOCK_FLIP
13510 Plunge feed rate type : R = per rev, M = per minute
(new for X5)
13511 Plunge spindle speed (new for X5)
13512 Plunge spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13513 Turn feed rate (new for X5)
13514 Turn feed rate type : R = per rev, M = per minute (new
for X5)
13515 Turn spindle speed (new for X5)
13516 Turn spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13517 Prevent hanging ring selection :0 = do nothing, 1 =
remove in both directions, 2 = remove positive, 3 =
remove negative (new for X5)
13518 Stock clearance distance (new for X5)
13574 1= get Entry amountFrom stock option
(new for X5)
13575 1= get Retract radiusFrom stock option
(new for X5)
13576 1= get Clearance Cut > Entry amount
From stock option (new for X5)
13577 Back Face Stock amount (new for X5)
PRM_LCUTOFF_FS (new for X5)
13438 Front clearance angle for plunging (note: this is in
radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for plunging
(new for X5)
13579 Clearance distance: X (new for X5)
13580 Clearance distance: Z (new for X5)
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
22 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
PRM_LBARFEED
PRM_LPARKTURRET
PRM_LCHUCK_CLAMP
Wire parameters
PRM_WIRE_COMMON
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
13439 Create X-axis move? (new for X5)
13440 Type of X-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13441 X-axis coordinate position (new for X5)
13442 Create Y-axis move? (new for X5)
13443 Type of Y-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13444 Y-axis coordinate position (new for X5)
13445 Create Z-axis move? (new for X5)
13446 Type of Z-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13447 Z-axis coordinate position (new for X5)
13448 Wait code #1 (new for X5)
13449 Wait code #2 (new for X5)
13450 Wait code #3 (new for X5)
13451 Wait code #4 (new for X5)
13452 Wait code #5 (new for X5)
13453 Wait code #6 (new for X5)
13454 Wait code #7 (new for X5)
13455 Wait code #8 (new for X5)
13456 Tool call type : mill or lathe (new for X5)
13508 For operations created by the cutoff/pickoff C-Hook,
this is the index number of the operation (new for X5)
13567 For pickoff operations created by the cutoff/pickoff C-
Hook, this is the stock clearance value (new for X5)
14186 Agie Wire Diameterused to get value to temp pocket
op (new for X5)
14187 Agie Wire Diameterused to get finish value to temp
pocket op (new for X5)
INTRO / Changes for X5 23
Quick Start
PRM_WIRE_EE
PRM_WIRE_EE002
PRM_WIRE_EE003
PRM_WIRE_CONTOUR
14188 Stop on tab cut?? (new for X5)
14189 Distance from end of tab to stop (new for X5)
14190 Stop on tab cut?? (new for X5)
14191 Distance from end of tab to stop (new for X5)
19192 Stop on tab cut?? (new for X5)
14193 Distance from end of tab to stop (new for X5)
14194 Reset trimmed leads (new for X5)
14195 Reset power pass when taper applied/canceled (new for
X5)
24 MASTERCAM X5 / NCI & Parameter Reference
Quick Start
Quick Start
chapter 2
Working with Parameters
and Toolpath Data
MP posts get information about your part in two ways:
Toolpath data. This consists of calculated tool motions, feeds
and speeds, and commands such as spindle on/off and coolant
on/off.
Operation parameters. These are the raw values entered in your
Mastercam dialog boxes when you create toolpaths.
Toolpath data is by far the most important. This information is stored in
a generic machine-neutral format called NCI (NC Intermediate). When
you post your operations, Mastercam writes this data to a separate
ASCII file with a .NCI extension. It is read from here by your post. Every
line in the NCI file is processed automatically.
Operation parameters contain all the data in the actual operation
structures associated with each toolpath operation in Mastercam, plus a
complete record of machine definition, control definition, and machine
group properties. They are used to supplement the information from
the NCI file. Operation parameters are only available if you explicitly tell
your post to go get them and provide storage for them.
Each piece of NCI data or operation parameter has a unique numbered
code. The following table summarizes the types of information that are
available and how each is accessed:
Table 1: Where your post gets its data from
Type of data Codes How is it processed? Source of data
Toolpath data
(individual tool
movements, tool
change, planes/
orientation)
01999 Multiple parameters for each code,
automatically saved to predefined
variables.
Each code processed by associated
entry postblock.
NCI file
Tool parameters,
material info,
comments, other
information about
your operation.
2000029999 All 20000s codes automatically
processed by pparameter$ postblock.
Desired parameters must be
individually trapped and saved to user-
defined variables.
Operation
parameters
1000016999; 40000 With pwrttparam$ when pre-read is
enabled; otherwise, with pparameter$.
MCX file
MD/CD/machine
group settings
MD: 1700017999
CD: 1800018999
Machine grp: 1900019999
Use individual commands to call
pmachineinfo$.
26 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Working with NCI toolpath data
The NCI file is organized in two-line groups.
See NCI Gcodes
starting on page 58 to see
a complete list of all the
NCI Gcodes.
The first line contains a single value. This is the NCI Gcode. It tells Mastercam
what type of command this is and how to interpret the second line. NCI Gcodes
on page 58 lists all of the possible NCI Gcodes.
The second line contains parameters for the NCI Gcode. For Example:, if the first
line is the NCI Gcode for a linear motion command, the second line would
contain the X, Y, and Z coordinates, feed rate, and other information that MP
needs to successfully process the command.
This Example: shows an actual NCI line set for a rapid move (G0):
0
0 2.375 2.375 2.5 2. 0
Definition:
g (NCI Gcode)
1 2 3 4 5 6 (six parameters)
Where:
g 0: Linear Move at Rapid Feed Rate (NCI Gcode)
1 Cutter Compensation
2 Final X position
3 Final Y position
4 Final Z position
5 Feed rate settings
6 Contour flag
The post executable stores these parameter values in the appropriate predefined MP
variables, performs additional calculations to generate values for other predefined
variables that are commonly used for the NCI Gcode type being processed, and performs
any routines enabled by the post customization file for the NCI Gcode typefor
Example:, breaking an arc at its quadrants.
NCI Gcodes are automatically processed by your post. MP automatically selects the
proper postblock for you. All the parameters are automatically stored in predefined
variables, where they can be accessed by any postblock.
Customizing these postblocks is outside the scope of this manual. However, this book
includes a complete reference of all the NCI Gcodes and their parameters in NCI Gcodes
starting on page 58.
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with operation (10000s) parameters 27
Quick Start
Working with operation (10000s)
parameters
Operation parameters are numbered from 1000016999, and above 30000. Operation
parameters:
See Operation &
toolpath parameters
starting on page 196 for
lists of all the possible
parameters.
contain all the data in the actual operation structures associated with each
toolpath operation in Mastercam.
constitute an operation-by-operation record of the NC parameters as they are
entered in the toolpath dialog boxes, plus a complete record of machine
definition, control definition, and machine group properties.
values can be integers, real values, or strings.
Beginning with Mastercam X3, operation parameters are directly available to MP. This is
a change from earlier versions of Mastercam, in which parameters needed to be written
to an .OPS file before they could be read by the post. MP includes a number of functions
that you can use to query the value of the parameters that you are interested in.
Beginning with Mastercam X4, operation parameters can also be numbered in the
40000s range. This is necessary to accomodate new parameters as new toolpaths and
other functionality is added to Mastercam. In addition, the 30000 series has been
reserved for parameters that might be defined and used by C-Hook developers. At
present, though, there are still very few such parameters, and the term 10000s
parameters should be understood as including 30000 and 40000 parameters also.
Continue reading Capturing values for 10000s parameters to learn how to extract these
parameters.
NOTE: The following sections describe how to access parameter values using
the pparameter$ postblock. These sections apply to operation parameters in
the 1000016999 range, and above 30000s tool parameters. See Working with
machine definition, control definition, and machine group parameters on page 44 to
learn about accessing the 1700019990 parameters.
28 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Capturing values for 10000s parameters
Since most parameters do not have predefined variables associated with them, your post
needs to have a routine to extract the parameter values before you can use them.
Mastercam provides the following building blocks that you can use to construct these
routines:
See Reading
parameters during
the NCI pre-read
routine on page 51 to
learn about using
pwrttparam$ instead of
pparameter$.
a single common postblock pparameter$, that cycles through all the
parameters and reads their values
a numeric variable prmcode$ whose value is automatically set to the current
parameter number as it is being read
a string variable sparameter$ that holds the parameter value as a single string
For Example:, if you are create a feature-based pocket toolpath, parameter 12780 is the
number of tools that are used. So prmcode$ would equal 12780, while sparameter$
might equal 3, if the FBM operation used three tools.
The postblock pparameter$ is called repeatedly for each set of prmcode$ and
sparameter$ that is read from the MCX file.
To capture a specific parameter value, then, follow this general outline:
Use the reference section of this manual to identify the number of the parameter
you need to capture.
Create a user-defined variable to store the value of each parameter. This should
be either a numeric variable or string to match the parameter.
Modify the pparameter$ postblock to trap each desired prmcode$ value, and
store each value in the proper variable.
The following sections give you step-by-step procedures and Example:s for accessing
each type of parameter:
Capturing a string from a 10000s parameter
Capturing the value of a single 10000s parameter
Building a table of parameter values
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with operation (10000s) parameters 29
Quick Start
Capturing a string from a 10000s parameter
The vast majority of operation parameters are numeric values. Common strings such as
CW or CCW are typically encoded as sets of numeric values, such as 0 or 1. However,
a few parameters, such as file names, are true string values.
How do I...? How do I...?
Capturing a string from a 10000s parameter
See Operation &
toolpath parameters
starting on page 196 for a
complete list.
1 Find the number of the 10000s parameter with the desired string.
2 Define a string variable to store the value.
s_my_string : # Stores the string
3 Find the pparameter$ postblock and add a line of the following form:
if prmcode$ = 1xxxx, s_my_string = sparameter$
where 1xxxx is the actual number of the parameter.
4 Create a separate line like this for each individual parameter that you wish to
capture.
Example
Example 1: Getting a string from a 10000s parameter
This Example: shows how to get the name of the NCI file, which is available as
parameter 15107.
snci_file # Define a string
pparameter$ # Predefined parameter postblock
if prmcode$ = 15107, snci_file = sparameter$
30 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Capturing numeric values from 10000s parameters
To extract a numeric value from the parameter, first get the string from sparameter$,
then use the rpar function to convert it to a number. The target of rpar is the numeric
variable that will store the parameter value. This can be either a user-defined variable or
a predefined variable.
You can also use the fprm function to build tables of parameters and efficiently populate
them. For Example:, you can define tables of parameters for different operation types,
and then only populate the tables for operations that are actually posted.
How do I...? How do I...?
Capturing the value of a single 10000s parameter
Use the rpar function to retrieve all the parameters from a 20000s line. It will store
them in an array of user-defined variables.
See Operation &
toolpath parameters
starting on page 196 for a
complete list.
1 Find the number of the desired 10000s parameter.
2 Create a user-defined numeric variables to store the value.
# Define a numeric variable to store the parameter value
var1 : 0
If you wish, you can also use a pre-defined variable.
3 Go to your pparameter$ postblock and use the rpar function to retrieve the
values, pointing it to the variable:
if prmcode$ = 1xxxx, var1 = rpar(sparameter$, 1)
Example
Example 2: Getting the value of a single 10000s parameter
This Example: uses rpar toto get the value of parameter 10042, which is the
program number.
# Define a numeric variable to store the parameter value
my_prog_num : 0
pparameter$ # Predefined parameter postblock
if prmcode$ = 10042, my_prog_num = rpar(sparameter$, 1)
# Capture the 1st numeric value in the parameter string
How do I...? How do I...?
Building a table of parameter values
MP includes a parameter table function that lets you efficiently extract several
parameters and store them in a table. You can then use the fprm function to
retrieve values for all of the parameters in a single statement. The parameter
numbers do not need to be in consecutive order.
In addition to operation parameters, you can also use this technique to build tables
of machine definition, control definition, or machine group parameters. The only
difference is:
To get operation parameters, place the fprm statement in the pparameter$
postblock.
To get MD/CD/group parameters, place the fprm statement in the
pmachineinfo$ postblock.
Quick Start
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with operation (10000s) parameters 31
Quick Start
Follow these steps:
1 Define a set of variables to hold the desired parameter values. These can be
either strings or numeric variables, or any combination.
2 Define an additional numeric variable to hold the result of the fprm function
(this is only a success or fail value, not the value of any specific parameter)
Your set of variables should look something like this:
string1 : 0 # User-defined string variables
string2 : 0
var1 : 0 # User-defined numeric variables
var2 : 0
var3 : 0
result : 0 # Variable to hold fprm return value
3 Use the fprmtbl function to build the table.
a On the first line, place the fprmtbl statement followed by a number that
identifies the table, and another number that indicates how many
parameters are in the table.
b On the next lines, list the parameter numbers you want to capture, followed
by the name of the variable where the value will be stored. Indent each line.
For Example::
fprmtbl 2 5 # Table Number, Size
10000 string1 # Toolpath ID (string)
10001 string2 # Tool String
10002 var1 # Tool Number
10003 var2 # Tool Dia. Offset Number
10004 var3 # Tool Length Number
4 In the pparameter$ postblock (or pmachineinfo$, for MD/CD/group
parameters), place the fprm function.
The fprm function needs to refer to the number of the table, as defined in the
fprmtbl statement:
pparameter$ # Predefined parameter postblock
result = fprm(2)
The function returns 1 if the table is found, and 0 if the table is not found.
Storing parameters by opcode$ valueA common technique is to define tables of
parameters for different operation types, numbering each table with the opcode$ of the
operation it refers to. You can then use a statement like this:
pparameter$ # Predefined parameter postblock
result = fprm(opcode$)
to automatically load parameters in the proper table that corresponds to the current
operation.
Example
Example 3: Building a table of parameter values (fprmtabl & fprm)
The following Example: uses the pmachineinfo$ postblock to build a table of
machine definition parameters.
axis_label : 0 # Axis label - 1=X,2=Y,3=Z
rot_zero : 0 # Rotary zero degree position
rot_dir : 0 # Rotary direction
32 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
rot_index : 0 # Index or continuous
rot_angle : 0 # Index step
rot_type : 0 # Rotary type
min_speed : 0 # Minimum spindle speed
maxfrinv : 0 # Maximum feedrate - inverse time - inch
maxfrinv_m : 0 # Maximum feedrate - inverse time - metric
maxfrdeg : 0 # Maximum feedrate deg/min
maxfeedpm : 0 # Limit for feed in inch/min
maxfeedpm_m : 0 # Limit for feed in mm/min
all_cool_off : 0 # First coolant off command shuts off
# ALL coolant options
result : 0 # return value for fprm function
# Machine Definition Parameters
fprmtbl 17000 14 # Table Number, Size
# Param Variable to load value into
17391 axis_label # Axis label - 1=X,2=Y,3=Z
17401 rot_zero # Rotary zero degree position
17402 rot_dir # Rotary direction
17408 rot_index # Index or continuous
17409 rot_angle # Index step
17410 rot_type # Rotary type
17605 min_speed # Minimum spindle speed
17662 maxfrinv # Maximum feedrate - inverse time - inch
17670 maxfrinv_m # Maximum feedrate - inverse time - metric
17665 maxfrdeg # Maximum feedrate deg/min
17643 maxfeedpm # Limit for feed in inch/min
17651 maxfeedpm_m # Limit for feed in mm/min
17101 all_cool_off # First coolant off command shuts off
# ALL coolant options
pmachineinfo$ #Machine information parameters postblock
if prmcode$ >= 17000 & prmcode$ < 18000, result = fprm(17000)
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with operation (10000s) parameters 33
Quick Start
Validating parameters with UpdatePost
The UpdatePost C-Hook included with Mastercam X4 includes routines that search for
references to specific parameter numbers and validates them against known changes. If
your original post tries to read a parameter with a number that has changed, the
following line will be written to the updatepost.log file:
PARAMETER DATA - - Possibly incorrect parameter number detected:
17665. Please check the parameter number.
When you see this message, look up the parameter number in the tables in Parameter
Reference starting on page 195 and make sure that your post is actually referencing the
parameter that you want.
IMPORTANT: UpdatePost only looks at parameter numbers in fprm tables.
Postlines that are inside postblocksfor Example::
pparameter$
if prmcode$ = 10068, z_stock = rpar(sparameter$, 1)
are not validated. If either pparameter$ or pwrttparam$ is used, you will be
alerted so that you can manually check these postblocks.
34 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Working with 20000s lines
The 20000s parameters are similar to the 10000-series parameters, except that they are
written directly to the NCI file. The information is written just prior to the actual tool
change NCI Gcodes (1000, 1001 and 1002) as a two line sets of NCI lines. The first line
gives the parameter number, and the second line gives the value of the parameter. For
Example::
See Tool information
(20000s parameters)
starting on page 150 for a
list of each 20000-series
parameter as well as the
type of value(s) it contains.
20001
1/4 FLAT ENDMILL
20002
20003
20004
1 10 1 0 0.25 0. 0. 180. 1 1 6.4176 6.4176 6.4176 2139 1 4
20006
0 50. 50. 25. 25. 0. 0. 0.
20007
0. 2. 3. 2.5 0.25 2. 1. 0 100. 25. 0
20008
0. 0. 1. 0 0. 0. 0 0. 0.
Traditionally, these are called tool information parameters because that was their sole
original purpose, but in more recent versions of Mastercam their use has been expanded
to include other types of data. In general, they are now used for any information about an
operation that MP needs to read from the NCI file, instead of retrieved from the MCX file
like other operation parameters.
The 20000 lines include integers, real values, or strings. In the Example: above, the 20001
parameter contains only a single value, a string that is the tool name. However, the 20004
parameter, which encodes the tool definition, contains a series of 16 values. Each value
represents a different tool definition parameter.
Continue reading Capturing parameters from 20000s lines to learn how to extract these
parameters.
NOTE: Beginning with Mastercam X, 20000s lines are also written for null tool
changes; in previous versions, these were only written for actual tool changes.
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with 20000s lines 35
Quick Start
Capturing parameters from 20000s lines
Unlike the 01999 NCI Gcodes, parameters written out with a 20000s line do not have
predefined variables associated with them. This means that your post needs to have a
routine to extract the parameter values before you can use them. You can use many of
the same building blocks that are available for extracting 10000s parameters to extract
200000s parameters:
a single common postblock pparameter$, is automatically called as each
20000s line is read from the NCI file.
a numeric variable prmcode$ whose value is automatically set to the 20000s
NCI Gcode as it is being read.
a string variable sparameter$ that holds the parameter value(s) as a single
string.
To capture a specific parameter value, then, follow this general outline:
Use the reference section of this manual to identify the specific number of the
20000s line you need to capture.
Create a user-defined variable to store the value of each parameter. This should
be either a numeric variable or string to match the parameter.
Modify the pparameter$ postblock to trap each desired NCI value, and store
each parameter value in the proper variable.
Some 20000s lines are accompanied by only a single string value, while others have
several numeric variables. The following sections give you step-by-step procedures and
Example:s for capturing each type of parameter:
Capturing a string from a 20000s line
Capturing numeric values from a 20000s line
36 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Capturing a string from a 20000s line
Use the pparameter$ postblock to capture strings that are written out to the NCI file on
20000s lines. Follow these steps:
How do I...? How do I...?
Capturing a string from a 20000s line
1 Find the number of the 20000s line with the desired string.
See Tool information (20000s parameters) starting on page 150 for a complete
list.
2 Define a string variable to store the value.
s_my_string : # Stores the string
3 Find the pparameter$ postblock and add a line of the following form:
if prmcode$ = 2xxxx, s_my_string = sparameter$
where 2xxxx is the actual number of the 20000s line.
4 Create a separate line like this for each individual parameter that you wish to
capture.
Example
Example 4: Getting a string from a 20000s line
This Example: shows how to get the name of the tool plane, which is output on line
20012.
stool_plane # Define a string
pparameter$ # Predefined parameter postblock
if prmcode$ = 20012, stool_plane = sparameter$
# Capture the parameter string
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with 20000s lines 37
Quick Start
Capturing numeric values from a 20000s line
Recall that 20000s lines can contain a series of values, which can be either integer or real
values. In this case, the value of sparameter$ will be a string that contains a series of
values separated by spaces. For Example:, this is what is written to the NCI file for a 20004
line (20004 contains tool definition parameters):
20004
1 10 0 0 0.2 0. 0. 45. 1 1 0. 0. 0. 0 8 4
To use these values, you must capture the string and pull out the desired values. There
are separate functions for each of the following tasks:
capturing all of the values from the string
capturing a single value from the string (X3 or later)
capturing a range of values from the string (X3 or later)
Each is described in the following Example:s.
NOTE: The functions to capture a single parameter and a range of parameters
were introduced in Mastercam X3. If you are using Mastercam X2 or earlier, you
need to capture all of the parameters. Follow the steps in Capturing all the param-
eters in a 20000s line and storing them in an array.
How do I...? How do I...?
Capturing all the parameters in a 20000s line and storing them in an array
Use the rpar function to retrieve all the parameters from a 20000s line. It will store
them in an array of user-defined variables.
1 Go to Tool information (20000s parameters) starting on page 150.
a Look up the desired 20000s line number.
b See how many values are included in the output string.
2 Create a series of unique, user-defined numeric variables to store the results
one variable for each value in the string.
# User-defined numeric variables
# (This creates an implied array)
var1 : 0
var2 : 0
var3 : 0
var4 : 0
var5 : 0
3 Go to your pparameter$ postblock and use the rpar function to retrieve the
values, pointing it to the first variable in the list:
if prmcode$ = 2xxxx, var1 = rpar(sparameter$, 5)
where:
2xxxx is the actual number of the 20000s line
var1 is the first variable in your array
5 is the actual number of variables in your array
Quick Start
38 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Example
Example 5: Capturing all the values from a 20000s line (rpar)
This Example: uses rpar to get the aggregate head parameters from the 20008 line.
There are 8 values output with this particular line.
# Numeric variables to hold '20008' agg head parameters
# Do NOT change the order of these (9) variable definitions !
hd_ax_x : 0 # Head axis in X
hd_ax_y : 0 # Head axis in Y
hd_ax_z : 0 # Head axis in Z
hd_body_typ : 0 # Head body type
hd_body_dia : 0 # Head body diameter
hd_body_len : 0 # Head body length
stat_body_typ : 0 # Station body type
stat_body_dia : 0 # Station body diameter
stat_body_len : 0 # Station body length
pparameter$ #Read operation parameters
if prmcode$ = 20008, hd_ax_x = rpar(sparameter$, 8)
How do I...? How do I...?
Capturing a single parameter from a 20000s line
Use the rparsngl function to retrieve a single parameter from a 20000s line. It will
be stored in a user-defined variable.
NOTE: This procedure is used for retrieving a single numeric value from a line
with several values. To capture a single string, see Capturing a string from a 20000s
line on page 36.
1 Go to Tool information (20000s parameters) starting on page 150.
a Look up the desired 20000s line number.
b Identify which parameter in the string contains the desired value.
2 Create a numeric variables to store the value.
# User-defined numeric variables
var1 : 0 # parameter value
3 Go to your pparameter$ postblock and use the rparsngl function to retrieve
the values, pointing it to the first variable in the list:
if prmcode$ = 2xxxx, var1 = rparsngl(sparameter$, 9)
where:
2xxxx is the actual number of the 20000s line
var1 is the variable where you want to store the value
9 is the location of the value in the parameter string
Quick Start
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with 20000s lines 39
Quick Start
Example
Example 6: Getting a single number from a 20000s line (rparsngl)
This Example: uses the rparsngl to get the station body length from the 20008 line
of aggregate head parameters. Since it gets the desired value directly, there is no
need for the predefined array. You only need to define a single variable for the value
you are retrieving.
gauge_length : 0 #Station body length
pparameter$ #Read operation parameters
if prmcode$ = 20008, gauge_length = rparsngl(sparameter$, 9)
How do I...? How do I...?
Capturing a range of parameters from a 20000s line
Use the rparsprm function to retrieve a range of parameters from a 20000s line
for Example:, if there are 9 parameters output on a 20000s line, you can use this
function to capture parameters 37. The values will be stored in an array of user-
defined variables. Follow these steps:
1 Go to Tool information (20000s parameters) starting on page 150.
a Look up the desired 20000s line number.
b Identify which parameters in the string contain the desired values. These
should be a continuous block of values.
2 Create a series of unique, user-defined numeric variables to store the results
one variable for each value in the range that you are capturing.
# User-defined numeric variables
# (This creates an implied array)
var1 : 0
var2 : 0
var3 : 0
var4 : 0
var5 : 0
3 Go to your pparameter$ postblock and use the rparsprm function to retrieve
the values, pointing it to the first variable in the list:
if prmcode$ = 2xxxx, var1 = rparsprm(x, y)
where:
2xxxx is the actual number of the 20000s line.
var1 is the variable where you want to store the value.
x is the index position of the first parameter in sparameter$ that you want
to retrieve.
y is the total number of parameters to retrieve. This should equal the
number of variables that defined in your array.
Example
Example 7: Getting a range of numbers from a 20000s line (rparsprm)
This Example: uses rparsprm to get the fourth through seventh values from the
20007 line. Using rpar, you would have needed to define seven variables to store all
40 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
seven values. Using rparsprm, you only need to define variables for just the four
values that you want to retrieve.
# User-defined numeric variables
# (This creates an implied array)
tl_shoulder_length : #Shoulder length
tl_arbor_diam : #Arbor diameter
tl_holder_diam : #Holder diameter
tl_holder_length : #Holder length
pparameter$ #Read operation parameters
if prmcode$ = 20007, tl_shoulder_length = rparsprm(4, 4)
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with 20000s lines 41
Quick Start
Lathe tool inspection comments
Mastercam X4 introduced a tool inspection feature for lathe grooves. This lets you retract
the tool between depth cuts or between grooves to inspect or change the tool. For
Example:, in this toolpath, the tool inspection has been programmed between grooves:
The NCI output for this feature has two components.
The retract move to the inspection position. This is indicated by the same 70000
cur_cflag$ (rpd_typ$ = 7) used for the Mill tool inspection feature in the
surface high-speed toolpaths.
A comment that is written to the NCI just before the 70000 move. A new 29999
NCI code has been created for this comment.
To implement this feature in your post, therefore, you need to process both elements.
Unlike other 20000s lines, which are are written to the NCI before the tool change line,
the 29999 is written in the middle of the toolpath, at the point where the tool inspection
is to take place.
The following picture shows the NCI for a lathe groove toolpath, with and without the
tool inspection. You can see how the retract move and new codes are implemented.
The first step in processing the tool inspection move is to trap the 70000 value. This
needs to be done in the entry postblocks for both linear and rapid moves. For posts based
42 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
on Mastercams generic posts, these are typically prapidout and plinout. The
following Example: shows how this can be done.
Example
Example 8: Modifying plinout/prapidout to trap a tool inspection move
The highlighted lines show the new lines that were added to process the flag for a
tool inspection. These lines will trap both mill and lathe tool inspection codes. The
tool inspection code triggers a call to a new postblock, ptool_insp, that will
actually process the move.
prapidout #Output to NC, linear movement - rapid
pcan1, pbld, n$, psgplane, pexct, psgcode, psccomp, pwcs,
pxout, pyout, pzout, pcout, pscool, strcantext, e$
if rpd_typ$ = 7, ptool_insp #Tool inspection point
plinout #Output to NC, linear movement - feed
pcan1, pbld, n$, psgplane, sgfeed, pexct, psgcode, psccomp,
pwcs, pxout, pyout, pzout, pcout, pfr, pscool, strcantext, e$
if rpd_typ$ = 7, ptool_insp #Tool inspection point
It is a good practice to create a new postblock to hold the processing logic for the
tool inspection. In this Example:, the new postblock is ptool_insp.
The tool inspection postblock needs to do the following:
Since the lathe tool inspection uses the same 70000 flag as the mill/HST tool
inspection, mill-turn posts need to be able to distinguish between a mill and
lathe tool inspection.
Handle the 29999 comment.
When the tool returns to the part, restore the machine operation mode that was
in effect before the inspection. At a minimum, this will include the motion mode
and feed rate; coolant state; and work offset.
Example 9 shows how this postblock was implemented in the MPLFAN.PST generic
post.
Example
Example 9: Tool inspection postblock
This Example: outputs an M00 at the inspection point. This should be customized
to the proper code for your machine.
It also outputs an additional default comment in addition to the one entered with
the tool inspection toolpath. This is only a place holder indicating that this is a
generic solution that has not been customized for a specific machine. Remove this
comment when you customize this for your customers machines and replace it
with whatever code, if any, is appropriate for your application.
ptool_insp #Tool inspection point
#Modify following lines to customize output for tool inspection
if posttype$ = 2, #Lathe tool inspection point
[
"(TOOL INSPECTION POINT - POST CUSTOMIZATION
MAY BE REQUIRED)", e$
if prmcode$ = 29999, #Only output tool insp comment if one
was entered with this insp point
[
sparameter$ = ucase(sparameter$)
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with 20000s lines 43
Quick Start
pbld, n$, *sm00, "(", sparameter$, ")", e$
]
else, pbld, n$, *sm00, e$ #Output just the stop
if no comment
pbld, n$, *sgcode, *toolno, e$ #Restate tool number
pbld, n$, pfsgplane, e$ #Restate plane code
prpm # Output programmed RPM #Restate spindle
prv_feed = c9k #Set prv_values to c9k to force them out
with next moves
prv_gcode$ = c9k
prv_workofs$ = c9k
if coolant$, prv_coolant$ = c9k
]
else, #Mill tool inspection point
pbld, n$, *sm00, "(TOOL INSPECTION POINT - POST CUSTOMIZATION
REQUIRED)", e$
The following picture shows the before-and-after NC output generated by the post
logic in the preceding Example:s:
44 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Working with machine definition, control
definition, and machine group parameters
Machine definition, control definition, and machine group parameters are a special
subset of operation parameters. They occupy the following ranges of numbers:
Machine definition: 1700017999
Control definition: 1800018999
Machine group properties: 1900019999
Many of the techniques for reading regular operation parameters also apply to these
parameters, but there are a couple of important differences:
These parameters are read by pmachineinfo$ postblock instead of
pparameter$.
Instead of being read automatically, you need to use specific commands to read
them. These commands are:
rd_cd$ is used for the active control definition.
rd_tlpathgrp$ is used to for the active machine group.
rd_md$ is used for the active machine definition.
Place one of these command words on an output postline in any postblock to
have them automatically call pmachineinfo$ and process the desired
parameters.
Because of the way that pmachineinfo$ is called, you can access the MD/CD/group
parameters from essentially any postblock. For Example:, Mastercams generic posts use
them in the pprep$ postblock:
pprep$ # Pre-process postblock - Allows post instructions
# after the post is parsed but before the NC and NCI
# file are opened.
# DO NOT ATTEMPT TO OUTPUT TO THE NC FILE IN THIS POSTBLOCK
# (OR ANY POSTBLOCKS YOU MAY CALL FROM HERE) BECAUSE THE NC OUTPUT
# FILE IS NOT YET OPENED!
rd_cd$ # Read CD Parameters
rd_mch_ent_no$ = 0 # Read only the machine base parameters
rd_md$ # Read machine definition parameters
To capture the parameters, follow this general outline:
Create and initialize the variables you will use to store the parameter values.
Use rd_cd$, rd_md$, rd_tlpathgrp$, or rd_params$ to call the proper
postblock.
Modify pmachineinfo$ to trap the desired parameter value.
Separate sections give you specific step-by-step instructions for each type of parameter:
Capturing machine definition parameters
Capturing control definition parameters
Capturing machine group parameters
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with machine definition, control definition, and machine group parameters 45
Quick Start
Capturing machine definition parameters
The rd_md$ command relies on a helper variable, rd_mch_ent_no$, to specify the
scope of the parameters to retrieve. Set the value of rd_mch_ent_no$ before calling
rd_md$. Based on its value, rd_md$ will return parameters for either:
a specific component
the current axis combination
general machine parameters; in other words, parameters that apply to the
machine as a whole, instead of a particular component
the entire machine definition. This might not be very useful unless you
implement additional specific processing for whatever your application goals
might be, since many of the parameters repeat for each component and each
successive component will overwrite the previous component as it is read.
Therefore, to get all the parameters for the entire machine definition, rd_md$ needs to
be called multiple times, once for each distinct entity in the machine definition. Each
entity corresponds to an individual component in the machine definition tree, such as a
single axis, spindle, chuck, etc.
The value of rd_mch_ent_no$ is interpreted according to the following table:
Value Interpretation
2 Uses the value of sparameter$ to find the axis combination.
For Example:, sparameter$ might equal Upper Left. (The
value of sparameter$ needs to be set before this call.)
1 Reads the entire machine definition file. The order is base
parameters, axis combinations, and then components.
0 Reads only the parameters for general machine properties. Only
those parameters included in the CNC_MACHINE_TYPE group
on page 354 are included.
any positive
number
Represents the entity ID of the component. First the axis
combinations are checked for a match and then the
components.
46 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Getting the entity ID
Successfully getting machine definition parameters requires that you first be able to get
the entity ID, so that you can point rd_mch_ent_no$ to the right component. There are
several ways to do this.
First, if you are only interested in general machine properties, you can simply set
rd_mch_ent_no$ to 0 and not worry about it.
Learn more:
20600 : Axis
combination
components NCI line.
Capturing numeric
values from a 20000s
line to learn more about
getting the value.
M R L 950 : Axis
combination NCI line.
20601 : Axis
combination info NCI
line.
If you want parameters for a specific component, the entity ID is output with the
NCI 20600 line for each component.
Each component in the current axis combination is output on a separate
20600 line.
The entity ID is the first parameter in the line.
These are output before the tool change NCI line, along with the other 20000-
series lines. You can use pparameter$ to query these lines for the component
ID just like any other 20000-series parameter.
If you want the parameters for the axis combination, the entity ID of the axis
combination is available via the syncaxis$ predefined variable. This is passed
to MP with the NCI 950 line. The following line will point rd_md$ to the current
axis combination:
rd_mch_ent_no$ = syncaxis$
The entity ID for the axis combination is also output with the NCI 20601 line.
This is similar to the 20600 line that is output for each component, and the entity
ID can be extracted from this line if you wish. However, it is typically much
easier to get it from syncaxis$.
How do I...? How do I...?
Getting a machine definition parameter
Follow these steps to get a single parameter value. If you want to get many
parameters, consider building a table; see Building a table of parameter values on
page 30.
1 Go to Machine definition parameters starting on page 319 to look up the desired
parameter number.
a Machine definition: visual reference starting on page 319 shows you pictures
of all the dialog boxes with the parameter numbers noted.
b Machine definition: list of parameters starting on page 354 lists all the
parameters in tables.
2 Create user-defined variables to store the parameter value.
3 Identify the postblock where you want to access the parameters. (Typically, this
will be in pprep$ or psof$.) In this postblock, set the value of
rd_mch_ent_no$ to the entity ID of the desired component, or to 0 to access
the general machine properties.
4 Place the rd_md$ command after the rd_mch_ent_no$ line.
5 Modify pmachineinfo$ to trap the desired value. Use a line of the form
if prmcode$ = 17xxx, var1 = rpar(sparameter$, 1)
where 17xxx is the number of the parameter and var1 is the variable where you
will store the value.
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with machine definition, control definition, and machine group parameters 47
Quick Start
Example
Example 10: Getting a machine definition parameter
The following Example: gets the state of the First coolant off option. Since this is
part of the General Machine Parameters, set rd_mch_ent_no$ to 0.
all_cool_off : 0 # First coolant off command shuts off
# ALL coolant options
pprep$ # Pre-process postblock - Allows post instructions
# after the post is parsed but before the NC and NCI
# file are opened.
rd_mch_ent_no$ = 0 # Read only the machine base parameters
rd_md$ # Read machine definition parameters
pmachineinfo$ #Machine information parameters postblock
if prmcode$ = 17101, all_cool_off = rpar(sparameter$, 1)
48 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Capturing control definition parameters
To capture control definition parameters, insert the rd_cd$ command on a postline in
the postblock where you want to read the parameters. Then, modify the
pmachineinfo$ postblock to trap the desired parameter numbers.
How do I...? How do I...?
Getting a control definition parameter
Follow these steps to get a single parameter value. If you want to get many
parameters, consider building a table; see Building a table of parameter values on
page 30.
1 Go to Control definition parameters starting on page 382 to look up the desired
parameter number.
a Control definition: visual reference starting on page 382 shows you pictures of
all the dialog boxes with the parameter numbers noted.
b Control definition: list of parameters starting on page 412 lists all the
parameters in tables.
2 Create user-defined variables to store the parameter value.
3 Identify the postblock where you want to access the parameters and add the
rd_cd$ command on a postline.
4 Modify pmachineinfo$ to trap the desired value. Use a line of the form
if prmcode$ = 18xxx, var1 = rpar(sparameter$, 1)
where 18xxx is the number of the parameter and var1 is the variable where you
will store the value.
Example
Example 11: Capturing control definition parameters
This Example: gets several parameters from the control definition, both string and
numeric.
ssetup_sheet # Define string variable for setup sheet string
cd_mtol_in : 0 # Define numeric variable for mtol inches
cd_mtol_mm : 0 # Define numeric variable for mtol metric
psof$ # Start of file postblock
rd_cd$ # Get the control parameters - call pmachineinfo$
pmachineinfo$ # Parameter capture postblock
# Capture string data for the name of the setup sheet
if prmcode$ = 18160, ssetup_sheet = sparameter$
# Capture numeric data for mtol, inch and metric
if prmcode$ = 18055, cd_mtol_in = rpar(sparameter$, 1)
if prmcode$ = 10856, cd_mtol_mm = rpar(sparameter$, 1)
WORKING WITH PARAMETERS AND TOOLPATH DATA / Working with machine definition, control definition, and machine group parameters 49
Quick Start
Capturing machine group parameters
To capture control definition parameters, insert the rd_tlpathgrp$ command on a
postline in the postblock where you want to read the parameters. Then, modify the
pmachineinfo$ postblock to trap the desired parameter numbers.
If you are interested in getting parameters for stock, remember that stock models are
now considered components in the machine definition. This means that depending on
how the stock model is definedparticularly lathe stock models, along with chuck jaws
and tailstock centerssome of the parameters that you are interested in might need to
be accessed as machine definition component properties, instead of machine group
properties.
How do I...? How do I...?
Getting a machine group parameter
Follow these steps to get a single parameter value. If you want to get many
parameters, consider building a table; see Building a table of parameter values on
page 30.
1 Go to Machine group parameters starting on page 429 to look up the desired
parameter number.
a Machine group properties: visual reference starting on page 429 shows you
pictures of all the dialog boxes with the parameter numbers noted.
b Machine group properties: list of parameters starting on page 434 lists all the
parameters in tables.
2 Create user-defined variables to store the parameter value.
3 Identify the postblock where you want to access the parameters and add the
rd_tlpathgrp$ command on a postline.
4 Modify pmachineinfo$ to trap the desired value. Use a line of the form
if prmcode$ = 19xxx, var1 = rpar(sparameter$, 1)
where 19xxx is the number of the parameter and var1 is the variable where you
will store the value.
Example
Example 12: Capturing machine group parameters
This Example: finds the file name of the machine definition associated with the
machine group of the operations being posted, together with the name of the
machine group and its number.
smd_file_name # Define string variable for name of
# the machine definition file
stp_grp_name # Define string variable for name of
# the machine group
tp_grp_number : 0 # Define numeric variable for the
# machine group number
psof$ # Start of file postblock
rd_tlpathgrp$ # Get the toolpath group parameters -
# call pmachineinfo
pmachineinfo$ # Parameter capture postblock
Quick Start
50 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
# Capture numeric data for toolpath group number
if prmcode$ = 18500, tp_grp_number = rpar(sparameter$, 1)
# Capture string data for machine filename and group name
if prmcode$ = 18501, stp_grp_name = sparameter$
if prmcode$ = 18601, smd_file_name = sparameter$
WORKING WITH PARAMETERS AND TOOLPATH DATA / Advanced techniques for working with operation parameters 51
Quick Start
Advanced techniques for working with
operation parameters
This section discusses several specialized topics and techniques related to reading
parameters.
Reading parameters during the NCI pre-read routine
Doing a parameter dump: outputting all the parameters
Reading operation parameters from any postblock
Setting options for transform operation parameters
Reading parameters during the NCI pre-read routine
In addition to reading parameters with pparameter$, you can also read them during
the NCI pre-read routine. Set the predefined numeric variable tooltable$ to 1 or 3 to
activate the pre-read routine for calls to the pwrtt$ and pwrttparam$ postblocks.
When this happens, the parameters are read by the pwrttparam$ postblock instead of
pparameter$. This means that your postlines that trap the individual parameter
numbersfor Example:,
if prmcode$ = 20007, tl_shoulder_length = rparsprm(4, 4)
should be placed in the pwrttparam$ postblocks instead of pparameter$.
The the pwrtt$ and pwrttparam$ postblocks must both be declared in the post
customization file. During the pre-read routine, the comment NCI Gcodes (1005, 1006,
1007 and 1008) are read and passed through the numeric variable prmcode$ and the
string variable sparameter$.
52 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Doing a parameter dump: outputting all the
parameters
Sometimes it can be difficult to determine exactly which parameter code contains the
parameter that you need for a specific application. Use the techniques described in this
section as a brute force approach to isolating the parameter code.
The key is to add the following line to the pparameter$ postblock:
~prmcode$, ~sparameter$, e$
This forces out the value of every prmcode$ that is available for the posted operations,
together with its value.
This line is included in most of Mastercams generic posts, including MPFAN.PST and
MPLFAN.PST, but is commented out by default:
#"pparameter", ~prmcode$, ~sparameter$, e$
Simply remove the # to activate the line and dump the parameters.
Follow these steps to work through an Example:.
How do I...? How do I...?
Dumping all the parameters
1 Modify the pparameter$ postblock by removing the comment code from the
following line:
pparameter$ #Information from parameters
"pparameter", ~prmcode$, ~sparameter$, e$
Add the line to your pparameter$ postblock if it does not already exist.
2 If you also want to dump the machine definition, control definition, and
machine group parameters, follow these steps:
a Modify the pmachineinfo$ postblock by removing the comment code from
the following line:
"-->pmachineinfo", ~prmcode$, " ", ~sparameter$, e$
Add this line to your pmachineinfo$ postblock if it does not already exist.
b Make sure that the following lines are in your pprep$ postblock:
rd_cd$
rd_mch_ent_no$ : 1
rd_md$
rd_tlpathgrp$
3 Create a toolpath of the type that has the parameter you are looking for.
This Example: will demonstrate finding the prmcode$ values for the Stock to
leave on walls and Stock to leave on floors for a contour toolpath. For this
Example:, create a 2D contour toolpath with the following settings:
WORKING WITH PARAMETERS AND TOOLPATH DATA / Advanced techniques for working with operation parameters 53
Quick Start
4 For the two fields that you are interested in, enter distinctive values that are not
likely to be used anywhere else.
When you look at the NC file created by your modified .PST file, that contains a
very long list of all the parameters, the distinctive values that were entered for
the two fields should make them easy to find.
5 Open the NC output file into a text editor and do a search for the unique
valuesin this case, for Stock to leave on walls and Stock to leave on floors.
The search for 0.01234 finds this line in the NC file:
pparameter prmcode$ 10010. 0.01234
The search for 0.09876 finds this line in the NC file:
pparameter prmcode$ 10068. 0.09876
These are most likely the desired prmcode$ values.
6 To verify that these are the correct prmcode$ values, go back to the Contour
parameters tab in Mastercam and change one of them to a new value. Re-post
the operation and search the NC file for the new value.
If you find the new value with the same prmcode$, you can be confident that
you have found the correct prmcode$ that you can use to retrieve this specific
parameter.
54 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Reading operation parameters from any postblock
Recall that the rd_md$, rd_cd$, and rd_tlpathgrp$ commands can be placed in any
postblock. There is also a similar command, rd_params$, that can be used to read
operation parameters from any postblock. Typically, this is of little use, since all it does is
call pparameter$ and it is more efficient to do this with the techniques already
presented in this chapter, but if you have a pressing application need for this, the
rd_params$ command is available.
The rd_params$ command relies on a helper variable called rd_prm_op_no$. This
specifies the op_id$ of the operation whose parameters are to be read.
Example
Example 13: Reading parameters with the rd_params$ command
This Example: captures both string and numeric parameters. The operation type is
a string value; the number of roughing cuts and their spacing are numeric values.
sop_type_name # Define string variable for the operation type
num_rough_cuts : 0 # Define numeric variable for the
number of rough cuts
spcng_rough_cuts : 0 # Define numeric variable for
# the spacing between the rough cuts
psof$ # Start of file postblock
rd_prm_op_no$ = 0 # The number of the operation whose
# parameters you want to retrieve
rd_params$ # Get the parameters - call pparameter$
pparameter$ # Parameter capture postblock
# Get operation type string
if prmcode$ = 10000, sop_type_name = sparameter$
# Capture numeric data for component ID and type
if prmcode$ = 10106, num_rough_cuts = rpar(sparameter$, 1)
if prmcode$ = 10107, spcng_rough_cuts = rpar(sparameter$, 1)
WORKING WITH PARAMETERS AND TOOLPATH DATA / Advanced techniques for working with operation parameters 55
Quick Start
Setting options for transform operation parameters
The control definition includes an option that lets you specify which parameters to make
available when you create transform operations:
parameters for the transform operation
parameters for the source operation
both sets of parameters
You can find this setting on the Files page in the Control Definition Manager:
The setting itself is available as parameter 18157.
56 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Quick Start
chapter 3
NCI Reference
This chapter lists all of the Gcodes that are output in the NCI file. It is
divided into two main sections:
NCI Gcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .page 58
Tool information (20000s parameters) . . . . . . . . . . . . .page 150
Each parameter that is output on line 2 with the Gcode or parameter is
also documented. Typically, these correspond to pre-defined variables.
58 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
NCI Gcodes
See Working with NCI
toolpath data on page
26 for more information.
This section lists all of the NCI Gcodes in Mastercam X4. However, it does not include any
of the Gcodes that are used specifically for event-based programming for Mastercam MT.
Each entry is preceded by a lettered code indicating which product(s) the entry
applies to.
The table following each entry lists the predefined post variables used to store
each parameter.
Control Flags Parameters are detailed in a separate section on page 146.
M R 0 : Linear Move at rapid rate
Definition: 0
1 2 3 4 5 6
1 Cutter
compensation
cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
-2 Rapid
6 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
NCI REFERENCE / NCI Gcodes 59
Quick Start
L 0 : Linear Move at rapid rate
Definition: 0
1 2 3 4 5 6
1 Cutter
compensation
cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
Negative Feed rate in units per revolution
6 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
60 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 0 : Linear move at rapid rate
Definition: 0
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wt$
7 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wc_rad$
NCI REFERENCE / NCI Gcodes 61
Quick Start
M R 1 : Linear Move at feed rate
Definition: 1
1 2 3 4 5 6
1 Cutter compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
-2 Rapid
6 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
62 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 1 : Linear Move at feed rate
Definition: 1
1 2 3 4 5 6
1 Cutter compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
Negative Feed rate in units per revolution
6 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
NCI REFERENCE / NCI Gcodes 63
Quick Start
W 1 : Linear move at feed rate
Definition: 1
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wt$
7 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wc_rad$
64 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M L R 2 : Arc Move CW
Definition: 2
1 2 3 4 5 6 7 8 9 10
1 Plane position plane$ 0 XY plane
1 YZ plane
2 XZ plane
2 Cutter compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X axis arc
center
xc$ (relative to plane)
6 Absolute Y axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
Negative Feed rate per revolution
-1 Unchanged
-2 Rapid
9 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
10 Full arc flag full_arc_flg$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
NCI REFERENCE / NCI Gcodes 65
Quick Start
W 2 : Arc move clockwise
Definition: 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 Plane plane$ This is set, but is never actually used since
the plane in Wire is always TOP.
2 Wire compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X-axis arc
center
xc$ (relative to plane)
6 Absolute Y-axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wt$
10 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on page 146.
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$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
66 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M L R 3 : Arc Move CCW
Definition: 3
1 2 3 4 5 6 7 8 9 10
1 Plane position plane$ 0 XY plane
1 YZ plane
2 XZ plane
2 Cutter compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X axis arc
center
xc$ (relative to plane)
6 Absolute Y axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
Negative Feed rate per revolution
-1 Unchanged
-2 Rapid
9 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
10 Full arc flag full_arc_flg$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
NCI REFERENCE / NCI Gcodes 67
Quick Start
W 3 : Arc move counterclockwise
Definition: 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 Plane plane$ 0 This is set, but is never actually used
since the plane in Wire is always TOP.
2 Wire compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X-axis arc
center
xc$ (relative to plane)
6 Absolute Y-axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wt$
10 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
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$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
68 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 4 : Dwell and Spindle Change
Definition: 4
1 2 3
1 Dwell dwell$ Dwell time
2 Spindle speed ss$ Positive Spindle speed in RPM
0 Spindle stop
Negative Spindle speed in surface units
per minute
3 Spindle direction spdir$ 1 Reverse
0 Off
1 Forward
NCI REFERENCE / NCI Gcodes 69
Quick Start
M R 4 : Dwell and Spindle Change
Definition: 4
1 2 3
1 Dwell dwell$ Dwell time
2 Spindle speed ss$ Spindle speed in RPM
3 (not used)
70 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 4 : Dwell
Definition: 4
1 2 3
1 Dwell dwell$ Dwell time
2 (Not used)
3 (Not used)
NCI REFERENCE / NCI Gcodes 71
Quick Start
M R 11 : 5-Axis Move
Definition: 11
1 2 3 4 5 6 7 8 9 10 11 12
* These are maintained for compatability only. Use the Control Flags Parameter
instead!
1 X position xnci$, x$
2 Y position ynci$, y$
3 Z position znci$, z$
4 U position u$
5 V position v$
6 W position w$
7 Feed rate fr$ Positive Feed rate
-1 Unchanged
-2 Rapid
8
*Tool parameters =
rev5+cutpos+cuttyp
nnn
rev5$ 000 Zero angle
100 5-axis flip (not vertical), same angle
as previous
200 Same angle as next
300 180-degree angle
400 Same angle as previous + 180 degrees
500 Same angle as next + 180 degrees
cutpos$ 10 Start
20 Middle
30 End
40 Entry to cut
50 Exit from cut
cuttyp$ 1 Zigzag
2 One way
3 Circular
4 Swarf
9 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
10 Surface normal
vector
p_svec$
11 Surface normal
vector
q_svec$
12 Surface normal
vector
r_svec$
72 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 11 : 4-Axis Taper Move
Definition: 11
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position xnci$, x$ lower point
3 Y position ynci$,y$ lower point
4 Z position znci$,z$ lower point
5 U position u$ upper point
6 V position v$ upper point
7 W position w$ upper point
8 Feed rate fr$ Feed rate
9 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
NCI REFERENCE / NCI Gcodes 73
Quick Start
W 20 : Direct 4-axis lower guide linear move at rapid
Definition: 20
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wt$
7 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wc_rad$
74 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 21 : Direct 4-axis lower guide linear move at feed rate
Definition: 21
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 Feed rate fr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wt$
7 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wc_rad$
NCI REFERENCE / NCI Gcodes 75
Quick Start
W 22 : Direct 4-axis lower guide arc move clockwise
Definition: 22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 (Not used)
2 Wire compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X-axis arc
center
xc$ (relative to plane)
6 Absolute Y-axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wt$
10 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
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$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
76 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 23 : Direct 4-axis lower guide arc move counterclockwise
Definition: 23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 (Not used)
2 Wire compensation cc$ 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 X position xnci$, x$
4 Y position ynci$, y$
5 Absolute X-axis arc
center
xc$ (relative to plane)
6 Absolute Y-axis arc
center
yc$ (relative to plane)
7 Z position znci$, z$
8 Feed rate fr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wt$
10 Corner type wc$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
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$ 0 NOT a full arc move
1 Full arc move (360-degree sweep)
NCI REFERENCE / NCI Gcodes 77
Quick Start
W 30 : Direct 4-axis upper guide linear move at rapid
Definition: 30
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position wx$
3 Y position wy$
4 Z position wz$
5 Feed rate wfr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wtpr$
7 Corner type wcor$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wcor_rad$
78 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 31 : Direct 4-axis upper guide linear move at feed rate
Definition: 31
1 2 3 4 5 6 7 8 9
1 Wire compensation cc$ 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
2 X position wx$
3 Y position wy$
4 Z position wz$
5 Feed rate wfr$ Positive Feed rate in units per minute
-1 Unchanged
6 Wire taper wtpr$
7 Corner type wcor$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
8 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
9 Corner type radius wcor_rad$
NCI REFERENCE / NCI Gcodes 79
Quick Start
W 32 : Direct 4-axis upper guide arc move clockwise
Definition: 32
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 (Not used)
2 Wire compensation cc$ 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 X position wx$
4 Y position wy$
5 Absolute X-axis arc
center
wxc$ (relative to plane)
6 Absolute Y-axis arc
center
wyc$ (relative to plane)
7 Z position wz$
8 Feed rate wfr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wtpr$
10 Corner type wcor$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
12 Corner type radius wcor_rad$
13 Arc type warc_cortyp$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fish tail
14 Arc type radius wcor_radius$
80 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 33 : Direct 4-axis upper guide arc move counterclockwise
Definition: 33
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 (Not used)
2 Wire compensation cc$ 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 X position wx$
4 Y position wy$
5 Absolute X-axis arc
center
wxc$ (relative to plane)
6 Absolute Y-axis arc
center
wyc$ (relative to plane)
7 Z position wz$
8 Feed rate wfr$ Positive Feed rate per minute
-1 Unchanged
9 Wire taper wtpr$
10 Corner type wcor$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fishtail
11 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
12 Corner type radius wcor_rad$
13 Arc type warc_cortyp$ 0 Conical
1 Sharp
2 Constant
3 Other
4 Fixed
5 Fish tail
14 Arc type radius wcor_radius$
NCI REFERENCE / NCI Gcodes 81
Quick Start
L M R W 80 : Cancel Drill / Canned Cycle
Definition: 80
[blank line]
Note: Even though Gcode 80 has no parameters, a blank line must be output for
the second line.
82 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M L R 81 : Start Drill Cycle
Definition: 81
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1 Drill cycle type drillcyc$ 0
1
2
3
4
5
6
7
819
Simple
Peck
Chip break
Tap
Bore #1
Bore #2
Misc #1
Misc #2
Custom cycles
Calculated variable: drl_cycle$
2 X position drl_depth_x$ XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: x$
3 Y position drl_depth_y$ XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: y$
4 Z position drl_depth_z$ XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: z$, depth$
5 Dwell time dwell$
6 Feed rate frplunge$
7 First peck
amount
peck1$
8 Subsequent peck
amount
peck2$
9 Peck clearance peckclr$
10 Chip break retract retr$
11 Drill cycle initial
height
drl_sel_ini$ The distance from the selected drill
position (zdrl) to the initial height,
sign is positive for above selected
drill position.
Calculated variable: initht$
12 Drill cycle
reference height
drl_sel_ref$ The distance from the selected drill
position (zdrl) to the reference
height, sign is positive for above
selected drill position.
Calculated variable: refht$
NCI REFERENCE / NCI Gcodes 83
Quick Start
Note: If vers_no$ is 8 or greater, the following data is calculated and overwrites the
parameter passed in the NCI:
depth$ from z$
zdrl$ (calculated) from w$ initht$
refht$ from zdrl$ (calculated) + refht$
tosz$ (top of stock) from zdrl$ (calculated) + zdrl$ (original)
initht$ from w$
13 Drill depth drl_sel_tos The distance from the selected drill
position (zdrl) to the top of stock,
sign is positive for above selected
drill position.
Calculated variable: zdrl$
14 Boring bar
clearance shift
amount
shftdrl$
15 U position drl_init_x $ UVW is a 3D point that represents
the initial height point.
Calculated variable: u$
16 V position drl_init_y $ UVW is a 3D point that represents
the initial height point.
Calculated variable: v$
17 W position drl_init_z $ UVW is a 3D point that represents
the initial height point.
Calculated variable: w$
18 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
19 Drill direction rev_drl5$ When 1, indicates reversal of the
drill direction from UVW to XYZ.
84 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 81 : Start Canned Cycle
Definition: 81
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1 Drill cycle type cancyc$ 019 Custom cycles
2 X position xnci$ XYZ is a 3D point that represents
the drill point at the bottom of the
hole.
Calculated variable: x$
3 Y position ynci$ XYZ is a 3D point that represents
the drill point at the bottom of the
hole.
Calculated variable: y$
4 Z position znci$ XYZ is a 3D point that represents
the drill point at the bottom of the
hole.
Calculated variable: z$
5 Entered value canned1$
6 (Not used)
7 Entered value canned4$
8 Entered value canned5$
9 Entered value canned6$
10 Entered value canned7$
11 Entered value canned2$
12 Entered value canned3$
13 (Not used)
14 (Not used)
15 (Not used)
16 (Not used)
17 (Not used)
18 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
19 Drill direction rev_drl5$ This is assigned but is typically not
relevant in Wire.
NCI REFERENCE / NCI Gcodes 85
Quick Start
L M R W 82 : Additional Drill / Canned Cycle Parameters
Definition: 82
1 2 3 4 5 6 7 8 9 10
NOTE: The drl_prm variables do not have a pre-defined meaning. The post can
be customized to use these for whatever purpose is desired for that cycle.
1 Drill parameter 1 drl_prm1$
2 Drill parameter 2 drl_prm2$
3 Drill parameter 3 drl_prm3$
4 Drill parameter 4 drl_prm4$
5 Drill parameter 5 drl_prm5$
6 Drill parameter 6 drl_prm6$
7 Drill parameter 7 drl_prm7$
8 Drill parameter 8 drl_prm8$
9 Drill parameter 9 drl_prm9$
10 Drill parameter 10 drl_prm10$
86 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
R 83 : Block Drill / Canned Cycle Parameters
Definition: 83
1 2 3 4 5 6 7 8 9 10 11 12
Note: MP also reads the following variables when block drilling is active: bdrl_x2$,
bdrl_y2$, and bdrl_z2$. These three values are actually read from NCI M L R 81 : Start
Drill Cycle and M L R 100 : Canned Cycle Repeat Position data records. They are the
actual drilled location (which may not be the lead tool position) at depth.
.
1 Drill point (X) position
at depth.
bdrl_x$ Position of the lead tool
2 Drill point (Y) position
at depth.
bdrl_y$ Position of the lead tool
3 Drill point (Z) position
at depth.
bdrl_z$ Position of the lead tool
4 Offset to lead tool in X bdrl_ofs_x$ Distance of drill hole to the lead
drill position.
5 Offset to lead tool in Y bdrl_ofs_y$ Distance of drill hole to the lead
drill position.
6 Offset to lead tool. In Z bdrl_ofs_z$ Distance of drill hole to the lead
drill position.
7 Tool group number bdrl_tool_grp$
8 Work offset number bdrl_wrk_ofs$
9 Position of lead drill at
initial height.
bdrl_u$ Clearance point position in X
10 Position of lead drill at
initial height.
bdrl_v$ Clearance point position in Y
11 Position of lead drill at
initial height.
bdrl_w$ Clearance point position in Z
12 Bitwise tool number bdrl_tool_no$
bdrl_tool_no9$
In this parameter, the data is
stored in bitwise format.
NCI REFERENCE / NCI Gcodes 87
Quick Start
M L R 100 : Canned Cycle Repeat Position
Definition: 100
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23
1 (Not used)
2 X position drill_depth_x$ XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: x$
3 Y position drill_depth_y$ XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: y$
4 Z position drill_depth_z XYZ is a 3D point that represents the
drill point at the bottom of the hole.
Calculated variable: z$
5 Drill cycle initial
height
drl_sel_ini$ The distance from the selected drill
position (zdrl$) to the initial height,
sign is positive for above selected drill
position.
Calculated variable: initht$
6 Drill cycle reference
height
drl_sel_ref$ The distance from the selected drill
position (zdrl$) to the reference
height, sign is positive for above
selected drill position.
Calculated variable: refht$
7 Dwell time dwell$
8 Feed rate frplunge$
9 U position drl_init_x$ UVW is a 3D point that represents the
initial height point.
Calculated variable: u$
10 V position drl_init_y$ UVW is a 3D point that represents the
initial height point.
Calculated variable: v$
11 W position drl_init_z$ UVW is a 3D point that represents the
initial height point.
Calculated variable: w$
12 Control flags cur_cflg$ See Control Flags Parameters on
page 146.
13 Drill depth rev_drl5$ When 1, indicates reversal of the drill
direction from UVW to XYZ.
14 Top of stock drl_sel_tos$ The distance from the selected drill
position (zdrl$) to the top of stock,
sign positive for above zdrl$
88 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
When the NCI 81 line is read, the tool plane matrix (m1$m9$) is copied from the NCI
1014 data to the drl_m1$drl_m9$ matrix.
This matrix (drl_m1$drl_m9$) is then copied to the tool plane matrix (m1$m9$) when
the NCI 100 line is read.
15
16
17
18
19
20
21
22
23
Drilling matrix drl_m1$
drl_m2$
drl_m3$
drl_m4$
drl_m5$
drl_m6$
drl_m7$
drl_m8$
drl_m9$
X-axis vector (x)
X-axis vector (y)
X-axis vector (z)
Y-axis vector (x)
Y-axis vector (y)
Y-axis vector (z)
Z-axis vector (x)
Z-axis vector (y)
Z-axis vector (z)
NCI REFERENCE / NCI Gcodes 89
Quick Start
W 100 : Canned Cycle Repeat Position
Definition: 100
1 2 3 4 5
1 (Not used)
2 X position xnci$, x$
3 Y position ynci$, y$
4 Z position znci$, z$
5 (Not used)
90 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 200 : Threading Parameters One
Definition: 200
1 2 3 4 5 6 7 8
Always appears together with the L 201 : Threading Parameters Two.
1 Number of spring
cuts
nspring$
2 Finish allowance thdfinish$
3 Anticipated thread
pull-off
thdpulloff$
4 Number of starts nstarts$
5 Clearance
perpendicular to
cuts
thdxclr$
6 Thread infeed angle thdangle$ Value in radians
7 Equal depth thread
cuts
thdequcut$ 0 Determine depth cuts from:
Equal area method.
1 Determine depth cuts from:
Number of cuts.
8 Number of cuts thdncuts$ >0 Determine number of cuts from:
Number of cuts.
NCI REFERENCE / NCI Gcodes 91
Quick Start
L 201 : Threading Parameters Two
Definition: 201
1 2 3 4 5 6 7 8 9 10 11 12
Always appears together with the L 200 : Threading Parameters One.
thdlead$ is always converted to a (positive) units-per-thread value.
Calculate thread taper by (thdx$2 thdx3$).
1 X position 1 thdx1$ Thread major
2 X position 2 thdx2$ Thread minor
3 Z position 1 thdz1$ Starting Z position of thread
4 Z position 2 thdz2$ Ending Z position of thread
5 Lead settings thdlead$ Positive Lead in units per thread
Negative
Lead in threads per inch
6 Amount of first cut thdfirst$ Calculated based on thdequcut$
7 Amount of last cut thdlast$
8 Stock clearance in Z thdzclr$ Acceleration clearance
9 Thread angle thda1$ Value in radians
10 Thread included
angle
thda2$ Value in radians
11 Thread type settings thdtype$ 0 Long cycle
1 Canned
2 Long cycle
12 X position 3 thdx3$ Ending X position of thread
92 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 900 : Stock Transfer Misc Ops function
Definition: 900
1 2 3 4 5 6 7 8 9 10 11
Processed by postblock pstck_trans$.
1 Active spindle for
stock to transfer
stck_spindle$ 0
1
Main spindle
Sub spindle
2 stck_init_z$ Z coordinate on stock to be
transferred
3 stck_final_z$ Z coordinate on transferred stock
4 stck_chuk_st_z$ Source chuck Z axis reference
position before transfer
5 stck_chuk_st_x$ Source chuck X axis reference
position before transfer
6 stck_chuk_end_z$ Source chuck Z axis reference
position after transfer
7 stck_chuk_end_x$ Source chuck X axis reference
position after transfer
8 stck_chuk_st_dz$ Destination chuck Z axis reference
position before transfer
9 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
NCI REFERENCE / NCI Gcodes 93
Quick Start
L 901 : Stock Flip Misc Ops function
Definition: 901
1 2 3 4 5 6 7
Processed by postblock pstck_flip$.
1 Active spindle for
stock to transfer
stck_spindle$ 0
1
Main spindle
Sub spindle
2 stck_init_z$ Z coordinate on stock before flip
3 stck_final_z$ Z coordinate on stock after flip
4 stck_chuk_st_z$ Chuck Z axis position before flip
5 stck_chuk_st_x$ Chuck X axis position before flip
6 stck_chuk_end_z$ Chuck Z axis position after flip
7 stck_chuk_end_x$ Chuck X axis position after flip
94 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 902 : Stock Advance Misc Ops function
Definition: 902
1 2 3 4 5 6 7 8 9 10 11 12
Processed by postblock pstck_bar_fd$.
1 Active spindle for
stock to transfer
stck_spindle$ 0
1
Main spindle
Sub spindle
2 stck_op$ 0 Push stock
1
2
Push stock with Use Tool Stop option
Pull stock
3 stck_clear$ Stock clearance (pull stock method)
4 stck_grip$ Grip length (pull stock method)
5 stck_init_z$ Z coordinate of stock before advance
6 stck_final_z$ Z coordinate of stock after advance
7 stck_appr_fr$ Feed rate that the bar puller uses while
moving into position
8 stck_adv_fr$ Feed rate that the stock advances at
9 stck_chuk_st_z$ Chuck Z axis position before advance
10 stck_chuk_st_x$ Chuck X axis position before advance
11 stck_chuk_end_z$ Chuck Z axis position after advance
12 stck_chuk_end_x$ Chuck X axis position after advance
NCI REFERENCE / NCI Gcodes 95
Quick Start
L 903 : Chuck Misc Ops function
Definition: 903
1 2 3 4 5 6
1 Active spindle for
clamp/unclamp
clmp_spindle$ 0
1
Main spindle
Subspindle
2 Chuck action clmp_op$ 0
1
2
3
Clamp
Un-clamp
Re-position
Eject stock (added for X5)
3 stck_chuk_st_z$ Original Z-axis chuck position
4 stck_chuk_st_x$ Original X-axis chuck position
5 stck_chuk_end_z$ Final Z-axis chuck position
6 stck_chuk_end_x$ Final X-axis chuck position
96 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 904 : TailStock Misc Ops function
Definition: 904
1 2 3
1 Operation tlstck_on$ 0
1
Retract tailstock
Engage tailstock
2 stck_init_z$ Initial Z position of tailstock
3 stck_final_x$ Final Z position of tailstock
NCI REFERENCE / NCI Gcodes 97
Quick Start
L 905 : SteadyRest Misc Ops function
Definition: 905
1 2
Processed by postblock psteadyrest$.
1 stck_init_z$ Initial steady rest position
2 stck_final_z$ Final steady rest position
98 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 911 : Define Misc Ops custom parameters reals
Definition: 911
1 2 3 4 5 6 7 8 9 10
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$
NCI REFERENCE / NCI Gcodes 99
Quick Start
L 912 : Define Misc Ops custom parameters integers
Definition: 912
1 2 3 4 5 6 7 8 9 10
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$
100 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R L 950 : Axis combination
Definition: 950
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26
1 synclath$
2 syncbfor$
3 syncmode$
4 syncaxis$ Component ID of axis combination
5 syncstream$
6 syncmodebfor$
[all other
parameters]
(Not used)
NCI REFERENCE / NCI Gcodes 101
Quick Start
M R L W 999 : Start of operation
Definition: 999
1 2 3
New predefined variables for parameters 1 and 3 were introduced for Mastercam X5.
These let you access the tool_op$ and op_id$ values before the 1016 line is written.
1 Code for
specific
operation type
synctool_op$ Takes the same values as the tool_op$
operation codes:
M R L 1016 : Additional Miscellaneous
Parameters on page 124
W 1016 : Additional Miscellaneous
Parameters on page 125
2 data stream synchstream$
3 Operation ID
numbers
syncop_id$ Takes the same values as op_id$.
102 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1000 : Null tool change
Definition: 1000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Tool length offset
number
tlngno$
7 Plane position plane$ 0 XY plane
1 YZ plane
2 XZ plane
8 Spindle speed in
RPM
ss$ Positive Spindle forward
0 Spindle stop
Negative Spindle reverse
9 Feed rate fr$
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Axis substitution rotaxis$ -2 Axis substitution, substitute Y, CCW
-1 Axis substitution, substitute X, CCW
0 None
1 Axis substitution, substitute X, CW
2 Axis substitution, substitute Y, CW
11 Polar conversion, rotate about X
12 Polar conversion, rotate about Y
13 Polar conversion, rotate about Z
21 4-axis, rotate about X
22 4-axis, rotate about Y
23 4-axis, rotate about Z
NCI REFERENCE / NCI Gcodes 103
Quick Start
18 Diameter for axis
substitution
rotdia$
104 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 1000 : Null tool change
Definition: 1000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Maximum spindle
speed
maxss$
7 Tool orientation orient$
8 Spindle speed ss$ Positive Spindle speed in RPM
0 Spindle stop
Negative Spindle speed in surface units per
minute
9 Feed rate fr$ Positive Feed rate in units per minute
Negative Feed rate in units per revolution
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Spindle direction spdir$ 1 Spindle forward
0 Spindle stop
-1 Spindle reverse
18 (Not used)
NCI REFERENCE / NCI Gcodes 105
Quick Start
W 1000 : Null tool change
Definition: 1000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Cut pass pass$
5 Condition code ccode$
6 Offset number offset$
7 (Not used)
8 Initial wire taper inittaper$ Positive Taper, right
0 No taper
Negative Taper, left
9 Feed rate fr$
10 Flushing water$ 0 Off
1 Flood
2 Other
11 X thread position threadx$
12 Y thread position thready$
13 Z thread position threadx$
14 X start position startx$
15 Y start position starty$
16 Z start position startz$
17 Height of XY plane xyheight$
18 Height of UV plane uvheight$
19 X skewed wire thread up_st_vecx$
20 Y skewed wire thread up_st_vecy$
21 Z skewed wire thread up_st_vecz$
22 Skewed wire thread up_st_mode$ 0 Off
1 Apply to thread
2 Apply to cut
3 Apply to both thread/cut
106 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1001 : Start-of-file tool change
Definition: 1001
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Tool length offset
number
tlngno$
7 Plane position plane$ 0 XY plane
1 YZ plane
2 XZ plane
8 Spindle speed in
RPM
ss$ Positive Spindle forward
0 Spindle stop
Negative Spindle reverse
9 Feed rate fr$
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Axis substitution rotaxis$ -2 Axis substitution, substitute Y, CCW
-1 Axis substitution, substitute X, CCW
0 None
1 Axis substitution, substitute X, CW
2 Axis substitution, substitute Y, CW
11 Polar conversion, rotate about X
12 Polar conversion, rotate about Y
13 Polar conversion, rotate about Z
21 4-axis, rotate about X
22 4-axis, rotate about Y
23 4-axis, rotate about Z
NCI REFERENCE / NCI Gcodes 107
Quick Start
18 Diameter for axis
substitution
rotdia$
108 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 1001 : Start-of-file tool change
Definition: 1001
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Maximum spindle
speed
maxss$
7 Tool orientation orient$
8 Spindle speed ss$ Positive Spindle speed in RPM
0 Spindle stop
Negative Spindle speed in surface units per
minute
9 Feed rate fr$ Positive Feed rate in units per minute
Negative Feed rate in units per revolution
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Spindle direction spdir$ 1 Spindle forward
0 Spindle stop
-1 Spindle reverse
18 (Not used)
NCI REFERENCE / NCI Gcodes 109
Quick Start
W 1001 : Start-of-file tool change
Definition: 1001
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Cut pass pass$
5 Condition code ccode$
6 Offset number offset$
7 (Not used)
8 Initial wire taper inittaper$ Positive Taper, right
0 No taper
Negative Taper, left
9 Feed rate fr$
10 Flushing water$ 0 Off
1 Flood
2 Other
11 X thread position threadx$
12 Y thread position thready$
13 Z thread position threadx$
14 X start position startx$
15 Y start position starty$
16 Z start position startz$
17 Height of XY plane xyheight$
18 Height of UV plane uvheight$
19 X skewed wire thread up_st_vecx$
20 Y skewed wire thread up_st_vecy$
21 Z skewed wire thread up_st_vecz$
22 Skewed wire thread up_st_mode$ 0 Off
1 Apply to thread
2 Apply to cut
3 Apply to both thread/cut
110 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1002 : Tool Change
Definition: 1002
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Tool length offset
number
tlngno$
7 Plane position plane$ 0 XY plane
1 YZ plane
2 XZ plane
8 Spindle speed in
RPM
ss$ Positive Spindle forward
0 Spindle stop
Negative Spindle reverse
9 Feed rate fr$
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Axis substitution rotaxis$ -2 Axis substitution, substitute Y, CCW
-1 Axis substitution, substitute X, CCW
0 None
1 Axis substitution, substitute X, CW
2 Axis substitution, substitute Y, CW
11 Polar conversion, rotate about X
12 Polar conversion, rotate about Y
13 Polar conversion, rotate about Z
21 4-axis, rotate about X
22 4-axis, rotate about Y
23 4-axis, rotate about Z
NCI REFERENCE / NCI Gcodes 111
Quick Start
18 Diameter for axis
substitution
rotdia$
112 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 1002 : Tool Change
Definition: 1002
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Tool number t$
5 Tool diameter
offset number
tloffno$
6 Maximum spindle
speed
maxss$
7 Tool orientation orient$
8 Spindle speed ss$ Positive Spindle speed in RPM
0 Spindle stop
Negative Spindle speed in surface units per
minute
9 Feed rate fr$ Positive Feed rate in units per minute
Negative Feed rate in units per revolution
10 Coolant use coolant$ 0 Off
1 Flood
2 Mist
3 Tool
11 X rapid position xr$
12 Y rapid position yr$
13 Z rapid position zr$
14 X home position xh$
15 Y home position yh$
16 Z home position zh$
17 Spindle direction spdir$ 1 Spindle forward
0 Spindle stop
-1 Spindle reverse
18 (Not used)
NCI REFERENCE / NCI Gcodes 113
Quick Start
W 1002 : Tool Change
Definition: 1002
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
1 Program number progno$
2 Starting sequence
number
seqno$
3 Sequence number
increment
seqinc$
4 Cut pass pass$
5 Condition code ccode$
6 Offset number offset$
7 (Not used)
8 Initial wire taper inittaper$ Positive Taper, right
0 No taper
Negative Taper, left
9 Feed rate fr$
10 Flushing water$ 0 Off
1 Flood
2 Other
11 X thread position threadx$
12 Y thread position thready$
13 Z thread position threadx$
14 X start position startx$
15 Y start position starty$
16 Z start position startz$
17 Height of XY plane xyheight$
18 Height of UV plane uvheight$
19 X skewed wire thread up_st_vecx$
20 Y skewed wire thread up_st_vecy$
21 Z skewed wire thread up_st_vecz$
22 Skewed wire thread up_st_mode$ 0 Off
1 Apply to thread
2 Apply to cut
3 Apply to both thread/cut
114 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1003 : End of File
Definition: 1003
1 2 3
L 1003 : End of File
Definition: 1003
1 2 3
W 1003 : End of File
Definition: 1003
1 2 3
L M R W 1004 : Cancel Cutter Compensation
Definition: 1004
[blank line]
Note: Even though Gcode 1004 has no parameters, a blank line must be output for the
second line.
1 X home position xh$
2 Y home position yh$
3 Z home position zh$
1 X home position xh$
2 (Not used)
3 Z home position zh$
1 X thread position threadx$
2 Y thread position thready$
3 Z thread position threadz$
NCI REFERENCE / NCI Gcodes 115
Quick Start
L M R W 1005 : Manual Entry / Insert text as comment
Definition: 1005
comment
L M R W 1006 : Manual Entry / Insert text as code
Definition: 1006
comment
L M R W 1007 : Manual Entry / Comment with move
Definition: 1007
comment
L M R W 1008 : Manual Entry / Tool operation comment
Definition: 1008
comment
Text to be inserted into the
NC program.
Text will be formatted as a
comment and output
immediately (before the current
NC block).
Text to be inserted into the
NC program.
Text will be inserted as NC code,
not a comment, and output
immediately (before the current
NC block).
Text to be inserted into the
NC program
Text will be formatted as a
comment and output with the
next move.
(See L M R W 1026 : Manual
Entry / Comment as code, with
move to format as code.)
Text to be inserted into the
NC program
116 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 1009 : Wire Cut Length (obsolete)
Definition: 1009
1 2 3
Note: This NCI Gcode is no longer output.
W 1010 : Wire Condition Change
Definition: 1010
1 2 3 4 5 6 7 8 9 1011 12 13 14
1 Wirepath cut length cutlength$
2 (Not used)
3 (Not used)
1 Wire compensation cc$ 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
2 Condition code ccode$
3 Wire offset offset$
4 Wire diameter tldia$
5 Register value 1 reg1$
6 Register value 2 reg2$
7 Register value 3 reg3$
8 Register value 4 reg4$
9 Register value 5 reg5$
10 Register value 6 reg6$
11 Register value 7 reg7$
12 Register value 8 reg8$
13 Register value 9 reg9$
14 Register value 10 reg10$
15 ccode_epac_flg$ Indicates an approach point
condition change.
NCI REFERENCE / NCI Gcodes 117
Quick Start
L M R W 1011 : Define Miscellaneous Reals
Definition: 1011
1 2 3 4 5 6 7 8 9 10
L M R W 1012 : Define Miscellaneous Integers
Definition: 1012
1 2 3 4 5 6 7 8 9 10
1 Miscellaneous real 1 mr1$
2 Miscellaneous real 2 mr2$
3 Miscellaneous real 3 mr3$
4 Miscellaneous real 4 mr4$
5 Miscellaneous real 5 mr5$
6 Miscellaneous real 6 mr6$
7 Miscellaneous real 7 mr7$
8 Miscellaneous real 8 mr8$
9 Miscellaneous real 9 mr9$
10 Miscellaneous real 10 mr10$
1 Miscellaneous integer 1 mi1$
2 Miscellaneous integer 2 mi2$
3 Miscellaneous integer 3 mi3$
4 Miscellaneous integer 4 mi4$
5 Miscellaneous integer 5 mi5$
6 Miscellaneous integer 6 mi6$
7 Miscellaneous integer 7 mi7$
8 Miscellaneous integer 8 mi8$
9 Miscellaneous integer 9 mi9$
10 Miscellaneous integer 10 mi10$
118 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1013 : Define Miscellaneous Parameters
Definition: 1013
1 2 3 4 5 6 7 8 9 10
1 Cutter
compensation use
cc$ 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
2 Tool diameter tldia$
3 Tool corner radius tcr$
4 Depth values to
center or tip
setting
cctotip$ 0
1
Center
Tip
5 View number tlplnno$ The number of the view in
Mastercams view catalog.
View numbers 18 correspond to
Mastercams standard system-
defined views.
If the view is a user-defined view, this
will be a different, higher number.
0 No matrix
1 Top
2 Front
3 Back
4 Bottom
5 Right side
6 Left side
7 Isometric
8 Axonometric
6 X coordinate of
tool plane origin
tox$ (relative to view)
7 Y coordinate of
tool plane origin
toy$ (relative to view)
8 Z coordinate of
tool plane origin
toz$ (relative to view)
9 Operation code opcode$ 1 2D contour
2 3D contour
3 Drill
4 Pocket
NCI REFERENCE / NCI Gcodes 119
Quick Start
5 Ruled
6 2D swept
7 3D swept
8 Revolution
9 Loft
10 Coons
11 Fillet
12 Flowline
13 Multisurface finish
14 Multisurface rough
15 Point
16 Drill 5-axis
17 Swarf 5-axis
18 Curve 5-axis
19 Facing
10 Tool reference
path and name*
strtool$,
strtoolpath$
120 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 1013 : Define Miscellaneous Parameters
Definition: 1013
1 2 3 4 5 6 7 8 9 10
1 Cutter
compensation
cc$ 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
2 Tool corner raidus tcr$ Tool nose radius or
tool radius of drill type tool
3 Tool diameter tldia$ Always 0
4 (Not used)
5 (Not used)
6 X coordinate of
tool plane origin
tox$ (relative to view)
7 Y coordinate of
tool plane origin
toy$ (relative to view)
8 X coordinate of
tool plane origin
toz$ (relative to view)
9 Operation code opcode$ 101 Rough
102 Finish
103 Groove
104 Thread
105 Drill
106 Point
10 Tool library path
and name*
strtool$,
strtoolpath$
NCI REFERENCE / NCI Gcodes 121
Quick Start
W 1013 : Define Miscellaneous Parameters
Definition: 1013
1 2 3 4 5 6 7 8 9 10
1 Cutter
compensation use
cc$ 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
2 Tool (wire)
diameter
tldia$
3 Tool (wire) radius tlrad$
4 Overburn amount overburn$
5 Wire status wire$ 0 Off
1 On
6 Power status power$ 0 Off
1 On
7 Work origin X wox$
8 Work origin y woy$
9 Operation code opcode$ 201 Contour
202 Contour
203 Canned (Drill)
204 No Core
205 4-axis taper, no skim
206 2D reverse skimcut
207 (Not used)
208 4-axis direct, reverse skimcuts
209 4-axis direct, no skimcuts
210 4-axis taper, reverse skimcuts
211 4-axis taper, one-way skimcuts
212 4-axis direct, one-way skimcuts
213 2D one-way skimcuts
214 Rapid point
215 2-axis, one-way Agie collar skim cut
10 Power library
path and name
strtool$,
strtoolpath$
Full path and name of the power
library used for the operation
122 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L M R W 1014 : Tool Plane View Matrix
Definition: 1014
1 2 3 4 5 6 7 8 9
1 m1$
2 m2$
3 m3$
4 m4$
5 m5$
6 m6$
7 m7$
8 m8$
9 m9$
View xx xy xz yx yy yz zx zy zz
Top (1) 1 0 0 0 1 0 0 0 1
Front (2) 1 0 0 0 0 1 0 -1 0
Back (3) -1 0 0 0 0 1 0 1 0
Bottom (4) -1 0 0 0 1 0 0 0 -1
Right Side
(5)
0 1 0 0 0 1 1 0 0
Left Side (6) 0 -1 0 0 0 1 -1 0 0
Isometric
(7)
0.7071 0.7071 0 -0.4082 0.4082 0.8165 0.5774 -0.5774 0.5773
Axonometri
c (8)
0.5 -0.8536 0.1464 0.5 0.1464 0.8536 0.7071 0.5 0.5
Variable
Name
m1 m2 m3 m4 m5 m6 m7 m8 m9
NCI REFERENCE / NCI Gcodes 123
Quick Start
W 1015 : Subroutine Parameters
Definition: 1015
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 Subroutine type settings subtyp$ 0 Not a subroutine
1 Write subroutine
2 Call subroutine only
2 Subroutine number subno$
3 Thread/cut flag td_ct_flg$ 0 No thread or cut
1 Allow thread the wire
2 Allow cut the wire
4 Tab cut tabcut$ 0 No tab cut
1 Tab cut
2 Contour with tab cut
5 Wire trim (wtrim) 0 Trim in control
1 Trim in computer
2 3D tracking
6 Skimcut options skimpass$ 0 No skimcut
+1 First skim cut pass on a
contour
-1 Subsequent skim cut
pass on a contour
-2 Last skim cut pass on a
contour
7 Wire cut position X cutx$
8 Wire cut position Y cuty$
9 XY trimming plane trimplane1$
10 UV trimming plane trimplane2$
11 Register value 1 reg1$
12 Register value 2 reg2$
13 Register value 3 reg3$
14 Register value 4 reg4$
15 Register value 5 reg5$
16 Register value 6 reg6$
17 Register value 7 reg7$
18 Register value 8 reg8$
19 Register value 9 reg9$
20 Register value 10 reg10$
124 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R L 1016 : Additional Miscellaneous Parameters
Definition: 1016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 Operation id op_id$
2 Tool type tool_typ$
3 Internal toolpath
opcode
tool_op$ (See tool_op$ codes on page 126 for
possible values.)
4 Construction view
number
cplnno$
5 X coordinate of
construction
plane origin
corgx$ (relative to view)
6 Y coordinate of
construction
plane origin
corgy$ (relative to view)
7 Z coordinate of
construction
plane origin
corgz$ (relative to view)
8 Cutter
compensation in
computer
cc_computer$ 0
41
42
Off
Left
Right
9 Work offset
number
workofs$
10 Metric is used met_tool$
11 Number of flutes
on cutter
n_flutes$
12 Active spindle for
lathe
spindle_no$
13 Number of
threads on tap
n_tap_thds$
14 Station number
(lathe) or head
number (mill)
lstation$
15 Upper turret is
used
lturret$ 0
1
Lower turret
Upper turret
16 Unique tool ID ltool_id$
17 Transform
operation ID
xform_op_id$ If the operation is a transform
operation, this is the operation ID of
the transformed operation.
18 (For internal use only)
NCI REFERENCE / NCI Gcodes 125
Quick Start
W 1016 : Additional Miscellaneous Parameters
Definition: 1016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 Operation id op_id$
2 Finish spawned
from Nocore
nocore_fin$
3 Internal toolpath
opcode
tool_op$ (See tool_op$ codes on page 126 for
possible values.)
4 Number of view
used for Cplane
cplnno$ (not used in Wirealways 0)
5 Cplane origin (X) corgx$ (not used in Wirealways 0)
6 Cplane origin (Y) corgy$ (not used in Wirealways 0)
7 Cplane origin (Z) corgz$ (not used in Wirealways 0)
8 Cutter
compensation in
computer
cc_computer$ 0
41
42
Off
Left
Right
9 Work offset
number
workofs$
10 Metric is used met_tool$
11 Punch, die, open
flag
pdo_type$ 0
1
2
Punch
Die
Open
12 spindle_no$ (not used in Wirealways 0)
13 rpd_hght$
14 landheight$
15 Taper or slug type contour_typ$ 0
1
2
3
4
No taper
Taper in
Taper out
Land up
Land down
16 Chain height
button selected
contour_pos$ 0
1
2
XY height
Land height
UV height
17 wox$ Work plane origin (X)
18 woy$ Work plane origin (Y)
19 woz$ Work plane origin (Z)
20 Transform
operation id
xform_op_id$ If the operation is a transform
operation, this is the operation ID of
the transformed operation.
126 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
tool_op$ codes
This table lists the tool_op$ codes output on the 1016 line:
Table 1: tool_op$ codes
Mill/
Router
Lathe Wire tool_op$ Operation
M/R 1 Contour
M/R 2 Drill
M/R 3 Pocket
M/R 4 Transform operation
M/R 5 Multisurface rough parallel
M/R 6 Multisurface rough radial
M/R 7 Multisurface rough project
M/R 8 Multisurface rough flowline
M/R 9 Multisurface rough contour
M/R 10 Multisurface rough pocket
M/R 11 Multisurface finish parallel
M/R 12 Multisurface finish radial
M/R 13 Multisurface finish project
M/R 14 Multisurface finish flowline
M/R 15 Multisurface finish contour
M/R 16 For C-Hook- created operations
M/R 17 Manual entry
M/R 18 Version 8
M/R 19 Point
M/R 20 Trimmed
M/R 21 Ruled
M/R 22 Revolved
M/R 23 Letters
M/R 24 Swept 2D
M/R 25 Swept 3D
M/R 26 Coons
M/R 27 Lofted
M/R 28 5-axis drilling
M/R 29 5-axis curve
M/R 30 Project toolpath onto a plane
NCI REFERENCE / NCI Gcodes 127
Quick Start
M/R 31 Project toolpath onto a cylinder
M/R 32 Project toolpath onto a sphere
M/R 33 Project toolpath onto a cone
M/R 34 Project toolpath onto a cross section
M/R 35 Project toolpath onto a surface
M/R 36 Non-associative contour
M/R 37 Non-associative drilling
M/R 38 Non-associative pocketing
M/R 39 Multisurface finish pencil trace
M/R 40 Multisurface finish leftover stock
M/R 41 Multisurface finish steep
M/R 42 Multisurface finish shallow
M/R 43 Multisurface finish constant scallop
M/R 44 Multisurface rough plunge
M/R 45 Multisurface finish 5-axis flowline
M/R 46 Multisurface finish 4-axis
M/R 47 Merged in ASCII NCI
M/R 48 5-axis swarf
M/R 49 5-axis roll die
L 51 face contouring (C axis)
L 52 cross contouring (C axis)
L 53 C axis contouring
L 55 face drilling (C axis)
L 56 cross drilling (C axis)
L 57 C axis drilling
L 60 Rough
L 61 Finish
L 62 Grooving
L 63 Threading
L 64 Drill
L 65 Point
L 66 Facing
Table 1: tool_op$ codes
Mill/
Router
Lathe Wire tool_op$ Operation
128 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L 67 Cutoff
L 68 Plunge rough; also, chained grooves
L 69 Manual entry
L 70 Merged ASCII
W 74 Contour
W 75 Canned
W 76 No Core
W 77 Manual entry
W 78 Point
W 79 4-axis
W 80 Transform
W 81 Associative trimmed
W 82 Merged in ASCII NCI
W 83 Collar (new for X4)
M/R 100 Thread mill
M/R 101 Edit common operation parameters
M/R 102 Facing
M/R 103 Associative trimmed
M/R 104 Solid drill control operation
M/R 105 Slot mill
M/R 106 Helix bore
M/R 107 Multi-surface rough restmill
M/R 108 Associative nesting container
operation
M/R 109 Multi-surface finish blend
M/R 110 Multi-surface 5axis, rough
M/R 111 Slice 5axis
M/R 112 Port 5axis
M/R 113 5-axis circle (new for X4)
M/R 115 Advanced multiaxis
M/R 130 Tab cutoff
M/R 131 Multi-surface rough pocket, light
Table 1: tool_op$ codes
Mill/
Router
Lathe Wire tool_op$ Operation
NCI REFERENCE / NCI Gcodes 129
Quick Start
M/R 132 High-speed surface toolpaths
M/R 133 Nesting onionskin operation
M/R 134 2-D hardmill machining/peel mill
R 135 Saw
M/R 136 FBM drill control operation
M/R 137 FBM mill control operation
L 201 Canned finish
L 202 Canned rough
L 203 Canned rough and finish
L 204 Canned rough face
L 205 Canned rough and finish face
L 206 Canned pattern repeat rough
L 207 Canned pattern repeat rough and
finish
L 208 Canned groove rough
L 209 Canned groove finish
L 210 Quick rough
L 211 Quick finish
L 212 Quick groove
L 213 C-hook generated
L 214 Stock transfer
L 215 Stock flip
L 216 Bar feed
L 217 Chuck clamp/unclamp
L 218 Tailstock operation
L 219 Steadyrest operation
MT 220 Pinch-turn (MultiTasking)
MT 221 Custom operation with tool
(MultiTasking/event-driven post)
MT 222 Custom operation without tool
(MultiTasking/event-driven post)
MT 223 Reference custom operation
(MultiTasking/event-driven post)
R 301 Router contour (obsolete)
Table 1: tool_op$ codes
Mill/
Router
Lathe Wire tool_op$ Operation
130 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
R 302 Router pocket (obsolete)
R 303 Router circmill (obsolete)
R 304 Router cutoff (obsolete)
R 305 Router surface rough pocket
(obsolete)
R 306 Router multi-drill (block drill)
M/R 416 Engraving
Art 439 Art
M/R 440 Advanced multiaxis (Moduleworks)
Table 1: tool_op$ codes
Mill/
Router
Lathe Wire tool_op$ Operation
NCI REFERENCE / NCI Gcodes 131
Quick Start
L M R 1017 : Construction Plane View Matrix
Definition: 1017
1 2 3 4 5 6 7 8 9
1 X vector X in WCS cm1$
2 X vector Y in WCS cm2$
3 X vector Z in WCS cm3$
4 Y vector X in WCS cm4$
5 Y vector Y in WCS cm5$
6 Y vector Z in WCS cm6$
7 Z vector X in WCS cm7$
8 Z vector Y in WCS cm8$
9 Z vector Z in WCS cm9$
132 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L M R 1018 : Subprogram Start Definition
Definition: 1018
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27
1 Subprogram number sub_op_id$ /
sub_ref_id$
If this is a transform subprogram, this
value is read into sub_ref_id$.
If this is a non-transform
subprogram, this value is read into
sub_op_id$.
Post writers who want to access the
subprogram number should use
main_prg_no$ and sub_prg_no$.
2 Actual operation id sub_grp_id$
3 Transform / non-
transform indicator
sub_trns_id$ 0 Non-transform
>0 Transform
4 Iteration counter sub_sec_no$ Transform operations:
<0 = Off
0 = Original
>0 = Copy
Non-transform operations:
<1 = Copy in transform
1 = Original
>1 = Copy
5 Total number of
instances (1-based)
sub_totl_no$
6 Chain # sub_chn_no$ For non-transform subprograms only
7 Absolute or
incremental
sub_inc$ 0
1
Absolute
Incremental
8 Transform type sub_trnstyp$ 0 Mirror
1 Rotate
2 Scale (not used)
3 Translate
9 sub_trnmthd$ 0
1
2
Translate method = Tool plane
Translate method = Tool plane with
Tool plane origin ONLY checked
Translate method = Coordinate
10 Transform matrix sub_m1$
11 Transform matrix sub_m2$
12 Transform matrix sub_m3$
13 Transform matrix sub_m4$
14 Transform matrix sub_m5$
15 Transform matrix sub_m6$
16 Transform matrix sub_m7$
NCI REFERENCE / NCI Gcodes 133
Quick Start
NCI file subprogram concepts
Mastercam writes subprogram information to the NCI file in long code format. All
motion code is written as if subprograms werent available. Subprogram information is
written to the NCI file using the 1018 and 1019 NCI lines. These lines serve as a wrapper
for the motion that is to become a subprogram. MP then reads these NCI lines and,
based on the parameters in these lines, determines whether to:
Write the initial subprogram.
Make a call to the subprogram and call the appropriate predefined postblocks
inside the post customization file (.PST).
17 Transform matrix sub_m8$
18 Transform matrix sub_m9$
19 Transform X data sub_trnsx$ Mirrored data:
X-axis mirror. Set X-axis intersection.
Rotated data:
XYZ = center of rotation relative to
current view.
Translated data:
XYZ = translation distance relative to
original operation.
20 Transform Y data sub_trnsy$ Mirrored data:
Y-axis mirror. Set Y-axis intersection.
Rotated data:
XYZ = center of rotation relative to
current view Translated data:
XYZ = translation distance relative to
original operation.
21 Transform Z data sub_trnsz$ Rotated data:
XYZ = center of rotation relative to
current view
Translated data:
XYZ = translation distance relative to
original operation
22 First tool in the
transform group
sub_nxt_t$
23 First head number in
the transform group
sub_nxt_h$
24 (Not used) sub_nxt_tid$
25 More than one tool in
transform
sub_mny_t$ 0
1
Only one tool used in the transform
Multiple tools used in the transform
26 (Internal Use) 1
2
10
100
100
0
Source
Source path
One level call
Separate subs
All Incremenal
27 (Internal Use) Flags if it is OK to write the 1018 line
134 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Subprogram level hierarchySubprograms are designed to allow three levels of
subprograms:
The top level is the default NC level. This level is always active if no subs are
defined.
The second level is the transform level. This level is set for all transform
subprograms.
The third level is for all non-transform subprograms. In the absence of the
transform level, third level subprograms are output at the second level.
1018 / 1019 position in the NCI fileThe 1018 NCI line defines the start of a subprogram
block and the 1019 NCI line defines the end of a subprogram block. For every 1018, there
will be a corresponding 1019. The position of the 1018 and 1019 depend on whether the
subprogram being written is a transform or non-transform subprogram.
With transform subprogramsTransform subprograms position the 1018
directly after the 1020 NCI line. The 1019 NCI line then encloses all operations
selected for the transform. This output and positioning continues for each
transform location. Like parentheses, these NCI lines must nest any non-
transform subprograms.
With non-transform subprogramsNon-transform subprograms place the 1018
NCI line and 1019 NCI line dependent on the toolpath type.
A further distinction is made between Drill and Depth Cut subprograms:
Non-transform depth cut subprogramsThe 1018 NCI line is placed before the
first position to be placed in the subprogram. The 1019 NCI line is placed after
the last position to be placed in the subprogram.
Non-transform drill subprogramsThe 1018 NCI line is placed after the cycle
definition (81 NCI line). The definition is outside of the subprogram so repeated
points can be called with a different cycle definition. The 1019 NCI line is placed
before the cancel drill cycle NCI line (80 NCI line).
Special Cases: Lathe turning canned cyclesThe Lathe canned turning cycle(s)
automatically produce a non-transform subprogram for the chain that was selected as
the final profile. All motion from the first point in the chain to the last point in the chain
is included in the subprogram.The numbering procedure used for any other non-
transform subprogram applies and must be included when processing for subprograms.
This subprogram is used internally by the MP language processor and doesnt follow the
normal subprogram output method.
NCI REFERENCE / NCI Gcodes 135
Quick Start
L M R 1019 : Subprogram End Definition
Definition: 1019
1 2 3 4 5 6
The 1019 parameters are used to return the output stream level to the previous level that
was set prior to 1018 being called. Therefore, 1018 and 1019 are matched pairs and only
non-transform subprograms may nest in transform subprograms. The 1019
parameters match the first six parameters written on the matching 1018 line.
See NCI file subprogram concepts on page 133 more info about how this NCI line is used.
1 Subprogram
number
esub_op_id$ /
esub_ref_id$
If param 3 (esub_trns_id$) > 0, then:
param 1 is read to esub_ref_id$,
esub_op_id$ = 0
otherwise:
param 1 is read to esub_op_id$,
esub_ref_id$ = 0
Post writers who want to access the
subprogram number should use
main_prg_no$ and sub_prg_no$.
2 Actual operation id esub_grp_id$
3 Transform / non-
transform flag
esub_trns_id$ 0 Non-transform
>0 Transform
4 Iteration counter esub_sec_no$ Transform operations:
<0 = Off
0 = Original
>0 = Copy
Non-transform operations:
<1 = Copy in transform
1 = Original
>1 = Copy
5 Total number of
instances
esub_totl_no$
6 Chain # esub_chn_no$ For non-transform subprograms only
136 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1020 : Stock Parameters
Definition: 1020
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 X component,
width
stck_ht$
2 Y component,
height
stck_wdth$
3 Z component,
thickness
stck_thck$
4 X origin of block stck_x$
5 Y origin of block stck_y$
6 Z origin of block stck_z$
7 Origin corner stck_crnr$ 0 Origin corner: top - center
1 Origin corner: top upper left
2 Origin corner: top upper right
3 Origin corner: top lower right
4 Origin corner: top lower left
5 Origin corner: bottom upper left
6 Origin corner: bottom upper right
7 Origin corner: bottom lower right
8 Origin corner: bottom lower left
8 Rotary axis in terms
of Tplane
rotary_vecx$
9 Rotary axis in terms
of Tplane
rotary_vecy$
10 Rotary axis in terms
of Tplane
rotary_vecz$
11 (Not used)
12 Parameter file read
flag
(read internally)
13 Maximum spindle
speed
maxss$
14 String with the
stock material
name
stck_matl$
NCI REFERENCE / NCI Gcodes 137
Quick Start
L 1020 : Stock Parameters
Definition: 1020
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 Length of stock
along Z axis
stck_ht$
2 Maximum
diameter of stock
stck_wdth$
3 Same as 2 stck_thck$
4 Center of stock
along Z axis
stck_x$
5 Center of stock stck_y$
6 Center of stock stck_z$ Always 0
7 Origin corner stck_crnr$ Always 0
8 Rotary axis in terms
of Tplane
rotary_vecx$ Always 0
9 Rotary axis in terms
of Tplane
rotary_vecy$ Always 0
10 Rotary axis in terms
of Tplane
rotary_vecz$ Always 0
11 (Not used)
12 Parameter file read
flag
(read internally)
13 Maximum spindle
speed
maxss$
14 Stock material
name
stck_matl$
138 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
W 1020 : Stock Parameters
Definition: 1020
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 X component,
width
stck_ht$
2 Y component,
height
stck_wdth$
3 Z component,
thickness
stck_thck$
4 X origin of block stck_x$
5 Y origin of block stck_y$
6 Z origin of block stck_z$
7 Origin corner stck_crnr$ 0 Origin corner: top - center
1 Origin corner: top upper left
2 Origin corner: top upper right
3 Origin corner: top lower right
4 Origin corner: top lower left
5 Origin corner: bottom upper left
6 Origin corner: bottom upper right
7 Origin corner: bottom lower right
8 Origin corner: bottom lower left
8 (Not used)
9 (Not used)
10 (Not used)
11 Tank fill / empty
flag
tank$
12 Parameter file read
flag
(read internally)
13 (Not used)
14 String with the
stock material
name
stck_matl$
NCI REFERENCE / NCI Gcodes 139
Quick Start
L M R W 1025 : Canned Text
Each parameter is a 4-digit number where:
The first digit is the cant_pos1$cant_pos20$ value. This value ranges from 02
and indicates how the canned text is to be output:
0 = output before the line
1 = output with the line
2 = output after the line
The other three digits are the cant_val1$cant_val20$ value and indicate which
canned text item to output.
Leading zeros are not output; so, for Example:, 0005 would be output simply as 5.
Definition: 1025
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 Canned text
parameter
cant_pos1$+cant_val1$ Output mode + canned text ID
2 cant_pos2$+cant_val2$
3 cant_pos3$+cant_val3$
4 cant_pos4$+cant_val4$
5 cant_pos5$+cant_val5$
6 cant_pos6$+cant_val6$
7 cant_pos7$+cant_val7$
8 cant_pos8$+cant_val8$
9 cant_pos9$+cant_val9$
10 cant_pos10$+cant_val10$
11 cant_pos11$ cant_val11$
12 cant_pos12$+cant_val12$
13 cant_pos13$+cant_val13$
14 cant_pos14$+cant_val14$
15 cant_pos15$+cant_val15$
16 cant_pos16$+cant_val16$
17 cant_pos17$+cant_val17$
18 cant_pos18$+cant_val18$
19 cant_pos19$+cant_val19$
20 cant_pos20$+cant_val20$
140 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L M R W 1026 : Manual Entry / Comment as code, with move
Definition: 1026
comment
L M R W 1027 : Working Coordinate System
Definition: 1027
1 2 3 4 5 6 7 8 9 10 11 12
Text to be inserted into the
NC program
Text will be inserted directly as
NC code (not formatted as a
comment) and output with the
next move.
(See L M R W 1007 : Manual
Entry / Comment with move to
format as comment.)
1 t_wcs_m1$
2 t_wcs_m2$
3 t_wcs_m3$
4 t_wcs_m4$
5 t_wcs_m5$
6 t_wcs_m6$
7 t_wcs_m7$
8 t_wcs_m8$
9 t_wcs_m9$
10 t_orgin_x$
11 t_orgin_y$
12 t_orgin_z$
NCI REFERENCE / NCI Gcodes 141
Quick Start
M R 1028 : Head definition data
Definition: 1028
1 2 3 4 5 6 7 8 9 10 11 12
1 ra_type$ 0
1
2
3
4
No special head (std)
Right-angle
Compound
Block drill
UST
2 ra_offset$
3 ra_vecx$
4 ra_vecy$
5 ra_vecz$
6 ra_svecx$
7 ra_svecy$
8 ra_svecz$
9 ra_block$
10 ra_station$
11 ra_head_grp$
12 ra_tc_type$ 0
1
2
Auto T.C. (default)
Fixed unit
Manual T.C.
142 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
M R 1029 : Head shift parameters
Definition: 1029
1 2 3 4 5 6 7 8 9 10 11
1 ra_hvecx$
2 ra_hvecy$
3 ra_hvecz$
4 ra_bvecx$
5 ra_bvecy$
6 ra_bvecz$
7 ra_tvecx$
8 ra_tvecy$
9 ra_tvecz$
10 ra_translated$
11 ra_rot_head$
NCI REFERENCE / NCI Gcodes 143
Quick Start
L M R W 1031 Custom reals for transform operations
Definition: 1031
1 2 3 4 5 6 7 8 9 10
1 Custom parameters
(reals) for transform
operation
trans_mr1$
2 trans_mr2$
3 trans_mr3$
4 trans_mr4$
5 trans_mr5$ (not currently used
reserved for future use)
6 trans_mr6$ (not currently used
reserved for future use)
7 trans_mr7$ (not currently used
reserved for future use)
8 trans_mr8$ (not currently used
reserved for future use)
9 trans_mr9$ (not currently used
reserved for future use)
10 trans_mr10$ (not currently used
reserved for future use)
144 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L M R W 1032 Custom ints for transform operations
Definition: 1032
1 2 3 4 5 6 7 8 9 10
1 Custom parameter (ints)
for transform operation
trans_mi1$
2 trans_mi2$
3 trans_mi3$
4 trans_mi4$
5 trans_mi5$ (not currently used
reserved for future use)
6 trans_mi6$ (not currently used
reserved for future use)
7 trans_mi7$ (not currently used
reserved for future use)
8 trans_mi8$ (not currently used
reserved for future use)
9 trans_mi9$ (not currently used
reserved for future use)
10 trans_mi10$ (not currently used
reserved for future use)
NCI REFERENCE / NCI Gcodes 145
Quick Start
L M R W 1050 (Define NCI Version Header)
Definition: 1050
1 2 3 4 5 6 7 8 9
L M R W 1051 : Machine name
Definition: 1051
string
L M R W 1052 : Machine group comment
Definition: 1052
string
L M R W 1053 : Machine group name
Definition: 1053
string
1 Mastercam major version
number
vers_no$
2 [obsolete] m_vers_no$
3 MCX file - day stamp mc_day$
4 MCX file - month stamp mc_mon$
5 MCX file - year stamp mc_year$
6 MCX file - hour stamp mc_hour$
7 MCX file - minute stamp mc_minute$
8 MCX file - second stamp mc_sec$
9 MCX file name smcname$
Text to be inserted into the
NC program.
Name of machine definition.
Text to be inserted into the
NC program.
Comment recorded in machine
group properties.
Text to be inserted into the
NC program.
Name of machine group.
146 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Control Flags Parameters
The control flags (also called contour flags) parameter is a single parameter passed
from the NCI that carries several pieces of information in a single numeric value. The
control flags parameter appears in every motion NCI line (Gcodes 0, 1, 2, 11, 81) to
control such values as contour start, stop, and end, coolant, and 5-axis angles (for Mill) or
rapid behavior (for Lathe).
Each decimal position in the control flags parameter value represents an individual flag.
For Example:, 1 (first decimal place) is the contour stop flag, 10 (second decimal place) is
the contour optional stop flag, 100 (third decimal place) is the contour end flag, and so
forth. When added together, the result is a single number that represents multiple flags.
Zero is implied when the place fields are empty, but only leading zeros may be omitted.
For Example: (in Mill), if:
cur_cflg$ = 3201001
The control flags (reading left to right) set the following:
5-axis: 180-degree angle
Coolant flood
Contour start on
Contour optional stop off
Contour stop on
The flag as read from the NCI is available as the predefined variable cur_cflg$. You should
rarely need to use the cur_cflg$ variable directly because the post executable sets
separate variables for each flag.
The following tables describe the control flag settings for each product.
NCI REFERENCE / NCI Gcodes 147
Quick Start
M R Mill / Router Control Flags Parameters
This is written to the NCI as a six-digit number. Each digit sets the value of a different
pre-defined value, as shown in this table. The entire six-digit number is stored in the
cur_cflg$ variable.
The Compensation ON/OFF position flag values are added to cend$ and cstart$ flag, if
they exist at the same location in the NCI file. Example:: Contour END (100) and
compensation OFF (200) can occur at the same location, so the flag values are added and
you will see a value of 300.
The compensation flags (2000 and 200) are independent of the compensation actually
being programmed in the toolpath program! They mark where compensation would
normally be activated and canceled in the toolpath by Mastercam.
The raw values shown in this chart are not the values set in the individual variables.
Example:: if cur_cflg$ = 1000 (contour start), the variable cstart$ is set to 1.
cstop$ 0
1
Contour stop off
Contour stop on
cgstop$ 00
10
Contour optional stop off
Contour optional stop on
cend$ 000
100
200
300
Contour end off
Contour end on
Compensation OFF position
Both contour and compensation off
See notes below
cstart$ 0000
1000
2000
3000
Contour start off
Contour start on
Compensation ON position
Both contour & compensation start
See notes below
rpd_typ$ 70000 Pause for tool inspection (high
speed surface toolpaths)
coolant$ 100000
200000
300000
400000
Coolant off
Coolant flood
Coolant mist
Coolant tool
rev5$ 1000000
2000000
3000000
4000000
5000000
Five axis, non-vertical tool: flipped
Vertical tool: same as previous angle
Five axis: same as next angle
Five axis: 180 degree angle
Five axis: previous + 180 degrees
Five axis: next + 180 degrees
148 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
L Lathe Control Flags Parameters
This is written to the NCI as a six-digit number. Each digit sets the value of a different
pre-defined value, as shown in this table. The entire six-digit number is stored in the
cur_cflg$ variable.
The Compensation ON/OFF position flag values are added to cend$ and cstart$ flag, if
they exist at the same location in the NCI file. Example:: Contour END (100) and
compensation OFF (200) can occur at the same location, so the flag values are added and
you will see a value of 300.
The compensation flags (2000 and 200) are independent of the compensation actually
being programmed in the toolpath program! They mark where compensation would
normally be activated and canceled in the toolpath by Mastercam.
The raw values shown in this chart are not the values set in the individual variables.
Example:: if cur_cflg$ = 1000 (contour start), the variable cstart$ is set to 1.
cstop$ 0
1
Contour stop off
Contour stop on
cgstop$ 00
10
Contour optional stop off
Contour optional stop on
cend$ 000
100
200
300
Contour end off
Contour end on
Compensation OFF position
Both contour and compensation off
See notes below
cstart$ 0000
1000
2000
3000
Contour start off
Contour start on
Compensation ON position
Both contour & compensation start
See notes below
rpd_typ$ 10000
20000
30000
40000
50000
60000
70000
Clear to home
Rapid to start
Rapid around obstruction
Rapid between points
Entry / Exit
Start / End rough turning cycles
Pause for tool inspection (groove
toolpaths)
coolant$ 100000
200000
300000
400000
Coolant off
Coolant flood
Coolant mist
Coolant tool
NCI REFERENCE / NCI Gcodes 149
Quick Start
W Wire Control Flags Parameters
This is written to the NCI as a nine-digit number. Each digit sets the value of a different
pre-defined value, as shown in this table. The entire nine-digit number is stored in the
cur_cflg$ variable.
The Compensation ON/OFF position flag values are added to cend$ and cstart$ flag, if
they exist at the same location in the NCI file. Example:: Contour END (100) and
compensation OFF (200) can occur at the same location, so the flag values are added and
you will see a value of 300.
The compensation flags (2000 and 200) are independent of the compensation actually
being programmed in the wirepath! They mark where compensation would normally be
activated and canceled in the wirepath by Mastercam.
The raw values shown in this chart are not the values set in the individual variables.
Example: if cur_cflg$ = 1000 (contour start), the variable cstart$ is set to 1.
cstop$ 0
1
Contour stop off
Contour stop on
cgstop$ 00
10
Contour optional stop off
Contour optional stop on
cend$ 000
100
200
300
Contour end off
Contour end on
Compensation OFF position
Both contour and compensation off
See notes below
cstart$ 0000
1000
2000
3000
Contour start off
Contour start on
Compensation ON position
Both contour & compensation start
See notes below
thrd_cut$ 10000
20000
Thread the wire
Cut the wire
water$ 100000
200000
300000
Water off
Water on
Water option 1
power$ 1000000
2000000
Power off
Power on
tank$ 10000000
20000000
Tank empty
Tank fill
epac_flg$ 100000000 Indicates that the current move is an
approach point that has been
added. This typically occurs if the
power (epac) settings are
programmed to change after the
approach move.
150 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Tool information (20000s parameters)
Tool information lines are added in the 20000s lines in the NCI file. The data is presented
in a two-line format:
See Capturing
parameters from
20000s lines on page 35
to learn more about using
the values.
The first line contains the parameter number.
The second line contains the value or values.
The second line can be interpreted as either a single string or as a series of numeric
values separated by spaces. In the reference sections that follow, for each parameter
there is a prototype that describes the data structure of the parameter value, followed a
description of the actual values. These are not assigned variable names but can be
scanned for the desired values with the function rpar. (See Capturing numeric values
from a 20000s line on page 37 to learn more about how to extract numeric values from
the parameter string.)
g
string
The codes are divided into three sections:
The first section contains codes numbered below 20100 and above 20500. They
are either Mill/Router-specific, or are used across multiple products.
The second section contains Lathe-specific codes, numbered from 20100
20199.
The third section contains Wire-specific codes. Most of these are numbered
above 20200.
Note that some codes might be output for a certain product, but with a blank value if the
value isnt used in that product.
See NCI Gcodes for information about NCI Gcodes numbered below 10000.
NCI REFERENCE / Tool information (20000s parameters) 151
Quick Start
Mill/Router/Generic
20001 : Tool name
Used in: Mill Lathe Router
Definition: 20001
string (tool name)
20002 : Tool definition: manufacturers tool code
Used in: Mill Lathe Router
Definition: 20002
string (manufacturers tool code)
20003 : Chuck name
Used in: Mill Router
Definition: 20003
string (chuck name)
20004 : Tool definition: tool parameters
Used in: Mill Router
Definition: 20004
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 tool number
2 tool type:
1=center drill
2=spot drill
3=drill
4=right hand tap
5=left hand tap
6=reamer
7=boring bar
8=counter bore
9=counter sink
10=end mill - flat
11=end mill - spherical
12=chamfer mill
13=face mill
14=slot mill
15=radius mill
16=dovetail mill
17=tapered mill
18=lollipop mill
152 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
20005 : Tool definition: tool parameters for drills
Used in: Mill Router
Definition: 20005
1 2 3 4 5 6 7 8 9
19=end mill bullnose
3 tool material:
1=high speed steel
2=carbide
3=coated carbide
4=ceramic
5=borzon
6=unknown
4 corner radius type:
0= flat mill
1= bullnose mill
2= spherical mill
5 tool diameter
6 corner radius
7 number of threads/inch or pitch (mm)
8 tool tip included angle
9 diameter offset register #
10 length offset register #
11 linear feed rate
12 plunge feed rate
13 retract feed rate
14 spindle speed
15 coolant type:
0=coolant off
1=flood
2=mist
3=tool (spindle)
16 number of flutes
1 drill canned cycle type
2 1st peck increment (% of tool dia.)
3 2nd peck increment (% of tool dia.)
4 peck clearance (% of tool dia.)
5 chip break (% of tool dia.)
6 amount of dwell in seconds
7 shoulder angle
8 tap drill diameter
9 amount to shift off wall for fine boring
NCI REFERENCE / Tool information (20000s parameters) 153
Quick Start
20006 : Tool definition: tool parameters
Used in: Mill Router
Definition: 20006
1 2 3 4 5 6 7 8
20007 : Tool definition: holder parameters
Used in: Mill Router
Definition: 20007
1 2 3 4 5 6 7 8 9 10 11
20008 : Tool definition: aggregate head parameters
Used in: Mill Router
Definition: 20008
1 2 3 4 5 6 7 8 9
1 cutter ability:
0=capable of roughing and finishing
1=capable of roughing only
2=capable of finishing only
2 % of tool dia. for rough XY stepover
3 % of tool dia. for rough Z step
4 % of tool dia. for finish XY stepover
5 % of tool dia. for finish Z step
6 tool tip diameter
7 tool minor diameter
8 thread mill angle
1 minimum diameter required for tool to plunge
2 flute length
3 overall length
4 shoulder length
5 arbor diameter
6 holder diameter
7 holder length
8 0 = cw, 1 = ccw
9 % of surface ft/mm to be applied against workpiece
matl sfm
10 % of feed/tooth to be applied against workpiece matl
fpt
11 0 = values in inches, 1 = metric
1 head axis in X
2 head axis in Y
154 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
20009 : Custom tool geometry
Used in: Mill Router
Definition: 20009
1 2
20010 : Construction plane name
Used in: Mill Lathe Router Wire
Definition: g = 20010
string (construction plane name)
20011 : Construction plane commment
Used in: Mill Lathe Router Wire
Definition: 20011
string (construction plane commment)
This line has no value in Wire. It will be output, but will always be blank.
20012 : Tool plane name
Used in: Mill Lathe Router Wire
Definition: 20012
string (tool plane name)
20013 : Tool plane comment
Used in: Mill Lathe Router Wire
Definition: 20013
string (tool insert name)
This line has no value in Wire. It will be output, but will always be blank.
3 head axis in Z
4 head body type: ( 0 = cylinder, 1 = square)
5 head body diameter
6 head body length
7 station body type ( 0 = cylinder, 1 = square)
8 station body diameter
9 station body length
1 The level on which custom tool geometry is stored.
2 The source of the custom geometry (0=auto, 1=file,
2=level).
NCI REFERENCE / Tool information (20000s parameters) 155
Quick Start
20014 : WCS plane name
Used in: Mill Lathe Router Wire
Definition: 20014
string (WCS plane name)
20015 : WCS plane comment
Used in: Mill Lathe Router Wire
Definition: 20015
string (WCS plane comment)
This line has no value in Wire. It will be output, but will always be blank.
20016 : Material name
Used in: Mill Lathe Router
Definition: 20016
string (material name)
This line has no value in Wire. It will be output, but will always be blank.
20017 : Material comment
Used in: Mill Lathe Router
Definition: 20017
string (material comment)
This line has no value in Wire. It will be output, but will always be blank.
20018 : Machine group name
Used in: Mill Lathe Router Wire
Definition: 20018
string (machine group name)
20501 : Nested sheet: material name
Used in: Mill Router
Definition: 20501
string (material name)
Sheet information is output for each sheet change notification in the NCI.
20502 : Nested sheet: parameters
Used in: Mill Router
Definition: 20502
1 2 3 4 5 6 7 8 9 10 11 12
Sheet information is output for each sheet change notification in the NCI.
1 sheet length (X dimension)
2 sheet width (Y dimension)
156 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
20600 : Axis combination components
Used in: Mill Router Lathe Wire
Definition: 20600
1 2 3 4 5
A 20600 line is output for each component in the axis combination.
20601 : Axis combination info
Used in: Mill Router Lathe Wire
Definition: 20601
1 2 3 4
A 20601 line is output for the axis combination itself.
3 Sheet thickness (temporary placeholder)
4 sheet corner (1 = lower left, 2 = lower right, 3 = upper
right, 4 = upper left)
5 sheet number
6 sheet instance
7 integer pad
8 integer pad
9 integer pad
10 real pad
11 real pad
12 real pad
1 Entity ID for component
2 String ID for component
3 Axis label (absolute)
4 Axis label (incremental)
5 Component name
1 Entity ID
2 String ID
3 1=Mapped axis combination, otherwise 0
4 Axis combination name
NCI REFERENCE / Tool information (20000s parameters) 157
Quick Start
20700 : Tool change info per data stream
Used in: Mill Router Lathe Wire
Definition: 20700
0 1 2 3 4 5 6 7
Code 20700 summarizes tool usage for each data stream, 0-7. Each parameter
value corresponds to one of the data streams.
20800 : Tool diameter for multiaxis comp in control
Used in: Mill Router Lathe
Definition: 20800
0
This parameter captures the tool diameter from the Cut Pattern page.
This is output for all operations except lathe misc ops. It will be output for tool
changes and for null tool changes where the operation changes. It will be output
following the 20009 line for mill tool changes, and the 20112 line for lathe tool
changes.
If the operation is not a multiaxis operation, the value will be zero.
07 For each data stream, the parameter indicates the
following:
0=No tool change in data stream
1=One tool change in data stream
2=More than one tool change in data stream
158 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Lathe
20100 : Lathe tool definition : programming parameters
Used in: Lathe
Definition: 20100
1 2 3 4 5 6 7 8 9
20101 : Lathe tool definition: general cutting parameters
Used in: Lathe
Definition: 20101
1 2 3 4 5 6 7 8 9 10
1 tool slot number
2 tool type:
0=General Turning Tools
1=Threading Tools
2=Grooving/Parting Tools
3=Boring Bars
4=Drills, Taps, Reamers
5=Custom Geometry Tools
3 use in top turret
4 active spindle
5 tool angle in turret (in degrees)
6 top turret
7 tool number
8 tool offsets for right edge
9 tool offsets for left edge
1 fast feed rate
2 feed rate type
3 slow feed rate
4 spindle speed
5 spindle speed in css
6 percent of material css to use
7 percent of material feed/rev to use
8 spindle direction
9 coolant status for tool
10 cutting parameters in metric
NCI REFERENCE / Tool information (20000s parameters) 159
Quick Start
20102 : Lathe tool definition: geometric parameters
Used in: Lathe
Definition: 20102
1 2 3 4 5 6 7 8
20103 : Lathe tool definition: insert name
Used in: Lathe
Definition: 20103
string (tool insert name)
20104 : Lathe tool definition: insert general parameters
Used in: Lathe
Definition: 20104
1 2 3 4 5 6 7 8
1 tool orientation
2 tool clearance angle for programming
3 tool rake angle for programming
4 tool width for programming
5 tool height for programming
6 tool center for programming
7 tool center for programming
8 comp to center of insert nose radius
1 ASCII code for insert shape:
2 IC diameter
3 length
160 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
20105 : Lathe tool definition: general turning/boring insert parameters
Used in: Lathe
Definition: 20105
1 2 3 4 5 6 7
20106 : Lathe tool definition: threading insert parameters
Used in: Lathe
Definition: 20106
1 2 3 4 5 6 7 8 9 10 11 12
4 corner radius
5 thickness
6 insert material for feed speed calculations
7 insert type (-1 = not used)
8 is insert defined in mm or inches?
1 cross section index ASCII code
2 end relief angle
3 roughing depth of cut
4 finish depth of cut
5 roughing overlap amount
6 facing retraction amount
7 facing x overcut amount
1 insert style:
1=TOP NOTCH Thread Insert
2 =LAYDOWN Thread Insert
2 unified, ACME, buttress, etc.
3 insert for external thread?
4 design thread pitch
5 top notch dist. to insert point from side of insert
6 laydown height of insert (~= thread depth)
7 width of flat for ACME, buttress
8 depth of 1st cut
9 depth of last cut
10 finish pass allowance
11 anticipated pull-off
12 number of spring cuts
NCI REFERENCE / Tool information (20000s parameters) 161
Quick Start
20107 : Lathe tool definition: grooving/parting insert parameters
Used in: Lathe
Definition: 20107
1 2 3 4 5 6 7 8 9 10
20108 : Lathe tool definition: drilling tool parameters (geometry)
Used in: Lathe
Definition: 20108
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 cutting length of insert
2 shank width
3 end length for top notch type P
4 distance to insert point for top notch type V
5 end angle for Sandvik type 5R
6 roughing depth of cut
7 finish depth of cut
8 stock clearance
9 backoff percent
10 roughing overlap amount
1 drill, tap, reamer, etc:
1=Drill
2=Center Drill
3=Countersink
4=Counterbore
5=End Mill
6=Reamer
7=Right Hand Tap
8=Left Hand Tap
2 tool diameter
3 shank diameter
4 tip included angle
5 flute length
6 length at cutting diameter
7 flute helix angle
8 number of flutes
9 chamfer height for reamers, taps
10 tip diameter for center drills
11 tip length for center drills
12 shoulder angle for center drills
13 thread pitch for taps
14 tap type:
162 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
20109 : Lathe tool definition: drilling tool parameters
Used in: Lathe
Definition: 20109
1 2 3 4 5 6
20110 : Lathe tool definition: holder name
Used in: Lathe
Definition: 20110
string (tool holder name)
20111 : Lathe tool definition: holder parameters
Used in: Lathe
Definition: 20111
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1=Tapered Tap
2=Plug Tap
3=Bottoming Tap
1 preferred drilling cycle
2 1st peck increment
3 subsequent peck increment
4 peck clearance
5 retraction amount
6 dwell time
1 shape index ascii code
2 qualified length
3 maximum width
4 shank width
5 shank height
6 'head' length
7 'head' width
8 corner chamfer width
9 corner chamfer height
10 end cutting edge angle
11 side cutting edge angle
12 True = round shank
13 left hand tool?
14 vertically mounted tool?
15 is holder defined in mm or inches?
NCI REFERENCE / Tool information (20000s parameters) 163
Quick Start
20112 : Lathe tool definition: custom tool geometry file name
Used in: Lathe
Definition: 20112
string (custom tool geometry file name)
29999 : Tool inspection comment
Note that this line is not output before the tool change, like the other 20000s
linesinstead, it is output in the toolpath at the point where the tool inspection
occurs. See Lathe tool inspection comments on page 41 to learn more.
Used in: Lathe
Definition: 29999
string (lathe tool inspection comment)
164 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wire
20019 : Pass comment from power library
Used in: Wire
Definition: 20019
string (power library pass comment)
This line has a value in Wire only. It is output for Mill and Router toolpaths, but will
be blank.
20200 : Wirepath stock to leave
Used in: Wire
Definition: 20200
1 2 3 4 5 6 7
The 20200 line is unique in that its parameters are assigned to pre-defined
variables and can be accessed directly, without needing to use the standard
parameter read functions. To enable this functionality, the listrad$ switch needs to
be set to 2. When listrad$ is not set to 2, tlrad$ and offset$ are read from the tool
change and 1010 lines. When listrad$ is set to 2, the values from the tool change
and 1010 lines are ignored. Note that bldnxtool$ must also be set to 1.
1 stock_leave$
2 offset_total$ Radius + overburn + stock-to-
leave amount.
3 offset_mach$ 0
1
Program coordinates; the
coordinates in the NCI are
already shifted by the stock-to-
leave amount.
Machine offset register; the
stock-to-leave offset is done at
the control.
4 tlrad$ Radius of the wire.
5 overburn$
6 cc_type$ 0
1
2
3
4
Computer
Control
Both
Reverse both
Off
7 offset$ Offset register number
NCI REFERENCE / Tool information (20000s parameters) 165
Quick Start
Parameters for custom interfaces
Mastercam X4 introduced a new range of parameters numbered 22xxx. These are
designed to support custom interfaces, principally for Wire. The new 22xxx parameters
are designed to encapsulate settings from the new interfaces and pass them to the post.
These are then read and stored during pparameter$ like any other 20000-style
parameters
The first custom interface was the Agievision interface, introduced in
Mastercam X4.
The second custom interface was the TECH library interface for Makino and
Mitsubishi machines, introduced in Mastercam X5.
The new interfaces use the following numbering scheme:
Parameter numbers 2200122050 will be used for generic parameters. These
numbers will not be unique and will be reused in multiple interfaces. See
Common parameters on page 166.
Parameters numbered from 2205122100 are used by the Agievision interface.
See Agievision parameters on page 170.
Parameters numbered from 2210122150 are used by the TECH library interface.
See TECH library parameters on page 190.
Future interfaces will be assigned new parameter numbers in blocks of 50.
166 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Common parameters
22001 : Machine model
Used in: Wire (custom interfaces)
Definition: 22001
string (machine model)
From control definition. See Control definition: Control Model page on page 168.
22002 : Control version
Used in: Wire (custom interfaces)
Definition: 22002
1
From control definition. See Control definition: Control Model page on page 168.
22003 : Piece name
Used in: Wire (custom interfaces)
Definition: 22003
string
This is only used by the Agievision interface. It is always 0 if the TECH library
interface is selected. See Machine group properties: Piece Details tab on page 183.
22004 : Piece material
Used in: Wire (custom interfaces)
Definition: 22004
string
See Machine group properties: Piece Details tab on page 183.
This is output as a numeric code, padded with leading zeros to 4 places. The table
below lists the possible values. This is only used by the Agievision interface. It is
always 0 if the TECH library interface is selected.
Position Description Type SBL command
1 Control version (03) int none
Position Description Type SBL command
1 Piece name string ID_NAMEOBJ
Position Description Type SBL command
1 Material code string ID_MATERIAL
Table 2: Piece material codes
Value Material
0001 Cold Die Steel
NCI REFERENCE / Tool information (20000s parameters) 167
Quick Start
0011 Electrolytic Cu
0021 Graphite 1 (grain < 5m)
0031 Tung.carbide 85 WC\15Co
0041 Aluminum
0051 Brass
0061 Sialon
0071 PCD 002 (grain 2m)
0081 Graphite 2 (grain 5..10m)
0091 Graphite 3 (grain > 10m)
0101 PCD 010 (grain 10m)
0111 PCD 025 (grain 25m)
0121 PCD-CTC002
0122 PCD-CTB002
0123 PCD-CTB010
0124 PCD-CTB025
0125 PCD-CTH025
0126 PCD-CTM302
0131 PCD-Compax 1300
0132 PCD-Compax 1500
0133 PCD-Compax 1600
0141 PCD C30X
0151 PCB AMB90
0152 PCB DBW85
0153 PCB DBA80
0154 PCB DBC50
0155 PCB DBN45
0161 PCB BZN 8200
0162 PCB BZN 6000
0171 PCB N90
0181 CPM 10V (powder metallurgy steel)
Table 2: Piece material codes
Value Material
168 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22005 : Piece wire name
Used in: Wire (custom interfaces)
Definition: 22005
string
This is only used by the Agievision interface. It is always 0 if the TECH library
interface is selected. See Machine group properties: Piece Details tab on page 183.
Control definition: Control Model page
The following pictures show the Control Model page for both the Agievision and TECH
interfaces.
Position Description Type SBL command
1 Piece wire name string ID_THREAD
22001
22002
NCI REFERENCE / Tool information (20000s parameters) 169
Quick Start
The text string for the Machine model is output with the 22001 line. Note that for the
Makino and Mitsubishi machines, the Control version option is disabled. This is always
output as 0 on the 22002 line.
170 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Agievision parameters
The Agievision interface introduced with Mastercam X4 includes many custom dialog
boxes that mimic the look and feel of the Agievision control.
Parameters 2205122100 are used to output these values.
The Agievision interface also uses 2200122005; these are documented in
Common parameters on page 166.
IMPORTANT: This represents a significant change from how Agie data was
written out by the Agie C-Hook used in Mastercam X3. The C-Hook wrote the data
to a separate .ADT file to be read by the post, instead of the 22000 parameters.
Posts written for the new Agievision interface therefore need to be completely
different.
You can see pictures of all the dialog boxes annotated with the parameter numbers
beginning with Machine group properties: Piece Setup tab on page 182.
22051 : Piece quality target
Used in: Wire (Agie interface)
Definition: 22051
string (piece quality target)
This parameter writes the piece quality target as a string (machining quality
targets are written in lines 2205522057). The numeric real values for Ra, Tf, and
Tkm that correspond to this setting are written on line 22058, parameters 13.
See Machine group properties: Piece Details tab on page 183.
22052 : Machining strategy
Used in: Wire (Agie interface)
Definition: 22052
string
A one- or two-letter code is written to the NCI for each strategy. See Machine group
properties: Piece Details tab on page 183.
Position Description Type SBL command
1 Strategy code string ID_STATEGY
Table 3: Machining strategy codes
Code Strategy
A Machine
E Early
L Late
W Piece
EW Early Piece
LW Late Piece
WE Piece Early
NCI REFERENCE / Tool information (20000s parameters) 171
Quick Start
22053 : Piece setup
Used in: Wire (Agie interface)
Definition: 22053
1 2 3 4 5 6 7 8 9
See Machine group properties: Piece Setup tab on page 182. (Machine group
properties: Piece Setup tab on page 182 also lists the pre-defined variables used for
the piece dimensions).
22054: Machining name
Used in: Wire (Agie interface)
Definition: 22054
string
See Wirepath parameters: Machining page on page 183.
22055: Machining quality target (No Core Group, Collar LC1 wirepaths)
Used in: Wire (Agie interface)
Definition: 22055
string (machining quality target)
This parameter outputs the machining quality target as a string. Lines 22055,
22056, and 22057 all output the machining quality target, but for different types of
wirepaths.
The numeric real values for Ra, Tf, and Tkm that correspond to this setting are
output on line 22058, parameters 68.
WL Piece Late
Position Description Type SBL command
1 Piece reference position (X) real ID_POSX
2 Piece reference position (Y) real ID_POSY
3 Piece reference position (Z) real ID_POSZ
4 Piece reference position (C) real ID_ROTATION
5 Edge position (X) real ID_POSPOSX
6 Edge position (Y) real ID_POSPOSY
7 Edge position (Z) real ID_POSPOSZ
8 Security level real ID_VALSECP
9 Return level real ID_VALRETP
Position Description Type SBL command
1 Machining name string Create working
Table 3: Machining strategy codes
Code Strategy
172 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
See Wirepath parameters: Machining page on page 183.
22056: Machining quality target (No Core Rough, Collar LC2 wirepaths)
Used in: Wire (Agie interface)
Definition: 22056
string (machining quality target)
This parameter outputs the machining quality target as a string. Lines 22055,
22056, and 22057 all output the machining quality target, but for different types of
wirepaths.
The numeric real values for Ra, Tf, and Tkm that correspond to this setting are
output on line 22058, parameters 1113.
See Wirepath parameters: Machining page on page 183.
22057: Machining quality target (No Core Finish, Collar LC3, Contour, and 4-axis
wirepaths)
Used in: Wire (Agie interface)
Definition: 22057
string (machining quality target)
This parameter outputs the machining quality target as a string. Lines 22055,
22056, and 22057 all output the machining quality target, but for different types of
wirepaths.
The numeric real values for Ra, Tf, and Tkm that correspond to this setting are
output on line 22058, parameters 1618.
See Wirepath parameters: Machining page on page 183.
22058: Quality info
Used in: Wire (Agie interface)
Definition: 22058
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
This line has 4 sets of 5 parameters, one for each of 4 quality targets. See Machine
group properties: Piece Details tab on page 183 and Wirepath parameters:
Machining page on page 183.
Position Description Type SBL command
1 Machining quality target string ID_QUALITY
Position Description Type SBL command
1 Machining quality target string ID_QUALITY
Position Description Type SBL command
1 Machining quality target string ID_QUALITY
Position Description Type SBL command
1 Piece quality (22051)Ra real none
NCI REFERENCE / Tool information (20000s parameters) 173
Quick Start
2 Piece quality (22051)Tf real none
3 Piece quality (22051)Tkm real none
4 Speed/quality options (22051):
0 = neither
1 = Speed
2 = Quality
3 = both
int none
5 Create quality checkbox (22051). See
Wirepath parameters: User Tech
(Technology Database) dialog box for
parameters 4 & 5.
int none
6 Quality LC1 (22055)Ra real none
7 Quality LC1 (22055)Tf real none
8 Quality LC1 (22055)Tkm real none
9 Speed/quality options (Quality LC1 :22055):
0 = neither
1 = Speed
2 = Quality
3 = both
int none
10 Create quality checkbox (Quality LC1 :
22055). See Wirepath parameters: User Tech
(Technology Database) dialog box for
parameters 9 & 10.
int none
11 Quality LC2 (22056)Ra real none
12 Quality LC2 (22056)Tf real none
13 Quality LC2 (22056)Tkm real none
14 Speed/quality options (Quality LC2 :22056):
0 = neither
1 = Speed
2 = Quality
3 = both
int none
15 Create quality checkbox (Quality LC2 :
22056). See Wirepath parameters: User Tech
(Technology Database) dialog box for
parameters 14 & 15.
int none
16 Quality LC3 (22057)Ra real none
17 Quality LC3 (22057)Tf real none
18 Quality LC3 (22057)Tkm real none
19 Speed/quality options (Quality LC3: 22057):
0 = neither
1 = Speed
2 = Quality
3 = both
int none
Position Description Type SBL command
174 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22059 : Machining wire name
Used in: Wire (Agie interface)
Definition: 22059
string
See Wirepath parameters: Machining page on page 183.
22060: Machining data
Used in: Wire (Agie interface)
Definition: 22060
1 2 3 4 5 6 7 8
See Wirepath parameters: Machining page on page 183.
20 Create quality checkbox (Quality LC3:
22057). See Wirepath parameters: User Tech
(Technology Database) dialog box for
parameters 19 & 20.
int none
Position Description Type SBL command
1 Machining wire name string ID_THREAD
Position Description Type SBL command
1 Priority int ID_PRIORITY
2 Technological height real ID_HEIGHT
3 Machine reference (X+) real ID_POSX
4 Machine reference (Y+) real ID_POSY
5 Machine reference (Z) real ID_POSZ
6 Machine reference (A) real ID_POSA
7 Machine reference (B) real ID_POSB
8 Machine reference (C) real ID_ROTATION
Position Description Type SBL command
NCI REFERENCE / Tool information (20000s parameters) 175
Quick Start
22061: Agie cut data
Used in: Wire (Agie interface)
Definition: 22061
1 2 3 4 5 6 7 8 9 10 11 12
See Wirepath parameters: Cut parameters page on page 185.
22062: Start point name
Used in: Wire (Agie interface)
Definition: 22062
string
See Wirepath parameters: Start Point page on page 185.
Position Description Type SBL command
1 Compensation: punch vs. die
0= punch
1 = die
1 = disabled (for Example:, an
open chain)
int ID_PUNCH
2 Compensation: left or right
0= left
1 = right
1 = disabled (for Example:, a
closed chain)
int ID_PUNCH
3 Has minimum Agievision radius been
applied to the last cut ?
int ID_RADIUSMINLA
4 Not used int
5 Reverse cut? int ID_REVCUT
6 The number of working steps without
inversion.
int ID_ASWITHOUT
7 Separation cut length real ID_SEPCUT
8 Separation cut clearance real ID_CLEARANCETRENN
9 Clearance distance between punch and
die chains
real ID_CLEARANCE
10 Not used int
11 Not used int
12 Not used real
Position Description Type SBL command
1 Start point name string ID_STP
176 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22063: Start point data
Used in: Wire (Agie interface)
Definition: 22063
1 2 3 4
See Wirepath parameters: Start Point page on page 185.
22064: Entry data
Used in: Wire (Agie interface)
Definition: 22064
1 2 3 4 5 6 7 8
See Wirepath parameters: Entry page on page 186.
Position Description Type SBL command
1 Start point (X) real ID_POSX
2 Start point (Y) real ID_POSY
3 Start point (Z) real ID_POSZ
4 Start point diameter real ID_DIAMETER
Position Description Type SBL command
1 Entry position:
0= Beginning of element
1 = Middle of element
2 = End of element
int ID_ENTRYTIPO
2 Type of entry:
0= Free
1 = Perpendicular
2 = Tangential
int ID_ENTRYMODE
3 Contour separation distance real ID_GEOCOMTRENN
4 Entry distance real ID_COMMPOINTENTRY
5 Increment entries (increment distance
for each working step)
real ID_SETENTD
6 Entry dislocation (new entry distance
from previous entry point)
real ID_SETENTM
7 Entry A distance (deviation distance
from start point to contour entry, in Y
direction)
real ID_SETENTA
8 Entry B distance (deviation distance
from start point to contour entry, in X
direction)
real ID_SETENTB
NCI REFERENCE / Tool information (20000s parameters) 177
Quick Start
22065: Exit data
Used in: Wire (Agie interface)
Definition: 22065
1 2 3 4
See Wirepath parameters: Exit page on page 186.
22066: Taper thread data
Used in: Wire (Agie interface)
Definition: 22066
1 2 3 4 5 6 7
See Wirepath parameters: Threading page on page 187.
Position Description Type SBL command
1 Type of exit:
0= Free
1 = Perpendicular
2 = Tangential
int ID_EXITMODE
2 Exit distance real ID_COMMPOINTEXIT
3 Exit A distance (deviation distance
from contour exit, parallel to exit
contour element )
real ID_SETUSCA
4 Exit B distance (deviation distance
from contour exit, perpendicular to
exit contour element)
real ID_SETUSCB
Position Description Type SBL command
1 Taper thread (X) real ID_POSX
2 Taper thread (Y) real ID_POSY
3 Taper thread (Z) real ID_POSZ
4 Taper thread (Xs) real ID_POSX_S
5 Taper thread (Ys) real ID_POSY_S
6 Taper thread (Zs) real ID_POSZ_S
7 Start hole diameter real ID_DIAMETER
178 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22067: Taper data
Used in: Wire (Agie interface)
Definition: 22067
1 2 3 4 5 6
These parameters are only used for Contour wirepaths. See Wirepath parameters:
Taper page on page 187.
22068: Corner data
Used in: Wire (Agie interface)
Definition: 22068
1 2 3 4
See Wirepath parameters: Corners page on page 188.
Position Description Type SBL command
1 Taper type and direction:
0 = left taper (upper wire guide moves
left)
1 = right taper (upper wire guide moves
right)
2 = fixed taper (defined by the X and Y
component fields)
int ID_TAPERMODE
2 Taper (Z) real ID_POSZ
3 Taper angle; if taper type = 0, ID_TAPER is
output as negative value, if taper type = 1,
ID_TAPER is output as positive value.
real ID_TAPER
4 Taper (X component) real ID_TAPER
5 Taper (Y component) real ID_TAPERP
6 Isoradius:
0 = Default (conical)
1 = Isoradius
int none
Position Description Type SBL command
1 External corner type:
0 = Minimum radius
1 = Sharp-edged
2 = Fixed radius
int ID_E_TYPE
2 External corner radius (for fixed-radius
corners)
real ID_E_VALUE
3 Internal corner type:
0 = Minimum radius
1 = Sharp-edged
2 = Fixed radius
int ID_I_TYPE
4 Internal corner radius (for fixed-radius
corners)
real ID_I_VALUE
NCI REFERENCE / Tool information (20000s parameters) 179
Quick Start
22069: Attribute data
Used in: Wire (Agie interface)
Definition: 22069
1 2 3 4
See Wirepath parameters: Attributes page on page 188.
Position Description Type SBL command
1 Piece difficulty level:
0 = Normal
1 = More difficult
2 = Still more difficult
3 = Most difficult
Note: these are written to the NCI as 03,
but are written to the SBL file as 14.
int ID_WORKCOND
2 Trim cut security level increment real ID_DELTAPS
3 Not used int
180 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22070: Collar data
Used in: Wire (Agie interface)
Definition: 22070
1 2 3 4 5
These parameters are used for collar operations only. Note that the quality setting
parameters for LC1, LC2, and LC3 are output on line 22058. See Wirepath
parameters: Collar page on page 189.
22071: Group name
Used in: Wire (Agie interface)
Definition: 22071
string
This is used for No core and collar operations only. See Wirepath parameters:
Group page on page 189.
22072: Group wire name
Used in: Wire (Agie interface)
Definition: 22072
string
This is used for No core and collar operations only. See Wirepath parameters:
Group page on page 189.
Position Description Type SBL command
1 Type of collar:
0 = Conical section of wirepath opens
to the top
1 = Conical section of wirepath opens
to the bottom
2 = Conical sections of wirepath open
to both the top and bottom
int ID_COLLAR
2 Collar Z1 real ID_POSZ
3 Collar Alfa 1 (taper angle) real ID_TAPER
4 Collar Z2 real ID_POSZ
5 Collar Alfa 2 (taper angle) real ID_TAPER
Position Description Type SBL command
1 Group name string CreateGroup
Position Description Type SBL command
1 Group wire name string ID_THREAD
NCI REFERENCE / Tool information (20000s parameters) 181
Quick Start
22073: Group data
Used in: Wire (Agie interface)
Definition: 22073
1 2 3 4 5 6 7
These parameters are used for No core and collar operations only. See Wirepath
parameters: Group page on page 189.
Position Description Type SBL command
1 Erosion sequence priority for group. int ID_PRIORITY
2 Group machine reference (X) real ID_POSX
3 Group machine reference (Y) real ID_POSY
4 Group machine reference (Z) real ID_POSZ
5 Group machine reference (A) real ID_POSA
6 Group machine reference (B) real ID_POSB
7 Group machine reference (C) real ID_ROTATION
182 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Machine group properties: Piece Setup tab
22053:1
22053:2
22053:3
22053:4
22053:5
22053:6
22053:7
22053:8
22053:9
stck_wdth$
stck_thck$
stck_ht$
stck_crnr$
NCI REFERENCE / Tool information (20000s parameters) 183
Quick Start
Machine group properties: Piece Details tab
Wirepath parameters: Machining page
22003
22004
22005
22052
22051
22054
22055, 22056 or 22057
(value depends on wirepath type)
22059
22060:2
22060:1
22060:3
22060:4
22060:5
22060:6
22060:7
22060:8
184 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wirepath parameters: User Tech (Technology Database) dialog box
22058:5
22058:10
22058:15
22058:20
22058:4
22058:9
22058:14
22058:19
NCI REFERENCE / Tool information (20000s parameters) 185
Quick Start
Wirepath parameters: Cut parameters page
Wirepath parameters: Start Point page
22061:1
22061:2
22061:3
22061:5
22061:7
22061:8
22061:9
22061:6
22063:1
22062
22063:2
22063:3
22063:4
186 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wirepath parameters: Entry page
Wirepath parameters: Exit page
22064:1 22064:2
22064:3 22064:5 22064:7
22064:4 22064:6 22064:8
22065:1
22065:2
22065:3
22065:4
NCI REFERENCE / Tool information (20000s parameters) 187
Quick Start
Wirepath parameters: Threading page
Wirepath parameters: Taper page
22066:1
22066:2
22066:3
22066:7
22066:4
22066:5
22066:6
22067:1
22067:2
22067:3
22067:4
22067:5
22067:6
188 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wirepath parameters: Corners page
Wirepath parameters: Attributes page
22068:1
22068:2
22068:3
22068:4
22069:1
(value = 0) (value = 1) (value = 2) (value = 3)
22069:2
NCI REFERENCE / Tool information (20000s parameters) 189
Quick Start
Wirepath parameters: Group page
Wirepath parameters: Collar page
22072
22071
22073:1
22073:2
22073:3
22073:4
22073:5
22073:6
22073:7
22070:1
(value = 0) (value = 1) (value = 2)
22070:2
22070:3
22070:4
22070:5
190 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
TECH library parameters
NCI lines 2200122113 are output for each roughing cut and skim pass, for both primary
and taper cuts. The data that you see and select in the Technology Database dialog box is
read from the XML data in the .TECH file; not all of it is visible in the dialog box.
22101: Machine string
Used in: Wire (TECH interface)
Definition: 22101
string
Machine string; used to identify the library.
22102: Control string
Used in: Wire (TECH interface)
Definition: 22102
string
Control string; used to identify the library.
22103: Inch/metric
Used in: Wire (TECH interface)
Definition: 22103
1
Units integer. 0 = inch, 1 = metric.
22104: Power library comment
Used in: Wire (TECH interface)
Definition: 22104
string
Power library comment. This is a single string that is used for the entire library.
22105: Quality description/label
Used in: Wire (TECH interface)
Definition: 22105
string
Quality description/label. This is a comment that applies to the individual pass.
22106: Machining condition code
Used in: Wire (TECH interface)
Definition: 22106
string
Machining condition code. This is output as a string, although it only contains
numeric data. This is also output with the tool change lines (NCI 1000/1001/1002)
as the ccode$ parameter.
NCI REFERENCE / Tool information (20000s parameters) 191
Quick Start
22107: Piece thickness
Used in: Wire (TECH interface)
Definition: 22107
1 2 3 4 5 6
This line consists of a string of 6 numeric values:
22108: Method for primary cuts
Used in: Wire (TECH interface)
Definition: 22108
string
The class Method for primary cuts.
22109: Method for taper cuts
Used in: Wire (TECH interface)
Definition: 22109
string
The class Method for taper cuts.
22110, 22111: Miscellaneous file paths
Used in: Wire (TECH interface)
Definition: 22110 / 22111
string
Miscellaneous file paths (if any). These are read directly from the .TECH file.
22112: Finish (Ra) for primary cuts
Used in: Wire (TECH interface)
Definition: 22112
string
Finish (Ra) string for primary cuts.
1 Minimum thickness of primary piece.
2 Maximum thickness of primary piece. Note that not all
parts will have different values for maximum and
minimum thickness; in these cases, a single thickness
value will be output in both places.
3 Primary Ra. If the selected Finish (Ra) is a range of
values (see Technology Database dialog box on page
192), the value output with this parameter will be the
average.
4 Minimum thickness of taper piece.
5 Maximum thickness of taper piece; see note for
parameter 2.
6 Taper Ra. If the selected Finish (Ra) is a range of values
(see Technology Database dialog box on page 192), the
value output with this parameter will be the average.
192 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
22113: Finish (Ra) for taper cuts
Used in: Wire (TECH interface)
Definition: 22113
string
Finish (Ra) string for taper cuts.
Technology Database dialog box
NCI REFERENCE / Tool information (20000s parameters) 193
Quick Start
Validating the post for custom interfaces
Mastercam X4 introduced new validation routines designed to ensure that the post
selected for the wire machine definition has been properly configured to work with the
custom interface.
The Wire control definition includes a new Control Model page:
Selecting one of the machines from the Machine model list is what activates the custom
interface.
Select one of the Agie machines to enable the Agievision interface.
Select the Makino or Mitsubishi machine to enable the TECH library interface.
The Machine model sets a new predefined variable, controldefault$.
Selecting Generic sets controldefault$ = 0. No custom interface will be enabled
with this option.
The 11 different Agie models set controldefault$ equal to a value from 111.
In the Agievision post, you will see this line:
sx_nci_default$ : 1.11 #Enable posting for integrated Agievision
MP uses this string to construct a range of valid values (in this case, 1 through 11) that are
used to validate controldefault$. So if the Generic machine model is selected in the
control definition, controldefault$ will equal 0 and an error message will be generated,
because 0 is not included in the range of valid values.
In this way, the single Agievision post can be used with any of the 11 Agie models.
You can limit the range of valid models by adjusting the value of sx_nci_default$.
You can implement model-specific customizations by testing for the value of
controldefault$.
For the Makino and Mitsubishi machines, there is only a single Machine model, so when
you select one of these machines, the Control version option is disabled. This is always
output as 0 on the 22002 line.
For the Makino, sx_nci_default$ = 100.100
For the Mitsubushi, sx_nci_default$ = 50.50
NOTE: The text of the Machine model string is also available directly as a string
parameter, 22001.
194 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Quick Start
chapter 4
Parameter Reference
See Capturing values for
10000s parameters on
page 28 to learn more about
capturing parameter values in
your post.
This chapter lists every parameter used in Mastercam X4. It is divided
into the following sections:
Operation & toolpath parameters . . . . . . . . . . . . . . . . .page 196
Machine definition parameters . . . . . . . . . . . . . . . . . . .page 319
Control definition parameters . . . . . . . . . . . . . . . . . . . .page 382
Machine group parameters . . . . . . . . . . . . . . . . . . . . . .page 429
Traditionally, operation parameters have been numbered 1000019999.
Recent Mastercam versions have seen this range expand:
Mastercam X3 introduced 30000s parameters, which are
reserved for use by C-hooks; see page 269.
Mastercam X4 introduced operation parameters numbered in
the 40000s. These are no different from the traditional 10000s
parameters; we just ran out of numbers in that range.
Throughout these sections, notes and annotations indicate parameters
that are only used in previous versions of Mastercam or that are longer
used, and where appropriate, their replacements in later versions.
196 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Operation & toolpath parameters
Common parameters
General operation parameters
Information used to write the file (header)
OPERATION
19998 Size of the header (removed for X3)
19997 Size of the operation structure (removed for X3)
19996 Major version number (removed for X3)
19995 Minor version number (removed for X3)
19994 Toolpath Group name for these operations (removed for
X3)
15237 Operation ID (op_id$)
15238 Toolpath operation code (tool_op$)
15239 Toolpath comment
15240 The number of the toolpath as shown
in the Toolpath Manager; typically,
these are numbered consecutively in
the order in which the operations are
listed.
OP_DB
OP_COMMON
OP_FILTER
OP_TOOL_INFO
OP_CC
OP_CC
OP_VIEW (Tplane)
OP_VIEW002 (Cplane)
OP_VIEW003 (WCS view data)
OP_MISC
OP_TOOL_DISPLAY
OP_AUX_FILE
OP_CANNED_TEXT
OP_SMOOTHING_3D (new for X4)
OP_SPAWNED_INFO (new for X4)
OP_V8
OP_FEEDRATE_OPTIMIZATION (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 197
Quick Start
OP_SMOOTHING_5D (new for X5)
OP_DEPTH_CUTS
OP_MULTI_CUTS
OP_LEAD_IO
OP_HOME_POS
OP_ROTARY
OP_COMMON_LATHE
OP_HOME_POS
15329 Version
15544 Data stream ID
15545 Axis combination ID
Mill Toolpaths
PRM_DRILL
PRM_CONTOUR
PRM_POCKET
PRM_XFORM
PRM_SRF_RGH_PARALLEL
PRM_SRF_RGH_RADIAL
PRM_SRF_RGH_PROJECT
PRM_SRF_RGH_FLOWLINE
PRM_SRF_RGH_CONTOUR
PRM_SRF_RGH_POCKET
PRM_SRF_FIN_PARALLEL
PRM_SRF_FIN_RADIAL
PRM_SRF_FIN_PROJECT
PRM_SRF_FIN_FLOWLINE
PRM_SRF_FIN_CONTOUR
PRM_C-HOOK
PRM_CIRCMILL
PRM_RULED
PRM_REVOLVED
PRM_LOFTED
PRM_SWEPT2D
PRM_SWEPT3D
PRM_COONS
PRM_CURVE_5AX
PRM_SRF_FIN_PENCIL
PRM_SRF_FIN_LEFTOVER
198 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_FIN_STEEP
PRM_SRF_FIN_SHALLOW
PRM_SRF_FIN_CONSCALOP
PRM_SRF_RGH_PLUNGE
PRM_SRF_FLOW5AX
PRM_SRF_4AX
PRM_SWARF_5AX
PRM_CIRCLE_5AX (new for X4)
PRM_LFINISH
PRM_LROUGH
PRM_LGROOVE
PRM_LTHREAD
PRM_LDRILL
PRM_LATHE_FACE
PRM_LCUTOFF
PRM_WIRE_CONTOUR
PRM_WCAN_CYCLE
PRM_WIRE_NOCORE
PRM_WIRE_POINT
PRM_WIRE_4AXIS
PRM_THDMILL
PRM_TRIMMED
PRM_SOLID_DRILL
PRM_SLOTMILL
PRM_HELIX_BORE
PRM_SRF_RGH_RESTMILL
PRM_NESTING
PRM_SRF_FIN_BLEND (X)
PRM_MSURF_5AX (X)
PRM_SLICE_5AX (X) (X)
PRM_PORT_5AX (X) (X)
PRM_TAB_CUTOFF Deleted in X2
PRM_SRF_HMM (X)
PRM_2D_HMM (new for X3)
FBM_DRILLPARAMETERS (new for X3)
PRM_FBM_POCKET (new for X3)
PRM_LCAN_FINISH
PRM_LCAN_ROUGH
PARAMETER REFERENCE / Operation & toolpath parameters 199
Quick Start
OP_DB
PRM_LCAN_PATTERN
PRM_LGROOVE
PRM_LROUGH
PRM_LFINISH
PRM_LSTOCK_XFER
PRM_LSTOCK_FLIP
PRM_LBARFEED
PRM_LCHUCK_CLAMP
PRM_LTAILSTOCK
PRM_LSTEADYREST
PRM_LPARK_TURRET @@@@@@
PRM_PINCH_TURN (new for X3)
PRM_LPLUNGE (new for X5)
PRM_CUSTOM_OP
PRM_ADV_5AX (X2)
PRM_TP_HOLDER (new for X4) (moved for X5)
PRM_STOCK_MODEL (new for X5)
15254 Start of section fpos in binary file, -1 if not yet
generated (removed in X3)
15255 End of section fpos in binary file, -1 if not yet generated
(removed in X3)
15083 Number of entities in this operation (for alloc)
15084 Number of boundaries in this operation (contour,
pocket)
15085 High entity ID # (used to number boundaries)
15086 NCI marked for regeneration (dirty) (True/False)
15087 Selected for editing, deleting and reordering (True/
False)
15088 Selection expanded in treeview (True/False)
15089 ASCII NCI has been generated and/or posted (True/
False)
15090 Operation imported from library (True/False)
15330 Transform operation ID # that spawned this operation
15497 Aggregate head ID number assigned to this operation
15498 Tool position ID number assigned to this operation
200 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_COMMON
15508 Which app last accessed this operation?:
0=none (the Mastercam .exe)
1=toolpath/contour
2=toolpath/pocket
3=toolpath/face
4=helix bore
5=slotmill
6=circle mill
10=surface machining appmch
20=mulitaxis curve5ax
21=multiaxis swarf5ax
22=multiaxis msurf5ax
23=multiaxis flow5ax
24=multiaxis rotary4ax
25=multiaxis drill5ax
15509 Which version of the app
15511 Block id# assigned to this operation
15504 Operation id# that spawned this one
15092 Number of entities to display in Operation Manager
15093 Display toolpath (True/False)
15094 ID # of operation this operation replaced
15095 Binary NCI of operation has been edited (True/False)
15096 System level
15256 Don't ever post this operation (removed for X3)
15097 Operation contains solids toolpath entities (True/
False)
15325 Op ID # of trimming operation, null_id for not
trimmed
15326 Number of times the operation has been edited
15571 NCI read: true = NCI section has been read in, false = go
get it when needed (X) (Used to be 15340 prior to
Mastercam X.)
15499 Geometry sub-tree expanded (True/False)
15500 Last tab page in toolpath parameters page (zero-based)
15580 pointer to head of backplot (removed in X3)
15581 pointer to tail of backplot (removed in X3)
15582 source of groups feed rate
15577 Draw regen? (new for X3)
15608 Operation is synched? (new for X3)
10042 Program number
10040 Starting sequence number
10041 Sequence number increment
10020 Clearance plane
10021 Clearance: true = incremental, false = absolute
15100 Clearance plane on (True/False)
15374 Retract plane
10023 Retract: true = incremental, false = absolute
PARAMETER REFERENCE / Operation & toolpath parameters 201
Quick Start
OP_COMMON001
15101 Retract plane on (True/False)
10024 Feed plane
10025 Feed plane: true = incremental, false = absolute
10029 Toolpath depth
15103 Depth: true = incremental, false = absolute
10026 Rapid up from bottom depth (True/False)
15105 Calculated cycle time for NCI section
15106 Use reference point(s) (True/False)
10080 Toolpath reference (retraction) point X
10081 Toolpath reference (retraction) point Y
10082 Toolpath reference (retraction) point Z
15107 NCI output destination file name
10010 Amount of stock to leave
10027 Top of stock
10028 Top of stock: true = incremental, false = absolute
15108 Force a tool change in nci (True/False)
15109 Use only entities contained in tp_group group id #'s
(True/False)
15110 Use tp_ents from other operations (True/False)
15111 Operation group ID #
10007 For common parameter dialog cmp_to_tip (True/
False)
15112 To batch (op's NCI not immediately generated) (True/
False)
12258 Use reference point(s) (True/False)
12259 Second reference point X
12260 Second reference point Y
12261 Second reference point Z
15327 Abs/inc, XYZ enabled
15339 Use clearance plane at start/end (True/False)
15601 Use rotation tool center point (X2)
15783 Indicates whether the tool uses the alternate index
position: (new for X5)
10701 Clearance plane (removed for X3)
10702 Clearance: true = incremental, false = absolute (removed
for X3)
10700 Clearance plane on (True/False) (removed for X3)
202 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_COMMON002
OP_COMMON003
OP_FILTER
10704 Retract plane (removed for X3)
10705 Retract: true = incremental, false = absolute (removed
for X3)
10703 Retract plane on (True/False) (removed for X3)
10706 Feed plane (removed for X3)
10707 Feed plane: true = incremental, false = absolute
(removed for X3)
15102 Depth in Z of toolpath (removed for X3)
10708 Rapid up from bottom depth (True/False) (removed for
X3)
10105 Feed plane (removed for X3)
10104 Feed plane: true = incremental, false = absolute
(removed for X3)
10107 Depth in Z of toolpath (removed for X3)
10106 Depth: true = incremental, false = absolute (removed for
X3)
15098 Clearance plane (removed for X3)
15099 Clearance: true = incremental, false = absolute (removed
for X3)
10505 Retract plane (removed for X3)
10516 Retract: true = incremental, false = absolute (removed
for X3)
10504 Feed plane (removed for X3)
10514 Feed plane: true = incremental, false = absolute
(removed for X3)
10506 Depth in Z of toolpath (removed for X3)
10518 Depth: true = incremental, false = absolute (removed for
X3)
15104 Rapid up from bottom depth (True/False) (removed for
X3)
15257 For common parameter dialog (removed for X3)
15134 Arc filter on (True/False)
15135 Create arcs: true = use arcs, false = lines (removed in X3)
PARAMETER REFERENCE / Operation & toolpath parameters 203
Quick Start
OP_SMOOTHING_3D
OP_FEEDRATE_OPTIMIZATION
15136 Maximum tolerance error
15137 Minimum arc radius
15138 Maximum arc radius
15082 Amount of look ahead
15340 Create arcs in XY plane (True/False)
15341 Create arcs in XZ plane (True/False)
15342 Create arcs in YZ plane (True/False)
15343 One way (True/False)
15693 0 = Use maximum tolerance for both lines and arcs;
1 = Tighten line filtering tolerance;
2 = Tighten arc filtering tolerace (new for X4)
15694 Reduced tolerance value if 15693 = 1 or 2 (new for X4)
15684 Smoothing tolerance (new for X4)
15685 Segment length (new for X4)
15686 1 = Smoothing is turned on (new for X4)
15687 1 = Use fixed segment length (new for X4)
15688 1 = Shift points randomly along toolpath (try to avoid
patterns in neighboring segments (new for X4)
15689 1 = Minimize number of points (enlarge spacing) (new
for X4)
15690 1 = Present arcs as line segments (break arcs) (new for
X4)
15712 Is feed rate optimization on ? (new for X5)
15713 Use STL stock model ? (new for X5)
15714 Filename of STL stock model (new for X5)
15715 Draw STL option is selected (new for X5)
15716 Stock color (new for X5)
15717 STL color (new for X5)
PRM_HF_STOCK (new for X5)
15719 Z clearance (incremental) (new for X5)
15720 Stock (bitmap) tolerance (new for X5)
15721 Draw stock option is selected (new for X5)
15722 RAM (new for X5)
15723 Check for collisions option is selected (new for X5)
15724 Minimum collision volume (new for X5)
15725 Allow tool to cut outside the stock boundary option
is selected (new for X5)
PRM_VOL_INFO (new for X5)
15726 Minimum feed rate (new for X5)
204 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_HF_STOCK
PRM_VOL_INFO
OP_SMOOTHING_5D
15727 Maximum feed rate (new for X5)
15728 Maximum air cutting feed rate (new for X5)
15729 Up feed rate scale factor (new for X5)
15730 Down feed rate scale factor (new for X5)
15731 Calculated volume (new for X5)
15740 Highfeed stock model : minimum X coord (new for
X5)
15741 Minimum Y coord (new for X5)
15742 Minimum Z coord (new for X5)
15743 Highfeed stock model : maximum X coord (new for
X5)
15744 Maximum Y coord (new for X5)
15745 Maximum Z coord (new for X5)
15732 Highfeed reference tool : diameter (new for X5)
15733 Shape: FLAT_TL, SPH_TL, BULL_TL (new for X5)
15734 Corner radius (new for X5)
15735 Depth of cut (new for X5)
15736 Feedrate at depth (new for X5)
15737 Cross-section area of tool (derived value) (new for X5)
15738 Plunge rate (new for X5)
15739 Volume removal rate (new for X5)
15702 lower toolpath smoothing tolerancesame in all
directions (sphere) (new for X5)
15703 reserved for future use (new for X5)
15704 reserved for future use (new for X5)
15705 reserved for future use (new for X5)
15706 reserved for future use (new for X5)
15707 Overall smoothing on/off (new for X5)
15708 0 = advanced smoothing, 1 = simplified (new for X5)
15709 filtering level : 0 = no filtering, 1 = low, 2 = medium, 3 =
high (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 205
Quick Start
OP_SPAWNED_INFO
OP_MISC
OP_MISC_001
OP_TOOL_DISPLAY
15710 Filtering on/off (new for X5)
15711 reserved for future use (new for X5)
15691 The operation ID of the parent FBM operation that
spawned the current operation (new for X4)
15692 The type of FBM operation that spawned the current
operation (new for X4)
15182 True = on
15190 Misc ints 1-10
15191 Misc ints 1-10
15192 Misc ints 1-10
15193 Misc ints 1-10
15194 Misc ints 1-10
15195 Misc ints 1-10
15196 Misc ints 1-10
15197 Misc ints 1-10
15198 Misc ints 1-10
15199 Misc ints 1-10
15200 Misc reals 1-10
15201 Misc reals 1-10
15202 Misc reals 1-10
15203 Misc reals 1-10
15204 Misc reals 1-10
15205 Misc reals 1-10
15206 Misc reals 1-10
15207 Misc reals 1-10
15208 Misc reals 1-10
15209 Misc reals 1-10
13382 Custom Parameters enabled for lathe misc ops?
1 = Custom Parameters option selected, otherwise 0.
(new for X4)
1338313392 Integer custom parameter values. (new for X4)
1339313402 Real custom parameter values (new for X4
15235 Use tool display (True/False)
206 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_ROTARY
OP_COMMON_LATHE
10085 Mode: true = step, false = run
10086 Delay in seconds
10087 Step mode: true = step, false = endpoints
10088 Amount of step increment
10089 Tool motion:True = animate, false = static
15236 Rotary axis: true = on
15351 Rotation type: 1 = axis substitution, 2 = rotary axis
positioning,
3 = 3-axis
15352 Rotary axis to rotate about: 1 = about X, 2= about Y, 3 =
about Z
15258 Axis of rotation line (endpoint)
15259 Axis of rotation line (endpoint)
15260 Axis of rotation line (endpoint)
15261 Axis of rotation line (endpoint)
15262 Axis of rotation line (endpoint)
15263 Axis of rotation line (endpoint)
15558 Rotary diameter (was 10072) (X)
15371 Direction: CW or CCW
15372 Axis to substitute, relative to view: 1 = X, 2 = Y
15373 Angle point 0,0 rolls to
10073 Unroll enabled (True/False)
10074 Unroll tolerance
13150 Use toolpath entry point (True/False)
13151 Toolpath start point
13152 Toolpath start point
13153 Toolpath start point
13154 Use toolpath retraction point (True/False)
13155 Update boundaries for current operation (True/False)
13156 Update boundaries for subsequent operations (True/
False)
13157 Stock boundaries are valid for operation (True/False)
13158 Regenerate toolpath for tool collision (True/False)
13159 Entity ID for left stock boundary
13160 Entity ID for right stock boundary
13161 Entity ID for left chuck boundary
13162 Entity ID for right chuck boundary
13163 Entity ID for tailstock boundary
13173 Entry angle for remaining stock (in radians)
PARAMETER REFERENCE / Operation & toolpath parameters 207
Quick Start
OP_AUX_FILE
OP_CANNED_TEXT
OP_V8
13174 Exit angle for remaining stock (in radians)
13175 Do remaining stock analysis for operation (True/False)
13196 Tool clearance: true = use clearance from operation,
false = from job setup
13197 Boundary avoidance clearance for lathe tools
13198 Entry/exit vector clearance
13199 Keep uncut stock (True/False)
13204 Entity ID for steadyrest boundary
13458 Retract clearance for lathe canned toolpaths (new for
X5)
15113 On (True/False)
15114 File name
15115 File date
15253 Aux file marked for regeneration (dirty) (True/False)
15120 On (True/False)
15121 Canned text 0-99, 1000-1099, 2000-2099
15122 Canned text 0-99, 1000-1099, 2000-2099
15123 Canned text 0-99, 1000-1099, 2000-2099
15124 Canned text 0-99, 1000-1099, 2000-2099
15125 Canned text 0-99, 1000-1099, 2000-2099
15126 Canned text 0-99, 1000-1099, 2000-2099
15127 Canned text 0-99, 1000-1099, 2000-2099
15128 Canned text 0-99, 1000-1099, 2000-2099
15129 Canned text 0-99, 1000-1099, 2000-2099
15130 Canned text 0-99, 1000-1099, 2000-2099
15531 Additional canned text/events (X)
15532 Additional canned text/events (X)
15533 Additional canned text/events (X)
15534 Additional canned text/events (X)
15535 Additional canned text/events (X)
15536 Additional canned text/events (X)
15537 Additional canned text/events (X)
15538 Additional canned text/events (X)
15539 Additional canned text/events (X)
15540 Additional canned text/events (X)
15131 The from pt used when translating X
208 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_DEPTH_CUTS
OP_MULTI_CUTS
Tool settings
OP_TOOL_INFO
15132 The from pt used when translating Y
15133 The from pt used when translating Z
15602 Tool change type (removed for X3)
15603 Tool change approach event list (X2)
15604 Tool change approach event list (X2)
15609 Tool change state (new for X3)
15610 UID for tool change event list, approach (new for X3)
15634 UID for tool change event list, retract (new for X3)
15658 UID for tool change event list, null tool change (new
for X3)
15682 Tool change event list, null tool change (new for X3)
15211 Depth cuts: true = on
10065 Max rough step size
10066 Number of finish cuts
10067 Z depth of finish cuts
10068 Stock to leave
15378 Output subprogram labels (True/False)
10069 Keep tool down (True/False)
10064 Use island depths (True/False)
15379 Depth cut order: true = by depth, false = by contour
15452 Subprogram output mode: true = incremental, false =
absolute
15214 Multi passes: true = on
15560 Number of roughing cuts (was 10106) (X)
15561 Depth of roughing cuts (was 10107) (X)
15380 Number of finish cuts
15381 Depth of finish cuts
15385 Keep tool down (True/False)
10002 Tool number
10090 Tool type ID number
10091 Radius type: None, corner or full
10005 Tool diameter
10006 Tool corner radius
PARAMETER REFERENCE / Operation & toolpath parameters 209
Quick Start
OP_TOOL_INFO002
OP_TOOL_INFO003
15139 Threads per inch or thread pitch (mm)
10092 Tool tip angle
10003 Diameter offset number
10004 Length offset number
10030 Feed rate
10031 Plunge rate
15140 Retract rate
10034 Spindle speed
15141 Merged from ASCII NCI file (True/False)
10035 Spindle speed is CSS (True/False)
15345 Feed rate is actually a surface finish (True/False)
15375 Plunge feed rate is actually a surface finish (True/False)
10022 Coolant: 0 = off, 1 = flood, 2 = mist, 3 = tool (spindle)
15143 Number of flutes
10093 Tool material: HSS, CAR, etc.
10094 Tool description
15144 Mastercam tool reference geometry filename
LTOOL_REC
15145 Values in metric (True/False)
15146 Station number for mill-turn
15147 Active turret (for mill-turn)
15148 Active spindle (for mill-turn)
15149 Internal tool ID #
10036 Maximum spindle speed (lathe)
15376 Custom tool display comes from: auto(0), file (1) or
level (2)
15377 Tool reference level
15541 Which machine group it belongs to (X)
15542 0 = not a virtual turret, 1+ = virtual turret number, use
with MATTS (X)
Deleted in (X2)
15543 Component group to which tool belongs (X)
13165 Tool diameter (removed for X3)
13166 Tool corner radius (removed for X3)
15139 Threads per inch or thread pitch (mm) (removed for X3)
10512 Tool tip angle (removed for X3)
13167 Diameter offset number (removed for X3)
15377 Tool reference level (removed for X3)
14050 Tool corner radius (removed for X3)
14051 Threads per inch or thread pitch (mm) (removed for X3)
14052 Tool tip angle (removed for X3)
210 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_CC
OP_CC001 (for Pocket paths)
OP_CC002 (for Lathe and Wire operations)
LTOOL_REC
14053 Plunge rate (removed for X3)
14054 Retract rate (removed for X3)
14055 Spindle speed (removed for X3)
14056 Spindle speed is CSS (True/False) (removed for X3)
14124 Feed rate is actually a surface finish (True/False)
(removed for X3)
14125 Plunge rate is actually a surface finish (True/False)
(removed for X3)
14058 Coolant: 0 = off, 1 = flood, 2 = mist, 3 = tool (spindle)
(removed for X3)
14059 Number of flutes (removed for X3)
14060 Station number (for mill-turn) (removed for X3)
14061 Active turret (for mill-turn) (removed for X3)
14062 Active spindle (for mill-turn) (removed for X3)
14063 Internal tool ID # (removed for X3)
14064 Maximum spindle speed (lathe) (removed for X3)
15346 Compensation type:
0 = computer
1 = control
2 = wear
3 = reverse wear
4 = off
15347 Compensation direction: 0 = left, 1 = right
10070 Roll around sharp corners
15563 Optimize: (applicable only when type =
COMP_CONTROL) (True/False) (X) (was 10124 before
X)
10426 Optimize: (applicable only when type =
COMP_CONTROL) (True/False) (removed for X3)
15151 Optimize: (applicable only when type =
COMP_CONTROL) (True/False) (removed for X3)
13200 Tool orientation number
13201 Corner radius
13202 Width (tool clearance data)
15241 Height (tool clearance data)
15242 Angle (in radians)
PARAMETER REFERENCE / Operation & toolpath parameters 211
Quick Start
View information
OP_VIEW (Tplane)
OP_VIEW002 (Cplane)
15243 Rake angle (in radians)
15244 Tool center position
15245 Tool center position
15246 back_v
15247 back_v
15248 front_v
15249 front_v
15250 Back used (True/False)
15251 Front used (True/False
15552 Tool Angle
15553 Spindle orient angle
15152 Tool plane is on
15153 Tool plane view number at time of creation
15154 Tool plane view matrix
15155 Tool plane view matrix
15156 Tool plane view matrix
15157 Tool plane view matrix
15158 Tool plane view matrix
15159 Tool plane view matrix
15160 Tool plane view matrix
15161 Tool plane view matrix
15162 Tool plane view matrix
15163 Tool plane origin (world coordinates)
15164 Tool plane origin (world coordinates)
15165 Tool plane origin (world coordinates)
15348 Named view ID #
15166 User defined work offset number
15167 Construction plane is on
15168 Construction plane view number at time of creation
15169 Construction plane view matrix
15170 Construction plane view matrix
15171 Construction plane view matrix
15172 Construction plane view matrix
15173 Construction plane view matrix
15174 Construction plane view matrix
15175 Construction plane view matrix
212 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_VIEW003 (WCS view data)
Lead in/out, entry/exit
OP_LEAD_IO
OP_LEAD_IO001
15176 Construction plane view matrix
15177 Construction plane view matrix
15178 Construction plane origin (world coordinates)
15179 Construction plane origin (world coordinates)
15180 Construction plane origin (world coordinates)
15349 Named view ID #
15181 User-defined work offset number
15355 WCS is on
15356 WCS plane view number at time of creation
15357 WCS plane view matrix
15358 WCS plane view matrix
15359 WCS plane view matrix
15360 WCS plane view matrix
15361 WCS plane view matrix
15362 WCS plane view matrix
15363 WCS plane view matrix
15364 WCS plane view matrix
15365 WCS plane view matrix
15366 WCS plane origin (world coordinates)
15367 WCS plane origin (world coordinates)
15368 WCS plane origin (world coordinates)
15369 Named view ID #
15370 User-defined work offset number
15233 Lead in/out: true = on
OP_ENTRY_EXIT
OP_ENTRY_EXIT001
15562 Overlap amount (was 10117) (X)
15234 Enter at midpoint of first entity for closed contours
(True/False)
15328 Check entry/exit motion for gouges (True/False)
15449 Output first move before plunge (True/False)
15450 Output last move after plunge (True/False)
10420 Overlap amount (removed for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 213
Quick Start
OP_ENTRY_EXIT
OP_ENTRY_EXIT001
OP_ENTRY_EXIT_PK001
15219 Use entry / exit entities (True/False)
15386 Line: true = perpendicular, false = tangent (was 10102)
(X)
15387 Length of entry/exit line (was 10103) (X)
15220 Line ramp height
15388 Radius of entry/exit arc (was 10104) (X)
15559 Sweep angle of entry arc (in radians) (was 10105) (X)
15221 Arc helix height
15382 Output entry/exit on only first/last depth cut (True/
False)
15222 Use entry/exit point (True/False)
15223 Use entry/exit point depth (True/False)
15224 Length of entry/exit line as % of tool diameter
15225 Radius of entry/exit arc as % of tool diameter
15565 Line: true = perpendicular, false = tangent (was 10307)
(X) (removed for X3)
15566 Length of entry/exit line (was 10310) (X) (removed for
X3)
15567 Radius of entry/exit arc (was 10311) (X) (removed for X3)
15568 Sweep angle of entry arc (in radians) (was 10312) (X)
(removed for X3)
10419 Output entry/exit on only first/last depth cut (True/
False) (removed for X3)
15226 Use entry exit entities (True/False)
15383 Line: true = perpendicular, false = tangent (was 10118)
(X)
10119 Length of entry/exit line
15227 Line ramp height
10120 Radius of entry/exit arc
10121 Sweep angle of entry arc (in radians)
15228 Arc helix height
15389 Output entry/exit on only first/last depth cut (True/
False)
15229 Use entry/exit point (True/False)
15230 Use entry/exit point depth (True/False)
15231 Length of entry/exit line as % of tool diameter
15232 Radius of entry/exit arc as % of tool diameter
10421 Line: true = perpendicular, false = tangent (removed for
X3)
10422 Length of entry/exit line (removed for X3)
10423 Radius of entry/exit arc (removed for X3)
214 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
OP_HOME_POS
OP_HOME_POS001
Mill & Router parameters
Contour toolpaths
PRM_CONTOUR
10424 Sweep angle of entry arc (in radians) (removed for X3)
10425 Output entry/exit on only first/last depth cut (True/
False) (removed for X3)
15215 Home pos: true = on
15216 Tool home position X
15217 Tool home position Y
15218 Tool home position Z
10008 Tool home position X (was 10007) (X) (removed for X3)
10009 Tool home position Y (was 10008) (X) (removed for X3)
13168 Tool home position Z (removed for X3)
PRM_CTOURPOCK
10101 Infinite look-ahead is enabled (True/False) (Pre-X)
10071 Infinite look-ahead is enabled (True/False) (X)
10113 Maximum depth variance
PRM_REMACH_CTOUR
PRM_CHAMFER_CTOUR
12014 Contour type:
0 = 2D Contour
1 = 3D Contour
2 = 2D Chamfer
3 = 3D Chamfer
4 = Ramp
5 = Remaching
12015 Tapered wall contour enabled (True/False)
12016 Taper angle (in radians)
12017 Depth cut order: true = by depth, false = by contour
PRM_EXT_SHORT Start extend/shorten
PRM_EXT_SHORT002 End extend/shorten
15485 Entry feed rate override
15486 Entry feed rate override is enabled (True/False)
15487 Exit feed rate override
15488 Exit feed rate override is enabled (True/False)
PARAMETER REFERENCE / Operation & toolpath parameters 215
Quick Start
PRM_REMACH_CTOUR
PRM_CTOURPOCK
PRM_CTOURPOCK001
(this entire group removed for X3)
PRM_CHAMFER_CTOUR
PRM_RAMP_CTOUR
PRM_TP_COMMON (X)
PRM_TAB (X)
PRM_CHAIN_SORT (X)
PRM_OSCILLATE_CTOUR (new for X3)
12709 Position tabs automatically, based on distance between
tabs (new for X3)
12710 Max distance between tabs (used in conjunction with
12709) (new for X3)
PRM_ROUT_COMMON (Pre-X)
PRM_ROUT_TAB (Pre-X)
10431 Remaining stock mode: 0 = all previous operations, 1 =
the previous operation, 2 = rough tool diameter
10432 Roughing tool diameter
12000 Clearance as a percentage of the tool diameter
10433 Clearance to unmachined stock
10434 Machine complete finish passes (True/False)
10410 Remachining tolerance percentage
10411 Remachining tolerance
12002 Display stock for remachining (True/False)
12253 Linearization tolerance (used to be 10110) (X)
10314 Finish all (True/False) (used to be 10114) (X)
12004 Tip comp: true = tool tip, false = tool center
12005 Chamfer width
12006 Chamfer tip offset
12007 Chamfer depth
12008 Ramp contour option: 0 = angle, 1 = depth, 2 = plunge
12009 Ramp angle
12010 Ramp/plunge depth
12011 Ramp one way on open contours (True/False)
12012 Linearize ramp contour helixes (True/False)
12013 Ramp contour helix linearization tolerance
15507 True = output pass at final depth
216 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_EXT_SHORT
PRM_EXT_SHORT002
PRM_ROUT_COMMON
(This group was replaced by PRM_TP_COMMON for Mastercam X.)
PRM_TP_COMMON
PRM_ROUT_TAB
(This group was replaced by PRM_TAB for Mastercam X.)
PRM_TAB
15489 Extend/shorten is enabled (True/False)
15490 Extend / shorten: true = extend, false = shorten
15491 Distance to extend / shorten
15492 Percentage of tool diameter
15493 Extend / shorten is enabled (True/False)
15494 Extend / shorten: true = extend, false = shorten
15495 Distance to extend / shorten
15496 Percentage of tool diameter
16000 Breakthrough enabled (True/False)
16001 Breakthrough amount
16002 Tabs enabled (True/False)
16003 Automatically calculate tab positions (True/False)
16004 Number of tabs (for auto tab)
16005 Tab width
16006 Tab thickness
16007 Full thickness tab (True/False)
16008 Tab point: (0 = start, 1 = midpoint, 2 = end) of tab
16009 Tab entry/exit (0 = vertical, 1 = arc, 2 = ramp)
16010 Arc radius
16011 Percentage of tab thickness (arc radius)
16012 Ramp angle
16013 Use advanced auto tab positioning (True/False)
16014 Use feed plane for full height tabs (True/False)
16015 Use points on chain for start & tab positions (True/
False)
16016 Minimum distance from endpoint
16017 Minimum distance between tabs
16018 Minimum distance from sharp corner
16019 Sharp corner angle
16020 X dimension of maximum size shape to tab
PARAMETER REFERENCE / Operation & toolpath parameters 217
Quick Start
PRM_WIRE_WSORT
(This group was replaced by PRM_CHAIN_SORT for Mastercam X.)
PRM_CHAIN_SORT
PRM_OSCILLATE_CTOUR
Drill toolpaths
PRM_DRILL
16021 Y dimension of maximum size shape to tab
16022 Tab all shapes
16053 Overwrite tab edit (True/False)
16054 Cutoff type (0 = none, 1 = after)
16055 Do tab cutoff pass on finish (True/False)
14072 Sort method
14073 Sort start angle for rotary sort
12706 Oscillation strategy (linear or highspeed) (new for X3)
12707 Distance along contour (new for X3)
12708 Maximum depth (new for X3)
10100 Drill cycle
10108 First peck increment
10109 Subsequent peck increment
10110 Peck clearance
10111 Retraction distance for chip break
10112 Dwell
10118 Pre-defined bore shift
10117 Add this amount to total depth
10115 Adjust depth per drill tip (True/False)
12018 Drill point sorting method used
15071 Custom drill cycle parameters
15072 Custom drill cycle parameters
15073 Custom drill cycle parameters
15074 Custom drill cycle parameters
15075 Custom drill cycle parameters
15076 Custom drill cycle parameters
15077 Custom drill cycle parameters
15078 Custom drill cycle parameters
15079 Custom drill cycle parameters
218 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Pocket toolpaths
PRM_POCKET
15080 Custom drill cycle parameters
15081 Use custom parameters is checked (True/False)
12019 Drill5ax output format axis type selected: 0=3 axis, 1=4
axis, 2=5 axis
12020 Use points and lines or points
12021 Tool axis option
12022 Tip position control
12023 Project type (to plane or surface)
12024 5-axis tool display length
12025 Drill5ax output format 4-axis type axis selected
(0 = X, 1 = Y, 2 = Z)
12254 Plane vector for drill5ax plane option
12255 Plane vector for drill5ax plane option
12256 Plane vector for drill5ax plane option
15212 Output 1018 NCI (sub program) line in drill cycle
(True/False)
15213 Subprogram output mode: true = incremental, false =
absolute
15277 Operation was created as a automatic start hole
operation (True/False)
PRM_5AX_LIMIT (new for X3)
PRM_CTOURPOCK (new for X3)
12045 Roughing enabled (True/False)
12046 Finishing enabled (True/False)
15564 Machining direction: true = climb mill, false =
conventional (was 10401) (X)
10315 Create additional finish operation (True/False)
10208 Cutting method: 0 = zigzag, 1 = spiral inside out, 2 =
spiral outside in (was 10300) (X)
10302 Roughing step size
10414 Roughing step size (percentage)
10301 Roughing angle
10416 Spiral inside to outside (True/False)
10427 Minimize tool burial (True/False) (was 10415) (X)
10304 Number of finish passes
10305 Finish pass step size
10417 Finish outer boundary (True/False)
PARAMETER REFERENCE / Operation & toolpath parameters 219
Quick Start
PRM_ROUT_POCK
15569 Optimize finish passes (True/False) (was 10321) (X)
10418 Keep tool down (True/False)
10313 Output finish passes with rough pass (True/False)
10410 Remachining tolerance (percentage)
10411 Remachining tolerance
10412 Display stock for remachining (True/False)
10413 Display stock for constant overlap spiral (True/False)
PRM_TAPER
PRM_RGH_ENTRY
PRM_POCK_FACING
15570 Compensation for finish passes (was 10350) (X)
15524 True = display stepover (X)
PRM_REMACH_POC
K
PRM_OPEN_POCK
12017 Depth cut order: true = by depth, false = by pocket
10450 Pocket type: 0 = standard, 1 = facing, 2 = island facing, 3
= remachining, 4 = open
PRM_PKT_HSOPTS
15474 Number of finish spring cuts
15475 Feed rate override
15476 Spindle speed override
15477 Feed rate override enabled (True/False)
15478 Spindle speed override enabled (True/False)
PRM_THINWALL
15479 Entry feed rate override
15480 Entry feed rate override enabled (True/False)
15481 Exit feed rate override
15482 Exit feed rate override enabled (True/False)
PRM_CHAIN_SORT
PRM_TP_COMMON
This parameter group replaced by PRM_POCKET.
16030 Roughing enabled (True/False) (removed for X3)
16031 Finishing enabled (True/False) (removed for X3)
16032 Machining direction: true = climb mill, false =
conventional (removed for X3)
16033 Create additional finish operation (True/False)
(removed for X3)
220 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_TAPER
PRM_RGH_ENTRY
PRM_RAMP
16034 Cutting method: 0 = zigzag, 1 = spiral inside out, 2 =
spiral outside in (removed for X3)
16035 Roughing step size (removed for X3)
16036 Roughing step size (percentage) (removed for X3)
16037 Roughing angle (removed for X3)
16038 Spiral inside to outside (True/False) (removed for X3)
16039 Minimize tool burial (True/False) (removed for X3)
16040 Number of finish passes (removed for X3)
16041 Finish pass step size (removed for X3)
16042 Finish outer boundary (True/False) (removed for X3)
16043 Optimize finish passes (True/False) (removed for X3)
16044 Keep tool down (True/False) (removed for X3)
16045 Output finish passes with rough pass (True/False)
(removed for X3)
16046 Remachining tolerance percentage (removed for X3)
16047 Remachining tolerance (removed for X3)
16048 Display stock for remachining (True/False) (removed for
X3) (removed for X3)
16049 Display stock for constant overlap spiral (True/False)
(removed for X3)
16050 Compensation for finish passes (removed for X3)
16028 Depth cut order: true = by depth, false = by pocket
(removed for X3)
16051 Pocket type: 0 = standard, 1 = facing, 2 = island facing, 3
= remachining, 4 = open (removed for X3)
12026 Tapered wall pocketing enabled (True/False)
12567 Tapered wall pocketing: Base taper angle (in radians)
(was 10331) (X)
12568 Tapered wall pocketing: Island taper angle (in radians)
(was 10332) (X)
12042 Rough entry on (True/False)
12569 Entry type: 0 = helix, 1 = ramp, 2 = entry point (was
10380) (X)
PRM_HELIX
PRM_RAMP
12030 Minimum length
12031 Maximum length
PARAMETER REFERENCE / Operation & toolpath parameters 221
Quick Start
PRM_POCK_FACING
PRM_REMACH_POCK
PRM_OPEN_POCK
PRM_PKT_HSOPTS
12032 Z clearance (relative to top of stock / previous depth)
12033 Zig plunge angle
10390 Zag plunge angle
12034 XY clearance
10388 Ramp direction
10391 Calculate ramp direction automatically (True/False)
12035 Direction: true = CCW, false = CW
12036 Entry attemps fail: true = skip, false = plunge
12037 Save boundary (True/False)
10392 Additional slot width
12038 Use entry point (True/False)
12555 Use entry point depth (True/False) (was 10400) (X)
12039 Minimum length % (of tool dia.)
12040 Maximum length % (of tool dia.)
12041 Entry feed rate: true = feed rate, false = plunge rate
12560 Overlap percentage (was 10406) (X)
10407 Overlap amount
12562 Approach distance (was 10408) (X)
12563 Stock above islands (was 10409) (X)
12043 Exit distance
10431 Mode: 0 = all previous operations, 1 = previous
operation, 2 = rough tool diameter
10432 Roughing tool diameter
12000 Clearance as a percentage of the tool diameter
10433 Clearance to unmachined stock
12001 Apply entry/exit curves to the rough pass (True/False)
10434 Machine complete finish passes (True/False)
10441 Overlap as a percentage of tool diameter
12413 Overlap distance on the open side
12044 Use a specialized open cutting method (True/False)
40011 Use Standard pocket for closed chains option: 1 = this
option is not selected (allows multiple & non-linear
open edges); 0 = this option is selected. (new for X4)
12419 Sharp corner smoothing length
222 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_THINWALL
Wireframe toolpaths
PRM_RULED
PRM_REVOLVED
12420 Channel mode: 0 = off, 1 = full material, 2 = everywhere
(for deep Z cuts)
12309 Distance between channel loops (high speed)
12305 Channel radius (for high speed pocket)
15483 Thinwall on (True/False)
15484 Number of thinwall cuts
15503 Finish direction: true = climb cut, false = conventional
cutting
10208 Cutting method: 0 = zigzag, 1 = one way, 2 = circular, 3 =
5ax swarf
12212 5-axis swarf angle
12213 Constant Z cutting enabled (True/False)
12214 Constant Z cutting - initial
12215 Constant Z cutting - final
12216 Constant Z cutting - step
12217 Stepover amount (across cut distance)
12218 Trimming plane 1: 0 = X, 1 = Y, 2 = Z, 3 = none
12219 Trimming plane 1 coordinate
12220 Trimming plane 2 : 0 = X, 1 = Y, 2 = Z, 3 = none
12221 Trimming plane 2 coordinate
12222 Trimming plane control: true = trim the toolpath, false
= trim the tool
12223 Gouge check: true = perp to machining angle, false =
off
12004 Tip comp: true = tool tip, false = tool center
12224 Sync option setting: 0 = None, 1 = by Entity, 6 =
Manual/Density
PRM_CHAIN_SORT (X)
12225 Axis: X, Y or L: L = toolpath point entity points to the
axis
PARAMETER REFERENCE / Operation & toolpath parameters 223
Quick Start
PRM_SWEPT2D
PRM_SWEPT3D
12226 Trim: N = nothing, H = height, W = width
12227 Shape: True = concave, false = convex
12228 Retract to reference plane (True/False)
12229 Retract amount (absolute)
12054 Stepover amount
12230 Center
12231 Axis Depth (abs)
12232 Height (under Trim toolpath to)
12233 Width From (under Trim toolpath to)
12234 Width To (under Trim toolpath to)
12235 Trim sign
12236 Trim sign
12004 True = comp to tool tip, false = tool center
12237 True = rapid between passes, false = feed (X)
PRM_CHAIN_SORT
12239 Across cut distance
12241 Across: roll cutter around corners (0 = none, 1 = sharp,
2 = all)
12242 Across: cutter comp in computer (0 = right, 1 = left)
12243 Along: roll cutter around corners (0 = none, 1 = sharp, 2
= all)
12244 Along: cutter comp in computer (0 = right, 1 = left)
12004 Tip comp: true = tool tip, false = tool center
12224 Sync option setting: 0 = none, 1 = by entity, ... 6 =
manual/density
12409 Infinite look ahead enabled (True/False)
PRM_CHAIN_SORT
10208 Cut direction: 0 = zigzag, 1 = one way, 2 = circular, 3 =
5ax swarf
12238 Along cut distance
12239 Across cut distance
12004 Tip comp: true = tool tip, false = tool center
12224 Sync option setting: 0 = none, 1 = by entity, ... 6 =
manual/density
12240 Direction: 0 = along, 1 = across
12245 Rotate/translate: 0 = rotate the across contour, 1 =
translate
12246 Number of across contours: 1 or 2
224 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_COONS
PRM_LOFTED
Circle toolpaths
PRM_CIRCMILL
PRM_CHAIN_SORT
10208 Cut method: 0 = zigzag, 1 = one way, 2 = circular, 3 = 5ax
swarf
12247 Blending: 0 = linear, 1 = parabolic, 2 = cubic, 3 = cubic
with slope matching
12238 Along cut distance
12239 Across cut distance
12004 Tip comp: true = tool tip, false = tool center
12224 Sync option setting: 0 = none, 1 = by entity, ... 6 =
manual/density
12240 Direction: 0 = along, 1 = across
12248 Number of patches in across direction
12249 Number of patches in along direction
PRM_CHAIN_SORT (X)
10208 Cut method: 0 = zigzag, 1 = one way, 2 = circular, 3 = 5ax
swarf
12238 Cutting direction: Along (True/False)
12239 Cutting direction: Across (True/False)
12004 Tip comp: true = tool tip, false = tool center
12224 Sync option setting: 0 = None, 1 = by Entity, 6 =
Manual/Density
12240 Direction: 0 = along, 1 = across (X)
PRM_CHAIN_SORT
PRM_TP_COMMON (X)
12004 Comp to tip (True/False)
12107 Thread start angle
PARAMETER REFERENCE / Operation & toolpath parameters 225
Quick Start
PRM_ROUT_CIRC
(This group deleted, replaced by PRM_CIRCMILL.)
PRM_HELIX
12206 Entry/exit arc sweep
10407 Overlap between entry and exit arcs
12207 Circle diameter (used when circles are defined by
points)
12208 Start at center of circle (True/False)
12209 Enter along a line that is perpendicular to the entry arc
(True/False)
12210 Enable roughing (True/False)
12055 Stepover as a percentage of the tool diameter
12054 Stepover
12211 Enable helical entry (True/False)
PRM_HELIX
12265 Machine finish passes at: true = all depths, false = final
depth
40282 Enable Semi-Finish passes option (new for X5)
40283 Enable Finish passes option (new for X5)
40284 Semi-finish override feed rate (new for X5)
40285 Semi-finish override spindle speed (new for X5)
40286 Use semi-finish override feed rate ? (new for X5)
40287 Use semi-finish override spindle speed ? (new for X5)
40288 Finish override feed rate (new for X5)
40289 Finish override spindle speed (new for X5)
40290 Use finish override feed rate ? (new for X5)
40291 Use finish override spindle speed ? (new for X5)
40292 Entry pass override feed rate (new for X5)
40293 Use entry pass override feed rate ? (new for X5)
40294 Exit pass override feed rate (new for X5)
40295 Use exit pass override feed rate ? (new for X5)
40296 High speed entry angle, in radians (new for X5)
40297 Enable High speed entry option? (new for X5)
10389 Minimum radius
10381 Maximum radius
10386 Z clearance (relative to top of stock / previous depth)
10382 Plunge angle (in radians)
10385 XY clearance
226 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_THDMILL
10384 Direction: true = CCW, false = CW
10397 Entry attemps fail: true = skip, false = plunge
10394 Follow boundary (True/False)
10395 Follow boundary on failure only (True/False)
10396 Minimum boundary length (for follow boundary)
10398 Save boundary (True/False)
10393 Output arc move(s) (True/False)
10383 Maximum error tolerance
10399 Use entry point (True/False)
12027 Minimum radius %
12028 Maximum radius %
12029 Entry feed rate: true = feed rate, false = plunge rate
12188 Number of active teeth
12189 Clearance plane depth
12190 Feed plane
12191 Top of thread
12192 Thread depth
12193 Values: 0 = absolute, 1 = incremental
12194 Thread pitch
12107 Thread start angle
12195 Overcut
12196 Entry/exit arc clearance
12197 Entry/exit line length
12198 Helical entry/exit at top of thread (True/False)
12199 Helical entry/exit at bottom of thread (True/False)
12200 Linearize helixes (True/False)
12201 Helix linearization tolerance
12202 Thread type: 0 = ID, 1 = OD
12203 Thread diameter
12204 Thread type: 0 = right hand, 1 = left hand
12571 Start at center (True/False) (was 12290) (X)
12205 Machining direction: 0 = top to bottom, 1 = bottom to
top
12572 Perpendicular entry (True/False) (was 12291) (X)
12385 Taper angle (to centerline)
12657 Number of spring passes (new for X3)
12658 Feed rate to use when overriding programmed feed
rate (new for X3)
12659 Spindle speed to use when overriding programmed
spindle speed (new for X3)
12660 Override programmed feed rate? (Yes/No) (new for
X3)
PARAMETER REFERENCE / Operation & toolpath parameters 227
Quick Start
PRM_SLOTMILL
PRM_HELIX_BORE
12661 Override programmed spindle speed? (Yes/No) (new
for X3)
PRM_CTOURPOCK
12004 Comp to tip (True/False)
12107 Start angle
12206 Entry/exit sweep
10407 Overlap between entry and exit arcs
12207 Circle diameter (used when circles are defined by
points)
12208 Start at center of circle (True/False)
12209 Enter along a line that is perpendicular to the entry arc
12386 Enable ramp entry (True/False)
12387 Ramp stepover as a percentage of the tool diameter
12388 Ramp stepover
12389 Ramp plunge angle
12390 Output helixes as arcs (True/False)
12391 Helix linearization tolerance
12392 Number of finish passes
12393 Finish pass stepover
12394 Number of rough passes
12395 Rough pass stepover
12396 Machine finish passes at: true = all depths,
false = final depth
12397 Keep tool down (True/False)
PRM_CHAIN_SORT (X)
PRM_TP_COMMON (new for X3)
12107 Start angle
12206 Entry/exit sweep
10407 Overlap
12207 Circle diameter
12208 Start at center of circle (True/False)
12209 Enter along a line
13298 Z step per revolution for roughing
12399 Number of roughing passes
12400 Roughing stepover
12401 Feed rate at final depth as a percentage
12402 Feed rate at final depth
12403 Output a finish pass (True/False)
12404 Z step per revolution for finishing
12393 Finish stepover
228 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Solid drill / autodrill toolpaths
PRM_SOLID_DRILL
AUTODRILLPRM
12405 Finish pass spindle speed as a percentage
12406 Finish pass spindle speed
12407 Finish pass feed rate as a percentage
12408 Finish pass feed rate
10393 Output arc move(s) (True/False)
12391 Helix linearization tolerance
AUTODRILLPRM
SDETECT_DRILL_PARAMS
15319 Delete dependants
15320 Basic
15321 Solid operation ID
15322 Solid pointer (removed for X3)
15323 Redetect on regen (True/False)
15324 Stock clearance
15502 Create points (True/False)
15513 Use custom drill parameters (True/False)
15514 Custom drill cycle
15515 Custom drill cycle
15516 Custom drill cycle
15517 Custom drill cycle
15518 Custom drill cycle
15519 Custom drill cycle
15520 Custom drill cycle
15521 Custom drill cycle
15522 Custom drill cycle
15223 Custom drill cycle
Note: These parameters do NOT get to the Post, since
AutoDrill generates individual drilling toolpath
operations.
15278 Tool type: 0=Drill, 1=Tap RH Coarse, 2=Tap RH Fine,
3=Tap LH Coarse, 4=Tap LH Fine, 5=Reamer, 6=Boring
Bar, 7=Endmill
15279 Use filter arc (True/False)
15280 No warnings (True/False)
15281 Spot drill (True/False)
15282 Spot maximum depth
15283 Spot diameter
PARAMETER REFERENCE / Operation & toolpath parameters 229
Quick Start
SDETECT_DRILL_PARAMS
15284 Chamfer type: 0 = none, 1 = add depth to spot cycle, 2 =
make new op
15285 Chamfer size
15286 Destination operation group id #
15287 Depth from top of arc (True/False)
15288 Tool library name
15289 Pre drill (True/False)
15290 Minimum pre-drill diameter
15291 Pre-drill diameter increment
15292 Pre drill stock
15293 Pre drill tip comp (True/False)
15294 Pre drill break thru
15295 Pre drill stock flag (True/False)
15296 PRM filename
15297 Tool match tolerance
15298 Tip comp (True/False)
15299 Break thru
15300 5-axis (True/False)
15301 View RB
15302 Group added (True/False)
15303 Use arc views (True/False)
15304 Use default diameter (True/False)
15305 Default diameter
15306 Sel
15307 Minimum hole radius
15308 Maximum hole radius
15309 Include blind holes (True/False)
15310 Create arcs using this offset
15311 New geometry color
15312 Limit search to given plane (True/False)
15313 Plane to limit search to if limit by plane = True
15314 Include split cylinders (True/False)
15315 Limit by sweep code
15316 Limit sweep angle 0.0 - 360.0 degrees
15317 Limit sweep step size - controls # of sections tested
along
230 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Facing toolpaths
PRM_FACING
Transform operations
PRM_XFORM
12051 Cutting method: 0 = zigzag, 1 = one way (climb), 2 =
one way (conventional), 3 = one pass
12052 Move between cuts: 0 = high speed loops, 1 = linear, 2 =
rapid
12053 Linearization tolerance
12054 Stepover distance
12055 Stepover distance as % of tool diameter
12056 Along overlap distance
12057 Along overlap as % of tool diameter
12058 Across overlap distance
12059 Across overlap as % of tool diameter
12060 Approach distance
12061 Approach distance as % of tool diameter
12062 Exit distance
12063 Exit distance as % of tool diameter
12064 Determine roughing angle automatically (True/False)
12065 Roughing angle
12066 Change feed rate between cuts (True/False)
12067 Feed rate between cuts
12068 Amount of stock to leave in Z
PRM_CHAIN_SORT
12711 Select cutting method (new for X3)
12712 Turn on last pass option: Reverse direction of last
pass / Even number of passes (new for X3)
15557 Xform type: 8 = mirror, 13 = rotate, 16 = translate
(was 10050) (X)
15069 Start of operation range to transform
15070 End of operation range to transform
PRM_XFORM_MISC_OPS (new for X5)
15772 Remove comments option : 1 = strip out
comments from source operations (new for X5)
15746 SourceGeometry or SourceNCI.
1 = transform source ops geometry, 0 = transform
source ops NCI (new for X5)
15331 Dont delete transform source operation if
make_ops = True (True/False)
15332 Work offset numbering: 0 = auto increment, 1 =
maintain source operations, 2 = assign
PARAMETER REFERENCE / Operation & toolpath parameters 231
Quick Start
PRM_XFORM_MIRROR
15333 Start number work offsets with this number
15334 Increment work offsets by this number
15335 First match work offset in named views and ops
(True/False)
15275 Force unique subprogram number for clump
option (True/False)
15276 Dont post the source operations (True/False)
15264 Don't skip original instance (True/False)
15000 NCI Grouping: true = group ops, false = separate
ops
15001 Subprogram output mode: true = incremental,
false = absolute
15747 1 = create named views for transformed
toolplanes (new for X5)
15002 Look for pre-defined work offset #s when
xforming the Tplane (True/False) (removed for
X5)
15003 Transform options:
true = transform geometry and make new ops
false = transform toolpath only
15004 Translate NCI coordinates - leave tool plane
intact (True/False)
15005 Output subprogram labels (True/False)
15006 Shift tool origin in NCI 1013 data (True/False)
PRM_XFORM_MIRROR
PRM_XFORM_ROTATE
PRM_XFORM_TRANSLATE
15020 Relative to operation. Cplane - tp_mirror_x,
tp_mirror_l
15021 Coordinates translated to vw2 (True/False)
15051 Mirror axis endpoint endpoint 1, in world
coordinates
15052 Mirror axis endpoint endpoint 1, in world
coordinates
15053 Mirror axis endpoint endpoint 1, in world
coordinates
15054 Mirror axis endpoint endpoint 2, in world
coordinates
15055 Mirror axis endpoint endpoint 2, in world
coordinates
15056 Mirror axis endpoint endpoint 2, in world
coordinates
PRM_XFORM_VIEW
15057 Reverse cutter compensation (True/False)
232 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_XFORM_ROTATE
PRM_XFORM_TRANSLATE
15058 Reverse toolpath (True/False)
15750 Reference point for X-axis/Y-axis/angle (new for X5)
15751 Reference point for X-axis/Y-axis/angle (new for X5)
15752 Reference point for X-axis/Y-axis/angle (new for X5)
15753 Angle (in degrees) (new for X5)
15782 Maintain start point : 1 = move the start point, 0 = use
the first entity (new for X5)
15059 Method generated (endpoint, midpoint, etc.) (Removed
for X5)
15060 Method generated (endpoint, midpoint, etc.) (Removed
for X5)
15061 T values (Removed for X5)
15062 T values (Removed for X5)
15063 T values (Removed for X5)
15064 T values (Removed for X5)
15065 Selected entities ID numbers (Removed for X5)
15066 Selected entities ID numbers (Removed for X5)
15067 Selected entities database pointers (removed for X3)
15068 Selected entities database pointers (removed for X3)
15020 Rotation point: 1 = C view origin, 2 = point
15021 Coordinates translated to view 2 (True/False)
15042 Number of steps
15043 Rotation point in world coordinates (X)
15044 Rotation point in world coordinates (Y)
15045 Rotation point in world coordinates (Z)
15046 Rotation angle (in degrees)
PRM_XFORM_VIEW
15273 Start angle (in degrees)
15754 Distance mode : 0 = Angle between option; 1 = Total
sweep option (new for X5)
15755 Type mode : 0 = rotate; 1 = translate-and-rotate (new
for X5)
15047 Method generated: endpoint, midpoint, etc. (removed
for X5)
15048 T values (removed for X5)
15049 T values (removed for X5)
15050 Selected entities ID number (removed for X5)
15067 Selected entities database pointers (removed for X3)
15020 Translation direction: 17 = Rectangular, 18 = Polar, 19 =
Between points, 20 = Between views
15021 Coordinates translated to view 2 (True/False)
15022 Number of steps in X
PARAMETER REFERENCE / Operation & toolpath parameters 233
Quick Start
PRM_XFORM_MISC_OPS
15023 Number of steps in Y
15024 Translate distance in X
15025 Translate distance in Y
15026 From point: X coordinate
15027 From point: Y coordinate
15028 From point: Z coordinate
15029 To point: X coordinate
15030 To point: Y coordinate
15031 To point: Z coordinate
15032 Total polar distance (if Delta method used)
15033 Polar angle in degrees (if Delta method used)
15274 Zigzag toolpath array (True/False)
15754 Distance mode: 0 = Distance between option, 1 = Total
distance option (new for X5)
15755 Delta distance: X (new for X5)
15756 Delta distance: Y (new for X5)
15757 Delta distance: Z (new for X5)
15390 Use source view (True/False)
PRM_XFORM_VIEW Source view data
PRM_XFORM_VIEW0
02
Destination view data
15034 Method generated: endpoint, midpoint, etc. (removed
for X5)
15035 Method generated: endpoint, midpoint, etc. (removed
for X5)
15036 T values (removed for X5)
15037 T values (removed for X5)
15038 T values (removed for X5)
15039 T values (removed for X5)
15040 Selected entities ID number (removed for X5)
15041 Selected entities ID number (removed for X5)
15067 Selected entities database pointers (removed for X3)
15068 Selected entities database pointers (removed for X3)
15774 Transform operation custom parameters : integer #1
(new for X5)
15775 Transform operation custom parameters : integer #2
(new for X5)
15776 Transform operation custom parameters : integer #3
(new for X5)
15777 Transform operation custom parameters : integer #4
(new for X5)
15778 Transform operation custom parameters : real #1 (new
for X5)
234 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_XFORM_VIEW
PRM_XFORM_VIEW002
Trimmed toolpaths
PRM_TRIMMED
15779 Transform operation custom parameters : real #2 (new
for X5)
15780 Transform operation custom parameters : real #3 (new
for X5)
15781 Transform operation custom parameters : real #4 (new
for X5)
15007 View matrix
15008 View matrix
15009 View matrix
15010 View matrix
15011 View matrix
15012 View matrix
15013 View matrix
15014 View matrix
15015 View matrix
15016 View origin
15017 View origin
15018 View origin
15019 View number at time of creation
15391 View matrix
15392 View matrix
15393 View matrix
15394 View matrix
15395 View matrix
15396 View matrix
15397 View matrix
15398 View matrix
15399 View matrix
15400 (not used)
15401 View origin
15402 View origin
15403 View origin (removed for X5see 15749)
15749 View number at time of creation (changed for X5
used to be 15403)
12288 X - which side to keep
PARAMETER REFERENCE / Operation & toolpath parameters 235
Quick Start
Nesting
PRM_NESTING
12289 Y - which side to keep
12290 Z - which side to keep
12291 Tool up/down: 0 = keep tool up, 1 = keep tool down
PRM_CHAIN_SORT (X)
15404 Version
15405 Resolution
15406 ResCBox
15407 ResUser
15408 SheetToSheetDist
15409 SheetToPartDist
15410 PartToPartDist
15411 IfFitPartInPart
15412 IfFillAllSheets (removed for X3)
15413 IfAutoPairs (removed for X3)
15414 IfNestFillersToNestHeight
15415 IfPreferHoleFilling
15416 IfDeleteChains
15417 IfCreateGroups
15418 IfUseMainColor
15419 IfUseMainLevel
15420 IfCycleColors
15421 IfCycleLevels
15422 ResultColor
15423 ResultLevel
15424 IfRestoreLast
15425 IfSaveScrap
15426 IfAddPartsAsGroup
15427 IfIgnoreHoles
15428 IfInnerHoles
15429 StartingCorner
15430 IfAddLabels
15431 ScanForNotes
15432 DrawUsingColors
15433 LabelHeight
15434 IfAutoOrigins
15435 ScrapName
15436 xfmMethod: 0 = Toolplane, 1 = Coordinate
236 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
15437 xfmGroupOutputBy: 0 = operation order, 1 = operation
type
15438 xfmWoff: 0 = off, 1 = maintain source operation's #'s, 2
= assign new
15439 XfmWoffStart
15440 XfmWoffInc
15441 xfmWoffMatchExisting (True/False)
15442 xfmWoffCreateNewOps (True/False)
15443 xfmWoffKeepExistingOp (True/False)
15444 xfmCopySourceOps (True/False)
15445 xfmDisablePosting (True/False)
15446 xfmSubPgmOn (True/False)
15447 xfmSubPgmAbs (True/False)
15448 xfmSubPgmUnique (True/False)
15453 ParentOpId
15454 SeparateOpPerSheet (True/False)
15455 WorkOffsetPerSheet (True/False)
15456 WoffStart
15457 WoffInc
15458 sortMode: 0=none, 1=next closest, 2=max vacuum,
3=manual
15459 sortGroupByTool (True/False)
15460 sortGroupByRegion (True/False)
15461 SortRegionOrder
15462 SortRegionX
15463 SortRegionY
15464 SortRegionOverlap
15465 sortStartPt X
15466 sortStartPt Y
15467 sortStartPt X
15468 sortZigZag (True/False)
15469 sortMinToolChg (True/False)
15470 sortGroupBySheet (True/False)
15501 force_re-nest (True/False)
15512 Stop between sheets: 0=no, 1=stop (M00), 2=optional
stop (M01)
15547 Sheet fill direction
15548 Attach auto chains
15549 Display group page
15550 Load default sheet
15551 Guillotine cut
15572 Exact nesting mode (0,1,2) (new for X3)
15573 (Reserved for future use) (new for X3)
15574 Each part stored on a different unused level (new
for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 237
Quick Start
Surface rough toolpaths
PRM_SRF_RGH_PARALLEL
15575 Sort order of chains in source operations for max vac
within clusters (new for X3)
15576 Sort order of source operations for max vac within
clusters (new for X3)
15578 True if Automatically attach geometry option is
selected.
15579 Skip Results dialog after nesting complete.
15592 Onion skin active (y/n) (new for X3)
15593 For Skin all parts less than... option, dimension 1
(new for X3)
15594 For Skin all parts less than... option, dimension 2
(new for X3)
15595 Ignore tabbed parts? (y/n) (new for X3)
15596 Onion skin method: 0=All parts, 1=minimum size
(new for X3)
15597 Sort chainscut smallest parts first (new for X3)
15598 Amount of stock to leave on Z axis (new for X3)
15599 Tool diameter used during skinning (new for X3)
15600 Determine minimum part size by this width along X or
Y axis (new for X3)
15605 Corner of sheet to use as the tool origin (new for X3)
15606 Common edge (new for X3)
15607 Create separate block drill operations (new for X3)
15695 Shape is locked (new for X4)
15696 Minimum width for trimming (new for X4)
15697 Trim option is turned on (new for X4)
15698 Combine cuts option is turned on (new for X4)
15699 Trim mode (new for X4)
15700 Group sorting is turned on (new for X4)
15701 Use Name as Label option is turned on (new for X4)
15748 Check for duplicates... option is selected when saving
scrap (new for X5)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
PRM_SRF_ROUGH_SETTINGS
10205 Maximum stepover
10200 Machining angle
238 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_RGH_RADIAL
PRM_SRF_RGH_PROJECT
PRM_SRF_RGH_FLOWLINE
10208 Cut method: 0 = zigzag, 1 = one way
10223 Prompt for relative start point (True/False)
12104 Plunge distance
12105 Retract distance
12428 Tangent line length (gap setting)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
PRM_SRF_ROUGH_SETTINGS
12103 Maximum angle increment
10208 Cutting method: 0 = zigzag, 1 = one way
12106 Start inside (True/False)
12107 Start angle
12108 Sweep angle
12109 Offset distance
12104 Plunge distance
12105 Retract distance
12428 Tangent line length (gap setting)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
PRM_SRF_ROUGH_SETTINGS
12110 Projection type: 0 = NCI, 1 = curves, 2 = points, 3 =
blend
12111 NCI filename (removed for X5)
12112 Add depths (True/False)
12104 Plunge distance
12105 Retract distance
12113 Oper ID # of NCI to project
12302 Blend stepover
10208 Cutting method: 0 = zigzag, 1 = one way
12573 Cutting method: 0 = across, 1 = along (was 12310) (X)
12428 Tangent line length (gap setting)
15510 Force a retract move between cuts (new for X3)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PARAMETER REFERENCE / Operation & toolpath parameters 239
Quick Start
PRM_SRF_RGH_CONTOUR
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
PRM_SRF_ROUGH_SETTINGS
10208 Cut method: 0 = zigzag, 1 = one-way, 2 = spiral
12115 Use along distance (True/False)
12116 Along cut: distance
12117 Use across distance (True/False)
12118 Across cut: distance
12119 Across cut: scallop height
12120 Check flowline motion for gouge (True/False)
12104 Plunge distance
12105 Retract distance
12121 Start point (which corner)
12122 Cut direction (U or V)
12264 Shared edge tolerance: 0.0 = off
12421 True = row only (v8 code), false = grid (v9)
12428 Tangent line length (gap setting)
12682 Number of flow blend passes (X2)
12683 Flow blend enabled (True/False) (X2)
12684 Percent of tool diameter for rib resolution (X2)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
10223 Prompt for relative start point (True/False)
10208 Direction of open boundaries: 0 = zigzag, 1 = one way
10415 Direction of closed boundaries: True = climb
12554 Use rest mill (True/False) (was 10123) (X)
12124 Rest stepover
12125 Rest overlap
12126 Order cuts bottom to top (True/False)
12104 Plunge distance
12105 Retract distance
12127 Sharp corner smoothing length
240 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_RGH_POCKET
12128 How shallow is to be used in contour:
0 = shallow is off, remove cuts, allow partial
1 = shallow is off, remove cuts, disallow partial
2 = shallow is off, add cuts, allow partial
3 = shallow is off, add cuts, disallow partial
10 = shallow is on, remove cuts, allow partial
11 = shallow is on, remove cuts, disallow partial
12 = shallow is on, add cuts, allow partial
13 = shallow is on, add cuts, disallow partial
12129 Minimum stepdown to add cuts to shallow area
12130 Angle to determine shallow area
12131 Smooth stepover length
12132 Rampdown length
12133 Use tangent z arc (True/False)
12134 Restmill cut Z extension length
12135 Offset consecutive closed contours by this
12114 Previous operation ID
12283 Bit 0: 0 = use prev op's recut file, 1 = use prev ops NCI
file
12300 Adjust absolute cut depths for drive stock
12301 Allow tangent entry/exit arc outside tool center
boundary
12310 Helix: true = use helix, false = straight
12311 Helix radius
12312 Helix Z clearance
12313 Helix Z angle
12314 Output arc moves: true = output arcs, false = lines
12315 Helix tolerance
12316 Helix direction: true = CCW, false = CW
12317 Helix feed: true = feed rate, false = plunge rate
12318 Top of stock is on (True/False)
12428 Tangent line length (gap setting)
15471 Allow burial: true = allow in cut order, false = minimize
it
15505 Flat use: 0-flat_use is off (2d), 1-flat_use is off (3d), 2-
flat_use is on (2d), 3-flat_use is on (3d)
15506 Stepover for flat step
12431 True=use tool percentage
12432 Percentage of tool used in stepover
12433 True=automatically detect flats
12434 Do spiral
12435 Max XY deviation
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PARAMETER REFERENCE / Operation & toolpath parameters 241
Quick Start
PRM_SRF_RGH_PLUNGE
PRM_SRF_GAP_SETTINGS
PRM_SRF_DIRECTION
PRM_SRF_DEPTHS
PRM_SRF_HSOPTS
10223 Prompt for relative start point (True/False)
10442 Plunge tool outside tool center boundary (True/
False)
12126 Order cuts bottom to top (True/False)
12104 Plunge distance
12105 Retract distance
12136 use quick zigzag (in place of toolpath/zigzag)
(True/False)
12131 Smooth stepover length
12133 Use tangent Z arc (True/False)
12257 Top of stock is on (True/False)
12300 Adjust absolute cut depths for drive stock (True/
False)
12308 Channel everywhere (for deep Z cuts) (True/
False)
12418 Pre-drill and enter at deepest point(s) (True/
False)
12428 Tangent line length (gap setting)
12436 Keep full increment
12433 Automatically detect flats (True/False)
PRM_POCKET (new for X3)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_DEPTHS
10205 Maximum stepover
12104 Plunge distance
12105 Retract distance
12113 Operation ID # of NCI to project
12310 Helix: true = use helix, 1 = straight
12311 Helix radius
12312 Helix Z clearance
12313 Helix Z angle
12314 Output arc moves: true = output arcs, false = lines
12315 Helix tolerance
12316 Helix direction: true = CCW, false = CW
12317 Helix feed: true = feed rate, false = plunge rate
12319 Path type: 0 = 2 point grid, 1 = NCI
242 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_RGH_RESTMILL
12318 Top of stock is on (True/False)
12428 Tangent line length (gap seting)
12685 True = use V8style stepping; False = use V9 and
later style (X2)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_DEPTHS
10223 Prompt for operations start point (True/False)
10208 Direction of open boundaries (0 = zigzag, 1 = one-
way)
10415 Direction of closed boudaries (True = climb)
12123 Use rest mill (True/False)
12124 Stepover
12125 Overlap
12126 Order cuts bottom to top: true = bottom to top,
false = top to bottom
12104 Plunge distance
12105 Retract distance
12127 Sharp corner smoothing length
12128 How shallow is to be used:
0 = shallow is off, remove cuts, allow partial
1 = shallow is off, remove cuts, disallow partial
2 = shallow is off, add cuts, allow partial
3 = shallow is off, add cuts, disallow partial
10 = shallow is on, remove cuts, allow partial
11 = shallow is on, remove cuts, disallow partial
12 = shallow is on, add cuts, allow partial
13 = shallow is on, add cuts, disallow partial
12129 Minimum stepdown to add cuts to shallow area
12130 Angle to determine shallow
12131 Smooth stepover length
12132 Rampdown length
12133 Use tangent z arc (True/False)
12134 Restmill cut extension length
12135 Offset consecutive closed contours by this
12114 Previous operation ID #
12283 Rest code:
bit 0: 0 = use previous operation's recut file, 1 =
use previous operation's NCI file
bit 1: 0 = use ONE prev operation, 1 = use ALL prev
operations
bit 2: 0 = use previous operation, 1 = use rough
tool
PARAMETER REFERENCE / Operation & toolpath parameters 243
Quick Start
Surface finish toolpaths
PRM_SRF_FIN_PARALLEL
12300 Adjust absolute cut depths for drive stock (True/
False)
12301 Allow tangent entry/exit arc outside the tool
containment boudary (True/False)
12415 Rough diameter (removed for X3)
12565 Rough corner radius (was 10302) (X) (removed for
X3)
12310 Helix: true = helix, false = straight
12311 Helix radius
12312 Helix Z clearance
12313 Helix Z angle
12314 Output arc moves: true = output arc, false = lines
12315 Helix tolerance
12316 Direction: true = CCW, false = CW
12317 Entry feed rate: true = feed rate, false = Plunge rate
12318 Top of stock is on (True/False)
12425 Use rest overlap, (True/False)
12426 Remaining stock resolution
12428 Tangent line length (gap setting)
15471 Gouge check: true = allow burial in curt order,
false = minimize it
12431 Use tool percentage (True/False)
12432 Percentage of tool diameter for stepover
12433 Automatically detect flat (True/False)
40241 When All previous operations are selected : 0 =
All groups, 1 = Machine group only, 2 = Toolpath
group only (new for X5)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10205 Maximum stepover
10200 Machining angle
10208 Cut method: 0 = zigzag, 1 = one way
10223 Prompt for relative start point (True/False)
12104 Plunge distance
12105 Retract distance
12428 Tangent line length (gap setting)
244 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_FIN_RADIAL
PRM_SRF_FIN_PROJECT
PRM_SRF_FIN_FLOWLINE
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
12103 Maximum angle increment
10208 Cut method: 0 = zigzag, 1 = one way
12106 Start inside (True/False)
12107 Start angle
12108 Sweep angle
12109 Offset distance
12104 Plunge distance
12105 Retract distance
12428 Tangent line length (gap setting)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
12110 Projection type: 0 = NCI, 1 = curves, 2 = points,
3 = two curve blend
12111 NCI filename (removed for X5)
12112 Add depths (True/False)
12104 Plunge distance
12105 Retract distance
12113 NCI to project
12428 Tangent line length (gap setting)
15510 Force retract (True/False) (X)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10208 Cut_method: 0 = zigzag, 1 = one way, 2 = spiral
12115 Use along distance (True/False)
12116 Along cut: distance
12117 Use across distance (True/False)
12118 Across cut: distance
PARAMETER REFERENCE / Operation & toolpath parameters 245
Quick Start
PRM_SRF_FIN_CONTOUR
12119 Across cut: scallop height
12120 Check flowline motion for gouge (True/False)
12104 Plunge distance
12105 Retract distance
12121 Start point (which corner)
12122 Cut direction (U or V)
12264 Shared edge tolerance: 0.0 = off
12421 True = row only (v8 code), false = grid (v9)
12428 Tangent line length (gap setting)
12686 Number of flow blend passes (X2)
12687 Flow blend enabled (True/False) (X2)
12688 Percent of tool diameter for rib resolution (X2)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_DEPTHS
10223 Prompt for relative start point (True/False)
10208 Direction of open boundaries: 0 = zigzag, 1 = one
way
10415 Direction of closed boundaries: True = climb
12123 Use rest mill (True/False)
12124 Rest stepover
12125 Rest overlap
12126 Order cuts bottom to top (True/False)
12104 Plunge distance
12105 Retract distance
12127 Sharp corner smoothing length
12128 How shallow is to be used in contour:
0 = shallow is off, remove cuts, allow partial
1 = shallow is off, remove cuts, disallow partial
2 = shallow is off, add cuts, allow partial
3 = shallow is off, add cuts, disallow partial
10 = shallow is on, remove cuts, allow partial
11 = shallow is on, remove cuts, disallow partial
12 = shallow is on, add cuts, allow partial
13 = shallow is on, add cuts, disallow partial
12129 Minimum stepdown to add cuts to shallow area:
12130 Angle to determine shallow area
12131 Smooth stepover length
12132 Rampdown length
12133 Use tangent Z arc (True/False)
12134 Restmill cut extension length
12135 Offset consecutive closed contours by this value
246 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_FIN_PENCIL
12114 Previous operation ID #
12283 Bit 0: 0 = use prev op's recut file, 1 = use prev ops
NCI file
12300 Adjust absolute cut depths for drive stock (True/
False)
12301 Allow tangent entry/exit arc outside tool
containment boundary (True/False)
12310 Helix: true = use helix, false = straight
12311 Helix radius
12312 Helix Z clearance
12313 Helix Z angle
12314 Output arc moves: true = output arcs, false = lines
12315 Helix tolerance
12316 Helix direction: true = CCW, false = CW
12317 Helix feed: true = feed rate, false = plunge rate
12318 Top of stock is on (True/False)
12428 Tangent line length (gap setting)
15471 Allow burial: true = allow burial in opt cut order,
false = minimize it
15505 Flat use: 0-flat_use is off (2d), 1-flat_use is off (3d),
2-flat_use is on (2d), 3-flat_use is on (3d)
15506 Stepover for flat step
12431 True=use tool percentage
12432 Percentage of tool used in stepover
12433 True=automatically detect flats
12434 Do spiral
12435 Max XY deviation
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10415 Machining direction: true = climb, false =
conventional cut
10223 Prompt for relative start point (True/False)
12104 Plunge distance
12105 Retract distance
10200 Machining angle (bias angle)
12263 Ignore climb(/conventional) flag (True/False)
12424 Number of total passes
12449 Multipass (True/False)
10208 Cutting method: 0=zigzag, 1=oneway
12054 Stepover for offset passes
PARAMETER REFERENCE / Operation & toolpath parameters 247
Quick Start
PRM_SRF_FIN_LEFTOVER
PRM_SRF_FIN_STEEP
12428 Tangent line length (gap setting)
12438 Pencil angle
12574 Overthickness (new for X3)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10205 Maximum stepover
10200 Machining angle
10208 Cut method: 0 = zigzag, 1 = one way, 2 = 3D
collapse
10223 Prompt for relative start point (True/False)
12564 Roughing tool diameter (was 10301) (X)
12565 Roughing tool corner radius (was 10302) (X)
12566 Cut extension (was 10303) (X)
10415 Machining direction: true = climb, false =
conventional cut
10325 Expand cuts from the inside to the outside (True/
False)
10324 Create outermost 3D collapse pass (True/False)
10326 Resolution: percentage of stepover
12104 Plunge distance
12105 Retract distance
12292 Hybrid: true = perpendicular to pencil, false = at
machining angle
12298 From slope angle
12299 To slope angle
12303 Collapse resolution: true = automatically
calculate resolution percentage, false = use
resolution percentage
12304
Skip smoothing of outer boundary (True/False)
12320 Blend Cuts: true = blend Z cuts with XY, false = XY
only
12321 Blend extension
12322 Blend angle
12323 Rough tool cut tolerance
12422 Tolerance: true = use rough tolerance, false = set
rough tolerance equal to cut tolerance
12423 Rough pencil map: true = skip, false = use it
12428 Tangent line length (gap setting)
12430 Skip internal lines in 3D collapse: (True/False)
PRM_SRF_COMMON
248 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_FIN_SHALLOW
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10205 Maximum stepover
10200 Machining angle
10208 Cut method: 0 = zigzag, 1 = one way
10223 Prompt for relative start point (True/False)
10310 Angle of surface normal (start of range)
10311 Angle of surface normal (end of range)
10312 Cut extension
12104 Plunge distance
12105 Retract distance
12307 Include cuts outside from/to range (True/False)
12428 Tangent line length (gap setting)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10205 Maximum stepover
10200 Machining angle
10208 Cut method: 0 = zigzag, 1 = one way, 2 = 3D collapse
10223 Prompt for relative start point (True/False)
10320 Angle of surface normal (start of range)
10321 Angle of surface normal (end of range)
10322 Cut extension
10415 Machining direction: true = climb, false =
conventional cut
10325 Expand cuts from the inside to the outside (True/
False)
10324 Create outermost 3D collapse pass (True/False)
10326 Resolution: percentage of stepover
12104 Plunge distance
12105 Retract distance
12923 Output: true = 5-axis, false = 3-axis
12924 5-axis output: lead/lag angle
12925 5-axis output: lead/lag angle limit
12926 5-axis output: side angle
12927 5-axis output: side angle limit
12303 Collapse resolution: true = automatically calculate
resolution percentage, false = use resolution
percentage
PARAMETER REFERENCE / Operation & toolpath parameters 249
Quick Start
PRM_SRF_FIN_CONSCALOP
PRM_SRF_FIN_BLEND (X)
12428 Tangent line length (gap setting)
12430 Skip internal lines in 3D collapse (True/False)
12137 Optimization type: 0 = extrema, 1 = closest
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10205 Maximum stepover
10223 Prompt for relative start point (True/False)
10415 Machining direction: true = climb, false =
conventional cut
10325 Expand cuts from the inside to the outside
(True/False)
10324 Create outermost 3D collapse pass (True/
False)
10326 Resolution: percentage of stepover
12104 Plunge distance
12105 Retract distance
12137 Optimization type: 0 = extrema, 1 = closest
10200 Machining angle
12303 Collapse resolution: true = automatically
calculate resolution percentage, false = use
resolution percentage
12306 Collapse settings: true = hold outermost zone
static, false = collapse it
12428 Tangent line length (gap setting)
12430 Skip internal lines in 3D collapse (True/False)
12575 Enable sharp-corner smoothing? (Y/N) (new
for X3)
12576 Angle tolerance to define which corners are
considered sharp. (new for X3)
12577 Maximum rounding distance. (new for X3)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
12110 Projection type: set to 3 (two curve blend)
12104 Plunge distance
250 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Surface common settings
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
12105 Retract distance
12302 Blend stepover
10208 Cutting method: 0 = zigzag, 1 = one way, 2 =
spiral
12238 Cutting Method: true = along, false = across
12417 If along, true = do 2D projection, false = do 3D
12428 Tangent line length (gap setting)
15472 Percentage of stepover to use for temporary
across cut used to build final along 3D cut
15473 Skip vertical walls (True/False)
10226 Respond to check bit on surfaces (True/False)
10227 Stock to leave on check surfaces
10228 Prompt for tool center boundary (True/False)
12410 Comp to tip (True/False)
10204 Cut tolerance
12411 Maximum stepdown
10915 Direction vectors are to be used (True/False) (was
10715) (X)
10909 Plunge angle in XY (was 10709) (X)
10910 Plunge angle in Z (was 10710) (X)
10911 Plunge relative: 0 = to Cplane X-axis, 1 = to cut (was
10711) (X)
10912 Retract angle in XY )was 10712) (X)
10913 Retract angle in Z (was 10713) (X)
10914 Retract relative: 0 = to Cplane X-axis, 1 = to cut (was
10714) (X)
10255 Retract: true = use gap percentage, false = use gap
distance
10259 Maximum short gap (as a distance)
10258 Maximum short gap (as percentage of stepover (or tool
diameter))
10260 Gap motion: 0 = direct, 1 = broken, 2 = smooth, 3 =
follow surface fixed feed rate,
10 = direct, 11 = broken, 12 = smooth, 13 = follow
surface (was 10221) (X)
10256 Check short gap motion for gouge (True/False)
PARAMETER REFERENCE / Operation & toolpath parameters 251
Quick Start
PRM_SRF_EDGE_SETTINGS
PRM_SRF_DEPTHS
PRM_SRF_ROUGH_SETTINGS
10257 Check long gap motion for gouge (True/False)
10246 Optimize cut order (True/False)
10247 Plunge into previously cut area (True/False)
10248 Follow tool center boundary in gap (True/False)
12414 Tangential arc radius
12556 Tangential arc sweep angle (was 10402) (X)
10252 Search for shared edges (obsolete - defaults to False)
10251 Use solid hidden face (True/False)
10249 Containment boundary offset distance (set to 0 in v8
operations)
10250 Containment boundary offset option
0 = offset inside
1 = no offset (center) (this is default)
2 = offset outside
10242 Roll tool at edges:
1 = only between surfaces, 2 = over all surfaces, 3 = auto
10254 Sharp corner tolerance: true = use corner percentage,
false = use corner distance
10253 Sharp corner tolerance (as distance)
10240 Sharp corner tolerance (as percentage of cut tolerance)
12557 Cut depths: true = incremental, false = absolute (was
10403) (X)
12070 Tip comp: true = tip depths, false = center depths
12444 Maximum storage currently allocated for critical
depths (X)
12445 Current count of number of critical depths (X)
12446 Counter to indicate that variable critical depths were
changed (dirty flag) (X)
12447 Database list entity pointer (X) (removed in X3)
12448 Pointer to critical depths (X) (removed in X3)
12558 Incremental: adjustment to top cut (was 10404) (X)
12559 Incremental: adjustment to bottom and other cuts
(was 10405) (X)
12412 ## Absolute: highest cut
14071 Absolute: lowest cut
1207212101 Critical depths selected by user (Pre-X)
10233 Allow motion in -Z along surface (True/False)
10224 Allow motion in +Z along surface (True/False)
10235 Plunge control: 1 = cut from one side, 2 = cut from
both, 0 = allow multiple plunges
252 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_HSOPTS
PRM_SRF_LIMITS
High-speed 2D toolpaths
PRM_2D_HMM
12439 Use variable step: True=variable, False=Fixed distance
between offest passes
12440 Use tangent ramp: True=tangent ramp, False=loop
transition between offset passes
12441 Use tangent ramp angle: True=angle, False=length
specification of tangent ramp
12442 Tangent ramp length
12443 Tangent ramp angle
10243 Use cut depth limits (True/False)
12102 Tip comp: true = tip depths, false = center depths
10244 Depth limit 1
10245 Depth limit 2
12713 2D toolpath style: core mill, peel mill, blend mill, area
mill, rest mill (new for X3)
12714 Rounding radius (new for X3)
12715 Rough offset (new for X3)
12716 Extend entry? (new for X3)
12717 Create finish pass (new for X3)
12718 Back feedrate (new for X3)
12719 Stepover (new for X3)
12720 Width of slot (new for X3)
PRM_CONTOUR
12952 Feedrate override (new for X4)
12953 Spindle speed override (new for X4)
12954 1 = Feedrate override on (new for X4)
12955 1 = Spindle speed override on (new for X4)
12956 1 = conventional milling (0 = climb) (new for X4)
12957 Single chain slot for peel mill : 0 = chain is center of
slot, 1 = left, 2 = right (new for X4)
12958 1 = Extend exit (new for X4)
12959 Entry extension distance (new for X4)
12960 Exit extension distance (new for X4)
12961 Percentage of stepover to use for a temporary across
cut. This is used to build the final Along 3D cut. (new
for X4)
PARAMETER REFERENCE / Operation & toolpath parameters 253
Quick Start
12962 Cut method: 0 = Zigzag, 1 = One way, 2 = Spiral (new
for X4)
12963 Across/along selection: 0 = Across, 1 = Along (new for
X4)
12964 If 12963 = Along, 1= Do 2D projection, 0 = Do 3D core
mill parameters (new for X4)
12965 1 = use conventional rough cut, 0 = use climb rough cut
(new for X4)
12966 1 = Enable adaptive stepdown (new for X4)
12967 1 = Enable profile smoothing (Z constant smooth op)
(new for X4)
12968 Maximum Z stepdown distance for core mill (new for
X4)
12969 Minimum Z stepdown for use with adaptive step (new
for X4)
12970 Maximum step difference between 2 points in adaptive
step (new for X4)
12971 Stepover as a % of tool diameter in core mill (new for
X4)
12972 Minimum stepover as % of maximum stepover (new
for X4)
12973 Maximum stepover for core mill (new for X4)
12974 Minimum stepover for core mill (new for X4)
12975 Maximum radius for smoothing operation (new for
X4)
12976 Smoothing tolerance (new for X4)
12977 Tolerance for smoothing op cornering (new for X4)
12978 Length of peel mill microlift (new for X4)
12979 Height of peel mill microlift (new for X4)
12980 1 = Peel mill microlift is enabled (new for X4)
12981 1 = Use feed rate at entry, 0 = Use plunge rate (new for
X4)
12982 Entry style: 0 = profile ramp, 1 = helix (new for X4)
12983 Entry motion: 1 = Use 3D arcs (helixes), 0 = Linearize
them (new for X4)
12984 1 = Use core mill as raw passes, 0 = Use area mill as raw
passes (new for X4)
12985 gap size defined by: 0 = distance, 1 = percent of tool
diameter (new for X4)
12986 1 = minimize burial (use trochoidal loop), 0 = Dont
(new for X4)
12987 1 = Keep troichoidal loop inside machining region, 0 =
Let it move in air outside machining region (new for
X4)
12988 Radius of helix (for core/area mill) (new for X4)
12989 Z clearance of helix/profile ramp (core/area mill) (new
for X4)
254 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
12990 Maximum angle of helix/profile ramp (core/area mill)
(new for X4)
12991 Radius of S-shaped stepover (new for X4)
12992 Preferred profile span (new for X4)
12993 Skip pockets with span less than this value (new for
X4)
12994 Keep tool down within this gap size (actual distance)
(new for X4)
12995 Keep tool down within this gap size (percentage of tool
diameter) (new for X4)
12996 2D-blend stepover amount (new for X4)
12997 Initial loop size: % of tool diameter (5100), 0 = not set
(new for X4)
12998 Minimum loop size, % of tool diameter (1100), 0 = not
set (new for X4)
12999 Retry loop size: % of previous loop size (595), 0 = not
set (new for X4)
40001 Expected material engagement adjustment: % of
stepover, (1100), 0 = not set (new for X4)
40002 Adjust feedrate by this % if trochoidal loop doesnt fit,
(595), 0 = not set (new for X4)
40003 Maximum cutting distance (retract and load a same
shape tool) (new for X4)
40004 Maximum cutting time (retract and load a same shape
tool) (new for X4)
40005 Dynamic pocket radius (new for X4)
40006 Dynamic pocket radius percentage (new for X4)
40007 Dynamic pocket approach distance (new for X4)
40008 Dynamic pocket open: 1 = open pocketing, 0 = closed
pocketing (new for X4)
40009 Dynamic pocket retract style (new for X4)
40010 Sister tool type: 0 = none, 1 = distance, 2 = time (new
for X4)
40219 Dynamic pocket Ramp feed rate (new for X5)
40220 Dynamic pocket Dwell before cut spindle speed (new
for X5)
40221 Dynamic pocket entry ramp angle, in radians (new for
X5)
40222 Dynamic pocket entry pitch (new for X5)
40223 Gap size above top of stock ( Z clearance) (new for X5)
40224 Additional slot width for medial entry ramp (new for
X5)
40225 Dynamic pocket Ramp spindle speed (new for X5)
40226 Dynamic pocket Entry method (new for X5)
40227 Use Entry feeds/speeds ? (new for X5)
40228 Select Plunge angle or Entry pitch : 0 - use entry pitch,
1 - use plunge angle (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 255
Quick Start
40229 Select Center helix on point option : 1 - option is
selected (new for X5)
40230 Optimize cut order within pocket : 1 = optimize cut
order, 0 = use nearest cut (new for X5)
40231 Dynamic pocket Helix radius (new for X5)
40232 Dynamic pocket Trochoidal loop radius (new for X5)
40233 Dynamic pocket Micro lift distance (new for X5)
40234 Rest material : reference cutter Diameter (new for X5)
40235 Rest material : reference cutter Corner radius (new
for X5)
40236 Rest material : Stock resolution (3D bitmap spacing)
(new for X5)
40237 Remaining stock Adjustment distance (new for X5)
40238 Previous operation selected for rest material (new for
X5)
40239 Rest material defined as : 0-All previous operations, 1-
One other operation, 2-Roughing Tool, 3-CAD file, 4-
future use (new for X5)
40240 Adjustment to remaining stock : 0-none, 1-decrease
(to ignore cusps), 2-increase machine cusps, 3-future
use (new for X5)
40241 When All previous operations are selected : 0 = All
groups, 1 = Machine group only, 2 = Toolpath group
only (new for X5)
40242 Is high efficiency machining available ?? (new for X5)
40243 1 = High Efficiency Machining option is selected (new
for X5)
40244 1 = High Radial Chip Thinning Only option is selected
(new for X5)
40245 HEM factor value (new for X5)
40246 Chip thickness value (new for X5)
40247 SFM value (new for X5)
40248 HEM feed rate (new for X5)
40249 HEM spindle speed (new for X5)
40250 HEM Stepover % (new for X5)
40251 Island taper angle value (new for X5)
40252 1 = Island facing option is selected (new for X5)
40253 Dynamic contour : Stock thickness (new for X5)
40254 Dynamic contour : Toolpath radius that shaped the
stock (new for X5)
40255 Dynamic contour : Stock thickness (new for X5)
40256 Island facing : Overlap % (new for X5)
40257 Island facing : Overlap amount (new for X5)
40258 Island facing : approach distance (new for X5)
40259 Island facing : Stock above islands amount (new for
X5)
256 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
High-speed surface toolpaths
PRM_SRF_HMM (X)
40260 Number of contour finish passes (new for X5)
40261 Contour finish pass spacing (new for X5)
40299 0 = do not sort machining boundaries; 1 = do sort
machining boundaries (new for X5)
40300 0 = do not sort avoidance boundaries; 1 = do sort
avoidance boundaries (new for X5)
40301 1 = use islands to expand machining regions (new for
X5)
40302 Dynamic pocket bit flags (new for X5)
40303 0 = single region; 1 = multiple regions (new for X5)
12578 Z step size (maximum)
12579 XY or XYZ step size (maximum)
12580 Z depth limit 1
12581 Z depth limit 2
12582 Angle limit 1
12583 Angle limit 2
12584 Minimum stepdown (for adaptive or other non-constant Z
step)
12585 Stepdown precision
12586 Minimum difference between Z steps (for adaptive or
contour flats type processing)
12587 Tolerance for smoothing operation
12588 Maximum radius in smoothing operation
12589 Curl over radius...for shortest retract route
12590 Curl down radius...for shortest retract route
12591 Reference cutter diameter
12592 Reference cutter corner radius
12593 Cut tolerance (add filter tolerance to get total tolerance)
12594 Stock remaining on check geometry
12595 Tool containment boundary offset amount (for offset inside
or outside [not for center])
12596 Minimum stepover
12597 Maximum stepover
12598 Offset tolerance (for smoothing)
12599 Overthickness - increase reference tool by this amount
(pencil, usually)
12600 Bitangency angle - definition of a crease
12601 Vertical stepover distance
12602 Horizontal stepover distance
12603 Machining cut angle
PARAMETER REFERENCE / Operation & toolpath parameters 257
Quick Start
12604 Pass extension - extend cut by this amount
12605 Limit raster stepover by this amount (see raster limit style)
12606 Gap size - keep tool down within this gap size (actual
distance)
12607 Gap size - keep tool down within this gap size (percentage
of tool diameter)
12608 Maximum cutting distance (retract and load a same shape
tool)
12609 Maximum cutting time (retract and load a same shape tool)
12610 Helix radius
12611 Helix additional z clearance
12612 Helix max angle
12613 Minimum profile ramp diameter
12614 Entry radius in (vertical)
12615 Entry radius out (vertical)
12616 Transition ramp angle
12617 Stepover expressed as a percentage of tool diameter
12618 Entry radius in (horizontal)
12619 Entry radius out (horizontal)
12620 Maximum entry ramp angle (horizontal)
12621 Link extension (start)
12622 Link shallow angle
12623 Prefillet corner radius
12624 Second tool containment boundary offset amount
12625 Maximum trimming distance
12626 Limiting number of offsets (scallop)
12627 Limiting number of offset (pencil)
12628 Style:
0-Core roughing (pocket, out to in)
1-Area clearance (pocket, in to out)
2-Waterline (Z contour)
3-Constant stepover (scallop)
4-Horizontal (facing)
5-Raster (parallel)
6-Pencil (single and multipass)
7-Flowline
8-Blend
9-Spiral
10-Project
11-Rough rest passes
12629 Zigzag (True/False)
12630 Climb (True/False)
12631 Use approximate start point (True/False)
12632 Optimize cut order (True/False)
12633 Reverse order (bottom up for example) (True/False)
12634 Adaptive stepdown (True/False)
12635 Profile (constant z) smoothing (True/False)
12636 Retract style - 0=Shortest, 1=minimal, 2=full retract
258 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
12637 Rest area calculation (True/False)
12638 Top of stock is to be used (True/False)
12639 Tool containment boundary offset direction - 0=inside,
1=center (no offset), 2=outside
12640 Add offset distance to tool radius (True/False)
12641 Use depths (True/False) - True = use z depth limit 1 and 2
12642 Stepover style - 0=3d, 1=2d, (2=future)
12643 Offset limit style - 0-no offsets, 1-limited offsets, 2-
unlimited offsets
12644 Raster limit style - 0-disabled, 1-limited, 2-fill in stepover
12645 Gap size type - 0=gap size dist, 1=gap size pct of tool
diameter, (2=future)
12646 Sister tool type - 0=none, 1=distance, 2=time
12647 Contact area only (True/False) - False=contact and
outermost, True=contact area only
12648 Helix entry style - 0=profile ramp, 1=helix, 2=future
12649 Link trimming style - 0=none,1=minimal, 2=fully, 3=future
12650 Gap style - 0=tangential ramp, 1=ramp, 2=direct
12651 Pencil offset limit style - 0=no offsets, 1=limited offsets,
2=unlimited offsets
12652 Down up style: 0=any direction, 1=down mill only, 2=up
mill only, 3=neither up nor down, 4=future
12653 Prefer reverse (True/False)
12654 Prefillet on (True/False)
12655 Gouge check holder (True/False)
12656 Raster gap style -0=smooth, 1=straight, 2=future
12662 The feedrate to be used when approach/retract moves on
the Linking parameters page are output as feedrate moves
instead of rapid moves (see parameter 12676).
12663 Clearance distance used for gouge checking the tool holder.
12664 Axial offset distance
12665 The stock to leave amount for wall surfaces.
12666 The stock to leave amount for floor surfaces.
12667 The rest roughing stock resolution.
12668 The amount of Stock adjustment to be applied to the stock
model.
12669 Pointer to holder (removed for X3)
12670 Pointer to holder entity (removed for X3)
12671 Number of axial offsets
12672 The ID number of the previous operation used for rest
roughing.
12673 Size of the array used to store holder segments (moved for
X4)
12674 Number of segments in the tool holder definition (moved for
X4)
12675 Counter to indicate changes in holder (moved for X4)
PARAMETER REFERENCE / Operation & toolpath parameters 259
Quick Start
12676 When True, outputs feed rate moves instead of rapids for
approach/retract moves on the Linking parameters page
(parameter 12662 stores the feedrate).
12677 When True, outputs arc moves for entry helixes.
12678 When True, use the Expand inside to out cutting method
option.
12679 Sets the stock computation method for rest roughing
toolpaths: 0=All previous operations, 1=One previous
operation, 2=Roughing tool, 3=CAD file.
12680 Sets the stock adjustment method (removed for X5)
12689 Minimum stepover, expressed as a percentage of tool
diameter (X2)
12690 Minimum span or extent required of a pocket for it to be
machined (pockets smaller than this amount are not
machined) (X2)
12691 X coordinate for the center point for radial/spiral toolpaths
(X2)
12692 Y coordinate for the center point for radial/spiral toolpaths
(X2)
12693 Inner radius for radial/spiral toolpaths (X2)
12694 Outer radius for radial/spiral toolpaths (X2)
12695 Starting angle for a radial toolpath (X2)
12696 Ending angle for a radial toolpath (X2)
12697 Z-ramp distance for a horizontal entry arc (X2)
12698 True = use feed rate for helix; False = use plunge rate (X2)
12699 True = spiral clockwise; False = spiral counterclockwise (X2)
12700 True = use trochoidal loops to minimize tool burial; False =
do not use trochoidal loops (X2)
12721 Trochoidal motion: initial loop radius (X2)
12722 Trochoidal motion: minimum loop radius (X2)
12723 Trochoidal motion: retry loop radius (X2)
12724 Trochoidal motion: stepover adjustment (X2)
12725 Trochoidal motion: feedrate adjustment (X2)
12726 Holder library (moved for X4)
12727 Holder name (moved for X4)
12728 Name of default formula file (X2)
12729 Size of holder library (moved for X4)
12730 Size of holder name (moved for X4)
12731 Size of default formula file (X2)
12732 Scallop toolpaths Steep/Shallow option: Use boundaries
as drive curves, then collapse (Y/N) (new for X3)
12733 Keep trochoidal loops inside machining region (Y/N) (new
for X3)
12734 Ignore outer radius when calculating spiral/radial toolpaths
(Y/N) (new for X3)
260 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_TP_HOLDER
40241 When All previous operations are selected : 0 = All groups,
1 = Machine group only, 2 = Toolpath group only (new for
X5)
40262 OptiRough : Trochoidal loop radius (new for X5)
40263 OptiRough : Additional slot width for medial entry ramp
(new for X5)
40264 Helix ramp depth (new for X5)
40265 OptiRough : Ramp feed rate (new for X5)
40266 OptiRough : Dwell before cut spindle speed (new for X5)
40267 Enable Stepup option (new for X5)
40268 Toolpath radius amount (new for X5)
40269 OptiRough : Micro lift distance (new for X5)
40270 OptiRough : Back feedrate (new for X5)
40271 Hybrid WS : limiting angle (slope transition) (new for X5)
40272 OptiRough : Ramp spindle speed (new for X5)
40273 Rough cut Cutting method : 0 = Climb, 1 = Conventional
(new for X5)
40274 1 = Add holder clearance to bottom of holder (new for X5)
40275 1 = Use core mill as raw passes, 0 = Use area mill as raw
passes (new for X5)
40276 Select Plunge angle or Entry pitch : 0 - use Entry pitch, 1 -
use Plunge angle (new for X5)
40277 Use Entry feeds/speeds ? (new for X5)
40278 Retract style, as follows: (new for X5)
40279 1 = Stepup option is selected (new for X5)
40280 Stepup rest boundary calculation method: 0 = Use pocket
bitmap subtraction algorithm, 1 = Use pocket boundary
subtraction algorithm (new for X5)
40298 Sliver thickness (stock thinner than this value will vanish);
applied when Mill vertical walls option is selected (new
for X5)
12673 Size of the array used to store the holder segment data.
Typically, 1267312675 are not meaningful to users or post
writers.
(X2moved to this group, X4)
PARAMETER REFERENCE / Operation & toolpath parameters 261
Quick Start
PRM_STOCK_MODEL
Advanced multiaxis toolpaths
PRM_ADV_5AX
12674 Number of segments in the tool holder definition (X2
moved to this group, X4)
12675 Counter to indicate changes in holder (X2moved to
this group, X4)
12726 Holder library (X2moved to this group, X4)
12727 Holder name (X2moved to this group, X4)
12729 Size of holder library (X2moved to this group, X4)
12730 Size of holder name (X2moved to this group, X4)
15758 reserved for stock model operation (new for X5)
15759 reserved for stock model operation (new for X5)
15760 reserved for stock model operation (new for X5)
15761 reserved for stock model operation (new for X5)
15762 reserved for stock model operation (new for X5)
15763 reserved for stock model operation (new for X5)
15764 reserved for stock model operation (new for X5)
15765 reserved for stock model operation (new for X5)
15766 reserved for stock model operation (new for X5)
15767 reserved for stock model operation (new for X5)
15768 reserved for stock model operation (new for X5)
15769 reserved for stock model operation (new for X5)
15770 reserved for stock model operation (new for X5)
15771 reserved for stock model operation (new for X5)
15583 Text to display in TP Mgr (new for X3)
15584 Name of adv multiaxis chook (new for X3)
15585 Name of parameter function (new for X3)
15586 Name of tool function (new for X3)
15587 Name of geometry function (new for X3)
15588 (not used) (new for X3)
15589 Name of regen function (new for X3)
15590 (not used) (new for X3)
15591 (not used) (new for X3)
15592 (not used) (new for X3)
262 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Feature-based machining: drill toolpaths
FBM_DRILLPARAMETERS
FBM_DRILLPARAMETERS_SETUP
FBM_DRILLPARAMETERS_HOLEDETECTION
SDETECT_DRILL_PARAMS
12737 Solid operation ID (new for
X3)
FBM_DRILLPARAMETERS_SETUP (new for X3)
FBM_DRILLPARAMETERS_HOLEDETECTION (new for X3)
FBM_DRILLPARAMETERS_DEEPHOLE (new for X3)
FBM_DRILLPARAMETERS_SPOTDRILLING (new for X3)
FBM_DRILLPARAMETERS_PREDRILLING (new for X3)
FBM_PARAMETERS_TOOLS (new for X3)
FBM_DRILLPARAMETERS_DEPTHS (new for X3)
12856 Automatic initial hole detection turned on (y/n) (new
for X3)
12857 Enable Tool page? (new for X3)
12858 Enable Depths page? (new for X3)
12859 Method for grouping operationsNone, Plane, or Tool.
(new for X3)
12860 Method for sorting points (new for X3)
12861 Use subprograms? (y/n) (new for X3)
12862 Incremental or absolute subprograms (new for X3)
12863 Read hole data from solids created with the
SolidWorks Hole Wizard (new for X3)
12864 Path to use with Hole Wizard (new for X3)
12865 Co-axial hole criteria. Determines whether Mastercam
treats multiple holes that share a common axis as a
single hole, or as multiple holes from different planes.
(new for X3)
SDETECT_DRILL_PA
RAMS
(new for X3)
15307 Minimum radius of holes to detect (note: users enter
this number as a diameter value) (new for X3)
15308 Maximum radius of holes to detect (note: users enter
this number as a diameter value) (new for X3)
15309 Include blind holes (y/n) (new for X3)
15310 Arc offset (new for X3)
15311 Color (new for X3)
15312 Limit search for holes to a specific plane (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 263
Quick Start
FBM_DRILLPARAMETERS_DEEPHOLE
FBM_DRILLPARAMETERS_SPOTDRILLING
FBM_DRILLPARAMETERS_PREDRILLING
15313 Plane to limit search to (new for X3)
15314 Include split holes (new for X3)
15315 Detect holes by minimum or maximum sweep angle
(new for X3)
15316 Sweep angle threshold (new for X3)
15317 Sampling increment (step) along length of hole to
determine sweep angle. (new for X3)
12866 Deep drilling option turned on (y/n) (new for X3)
12867 Deep drilling strategy:
Split holes between faces
Drill to maximum and finish with a long tool
Drill to maximum and warn user
Cut entire hole with a long drill.
(new for X3)
12868 The maximum hole depth :: diameter ratio for normal
drilling. Mastercam applies deep drilling parameters
only to holes that exceed this ratio. (new for X3)
12869 Primary face depth percentage (new for X3)
12870 Canned cycle to use for deep drilling (new for X3)
12871 Spot drilling option turned on (y/n) (new for X3)
12872 Max percentage of finished hole (new for X3)
12873 Max depth (new for X3)
12874 Allow center drill (new for X3)
12875 Combine spot drill operations that meet or exceed
maximum depth (new for X3)
12876 Use selected tool for all spot drill operations (new for
X3)
12877 Pre-drilling option turned on (y/n) (new for X3)
12878 Minimum drill diameter (new for X3)
12879 Increment between drill sizes for each set of pre-drill
operations (new for X3)
12880 Use Stock to leave option (y/n) (new for X3)
12881 Amount of stock to leave (new for X3)
12882 Use Tip compensation option (y/n) (new for X3)
12883 Use Additional break through option (y/n) (new for
X3)
12884 Break through method: Distance, or % of tool
diameter (new for X3)
264 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
FBM_PARAMETERS_TOOLS
FBM_DRILLPARAMETERS_DEPTHS
Feature-based machining: pocket toolpaths
PRM_FBM_POCKET
12885 Break through amount (new for X3)
12886 Tool library path (new for X3)
12887 Diameter matching tolerance for selecting drills (new
for X3)
12888 Use tools in .MCX file (y/n) (new for X3)
12889 Use tools from tool library (y/n) (new for X3)
12890 Create tools as needed (y/n) (new for X3)
12891 Create only standard sizes (y/n) (new for X3)
12892 Consider flute length when creating new tools (y/n)
(new for X3)
12893 Action to take if hole exceeds flute length (new for X3)
12894 Increment to use when creating new tools of different
lengths (new for X3)
12895 Tip geometry / hole bottom geometry (new for X3)
12896 Tool tip match tolerance (new for X3)
12897 Allow flat endmills? (y/n) (new for X3)
12898 Method for determining clearance (new for X3)
12899 Clearance value (new for X3)
12900 Absolute or incremental clearance (new for X3)
12901 Use clearance only at the start and end of an operation
(new for X3)
12902 Retract distance (new for X3)
12903 Apply tip compensation? (y/n) (new for X3)
12904 Apply additional break through amount? (y/n) (new
for X3)
12905 Method for computing break through (new for X3)
12906 Amount of break through (new for X3)
12907 Tap/ream depth adjustment method (new for X3)
12908 Amount of tap/ream depth adjustment (new for X3)
12737 Solid operation ID (new for
X3)
FBM_POCKETPARAMETERS_SETUP (new for X3)
FBM_POCKETPARAMETERS_POCKETDETECTION (new for X3)
FBM_POCKETPARAMETERS_FACETL (new for X3)
FBM_POCKETPARAMETERS_ROUGHTL (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 265
Quick Start
FBM_POCKETPARAMETERS_SETUP
FBM_POCKETPARAMETERS_POCKETDETECTION
FBM_POCKETPARAMETERS_FACE
FBM_POCKETPARAMETERS_ROUGHTL (new for X3)
FBM_POCKETPARAMETERS_FINISHTL (new for X3)
FBM_POCKETPARAMETERS_FACE (new for X3)
FBM_POCKETPARAMETERS_ROUGH (new for X3)
FBM_POCKETPARAMETERS_REST (new for X3)
FBM_POCKETPARAMETERS_FINISH (new for X3)
FBM_POCKETPARAMETERS_DEPTHS (new for X3)
12738 Automatic initial feature detection turned on (y/n)
(new for X3)
12744 Method for grouping operations1=Op type, 2=Tool,
3=Plane, or 4=Hole. (new for X3)
12746 Comment (new for X3)
12747 Allow through pockets (y/n) (new for X3)
12748 Method for cutting through pockets: 0=leave stock at
bottom, 1=break through (new for X3)
12749 Amount of stock to leave at bottom. (new for X3)
12750 Break through distance (new for X3)
12751 Method for selecting level for edge curves (new for
X3)
12752 Level on which to place edge curves (new for X3)
12753 Minimum number of unused level on which to place
edge curves (new for X3)
12754 Recognize holes greater than this diameter as features
(new for X3)
FBM_POCKETPARAM
ETERS_DCUTS
(new for X3)
12823 Enable facing operations (y/n) (new for X3)
12824 Select climb or conventional (new for X3)
12825 Cutting method: Zigzag, One way, Controlled
engagement (new for X3)
12826 Stock to leave in Z (new for X3)
12827 Max stepover (new for X3)
12828 Across overlap distance (new for X3)
12829 Along overlap distance (new for X3)
12830 Approach distance (new for X3)
12831 Exit distance (new for X3)
266 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
FBM_POCKETPARAMETERS_ROUGH
FBM_POCKETPARAMETERS_REST
FBM_POCKETPARAMETERS_DCUTS
FBM_POCKETPARAMETERS_DCUTS001
FBM_POCKETPARAMETERS_DCUTS002
FBM_POCKETPARAMETERS_FINISH
FBM_POCKETPARAM
ETERS_DCUTS001
(new for X3)
12832 Select climb or conventional (new for X3)
12833 Cut method (new for X3)
12834 Stock to leave on floors (new for X3)
12835 Stock to leave on walls (new for X3)
12836 Stepover (new for X3)
12837 Entry method: profile ramp or helix (new for X3)
12838 Profile boundary for ramp (new for X3)
12839 Face approach distance (new for X3)
12840 Face overlap distance (new for X3)
12841 Face exit diatance (new for X3)
12842 Use long tool values when length::diameter ratio is
greater than this value (new for X3)
12843 Outside (new for X3)
FBM_POCKETPARAM
ETERS_DCUTS002
(new for X3)
12844 Select climb or conventional (new for X3)
12845 Stock to leave on floors (new for X3)
12846 Stock to leave on walls (new for X3)
12847 Stepover (new for X3)
12848 Use long tool values when length::diameter ratio is
greater than this value (new for X3)
12812 Depth cuts mode for facing operations (new for X3)
12813 Depth cuts mode for roughing operations (new for
X3)
12814 Depth cuts mode for restmill operations (new for X3)
FBM_POCKETPARAM
ETERS_LEADIO001
(new for X3)
12850 Select climb or conventional (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 267
Quick Start
FBM_POCKETPARAMETERS_LEADIO
FBM_POCKETPARAMETERS_LEADIO001
FBM_POCKETPARAMETERS_DEPTHS
Feature-based machining: tool parameters
FBM_POCKETPARAMETERS_FACETL
FBM_POCKETPARAMETERS_ROUGHTL
12851 Stock to leave on floors (new for X3)
12852 Stock to leave on walls (new for X3)
12853 Stepover (new for X3)
12854 Use long tool values when length::diameter ratio is
greater than this value (new for X3)
12855 Cutter comp (new for X3)
12910 Outside (new for X3)
12815 Entry/exit mode: perpendicular or tangent (new for
X3)
12816 Line length (new for X3)
12817 Arc radius (new for X3)
12818 Sweep angle (new for X3)
12819 Entry/exit mode: perpendicular or tangent (new for
X3)
12820 Line length (new for X3)
12821 Arc radius (new for X3)
12822 Sweep angle (new for X3)
12807 Linking parameters: clearance (new for X3)
12808 Retract (new for X3)
12809 Feed plane (new for X3)
12810 Incremental or absolute clearance (new for X3)
FBM_POCKETPARAMETERS_TL (new for X3)
12800 Allowed end mill types: flat endmills, bull
nose, face mills (new for X3)
FBM_POCKETPARAMETERS_TL001 (new for X3)
268 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
FBM_POCKETPARAMETERS_FINISHTL
FBM_POCKETPARAMETERS_TL
FBM_POCKETPARAMETERS_TL001
FBM_POCKETPARAMETERS_TL002 (new for X3)
12805 Method for selecting or creating tools to
machine internal fillet arcs in the XY
axes: Match tool with arc, or Use next
smaller tool (new for X3)
12806 Desired tool radius as % of arc size (new
for X3)
(This set of parameters used for face tools)
12755 Tool #1 from preferred tool list (new for X3)
12756 Tool #2 from preferred tool list (new for X3)
12757 Tool #3 from preferred tool list (new for X3)
12758 Tool #4 from preferred tool list (new for X3)
12759 Tool # from preferred tool list5 (new for X3)
12760 Tool #6 from preferred tool list (new for X3)
12761 Tool #7 from preferred tool list (new for X3)
12762 Tool #8 from preferred tool list (new for X3)
12763 Tool #9 from preferred tool list (new for X3)
12764 Tool #10 from preferred tool list (new for X3)
12765 Number of tools (new for X3)
12766 Minimum diameter for automatic tool selection (new
for X3)
12767 Minimum diameter for automatic tool selection (new
for X3)
12768 Tool size increment for automatic tool selection
(diameter) (new for X3)
12769 Tool size increment for automatic tool selection (% of
max diameter) (new for X3)
(This set of parameters used for rough/restmill tools)
12770 Tool #1 from preferred tool list (new for X3)
12771 Tool #2 from preferred tool list (new for X3)
12772 Tool #3 from preferred tool list (new for X3)
12773 Tool #4 from preferred tool list (new for X3)
12774 Tool #5 from preferred tool list (new for X3)
12775 Tool #6 from preferred tool list (new for X3)
12776 Tool #7 from preferred tool list (new for X3)
12777 Tool #8 from preferred tool list (new for X3)
12778 Tool #9 from preferred tool list (new for X3)
12779 Tool #10 from preferred tool list (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 269
Quick Start
FBM_POCKETPARAMETERS_TL002
Chooks
PRM_C-HOOK
12780 Number of tools (new for X3)
12781 Minimum diameter for automatic tool selection (new
for X3)
12782 Minimum diameter for automatic tool selection (new
for X3)
12783 Tool size increment for automatic tool selection
(diameter) (new for X3)
12784 Tool size increment for automatic tool selection (% of
max diameter) (new for X3)
(This set of parameters used for finish tools)
12785 Tool #1 from preferred tool list (new for X3)
12786 Tool #2 from preferred tool list (new for X3)
12787 Tool #3 from preferred tool list (new for X3)
12788 Tool #4 from preferred tool list (new for X3)
12789 Tool #5 from preferred tool list (new for X3)
12790 Tool #6 from preferred tool list (new for X3)
12791 Tool #7 from preferred tool list (new for X3)
12792 Tool #8 from preferred tool list (new for X3)
12793 Tool #9 from preferred tool list (new for X3)
12794 Tool #10 from preferred tool list (new for X3)
12795 Number of tools (new for X3)
12796 Minimum diameter for automatic tool selection (new
for X3)
12797 Minimum diameter for automatic tool selection (new
for X3)
12798 Tool size increment for automatic tool selection
(diameter) (new for X3)
12799 Tool size increment for automatic tool selection (% of
max diameter) (new for X3)
15266 Operation description to display in the Operation
Manager
15267 Source C-Hook name (no prefix path). If "" (null string),
call as .dll.
15268 C-Hooks function or dll to call when operations
parameters are selected in the Operation Manager
15269 C-Hooks function or dll to call when operations tool is
selected in the Operation Manager
270 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Multiaxis toolpaths
PRM_CURVE_5AX
15270 C-Hooks function or dll to call when operations
geometry is selected in the Operation Manager
15271 C-Hooks function or dll to call when operations NCI is
selected in the Operation Manager with the left mouse
button
15272 C-Hooks function or dll to call to regenerate operations
NCI section (removed for X3)
15336 C-Hooks function or dll to call when operations NCI is
selected in the Operation Manager with the right
mouse button
15337 Filter operation (True/False)
15338 Toolpath edited (True/False)
3000031999 Range of parameter numbers reserved for use by C-
Hook developers. (new for X3)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
MULTAX_ENTRY_EXIT
12019 Output Format : 0 = 4-axis, 1 = 5-axis
12141 Curve Type
12142 Tool Axis Control : 0 = Lines, 1 = Pattern Surface, 2 =
Plane, 3 = From Point, 5 = Chain, 6 = Boundary
12023 Project Type
12022 Tip Control
12143 Edge Type
12144 Curve following method: true = step increment, false
= chordal deviation
12145 Step increment distance
12146 Maximum step distance for chordal deviation
12147 Chordal deviation
12148 Maximum projection distance
12149 Radial offset
12150 Offset sign
12139 Side angle: positive is to the right, negative is to the
left
12151 Lead angle
12152 Normal depth
12153 Toolplane axis: true = 5- axis, false = 3-axis
12154 Ma View number
PARAMETER REFERENCE / Operation & toolpath parameters 271
Quick Start
PRM_SRF_FLOW5AX
12155 Do all edges (True/False)
12156 Display clipped corners on the screen (True/False)
12157 Minimize corners (True/False)
12158 Gouge check: 0 = infinite, 1 = user defined look
ahead distance, 2 = none
12159 User defined look ahead distance
12160 Tip compensation: 0 = tip on curve, 1 = compensate
to surface
12024 Tool display and NCI vector length
12025 Fourth axis: 0 = X, 1 = Y
12250 Bit 0 means lines are relative to toolpath direction
Bit 1 was used for relative to surface
Bit 2 is used for finish all depths
Bit 3 is or chain tool axis control
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
40281 5-axis comp in control value (new for X5)
PRM_5AX_LIMIT
PT_GENERATOR
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
10208 Cut method
12115 Use along distance (True/False)
12116 Along cut: distance
12117 Use across distance (True/False)
12118 Across cut: distance
12119 Across cut: scallop height
12120 Check flowline motion for gouge
(True/False)
12138 Positive: top of tool is forward (tip
back)
12104 Plunge distance
12105 Retract distance
12139 Side angle:
positive is to the right, negative is to
the left
12121 Start point (which corner)
12122 Cut direction (U or V)
12264 Shared edge tolerance: 0.0 = off
272 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SRF_4AX
12421 True = row only (v8 code), false =
grid (v9)
12427 Tool display and NCI output length
MULTAX_ENTRY_EXIT
PRM_5AX_LIMIT
12019 Output Format : 0 = 4-axis, 1 = 5-axis
12373 Cut Pattern : 0 = Surfaces, 1 =
Cylinder, 2 = Sphere, 3 = Box
12142 Tool Axis Control : 0 = Lines, 1 =
Pattern Surface, 2 = Plane, 3 = From
Point, 5 = Chain, 6 = Boundary
12374 Cut Surfaces : 0 = Use cut pattern, 1
= Comp to surfaces
12025 4th axis: 0 = X, 1 = Y, 2 = Z
12250 specflags : so far only used for chain
tool axis control usage (bits 0 & 1)
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
PT_GENERATOR
12437 Stock on drive surface
12701 Number of flow blend passes (X2)
12702 True = enable flow blend passes;
False = disable flow blend passes
(X2)
12703 Rib resolution as percent of tool
diameter (X2)
12735 Allow undercuts ? (new for X4)
40281 5-axis comp in control value (new
for X5)
PRM_MINTILT (new for X4)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_DEPTHS
10223 Use center point (True/False)
10208 Direction of open boundaries:(0 = zigzag, 1 =
one way)
10415 Direction of closed boundaries (True = climb)
12138 Positive = top of tool is forward (tip back)
12140 Axis damp length
12104 Plunge distance
12105 Retract distance
PARAMETER REFERENCE / Operation & toolpath parameters 273
Quick Start
PRM_SWARF_5AX
12139 Side angle:
positive is to the right, negative is to the left
12025 4th axis: 0 = X, 1 = Y, 2 = Z
12284 Cut type: true = axial cut, false = rotary cut
12285 Axial cut angular step (max) (radius)
12286 Axial cut angular start (radius)
12287 Axial cut angular sweep (radius)
12427 Tool display and NCI length
MULTAX_ENTRY_EXIT
PRM_5AX_LIMIT
12019 Output Format : 0 = 4-axis, 1 = 5-axis
12373 Cut Pattern : 0 = Surfaces, 1 = Cylinder, 2 =
Sphere, 3 = Box
12142 Tool Axis Control : 0 = Lines, 1 = Pattern
Surface, 2 = Plane, 3 = From Point, 5 = Chain, 6
= Boundary
12374 Cut Surfaces : 0 = Use cut pattern, 1 = Comp to
surfaces
12250 specflags : so far only used for chain tool axis
control usage (bits 0 and 1)
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
40281 5-axis comp in control value (new for X5)
PT_GENERATOR
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
MULTAX_ENTRY_EXIT
12144 Curve following method: true = step increment,
false = chordal deviation
12145 Step increment distance
12146 Maximum step distance for chordal deviation
12147 Chordal deviation
12153 Toolplane axis: true = 5-axis, false = 4-axis
12161 Floor type
12162 Wall type
12163 Distance above low point
12164 (not used)
12165 Use floor (True/False)
12166 No floor (True/False)
12167 Use fans cuts (True/False)
274 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_MSURF_5AX
12168 Use swarf fans cuts (True/False)
12169 Stock on walls
12170 Additional clearance on floor
12171 Maximum step along cut
12172 Number of wall passes
12173 Distance off wall per pass
12174 Number of floorpasses
12175 Distance off floor per pass
12176 Use floor for normal (True/False)
12177 Floor normal X vector
12178 Floor normal Y vector
12179 Floor normal Z vector
12180 Floor X point
12181 Floor Y point
12182 Floor Z point
12183 Fan feedrate
12184 Use floor gouge protect: true = detect, false =
protect
12185 Show toolpath before gouge check (True/False)
12158 Gouge check: 0 = infinite, 1 = user-defined look
ahead distance, 2 = none
12159 User defined look ahead distance
12024 Tool display and NCI vector length
12265 Do finish passes at all depths (True/False)
12187 Minimize corners (True/False)
12025 Fourth axis: 0 = X, 1 = Y
12262 Sync option setting: 0 = none, 1 = by Entity, ...
6 = Manual/Density
PRM_5AX_LIMIT
PT_GENERATOR
12429 Use zigzag multiple passes (True/False)
15546 Closed Walls : True = enter at start of first wall,
False = Enter at middle of first wall
12704 Max angle deviation from 5-axis vector for 4-axis
output (X2)
12705 Max angle difference between vectors for 4-axis
output (X2)
40281 5-axis comp in control value (new for X5)
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
MULTAX_ENTRY_EXIT
PARAMETER REFERENCE / Operation & toolpath parameters 275
Quick Start
12019 Output Format : 0 = 4-axis, 1 = 5-axis
12373 Cut Pattern : 0 = Surfaces, 1 = Cylinder, 2 = Sphere, 3
= Box
12142 Tool Axis Control : 0 = Lines, 1 = Pattern Surface, 2 =
Plane, 3 = From Point, 5 = Chain, 6 = Boundary
12374 Cut Surfaces : 0 = Use cut pattern, 1 = Comp to
surfaces
12022 Tip control
12143 Edge type
PRM_M5_CYL
PRM_M5_SPH
PRM_M5_BOX
12375 Operation type: finish = 0, rough = 1
10208 Cut method: zigzag, one way, spiral
12376 Surface tolerance
12416 Step between passes
12116 Maximum step distance
12377 Iteration count
12378 Depth cut distance
10128 Point generators (removed for X3)
PT_GENERATOR
12150 Offset sign
12153 True = 5 axis, False = 3 axis
12154 View number
12158 Gouge check: 0=infinite, 1=user defined look ahead
distance, 2=none
12159 User defined look ahead distance
12160 Tip compensation, 0=tip on curve, 1=Comp to
surface
12024 Tool display and NCI vector length
12025
4
th
axis: 0 = X, 1 = Y
12250 bit 0 means lines are relative to toolpath dir
bit 1 was used for relative to surf norm (no longer)
bit 2 is used for finish all depths (C5_FIN_ALL_BIT)
bit 3 is for chain tool axis control usage
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
12115 Use along distance (True/False)
12117 Use across distance (True/False)
12119 Across cut: scallop height
12120 Check cuts (True/False)
12138 Lead/lag: + top of tool is forward (tip back)
12104 Plunge distance
12105 Retract distance
276 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_SLICE_5AX (X)
12139 Side angle:
positive is to the right, negative is to the left
12121 Start point (which corner)
12122 Cut direction (U or V)
12264 Shared edge tolerance
PRM_5AX_LIMIT_
12437 Stock on drive surface
12736 Allow undercuts? (new for X3)
40281 5-axis comp in control value (new for X5)
PRM_MINTILT (new for X4)
PRM_SRF_COMMON
PRM_SRF_DIRECTIO
N
PRM_SRF_GAP_SETT
INGS
PRM_SRF_EDGE_SET
TINGS
MULTAX_ENTRY_EXI
T
12019 Output Format : 0 = 4-axis, 1 = 5-axis
12142 Tool Axis Control : 0 = Lines, 1 = Pattern Surface, 2 =
Plane, 3 = From Point, 5 = Chain, 6 = Boundary
12023 Project type
12022 Tip control
12143 Edge type
12144 True = step incr, False = chord dev
12145 Step increment distance
12146 Maximum step distance for chordal dev
12147 Chordal deviation
12148 Maximum projection distance
12149 Offset radius
12150 Offset sign
12139 Side angle
positive is to the right, negative is to the left
12151 Lead angle
12152 Norm depth
12153 True - five axis, False - three axis
12154 View_number
12155 Do all edges (True/False)
12156 Display clipped corners on the screen (True/False)
12157 Minimize corners
12158 Gouge check: 0=infinite, 1=user defined look ahead
distance, 2=none
12159 User defined look ahead distance
PARAMETER REFERENCE / Operation & toolpath parameters 277
Quick Start
PRM_PORT_5AX (X)
12160 Tip compensation, 0=tip on curve, 1=Comp to surface
12570 Tool display and NCI vector length
12025
4
th
Axis: 0 = X, 1 = Y
12250 bit 0 means lines are relative to toolpath dir
bit 1 was used for relative to surf norm (no longer)
bit 2 is used for finish all depths (C5_FIN_ALL_BIT)
bit 3 is for chain tool axis control usage
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
40281 5-axis comp in control value (new for X5)
PRM_5AX_LIMIT
PT_GENERATOR
PRM_SRF_COMMON
PRM_SRF_DIRECTION
PRM_SRF_GAP_SETTINGS
PRM_SRF_EDGE_SETTINGS
PRM_SRF_LIMITS
12250 Cut method
12115 Use along distance (True/False)
12116 Along cut: distance
12117 Use across distance (True/False)
12118 Across cut: distance
12119 Across cut: scallop height
12120 Check cuts (True/False)
12138 Lead/lag: + top of tool is forward (tip back)
12104 Plunge distance
12105 Retract distance
12139 Side angle: + is to the right, - is to the left
12121 Start point (which corner)
12122 Cut direction (U or V)
12264 Shared edge tol (0.0=off )
12421 T-row only (v8 code), F-grid (v9)
12427 Tool display and NCI output length
10127 Entry/exit settings (removed for X3)
MULTAX_ENTRY_EXIT
PRM_5AX_LIMIT
12019 Output format
12373 Pattern type
12142 Tool axis
12374 Cut type
12025
4
th
axis: 0 = X, 1 = Y, 2 = Z
278 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_CIRCLE_5AX
Multiaxis toolpaths: common settings
MULTAX_ENTRY_EXIT
ENT_EXIT
12250 So far only used for chain tool axis control usage
(bits 0 & 1)
12251 Plane vector for tool axis control
12252 Plane vector for tool axis control
12253 Plane vector for tool axis control
PT_GENERATOR
12437 Stock on drive surface
12551 Port compensation method
12552 Search range for port compensation
40281 5-axis comp in control value (new for X5)
PRM_MINTILT (new for X4)
1291012930 Future use (new for X4)
12931 Circle5ax output format:
0 = 3-axis, 1 = 4-axis, 2 = 5-axis (new for X4)
12932 Use points and lines or points (new for X4)
12933 Tool axis option (new for X4)
12934 Tip position control (new for X4)
12935 Project type (to plane or surface) (new for X4)
12936 Future use (new for X4)
12397 Circle 5ax output format 4-axis type axis selected
(0 = X, 1 = Y, 2 = Z) (new for X4)
12938 Plane vector for circle5ax plane option (new for X4)
12939 Plane vector for circle5ax plane option (new for X4)
12940 Plane vector for circle5ax plane option (new for X4)
1294112943 Future use (new for X4)
40281 5-axis comp in control value (new for X5)
PRM_5AX_LIMIT (new for X4)
PRM_CIRCMILL (new for X4)
ENT_EXIT
ENT_EXIT002
12266 Curve Tolerance
12267 Approach/retract (True/False)
12268 Approach/retract height
PARAMETER REFERENCE / Operation & toolpath parameters 279
Quick Start
ENT_EXIT002
PT_GENERATOR
PRM_M5_CYL
12269 Entry/exit (True/False)
12270 Direction: true = right, false = left
12271 Length
12272 Height
12273 Thickness
12274 Pivot Angle
12948 Length of entry/exit as % of tool diameter (new for
X4)
12949 Thickness of entry/exit as % of tool diameter (new for
X4)
12275 Approach/retract (True/False)
12276 Approach/retract height
12277 Entry/exit (True/False)
12278 Direction: true = right, false = left
12279 Length
12280 Height
12281 Thickness
12282 Pivot Angle
12950 Length of entry/exit as % of tool diameter (new for
X4)
12951 Thickness of entry/exit as % of tool diameter (new for
X4)
12379 Angle point generator : True=on
12380 Distance point generator : True=on
12381 Chord point generator: True=on
12382 Maximum chordal deviation
12383 Maximum projection distance
12384 Maximum tool axis angle
12334 Cylinder axis point 1
12335 Cylinder axis point 1
12336 Cylinder axis point 1
12337 Cylinder axis point 2
12338 Cylinder axis point 2
12339 Cylinder axis point 2
12340 Cylinder minimum radius
12341 Cylinder maximum radius
280 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_M5_SPH
PRM_M5_BOX
PRM_5AX_LIMIT
12342 Cylinder start angle
12343 Cylinder sweep angle
12344 Cylinder equator start angle
12345 Side of surface
12346 Sphere center point
12347 Sphere center point
12348 Sphere center point
12349 Sphere axis vector
12350 Sphere axis vector
12351 Sphere axis vector
12352 Sphere minimum radius
12353 Sphere maximum radius
12354 Sphere pole start angle
12355 Sphere pole sweep angle
12356 Sphere equator start angle
12357 Sphere equator sweep angle
12358 Side of surface
12359 Box axis point 1
12360 Box axis point 1
12361 Box axis point 1
12362 Box axis point 2
12363 Box axis point 2
12364 Box axis point 2
12365 Box length along axis (X)
12366 Box minimum width (Y)
12367 Box minimum height (Z)
12368 Box start angle
12369 Box sweep angle
12370 Box corner radius on min box
12371 Box Z plane rotation angle
12372 Side of surface
MULTAX_LIMIT X
MULTAX_LIMIT002 Y
MULTAX_LIMIT003 Z
12333 Option
PARAMETER REFERENCE / Operation & toolpath parameters 281
Quick Start
MULTAX_LIMIT
MULTAX_LIMIT002
MULTAX_LIMIT003
PRM_MINTILT
Lathe parameters
Lathe roughing toolpaths
PRM_LROUGH
12324 X-axis limit active (True/False)
12325 X-axis minimum angle (as cosine)
12326 X-axis maximum limit (as cosine)
12327 Y-axis limit active (True/False)
12328 Y-axis minimum angle (as cosine)
12329 Y-axis maximum limit (as cosine)
12330 Z-axis limit active (True/False)
12331 Z-axis minimum angle (as cosine)
12332 Z-axis maximum limit (as cosine)
12944 Minimum Tilt option is enabled (new for X4)
12945 Minimum tilt type (new for X4)
12946 Maximum tilt angle (new for X4)
12947 Tilt application: minimize tilt motion? (new for X4)
40217 Shank and holder clearancestock to leave
separation from part (new for X5)
40218 Number of tool vectors which cant find a satisfactory
tilt, if any (new for X5)
10214 Direction: 0 = OD, 1 = ID, 2 = face, 3 = back
13343 Step amount (was 10200) (X)
10215 Use equal steps (True/False)
10407 Overlap amount (was 10201) (X)
10216 Use overlap (True/False)
10220 Use advanced parameters (True/False)
13344 Cut angle relative to cut direction (was 10204) (X)
10213 True = zigzag, false = one way
10202 Stock to leave in X
10203 Stock to leave in Z
13345 Stepover amount (was 10205) (X)
10221 Plunge move feed rate
282 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LCUTOFF_FS
PRM_LATHE_EE
PRM_LATHE_PLUNGE001
13164 Entry amount
13171 Feed rate for plunge: true = use regular feed rate ,
false = use plunge feed rate
13188 Use minimum angle (True/False)
13189 Minimum overlap angle
13190 Minimum overlap angle absolute (True/False)
13191 Minimum step amount
13192 Do semi-finish pass (True/False)
13193 Number of cuts for semi-finish pass
13194 Step amount for semi-finish pass
13143 Stock to leave in X for semi-finish pass
13144 Stock to leave in Z for semi-finish pass
PRM_PINCH_PARAMS (new for X3)
PRM_LTOOL_INSPECT (new for X5)
13566 Exit distance (new for X5)
13438 Front clearance angle for plunging (note: this is in
radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for plunging
(new for X5)
13458 0= retract at feed rate, 1= rapid retract (not currently
used) (new for X5)
13460 Retract feed rate (not currently used) (new for X5)
13461 Retract feed rate typeR = per revolution, M = per
minute (not currently used) (new for X5)
13582 Rapid retract? True = rapid, false = feed rate. (new
for X5)
13506 Use variable depth? (not currently used) (new for
X5)
13507 Variable depth angle (not currently used) (new for
X5)
13568 Radius at which to apply the secondary feed rate (new for X5)
13569 Change feed rate at selected radius ?? (new for X5)
13570 Change spindle speed at selected radius ?? (new for X5)
13571 New feed rate to apply (new for X5)
13572 New spindle speed to apply (new for X5)
13573 Is new spindle speed CSS ? (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 283
Quick Start
PRM_LATHE_PLUNGE
PRM_LATHE_PLUNGE001
10122 Start of cut: true = start compensated for tool width, false =
start on corner
10123 Maximum incremental plunge angle (in radians)
10124 Plunge cutting selection setting: 0, 1, 2, or 3
10125 Tool width compensation: true = use tool width in
compensation calculation
(This group of parameters used for lathe rough
operations)
10522 Start of cut: true = start compensated for tool width,
false = start on corner (was 10222) (X)
10523 Maximum incremental plunge angle (in radians) (was
10223) (X)
284 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_PINCH_PARAMS
Lathe finish toolpaths
PRM_LFINISH
10524 Plunge cutting selection setting: 0, 1, 2, or 3 (was
10224) (X)
10525 Tool width compensation: 1 = use tool width in
compensation calculation, 0 = Use plunge clearance
angle (was 10225) (X)
13242 True = pinching, False = not pinching (new for X3)
13243 Operation to pinch (new for X3)
13244 (not used) (new for X3)
13245 (not used) (new for X3)
13341 Number of finish cuts (was 10100) (X)
10101 Step amount
10102 Stock to leave in X
10103 Stock to leave in Z
13342 Linearization tolerance (was 10104) (X)
PRM_LATHE_EE
PRM_LATHE_PLUNGE
13020 Contour to finish: true = use chain, false = use
associated operations chain
13021 Operation that contains profile
13022 Direction: 0 = OD, 1 = ID, 2 = face, 3 = back
PRM_LATHE_CORNER_BREAK
PARAMETER REFERENCE / Operation & toolpath parameters 285
Quick Start
PRM_LATHE_CORNER_BREAK
Lathe entry/exit
PRM_LATHE_EE
PRM_LATHE_EE_VEC
13438 Front clearance angle for plunging (note: this is
in radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for
plunging (new for X5)
13176 Break the corners (True/False)
13177 Break type: true = Radius corners, false =Chamfer
corners
13178 Size of radius
13179 Maximum angle to put radius on
13180 Minimum angle to put radius on
13181 Chamfer height
13182 Radius on chamfer
13183 Chamfer angle tolerance
13184 Feed rate mode: 0 = same as toolpath, 1 = Feed rate,
2 = minimum number of revolutions
13185 Feed rate
13186 Feed rate type: R = feed/revolution, M = feed/min.,
S = surface finish
13187 Minimum number of revolutions
PRM_LATHE_EE_VEC Entry vector
PRM_LATHE_EE_VEC002 Exit vector
PRM_LATHE_EE_VEC003 Entry vector, plunge finish (new for X5)
PRM_LATHE_EE_VEC004 Exit vector, plunge finish (new for X5)
11001 Lead-in vector angle (cosine)
11002 Lead-in vector angle (sine)
13000 Arc
13001 Arc
11007 Lead-in arc radius
13002 Arc
11008 Lead-in arc sweep (radians)
13003 Use entry/exit vector (True/False)
11006 Use entry/exit arc (True/False)
11021 Amount to extend/shorten the first/last move in
toolpath
11022 Extend/shorten first/last move in toolpath enabled
(True/False)
286 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LATHE_EE_VEC002
11003 Entry vector: 1 = rapid, 0 = feed
11023 Entry vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular
11004 Entry vector: feed rate
11005 Entry vector feed rate type: R = feed/rev, M = feed/
minute, S = same as toolpath
11025 Entry/exit: 0 = auto, 1 = user defined
11024 Minimum auto entry length
13004 Adjust contour first/last entities (True/False)
13005 Amount to lengthen/shorten contour first/last entity
13006 Use amount to lengthen/shorten contour first/last
entity (True/False)
13007 Length of line added to contour first/last entity
13008 Angle of line added to contour first/last entity
13009 Add a line perpendicular to contour first/last entity
(True/False)
11011 Lead-out vector angle (cosine)
11012 Lead-out vector angle (sine)
13010 Arc
13011 Arc
11017 Lead-out arc radius
13012 Arc
11018 Lead-out arc sweep (radians)
13013 Use entry/exit vector (True/False)
11016 Use entry/exit arc (True/False)
11026 Amount to extend/shorten the first/last move in
toolpath
11027 Extend/shorten first/last move in toolpath enabled
(True/False)
11013 Retraction vector: 1 = rapid, 0 = feed
11028 Exit vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular
11014 Retraction vector: feed rate
11015 Retraction vector feed rate type: R = feed/rev, M =
feed/minute, S = same as toolpath
11030 Use auto entry/exit (True/False)
11029 Minimum auto entry length
13014 Adjust contour first/last entities (True/False)
13015 Amount to lengthen/shorten contour first/last entity
13016 Use amount to lengthen/shorten contour first/last
entity (True/False)
13017 Length of line added to contour first/last entity
13018 Angle of line added to contour first/last entity
13019 Add a line perpendicular to contour first/last entity
(True/False)
PARAMETER REFERENCE / Operation & toolpath parameters 287
Quick Start
PRM_LATHE_EE_VEC003
PRM_LATHE_EE_VEC004
13519 Lead-out vector angle (cosine) (new for X5)
13520 Lead-out vector angle (sine) (new for X5)
13521 Arc (new for X5)
13522 Arc (new for X5)
13523 Lead-out arc radius (new for X5)
13524 Arc (new for X5)
13525 Lead-out arc sweep (radians) (new for X5)
13526 Use entry/exit vector (True/False) (new for X5)
13527 Use entry/exit arc (True/False) (new for X5)
13528 Amount to extend/shorten the first/last move in
toolpath (new for X5)
13529 Extend/shorten first/last move in toolpath enabled
(True/False) (new for X5)
13530 Retraction vector: 1 = rapid, 0 = feed (new for X5)
13531 Exit vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular (new for X5)
13532 Retraction vector: feed rate (new for X5)
13533 Retraction vector feed rate type: R = feed/rev, M =
feed/minute, S = same as toolpath (new for X5)
13534 Use auto entry/exit (True/False) (new for X5)
13535 Minimum auto entry length (new for X5)
13536 Adjust contour first/last entities (True/False) (new for
X5)
13537 Amount to lengthen/shorten contour first/last entity
(new for X5)
13538 Use amount to lengthen/shorten contour first/last
entity (True/False) (new for X5)
13539 Length of line added to contour first/last entity (new
for X5)
13540 Angle of line added to contour first/last entity (new for
X5)
13541 Add a line perpendicular to contour first/last entity
(True/False) (new for X5)
13542 Lead-out vector angle (cosine) (new for X5)
13543 Lead-out vector angle (sine) (new for X5)
13544 Arc (new for X5)
13545 Arc (new for X5)
13546 Lead-out arc radius (new for X5)
13547 Arc (new for X5)
13548 Lead-out arc sweep (radians) (new for X5)
288 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Lathe groove toolpaths
PRM_LGROOVE
13549 Use entry/exit vector (True/False) (new for X5)
13550 Use entry/exit arc (True/False) (new for X5)
13551 Amount to extend/shorten the first/last move in
toolpath (new for X5)
13552 Extend/shorten first/last move in toolpath enabled
(True/False) (new for X5)
13553 Retraction vector: 1 = rapid, 0 = feed (new for X5)
13554 Exit vector direction mode: 0 = user, 1 = tangent, 2 =
perpendicular (new for X5)
13555 Retraction vector: feed rate (new for X5)
13556 Retraction vector feed rate type: R = feed/rev, M =
feed/minute, S = same as toolpath (new for X5)
13557 Use auto entry/exit (True/False) (new for X5)
13558 Minimum auto entry length (new for X5)
13559 Adjust contour first/last entities (True/False) (new for
X5)
13560 Amount to lengthen/shorten contour first/last entity
(new for X5)
13561 Use amount to lengthen/shorten contour first/last
entity (True/False) (new for X5)
13562 Length of line added to contour first/last entity (new
for X5)
13563 Angle of line added to contour first/last entity (new for
X5)
13564 Add a line perpendicular to contour first/last entity
(True/False) (new for X5)
13370 Retract moves rate: True = rapid, false = feed (was
10326) (X)
10327 Retract feed rate
10328 Retract feed rate type: R = per rev, M = per minute
PRM_GROOVE_SHAPE
PRM_GROOVE_ROUGH
PRM_GROOVE_FINISH
PRM_LTOOL_INSPECT
13458 (not currently used) (new for X5)
13581 (not currently used) (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 289
Quick Start
PRM_GROOVE_SHAPE
PRM_LTOOL_INSPECT
13137 Groove defintion type: 0 = 1 point, 1 = 2 point,
2 = 3 line, 3 = 2 boundary method (chain) (moved for
X5)
13363 Spline linearization tolerance (was 10305) (X)
(moved for X5)
13138 Groove cut direction: 0 = OD, 1 = ID, 2 = face,
3 = back, 4 = angle (moved for X5)
10307 Groove angle (moved for X5)
10331 Groove width
10332 Groove height
10333 Taper on wall 1
10334 Taper on wall 2
PRM_LATHE_CORNER
PRM_LATHE_CORNER002
PRM_LATHE_CORNER003
PRM_LATHE_CORNER004
13172 Make groove same width as tool (True/False)
13415 1 = Implement Tool Inspection stop (new for X4)
(moved for X5)
13416 Tool inspection position: 0 = Home position, 1 = User
defined (new for X4) (moved for X5)
13417 1 = Enable stop after Each groove (new for X4)
(moved for X5)
13418 1 = Enable stop after Each depth cut (new for X4)
(moved for X5)
13419 1 = Enable stop after specified Number of plunges
(new for X4) (moved for X5)
13420 1 = Enable stop after specified Length of time in cut
(see 13457) (new for X4) (moved for X5)
13421 1 = Enable stop after specified Length of cut (see
13459) (new for X4) (moved for X5)
13422 Number of passes or cuts between stops (new for X4)
(moved for X5)
13427 1 = Enable tool inspection comment (new for X4)
(moved for X5)
13428 Text string for tool inspection comment (new for X4)
(moved for X5)
13429 1 = Enable the Use reference points option on tool
inspection retract and approach moves (new for X4)
(moved for X5)
290 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LATHE_CORNER
PRM_LATHE_CORNER001
13430 Type of retract position for tool inspection: 1 =
absolute, 0 = incremental (new for X4) (moved for
X5)
13431 1 = Enable retract move in world X axis (typically this
appears in the dialog box as Z) (new for X4) (moved
for X5)
13432 1 = Enable retract move in world Y axis (typically this
appears in the dialog box as X or D). (new for X4)
(moved for X5)
13433 1 = Enable retract move in world Z axis. (new for X4)
(moved for X5)
13434 World X coordinate of tool inspection coordinates
(typically this appears in the dialog box as Z). This
could be absolute or incremental (see 13430). (new for
X4) (moved for X5)
13435 World Y coordinate of tool inspection coordinates
(typically this appears in the dialog box as X or D). This
is always output as a radius value. This could be
absolute or incremental. (see 13430) (new for X4)
(moved for X5)
13436 (not currently used) (new for X4) (moved for X5)
(moved for X5)
13437 1 = Enable stop after First plunge (new for X4)
(moved for X5)
13457 Length of time (in seconds) between stops, when 13420
= 1 (new for X5)
13459 Distance between stops, when 13421 = 1 (new for X5)
13462 Stop between cuts : 1= Only between passes option,
0= Exact length and time option (stop between cuts)
(new for X5)
13463 Lead-in/out distance for mid-cut tool inspection
(when 13462=0) (new for X5)
13464 min distance from end of pass to do tool inspection in
mid cut (when 13462=0) (new for X5)
10713 Corner definition: true = corner defined, false = none
(square)
10335 Type: 0 = square, 1 = radius, 2 = chamfer, 3 = chamfer
with radius
10336 Corner radius or top radius on chamfer
10762 Bottom radius on chamfer
10337 Chamfer angle
10339 Corner chamfer: 0 = width, 1 = height
10338 Chamfer width or height
10713 Corner definition: true = corner defined, false = none
(square)
PARAMETER REFERENCE / Operation & toolpath parameters 291
Quick Start
PRM_LATHE_CORNER002
PRM_LATHE_CORNER003
PRM_LATHE_CORNER004
PRM_GROOVE_ROUGH
10760 Type: 0 = square, 1 = radius, 2 = chamfer, 3 = chamfer
with radius
10761 Corner radius or top radius on chamfer
10762 Bottom radius on chamfer
10714 Chamfer angle
10715 Corner chamfer: 0 = width, 1 = height
10716 Chamfer width or height
13026 Corner definition: true = corner defined, false = none
(square)
10340 Type: 0 = square, 1 = radius, 2 = chamfer, 3 = chamfer
with radius
10341 Corner radius or top radius on chamfer
13027 Bottom radius on chamfer
10342 Chamfer angle
10344 Corner chamfer: 0 = width, 1 = height
10343 Chamfer width or height
13028 Corner definition: true = corner defined, false = none
(square)
10345 Type: 0 = square, 1 = radius, 2 = chamfer, 3 = chamfer
with radius
10346 Corner radius or top radius on chamfer
13029 Bottom radius on chamfer
10347 Chamfer angle
10349 Corner chamfer: 0 = width, 1 = height
10348 Chamfer width or height
13030 Corner definition: true = corner defined, false = none
(square)
10350 Type: 0 = square, 1 = radius, 2 = chamfer, 3 = chamfer
with radius
10351 Corner radius or top radius on chamfer
13371 Bottom radius on chamfer (was 13031) (X)
10352 Chamfer angle
10354 Corner chamfer: 0 = width, 1 = height
10353 Chamfer width or height
13356 Do groove rough (True/False) (was 10308) (X)
13127 Finish current groove before roughing next one (True/
False)
292 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LATHE_PECK
13357 Cut direction:(X)
0 = positive
1 = negative
2 = bi-directional (center start)
3 = chain direction
(was 10309)
13358 Step amount (was 10301) (X)
13128 Number of steps across groove
13129 Rough step:
0 = use number of steps
1 = use step
2 = use percent of tool width
13359 Stock to leave in X (was 10302) (X)
13360 Stock to leave in Z (was 10303) (X)
13361 Stock clearance between cuts (was 10310) (X)
10329 Amount of stock on top of groove
13362 Backoff percent of step (was 10311) (X)
13130 Finish each groove after roughing it (True/False)
PRM_LATHE_PECK001
PRM_GROOVE_DEPTH
PRM_GROOVE_STEP
13131 Step percent of tool width
13406 1 = Enable First Plunge Feed Rate option (new for
X4) (moved for X5)
13407 Feed rate of first cut to depth (new for X4) (moved for
X5)
13408 Feed rate type of first cut to depth: R = feed/rev, M =
feed/minute (note: output is the ASCII code for R or M)
(new for X4) (moved for X5)
13347 Use peck parameters (True/False) (was 10702) (X)
10744 Peck type: 0= none, 1 = number, 2 = incremental, 3 =
decreasing increment
13355 Peck on first plunge only (True/False) (was 10313) (X)
10316 Depth (Pre-X)
10318 Last increment (Pre-X)
13348 Peck amount: number of pecks (was 10315) (X)
13349 Peck increment (was 10704) (X)
13350 Final peck increment (was 10706) (X)
10740 Retract type: 0= none, 1 = absolute, 2 = incremental
(was 10319)
10742 Retract amount (absolute)
10741 Retract amount (incremental) (was 10320) (X)
10743 Dwell type: 0= none, 1 = all pecks, 2 = last peck
13351 Dwell value (was 10321) (X)
13023 Dwell units: 0 = seconds, 1 = revolutions
PARAMETER REFERENCE / Operation & toolpath parameters 293
Quick Start
PRM_LATHE_PECK001
PRM_LATHE_PECK002
PRM_GROOVE_DEPTH
PRM_GROOVE_STEP
13352 Use peck parameters (True/False) (was 10312) (X)
10744 Peck type: 0 = none, 1 = number, 2 = incremental, 3 =
decreasing increment
13353 Peck on first plunge only (True/False) (was 10313) (X)
13354 Peck amount: number of pecks (was 10315) (X)
10316 Peck increment
10318 Last peck increment
10319 Retract type: 0 = none, 1 = absolute, 2 = incremental
10742 Peck incremental amount
13364 Peck retract increment (was 10320) (X)
10743 Dwell type: 0 = none, 1 = all pecks, 2 = last peck
13365 Dwell (was 10321)(X)
13023 Dwell units: 0 = seconds, 1 = revolutions
10722 Use peck parameters (True/False)
10723 Peck type: 0= none, 1 = number, 2 = incremental, 3 =
decreasing increment
13024 Peck on first plunge only (True/False)
10724 Peck number
10725 Peck increment
10726 Peck last increment
10727 Peck retract type : 0= none, 1 = absolute, 2 =
incremental
10728 Peck absolute amount
10729 Peck incremental amount
10731 Peck dwell type: 0 = none, 1 = all pecks, 2 = last peck
10732 Peck dwell
13025 Dwell units: 0 = seconds, 1 = revolutions
13366 Do groove depth cuts (True/False) (was 10322) (X)
13367 Use depth number/increment: 0 = number, 1 =
increment (was 10323) (X)
13368 Depth cut increment (was 10325) (X)
13120 Retract to Stock Clearance: true = incremental, false =
absolute
13369 Depth cut number (was 10324) (X)
13372 Zigzag between depth cuts (True/False) (was 13121) (X)
13122 Clean up stair steps between depths (True/False)
13123 Minimum step size to clean up
13124 Radius to arc on with for step removal cut
13125 Sweep angle to arc on with for step removal cut
294 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_GROOVE_FINISH
13126 Arc onto step cleanup pass (True/False)
10360 Do groove finish (True/False)
10361 Start on positive side (True/False)
10364 Number of finish passes
10365 Finish stepover amount
10366 Stock to leave in X
10367 Stock to leave in Z
13132 Tool back offset number
13133 Use back offset number (True/False)
10370 Multiple passes: true = finish each groove completely,
false = finish grooves together
10380 Amount to lengthen 1st cut
13134 Amount of overlap between 1st and 2nd cuts
PRM_LATHE_EE
13136 Wall backoff: true = overlap is percent of tool width,
false = overlap is length
13240 Finish backoff (moved for X5)
13241 Backoff type: 0 = invalid (pre v9.1), 1 = percent of tool
width, 2 = distance (moved for X5)
13403 Finish dwell type: 0 = none, 1 = seconds, 2 = revolutions
(new for X4) (moved for X5)
13404 Finish dwell time (seconds) (new for X4) (moved for
X5)
13405 Finish dwell (revolutions) (new for X4) (moved for
X5)
13409 1 = Enable Finish feed rate option (new for X4)
(moved for X5)
13410 Finish feed rate (new for X4) (moved for X5)
13411 Finish feed type: R = feed/rev, M = feed/minute,
S=surface finish (micro-in or micron) (note: output is
the ASCII code for R/M/S) (new for X4) (moved for
X5)
13412 1 = Enable Finish spindle speed option (new for X4)
(moved for X5)
13413 Finish spindle speed (new for X4) (moved for X5)
13414 Finish spindle speed mode: 1 = CSS, 0 = RPM (new for
X4) (moved for X5)
13425 Finish groove overlap position: 0 = User-selected
position, 1 = middle of groove (new for X4) (moved
for X5)
13426 Overlap distance: used when overlap is in the middle of
the groove (new for X4) (moved for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 295
Quick Start
Lathe plunge-turn toolpaths
PRM_LPLUNGE
PRM_PLUNGE_ROUGH
PRM_GROOVE_SHAPE (new for X5)
PRM_PLUNGE_ROUGH (new for X5)
PRM_PLUNGE_FINISH (new for X5)
PRM_LTOOL_INSPECT (new for X5)
13475 Retract type : 1= rapid, 2= at feed rate (new for X5)
13476 Feed rate for retract (new for X5)
13477 Type of retract feed rate : R= per rev, M= per minute
(new for X5)
13465 1 = Rough the groove option selected (new for X5)
13466 1 = Finish each groove before roughing next option
selected (new for X5)
13467 First pass cut direction: 0 = positive, 1 = negative, 2 =
center start (not used), 3 = chain direction (new for
X5)
13468 Depth of cut (amount) (new for X5)
13469 Depth of cut (% of tool) (new for X5)
13470 Min cut depth (amount) (new for X5)
13471 Min cut depth (% of tool) (new for X5)
13472 Stock to leave in X (new for X5)
13473 Stock to leave in Z (new for X5)
13474 1= Zig-zag cut (new for X5)
13478 Spindle transition dwell type : 0 = none, 1 = seconds, 2
= revolutions (new for X5)
13479 Dwell time (seconds) (new for X5)
13480 Dwell (revolutions) (new for X5)
13481 1 = Cleanup steps option selected (new for X5)
13482 Maximum step size before cleanup is neededpercent
of tool width (new for X5)
13483 Prevent hanging ring selection :0 = do nothing, 1 =
remove in both directions, 2 = remove positive, 3 =
remove negative (new for X5)
13484 Step size as % of tool width (new for X5)
PRM_LATHE_EE (new for X5)
13485 Plunge feed rate (new for X5)
13486 Plunge feed rate type : R = per rev, M = per minute
(new for X5)
13487 Plunge spindle speed (new for X5)
13488 Plunge spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13489 Turn feed rate (new for X5)
296 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_PLUNGE_FINISH
Lathe thread toolpaths
13490 Turn feed rate type : R = per rev, M = per minute (new
for X5)
13491 Turn spindle speed (new for X5)
13492 Turn spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13493 Approach clearance distance (new for X5)
13494 Stock clearance distance (new for X5)
13495 Enable Finish groove option (new for X5)
13496 Enable back offset number option (new for X5)
13497 Back offset number to use (new for X5)
13498 Stock to leave in X (new for X5)
13499 Stock to leave in Z (new for X5)
13500 Tool deflection backoff distance (new for X5)
13501 Approach clearance distance (new for X5)
13502 Cut direction: 0 = positive, 1 = negative (new for X5)
13503 Plunge dwell type : 0 = none, 1 = seconds, 2 =
revolutions (new for X5)
13504 Dwell time (seconds) (new for X5)
13505 Dwell (revolutions) (new for X5)
PRM_LATHE_EE (new for X5)
13509 Plunge feed rate (new for X5)
13510 Plunge feed rate type : R = per rev, M = per minute
(new for X5)
13511 Plunge spindle speed (new for X5)
13512 Plunge spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13513 Turn feed rate (new for X5)
13514 Turn feed rate type : R = per rev, M = per minute (new
for X5)
13515 Turn spindle speed (new for X5)
13516 Turn spindle speed type : 0 = RPM, 1 = CSS (new for
X5)
13517 Prevent hanging ring selection :0 = do nothing, 1 =
remove in both directions, 2 = remove positive, 3 =
remove negative (new for X5)
13518 Stock clearance distance (new for X5)
PARAMETER REFERENCE / Operation & toolpath parameters 297
Quick Start
PRM_LTHREAD
PRM_THREAD_SHAPE
PRM_THREAD_CUT
10822 Thread name (was 10422) (X)
10823 Allowance name (was 10423) (X)
PRM_THREAD_SHAPE
PRM_THREAD_CUT
10819 Thread cut type: 0 = OD, 1 = ID, 2 = face/back (was
10419) (X)
10800 Thread lead: thread/inch (mm) setting returns a
negative value, inches (mm)/thread setting returns a
positive value (was 10400) (X)
10811 Major diameter (was 10411) (X)
10812 Minor diameter (was 10412) (X)
10813 Start position (was 10413) (X)
10814 End position (was 10414) (X)
10815 Taper angle (was 10415) (X)
10816 Cut side of axis: 0 = positive side, 1 = negative side
(Negative X is checked) (was 10816) (X)
10830 Use allowance (True/False) (was 10430) (X)
10817 Major allowance (was 10417) (X)
10818 Minor allowance (was 10418) (X)
10824 Allowance tolerance (was 10424) (X)
10805 Lead angle (was 10405) (X)
10840 Included angle (was 10440) (X)
13195 Diameter at small end (True/False)
13380 Allowance is disabled (True/False) (new for X3)
10809 NC output type: 0 = long hand (G32), 1 = canned (G76),
2 = box (G92) (was 10409) (X)
10801 First cut depth (was 10801) (X)
10802 Last cut depth (was 10402) (X)
10820 Number of starts (was 10420) (X)
10821 Auto compute acceleration clearance (True/False) (was
10421) (X)
10803 Acceleration clearance amount (was 10403) (X)
10831 Units: true = revolutions, false = inches (was 10431) (X)
10832 Clearance above threads between passes (was 10432)
(X)
10833 Clearance at to add at end of thread pass (was 10433)
(X)
10834 Units: true = revolutions, false = inches (was 10434) (X)
10804 Anticipated pulloff distance (was 10404) (X)
10835 Units: true = revolutions, false = inches (was 10435) (X)
10808 Amount of stock to leave for spring cuts (was 10408) (X)
10807 Number of spring cuts (was 10407) (X)
298 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Lathe drill toolpaths
PRM_LDRILL
10810 Feed rate (was 10410) (X)
10837 Number of cuts (was 10437) (X)
10838 Determine cut depths: true = equal depth, false = equal
area (was 10438) (X)
10836 Determine cut number: true = number of cuts, false =
first cut depth (was 10436) (X)
10839 Tool lead-in angle at start of thread (was 10439) (X)
15554 Multi-start (True/False)
15555 Start closest (True/False)
15556 Start clear last (True/False)
10500 Drill cycle
10507 First peck increment
10508 Subsequent peck increment
10509 Peck clearance
10510 Retraction distance for chip break
10503 Dwell
10520 Shift value
10117 Drill tip compensation breakthrough amount
10511 Adjust depth per drill tip (True/False)
10519 Drill point in Z
10502 Drill X position
10514 Feed plane (retract value) incremental mode is
checked (True/False) (Pre-X)
15071 Custom drill cycle parameters
15072 Custom drill cycle parameters
15073 Custom drill cycle parameters
15074 Custom drill cycle parameters
15075 Custom drill cycle parameters
15076 Custom drill cycle parameters
15077 Custom drill cycle parameters
15078 Custom drill cycle parameters
15079 Custom drill cycle parameters
15080 Custom drill cycle parameters
15081 Use custom parameters is checked (True/False)
13169 Clearance height is incremental from stock (True/
False)
PARAMETER REFERENCE / Operation & toolpath parameters 299
Quick Start
Lathe face toolpaths
PRM_LATHE_FACE
Lathe cutoff toolpaths
PRM_LCUTOFF
13170 Retraction height is incremental from stock (True/
False)
10603 Do groove roughing (True/False)
10604 Maximum stepover
10606 Do groove finishing (True/False)
10608 Amount of each cut
10607 Number of finish passes
10609 Stock to leave after rough and finish
10614 Lead-in amount
10612 Retract amount
10613 Retract speed: 0 = linear, 1 = rapid
10601 Overcut_amount
10615 Cut from Z axis : true = cut away from center line, false
= cut toward center line
PRM_LATHE_EE
13346 X tangent point (was 10701) (X)
10711 Cut tool to: 0 = front radius, 1 = back radius
10712 Lead-in amount
10750 Retract Radius: 0 = none, 1 = absolute, 2 =
incremental
10752 Retract amount, absolute
10751 Retract amount, incremental
PRM_LATHE_PECK
PRM_LATHE_CORNER001
PRM_LATHE_EE
10718 Do clearance cut (True/False)
10719 Clearance amount X
10720 Clearance amount Z
10721 Clearance cut lead in amount
PRM_LATHE_PECK001
13039 Do canned text (True/False)
PRM_LCUTOFF_CANTXT
PRM_LCUTOFF_CANTXT002
PRM_LCUTOFF_CANTXT003
300 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LCUTOFF_CANTXT
PRM_LCUTOFF_CANTXT002
PRM_LCUTOFF_CANTXT004
PRM_LCUTOFF_CANTXT005
PRM_LCUTOFF_CANTXT006
PRM_LCUTOFF_CANTXT007
PRM_LCUTOFF_CANTXT008
13574 1= get Entry amountFrom stock option
(new for X5)
13575 1= get Retract radiusFrom stock option
(new for X5)
13576 1= get Clearance Cut > Entry amount
From stock option (new for X5)
13577 Back Face Stock amount (new for X5)
PRM_LCUTOFF_FS (new for X5)
13031 Radius to output canned text
13040 Canned text values
13041 Canned text values
13042 Canned text values
13043 Canned text values
13044 Canned text values
13045 Canned text values
13046 Canned text values
13047 Canned text values
13048 Canned text values
13049 Canned text values
13261 Additional canned text values (X)
13262 Additional canned text values (X)
13263 Additional canned text values (X)
13264 Additional canned text values (X)
13265 Additional canned text values (X)
13266 Additional canned text values (X)
13267 Additional canned text values (X)
13268 Additional canned text values (X)
13269 Additional canned text values (X)
13270 Additional canned text values (X)
13032 Radius to output canned text
13050 Canned text values
13051 Canned text values
13052 Canned text values
13053 Canned text values
13054 Canned text values
13055 Canned text values
PARAMETER REFERENCE / Operation & toolpath parameters 301
Quick Start
PRM_LCUTOFF_CANTXT003
PRM_LCUTOFF_CANTXT004
13056 Canned text values
13057 Canned text values
13058 Canned text values
13059 Canned text values
13271 Additional canned text values (X)
13272 Additional canned text values (X)
13273 Additional canned text values (X)
13274 Additional canned text values (X)
13275 Additional canned text values (X)
13276 Additional canned text values (X)
13277 Additional canned text values (X)
13278 Additional canned text values (X)
13279 Additional canned text values (X)
13280 Additional canned text values (X)
13033 Radius to output canned text
13060 Canned text values
13061 Canned text values
13062 Canned text values
13063 Canned text values
13064 Canned text values
13065 Canned text values
13066 Canned text values
13067 Canned text values
13068 Canned text values
13069 Canned text values
13281 Additional canned text values (X)
13282 Additional canned text values (X)
13283 Additional canned text values (X)
13284 Additional canned text values (X)
13285 Additional canned text values (X)
13286 Additional canned text values (X)
13287 Additional canned text values (X)
13288 Additional canned text values (X)
13289 Additional canned text values (X)
13290 Additional canned text values (X)
13034 Radius to output canned text
13070 Canned text values
13071 Canned text values
13072 Canned text values
13073 Canned text values
13074 Canned text values
302 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LCUTOFF_CANTXT005
PRM_LCUTOFF_CANTXT006
13075 Canned text values
13076 Canned text values
13077 Canned text values
13078 Canned text values
13079 Canned text values
13291 Additional canned text values (X)
13292 Additional canned text values (X)
13293 Additional canned text values (X)
13294 Additional canned text values (X)
13295 Additional canned text values (X)
13296 Additional canned text values (X)
13297 Additional canned text values (X)
13298 Additional canned text values (X)
13299 Additional canned text values (X)
13300 Additional canned text values (X)
13035 Radius to output canned text
13080 Canned text values
13081 Canned text values
13082 Canned text values
13083 Canned text values
13084 Canned text values
13085 Canned text values
13086 Canned text values
13087 Canned text values
13088 Canned text values
13089 Canned text values
13301 Additional canned text values (X)
13302 Additional canned text values (X)
13303 Additional canned text values (X)
13304 Additional canned text values (X)
13305 Additional canned text values (X)
13306 Additional canned text values (X)
13307 Additional canned text values (X)
13308 Additional canned text values (X)
13309 Additional canned text values (X)
13310 Additional canned text values (X)
13036 Radius to output canned text
13090 Canned text values
13091 Canned text values
13092 Canned text values
13093 Canned text values
PARAMETER REFERENCE / Operation & toolpath parameters 303
Quick Start
PRM_LCUTOFF_CANTXT007
PRM_LCUTOFF_CANTXT008
13094 Canned text values
13095 Canned text values
13096 Canned text values
13097 Canned text values
13098 Canned text values
13099 Canned text values
13311 Additional canned text values (X)
13312 Additional canned text values (X)
13313 Additional canned text values (X)
13314 Additional canned text values (X)
13315 Additional canned text values (X)
13316 Additional canned text values (X)
13317 Additional canned text values (X)
13318 Additional canned text values (X)
13319 Additional canned text values (X)
13320 Additional canned text values (X)
13037 Radius to output canned text
13100 Canned text values
13101 Canned text values
13102 Canned text values
13103 Canned text values
13104 Canned text values
13105 Canned text values
13106 Canned text values
13107 Canned text values
13108 Canned text values
13109 Canned text values
13321 Additional canned text values (X)
13322 Additional canned text values (X)
13323 Additional canned text values (X)
13324 Additional canned text values (X)
13325 Additional canned text values (X)
13326 Additional canned text values (X)
13327 Additional canned text values (X)
13328 Additional canned text values (X)
13329 Additional canned text values (X)
13330 Additional canned text values (X)
13038 Radius to output canned text
13110 Canned text values
13111 Canned text values
13112 Canned text values
304 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Lathe canned toolpaths
PRM_LCAN_ROUGH
PRM_LCAN_FINISH
13113 Canned text values
13114 Canned text values
13115 Canned text values
13116 Canned text values
13117 Canned text values
13118 Canned text values
13119 Canned text values
13331 Additional canned text values (X)
13332 Additional canned text values (X)
13333 Additional canned text values (X)
13334 Additional canned text values (X)
13335 Additional canned text values (X)
13336 Additional canned text values (X)
13337 Additional canned text values (X)
13338 Additional canned text values (X)
13339 Additional canned text values (X)
13340 Additional canned text values (X)
13139 Change to longhand (True/False)
10214 Direction: 0 = OD, 1= ID, 2 = face, 3 = back
13343 Step amount (was 10200) (X)
10202 Stock to leave in X
10203 Stock to leave in Z
13345 Stepover amount (was 10205) (X)
PRM_LATHE_EE
10201 Overlap
13164 Entry Amount
PRM_LATHE_PLUNGE
13239 Plunge cutting: true = profile has an undercut (relief )
condition, false = ignore undercut areas
13438 Front clearance angle for plunging (note: this is in
radians, not degrees) (new for X5)
13565 0 = use Front clearance angle option for plunging
(new for X5)
13579 Clearance distance: X (new for X5)
13580 Clearance distance: Z (new for X5)
13121 Operation that contains profile
13141 Not used
13142 Change to longhand (True/False)
PARAMETER REFERENCE / Operation & toolpath parameters 305
Quick Start
PRM_LCAN_PATTERN
Lathe misc ops
PRM_LSTOCK_XFER
13143 Not used
13144 Not used
13145 Linearization tolerance
PRM_LATHE_EE
13203 Unique subprogram number (was 13165) (X)
13239 Plunge cutting: true = profile has an undercut (relief )
condition, false = ignore undercut areas
13147 Output longhand (True/False) (Not used)
13148 Change to longhand (True/False)
13341 Number of passes (was 10100) (X)
10101 Stepover
10102 Stock to leave in X
10103 Stock to leave in Z
13149 Pattern offset angle (in radians)
13342 Linearization tolerance (was 10104) (X)
PRM_LATHE_EE
13205 Active spindle for stock transfer
13206 Z coordinate on stock to be transferred
13207 Previous Z coordinate on stock to be transferred
13208 Use stock BACK face as init Z position (True/False)
13209 Z coordinate on transferred stock
13210 Source chuck reference position before transfer
13211 Source chuck reference position before transfer
13212 Source chuck reference position after transfer
13213 Source chuck reference position after transfer
13214 Destination chuck reference position before transfer
13215 Destination chuck reference position before transfer
13216 Destination chuck pickoff position
13217 Destination chuck pickoff position
13218 Get final (Lathe) X coordinate from stock (True/False)
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
13221 Transfer geometry also (True/False)
13222 Level to store transferred geometry on
13223 Offset from source geometry level for transferred
geometry
306 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_LSTOCK_FLIP
PRM_LBARFEED
13224 Use geolevel (as opposed entity level) (True/False)
13225 Blank original geometry (True/False)
13226 Entity with list of transferred entity IDs
13227 Entity with list of original entity IDs
OP_MISC_001 Custom real / integer parameters (new for X4)
13205 Active spindle for stock to flip
13206 Z coordinate on stock before flip
13207 Previous Z coordinate on stock
13209 Z coordinate on stock after flip
13210 Chuck reference position before flip
13211 Chuck reference position before flip
13212 Chuck reference position after flip
13213 Chuck reference position after flip
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
13221 Transfer geometry also during flip (True/False)
13222 Level to store transferred geometry on
13223 Offset from source geometry level for transferred
geometry
13224 Use geo level [param: 13222] (as opposed entity level)
13225 Blank original geometry (True/False)
13226 Entity with list of transferred geometry entity IDs
13227 Entity with list of original geometry entity IDs
OP_MISC_001 Custom real / integer parameters (new for X4)
13205 Active spindle for stock to barfeed
13206 Z coordinate on stock before barfeed
13207 Previous Z coordinate on stock
13208 Get initial Z position from stock face (True/False)
13209 Z coordinate on stock after barfeed
13210 Chuck reference position before barfeed
13211 Chuck reference position before barfeed
13212 Chuck reference position after barfeed
13213 Chuck reference position after barfeed
13228 Use chuck positions (True/False)
13219 Move Cplane origin to new stock position (True/False)
(removed for X5)
13220 Move Tplane origin to new stock position (True/False)
(removed for X5)
13221 Transfer geometry also during barfeed (True/False)
13222 Level to store transferred geometry on
PARAMETER REFERENCE / Operation & toolpath parameters 307
Quick Start
PRM_LCHUCK_CLAMP
PRM_LTAILSTOCK
PRM_LSTEADYREST
PRM_LPARKTURRET
13223 Offset from source geometry level for xferd geometry
13224 Use geolevel [param: 13222](as opposed entity level)
13225 Blank original geometry (True/False)
13226 Entity with list of transferred entity id's
13227 Entity with list of original entity id's
13229 Operation type: 0= bar feed, 1 = bar feed with tool as
stop, 2 = bar pull
13230 Stock clearance for bar pull
13231 Grip length for bar pull
13232 Use plunge feed rate for approaching stock (True/
False)
OP_MISC_001 Custom real / integer parameters (new for X4)
13233 Tool X position for stop, bar puller
13205 Active spindle for chuck
13229 Operation type: 0 = clamp, 1 = un-clamp, 2 = reposition
13210 Initial chuck reference position
13211 Initial chuck reference position
13212 Final chuck reference position
13213 Final chuck reference position
OP_MISC_001 Custom real / integer parameters (new for X4)
13508 For operations created by the cutoff/pickoff C-Hook,
this is the index number of the operation (new for X5)
13567 For pickoff operations created by the cutoff/pickoff C-
Hook, this is the stock clearance value (new for X5)
13234 Operation: true = engage, false = retract
13235 Initial tailstock reference position
13236 Final tailstock reference position
13237 Is initial / final position based on stock position (True/
False)
13238 Is initial position based on tailstock minimum point
(True/False)
OP_MISC_001 Custom real / integer parameters (new for X4)
13235 Initial steadyrest reference position (Z)
13236 Initial steadyrest reference position (Z)
OP_MISC_001 Custom real / integer parameters (new for X4)
13439 Create X-axis move? (new for X5)
308 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Lathe multi-tasking
PRM_PINCH_TURN
13440 Type of X-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13441 X-axis coordinate position (new for X5)
13442 Create Y-axis move? (new for X5)
13443 Type of Y-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13444 Y-axis coordinate position (new for X5)
13445 Create Z-axis move? (new for X5)
13446 Type of Z-axis motion: disabled, move to coordinate
position, move to minimum limit, move to maximum
limit (new for X5)
13447 Z-axis coordinate position (new for X5)
13448 Wait code #1 (new for X5)
13449 Wait code #2 (new for X5)
13450 Wait code #3 (new for X5)
13451 Wait code #4 (new for X5)
13452 Wait code #5 (new for X5)
13453 Wait code #6 (new for X5)
13454 Wait code #7 (new for X5)
13455 Wait code #8 (new for X5)
13456 Tool call type : mill or lathe (new for X5)
OP_MISC_001 Custom real / integer parameters (new for X5)
13246 ID of source roughing op (new for X3)
13247 Dwell (seconds) at start of second cut (new for X3)
13248 Turret which takes first cut: 0=upper or 1=lower (new
for X3)
13249 Type of dwell at start of second cut: time (see 13247),
number of revolutions (see 13278), or distance (see
13279) (new for X3)
13376 0=Pinch turn or 1=Balance turn? (new for X3)
13377 Sync first pass only, or every pass (new for X3)
13378 Number of revolutions for dwell (new for X3)
13379 Distance amount for dwell (new for X3)
13381 Double feed rate? (y/n) (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 309
Quick Start
PRM_CUSTOM_OP
Introduced in X as PRM_MISC_OP; renamed to PRM_CUSTOM_OP for X2
Wire parameters
Wire toolpaths, common settings
PRM_WIRE_COMMON
13250 0=custom, 1+ = defined by the post
13251 True = reference misc op, False = primary misc op
13252 (Removed in X3)
13253 (Removed in X3)
13254 (Removed in X3)
13255 (Removed in X3)
13256 (Removed in X3)
13257 (Removed in X3)
13258 (Removed in X3)
13259 (Removed in X3)
13260 Entity idn of start of event list
13373 Custom op icon name (X2)
13374 True = custom op events cannot be added (X2)
14000 Starting pass number
14001 Power setting library entity ID #
14065 Power setting library entity ID #
14049 Pointer to power setting library entity (removed for X3)
14066 Pointer to power setting library entity (removed for X3)
14067 Use miscellaneous integers/reals (True/False)
14068 Multipass miscellaneous integers and reals entitiy ID #
14069 Pointer to multipass miscellaneous integers/reals entity
(removed for X3)
14155 UV extension (was 10311) (X)
14002 UV extension: true = incremental, false = absolute
14131 UV trim plane (was 10106) (X)
14003 UV trim plane: true = incremental, false = absolute
10201 UV height (was 10101) (X)
14004 True = UV height incremental, false = absolute
14129 XY height (was 10102) (X)
14005 XY height: true = incremental, false = absolute
10306 XY trim plane (was 10107) (X)
14006 XY trim plane: true = incremental, false = absolute
14156 XY extension (was 10312) (X)
14007 XY extension: true = incremental, false = absolute
310 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
10050 Wire on (True/False)
10051 Power on (True/False)
14126 Flush: 0 = off, 1 = on, 2 = other (was 10022) (X)
14070 Tank: 0 = empty, 1 = fill
11052 Start wirepath at thread position (True = Auto start
position is ON)
14128 Linearization tolerance (was 10024) (X)
14008 Thread position (X coordinate)
14009 Thread position (Y coordinate)
14010 Thread position (Z coordinate)
14011 Cut position (X coordinate)
14012 Cut position (Y coordinate)
14013 Cut position (Z coordinate)
14014 Second (UV) thread position (X coordinate) - future
14015 Second (UV) thread position (Y coordinate)- future
14016 Second (UV) thread position (Z coordinate)- future
14017 Second cut position (X coordinate) - future
14018 Second cut position (Y coordinate) - future
14029 Second cut position (Z coordinate) - future
14020 Start position (X coordinate)
14021 Start position (Y coordinate)
14022 Start position (Z coordinate)
14023 Work origin (X coordinate)
14024 Work origin (Y coordinate)
14025 Work origin (Z coordinate)
14080 Use UV thread position (True/False)
14081 UV thread cut flag: 0 = not used, 1 = thread, 2 = cut, 3 =
both
14082 Rapid height
14083 Rapid height: true = incremental, false = absolute
14084 Use rapid height (True/False)
14085 Use UV extension (True/False)
10486 Use UV trim plane(True/False)
14087 Use XY trim plane (True/False)
14088 Use XY extension (True/False)
14089 Suppress thread (True/False)
14090 Suppress cut (True/False)
14177 Newly created? (new for X3)
14178 Machine offset (new for X3)
14179 Agie library type (new for X4)
14180 Agie library entity ID (new for X4)
14181 Agie library entity ID (new for X4)
14182 Power library type (new for X4)
14183 Power library entity ID (new for X4)
PARAMETER REFERENCE / Operation & toolpath parameters 311
Quick Start
PRM_WIRE_COMMON001
(this entire group removed for X3)
PRM_WIRE_COMMON002
(this entire group removed for X3)
PRM_WIRE_EE
PRM_WIRE_EE002
14184 Power library entity ID (new for X4)
14185 C-Hook assigned to Misc Vals button (new for X4)
14186 Agie Wire Diameterused to get value to temp pocket
op (new for X5)
14187 Agie Wire Diameterused to get finish value to temp
pocket op (new for X5)
14141 Lead in: N = none, A = arc, L = line (was 10700) (X)
14142 Lead out: N = none, A = arc, L = line (was 10701) (X)
14143 Radius of entry / exit arc (was 10702) (X)
14144 Sweep angle of entry / exit arc (in radians) (was 10703)
(X)
14026 Apply the value in max lead out length (even if zero)
(True/False)
14145 Maximum lead out length (was 10704) (X)
14146 Overlap amount (can be negative for tabs) (was 10705)
(X)
14027 Cut wire before leaving contour (True/False)
14162 Rapid from thread point
14163 Rapid to cut point
14164 Output stop code before tab
14165 Output stop code after tab
14166 Rapid to start position at end of program
14188 Stop on tab cut?? (new for X5)
14189 Distance from end of tab to stop (new for X5)
14147 Lead in: N = none, A = arc, L = line (was 10707) (X)
14148 Lead out: N = none, A = arc, L = line (was 10708) (X)
14149 Radius of entry arc (was 10709) (X)
14150 Sweep angle of entry arc (in radians) (was 10710) (X)
14028 Apply the value in max lead out length (even if 0)
(True/False)
14151 Maximum lead out length (was 10711) (X)
14152 Overlap amount (can be negative for tabs) (was 10712)
(X)
14158 Cut wire before leaving contour (True/False) (was
14029) (X)
312 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_WIRE_EE003
Wire contour
PRM_WIRE_CONTOUR
14167 Rapid from thread point
14168 Rapid to cut point
14169 Output stop code before tab
14170 Output stop code after tab
14171 Rapid to start position at end of program
14190 Stop on tab cut?? (new for X5)
14191 Distance from end of tab to stop (new for X5)
14116 Lead in: N = none, A = arc, L = line
14117 Lead out: N = none, A = arc, L = line
14118 Radius of exit arc
14119 Sweep angle of exit arc (in radians)
14120 Apply the value in max lead out length (even if 0)
(True/False)
14121 Maximum lead out length
14122 Overlap amount (can be negative for tabs)
14123 Cut wire before leaving contour (True/False)
14172 Rapid from thread point
14173 Rapid to cut point
14174 Output stop code before tab
14175 Output stop code after tab
14176 Rapid to start position at end of program
19192 Stop on tab cut?? (new for X5)
14193 Distance from end of tab to stop (new for X5)
PRM_WIRE_COMMON
10071 Infinite look-ahead is enabled (True/False)
14074 Taper active (True/False)
10055 Initial taper angle. Note: Positive or 0
14030 Taper direction: 0 = left, 1 = right
14031 Taper: 0=no cancel, 1=cancel after, 2=apply after
14032 Pass number to apply/cancel taper on
PARAMETER REFERENCE / Operation & toolpath parameters 313
Quick Start
14033 CW corner type :
0 = Conical
1 = Sharp
2 = Constant
3 = Other
4 = Fixed
5 = FishTail
14034 CW corner radius - if corner type fixed
14035 CCW corner type:
0 = Conical
1 = Sharp
2 = Constant
3 = Other
4 = Fixed
5 = FishTail
14036 CCW corner radius - if corner type = fixed
14037 CW UV arc type
14038 CW UV arc radius - if uv arc type = fixed
14039 CCW UV arc type
14040 CCW UV arc radius - if uv arc type = fixed
PRM_WIRE_EE
PRM_WIRE_EE002
14154 Apply max lead length to final skim pass (True/False) (was
10714) (X)
14153 Allow program to change cut position with tabs (True/
False) (was 10713) (X)
14137 Lead in comes from inside closed coutour (True/False)
(was 10115) (X)
10300 Skim cut method: 0 = one-way, 1 = reverse (was 10100) (X)
14041 Lead in comes from left of open coutour (True/False)
14132 Tab width (was 10108) (X)
14078 Distance from start of chain to thread
14130 Number of rough skim cuts (was 10104) (X)
14133 Number of tab cuts (was 10110) (X)
14134 Number of finish cuts - together (was 10111) (X)
14135 Number of finish cuts - separate (was 10112) (X)
14042 Cut order: 0 = all cuts together, 1 = tabs and finish together
2 = rough, tab and finish separtely
14043 Use special entry/exit to prevent part drop out (True/
False)
10072 Reset starting power setting number for tab cut (True/
False)
14136 Output tab with last rough cut (True/False) (was 10113) (X)
10114 Output tab as: true = glue stop, false = stop point
14044 Output subprogram labels (True/False)
314 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
PRM_WIRE_TAB
14045 Subprogram output mode: true = incremental,
false = absolute
14138 Multiple contours use same subprogram (True/False) (was
10116) (X)
PRM_CHAIN_SORT (X)
14075 Contour was created as a NoCore finish contour (True/
False)
14076 Expand this operation (True/False)
14077 This operation was created by expanding (True/False)
14079 Apply thread distance (old tab_height) (True/False)
14105 Contour type:
0 = No taper
1 = Taper IN
2 = Taper OUT
3 = Land UP
4 = Land DOWN
14106 Chain Height position:
0 = XY height
1 = Land height
2 = UV height
14107 Land height (XY extension)
14108 Land height: true = incremental, false = absolute
14109 Generate stop: 0 = always, 1 = first only, 2 = never
14110 Use sub offset (True/False)
14111 Sub offset
PRM_WIRE_TAB
PRM_WIRE_EE003 finish passes entry/exit info
14112 Perform rough cut option is checked (True/False)
14113 Tab cut option is checked (True/False)
14114 Skim cuts after tab option is checked (True/False)
14194 Reset trimmed leads (new for X5)
14195 Reset power pass when taper applied/canceled (new for
X5)
14092 Automatically calculate tab positions (True/False)
14093 Number of tabs (for auto tab)
14094 Tab point: (0 = start, 1 = midpoint, 2 = end) of tab
14095 Use advanced auto tab positioning (True/False)
14096 Use points on chain for start and tab positions (True/
False)
14097 Minimum distance from endpoint
PARAMETER REFERENCE / Operation & toolpath parameters 315
Quick Start
Wire canned cycles
PRM_WCAN_CYCLE
Nocore wirepaths
PRM_WIRE_NOCORE
14098 Minimum distance between tabs
14099 Minimum distance from sharp corner
14100 Sharp corner angle
14101 X dimension of maximum size shape to tab
14102 Y dimension of maximum size shape to tab
14103 Tab all shapes (True/False)
14104 Overwrite tab edit (True/False)
PRM_WIRE_COMMON
10400 Drill cycle
10401 Initial height
10402 Reference height
10403 Absolute height
10404 First peck increment
10405 Other peck increment
10406 Peck clearance
10409 Retract distance (was 10407) (X)
10408 Dwell
15071 Custom drill cycle parameters
15072 Custom drill cycle parameters
15073 Custom drill cycle parameters
15074 Custom drill cycle parameters
15075 Custom drill cycle parameters
15076 Custom drill cycle parameters
15077 Custom drill cycle parameters
15078 Custom drill cycle parameters
15079 Custom drill cycle parameters
15080 Custom drill cycle parameters
15081 Use custom parameters is checked (True/False)
PRM_WIRE_COMMO
N
(new for X3)
316 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Point wirepaths
PRM_WIRE_POINT
10053 Auto entry - go from start to thread to pocket start
(True/False)
10054 Auto exit - go to cut position afterward (True/False)
PRM_WIRE_EE
14154 Apply max lead length to final skimpass (True/False)
(was 10714) (X)
14153 Allow progr10713am to change cut position with tabs
(True/False) (was ) (X)
10208 Cutting method: 0 = zigzag, 1 = one way, etc. (was
10200) (X)
10217 Stepover percentage
14046 Roughing step size
14139 Roughing angle (was 10203) (X)
14140 Roughing direction : 0 = CW, 1 = CCW (was 10216) (X)
14047 Finishing enabled (True/False)
10206 Number of finish passes
10207 Finish pass step size
10212 Move to closest boundary point for finish (True/False)
14159 Output finish passes with rough pass (True/False) (was
14078) (X)
10211 Compensation for finish passes
14044 Output subprogram labels (True/False)
14045 Subprogram output mode: true = incremental, false =
absolute
14138 Multiple contours use same subprogram (True/False)
(was 10116) (X)
PRM_CHAIN_SORT (X)
14160 Minimize tool burial (True/False) (was 14079) (X)
14161 Create additional finish contour operation (True/False)
(was 14080) (X)
14110 Use sub offset (True/False)
14111 Sub offset
PRM_WIRE_COMMON (new for X3)
PARAMETER REFERENCE / Operation & toolpath parameters 317
Quick Start
4axis wirepaths
PRM_WIRE_4AXIS
PRM_WIRE_COMMO
N
(new for X3)
10071 Infinite look-ahead is enabled (True/False)
14127 4axis step size (if sync = NONE) (was 10023) (X)
10303 Old common trim_plane1
10309 4axis cutting method: 0 = taper, 1 = direct
PRM_WIRE_EE
PRM_WIRE_EE002
14154 Apply max lead length to final skim pass (True/False)
(was 10714) (X)
14153 Allow program to change cut position with tabs (True/
False) (was 10713) (X)
14137 Lead in comes from inside closed contour (True/False)
(was 10115) (X)
10300 Skim cut method: 0 = one-way, 1 = reverse
14041 Lead in comes from left of open contour (True/False)
14157 Tab width (was 10313) (X)
14078 Distance from start of chain to thread
10308 Number of rough skim cuts
14133 Number of tab cuts (was 10314) (X)
14134 Number of finish cuts - together (was 10315) (X)
14135 Number of finish cuts - separate (Unused) (was 10112)
(X)
14042 Unused for now in 4-axis
14043 Use special entry/exit to prevent part dropout (True/
False)
10072 Reset starting power setting number for tab cut (True/
False)
14136 Output tab with last rough cut (True/False) (was 10316)
(X)
10317 Output tab as: true = glue stop, false = stop point
14048 Sync option setting:
0 = None
1 = By entity
2 = By Branch
3 = By node
4 = By point
5 = Manual
6 = Manual/density
14044 Output subprogram labels (True/False)
14045 Subprogram output mode: true = incremental, false =
absolute
14138 Multiple contours use same subprogram (True/False)
(was 10116) (X)
14079
Apply thread distance (old tab_height) (True/False)
318 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
14109 Generate stop: 0 = always, 1 = first only, 2 = never
14110 Use sub offset (True/False)
14111 Sub offset
PRM_WIRE_TAB
PRM_WIRE_EE003
14112 Rough on (True/False)
14113 Tab on (True/False)
14114 Finish on (True/False)
PARAMETER REFERENCE / Machine definition parameters 319
Quick Start
Machine definition parameters
See Capturing
machine definition
parameters on page 45
to learn more about
capturing the parameter
values in your post.
The first section (Machine definition: visual reference) shows screen captures of all
themachine definition dialogs annotated with the parameter numbers. The second
section (Machine definition: list of parameters on page 354) lists all of the parameters by
group and number.
Machine definition: visual reference
Most of the fields shown in the following pages use parameters to store their values, but
the values for some fields are available as pre-defined variables, or even directly in the
NCI G-code. Use the following color key to determine the type of value:
Red labels indicate parameter numbers
Blue labels indicate pre-defined variable names
Green labels indicate NCI G-codes
Some fields are available as both parameters and pre-defined variables. In these cases,
you can use whichever method is most convenient. Typically, this will be the pre-defined
variable.
320 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Machine Definition Manager
17007
17008
17012
17013 17014
PARAMETER REFERENCE / Machine definition parameters 321
Quick Start
General machine parameters
Op. feed rate limits /axis motion/orientation tab
17054
17055
17056
17057
17058
17059
17062
17063
17064
17065
17022
17023
17066
17067
322 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Axis feed rate limits tab
17920
17922
17921
17004
17005
PARAMETER REFERENCE / Machine definition parameters 323
Quick Start
CPlane, WCS, HTC/VTL tab
17002
17003
324 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Coolant/Flushing/Options tab
17102
17101
17100
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
PARAMETER REFERENCE / Machine definition parameters 325
Quick Start
Tool/material libraries tab
17009
17010
17011
17675
17677
17678
17913
326 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Machine dynamics tab
17024
17025
17026 17027
17029
17030
17032
17034
17031
17028
17033
17034
PARAMETER REFERENCE / Machine definition parameters 327
Quick Start
Component geometry (common)
Solid geometry
17201
17239
17765
17204
17764
17268 / 17269 / 17270
328 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Block geometry
17201
17239
17765
17204
17764
17278
17277
17279
17280
17281
17282
PARAMETER REFERENCE / Machine definition parameters 329
Quick Start
Cylinder geometry
17201
17239
17765
17204
17764
17295
17841
17296
17300
17301
17302
330 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Extruded geometry
17201
17239
17765
17204
17764
17347
17343
17343 - 17346: extrude direction
PARAMETER REFERENCE / Machine definition parameters 331
Quick Start
Revolved geometry
17201
17239
17765
17204
17764
17359
17360 - 17362: line of revolution, endpoint 1
17363 - 17365: line of revolution, endpoint 2
332 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Position/Orientation tab
17207
17208
17209
17213
17214
17215
17216-17224
17201
PARAMETER REFERENCE / Machine definition parameters 333
Quick Start
Component properties (individual)
Automatic tool changer parameters
17598
17201
17596
17597
17866
334 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Chuck parameters
17446
17447
17849
17934
17201
PARAMETER REFERENCE / Machine definition parameters 335
Quick Start
Chuck geometry (parametric) dialog box
17201
17239
17765
17204
17764
17734
17442
17441
17443
17445
17444
336 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Chuck jaws parameters
17436
17201
17765
17204 17764
17840
17435
17437
17439
17440
17426
17427
17428
17681
17682
17732 17733
PARAMETER REFERENCE / Machine definition parameters 337
Quick Start
Bar stock parameters
17201
17239
17765
17204
17764
17295
17841
17296
17300
19035
19037
19038
19040
19039
338 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Turret parameters
17201
17611
17610
17613
17614
17608
17609
17612
17210
17211
17212
17902
17903
17908
17905
17904
17907
17906
PARAMETER REFERENCE / Machine definition parameters 339
Quick Start
Turret geometry (parametric) dialog box
17201
17239
17765
17204
17764
17630
17631
17632
340 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Gang tool parameters
17201
17946
17947
17948
17949
PARAMETER REFERENCE / Machine definition parameters 341
Quick Start
Tailstock parameters
17727
17728
17739
17737 17738
17210
17211
17212
17201
342 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Tailstock geometry
17201
17765
17204 17764
17552
17556
17554
17555
17553
17551
17736
PARAMETER REFERENCE / Machine definition parameters 343
Quick Start
Tailstock center parameters
17201
17239
17765
17204
17764
17448
17449
17450
17735
344 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Steady rest parameters
17210
17211
17212
17850
17201
PARAMETER REFERENCE / Machine definition parameters 345
Quick Start
Linear axis parameters
17391
17201
17396
17392
17719 17720
17721 17722
17390 17923
17924 17925
17729
17730
17394 17393
17395
346 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Linear axis parameters (programmed motion)
17723 17724
17725 17726
17929
17930
17950
17391
17201
17396
17390 17923
17924 17925
17927 17926
17928
PARAMETER REFERENCE / Machine definition parameters 347
Quick Start
Rotary axis parameters
17402
17201
17399 17401
17723
17724
17406
17407
17411
17412
17413
17933
17410
17408
17409
17403
17405
17404
17398 17397 17932
17847
17210
17211
17212
348 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Tool spindle parameters
17868
17201
17605
17606
17210
17211
17212
17892
17893
PARAMETER REFERENCE / Machine definition parameters 349
Quick Start
Tool component parameters
17851
17852
17853
350 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Router spindle parameters
17701
17201
17605
17606
17593
PARAMETER REFERENCE / Machine definition parameters 351
Quick Start
Router spindle position
17201
17586
17587
17588
352 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Router piggyback spindle parameters
17701
17201
17605
17606
17593
PARAMETER REFERENCE / Machine definition parameters 353
Quick Start
Router piggyback spindle position
17201
17586
17587
17588
354 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wire guide parameters
Machine definition: list of parameters
General machine information
CNC_MACHINE_TYPE
17201
17568
17570
17001 Machine type (mill / lathe)
17002 Is this a VTL? (lathe only)
17003 Default lathe WCS (None/Top/LatheZ=WorldZ)
MULTIAX_MOTION_
TYPE
Multi-axis motion control
MACHINE_DYNAMIC
S_TYPE
Machine dynamics information for high-feed
machining and operation timing calculations
AXIS_FEEDRATE_TY
PE004
Global machine axis feedrates
AXIS_FEEDRATE_TY
PE005
Global machine axis feedrates
PARAMETER REFERENCE / Machine definition parameters 355
Quick Start
17920 Maximum linear feedrate (inch) (New for X3)
17921 Maximum linear feedrate (mm) (New for X3)
17922 Maximum rotary feedrate (New for X3)
17004 Use machine feed/min, feed/rev
17005 Use machine deg/min
17006 Use machine inverse time values (removed for X3)
AXIS_FEEDRATE_TY
PE006
Toolpath operation feedrate limits - inch, mm deg/min
& inverse time are not used...
AXIS_FEEDRATE_TY
PE007
Toolpath operation feedrate limits - inch, mm deg/min
& inverse time are not used...
COOLANT_TYPE Coolant
17007 Control definition file
17008 Post-processor file
17009 Tool library files (inch), doctored
17010 Tool library files (mm), doctored
17011 Material library file (inch, -9999, mm)
17012 Comment to describe the machine
17013 Name of tool bar state to load with machine
17014 Use the toolbar state (True/False)
17015 Entity ID number for the cnc machine entity (this one!)
17016 Entity ID number of related control definition
17017 Entity ID number of machine base component entity
(removed for X3)
17018 Entity ID number of 1st component group entity
17019 Entity ID number of 1st machine reference position
17020 Entity ID number of list of axis combination entities
17021 Entity ID number of list of machining modes
17675 Insert catalog file
17676 Insert catalog file
17677 Holder catalog file
17678 Holder catalog file
17703 Maximum wire taper angle (degrees)
General component
information
Default construction plane
17814 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces. Each
one has its own parameter ID.
17815 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17816 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17817 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
356 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
17818 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17819 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17820 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17821 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17822 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17823 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17824 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17825 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17826 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17827 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17828 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17829 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17830 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17831 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17832 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17833 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17834 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
PARAMETER REFERENCE / Machine definition parameters 357
Quick Start
MACHINE_POSITION
MULTIAX_MOTION_TYPE
AXIS_POSITIONS
ENT_IDN_TYPE
ENT_IDN_TYPE001
17835 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17836 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17837 A segment of the unique identifier for this machine.
This is a 192-bit number broken up into 24 pieces,
1781417837.
17839 True = machine supports RTCP (rotation tool center
point) programming
17913 Switch to automatically load tools (new for X3)
17914 Machine version (new for X3)
17599 Name: used to identify tool changer and machine
reference positions
17600 Data source: USER_DEFINED, etc. vs.
MACHINE_REF_POS
17601 Control definition reference return code (G28, etc.)
index
AXIS_POSITIONS User positions for each of the axes
17602 Machine reference position list index
ENT_IDN_TYPE ent_idns of this and related entities in database
17022 Break combined rotary axis motion (True/False)
17023 Maximum combined angle before break is required
AXIS_COORD X axis motion
AXIS_COORD001 Y axis motion
AXIS_COORD002 Z axis motion
AXIS_COORD003 A axis motion
AXIS_COORD004 B axis motion
AXIS_COORD005 C axis motion
17253 This entity
17254 Next sibling entity
17255 Previous sibling entity
17256
1
st
child entity
17257 This entity
17258 Next sibling entity
17259 Previous sibling entity
17260
1
st
child entity
358 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
ENT_IDN_TYPE002
ENT_IDN_TYPE003
AXIS_COORD
AXIS_COORD001
AXIS_COORD002
AXIS_COORD003
AXIS_COORD004
AXIS_COORD005
GROUP_VIEW
17261 This entity
17262 Next sibling entity
17263 Previous sibling entity
17264
1
st
child entity
17265 This entity
17266 Next sibling entity
17267 Previous sibling entity
17268
1
st
child entity
17603 X coordinate value
17604 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17936 Y coordinate value
17937 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17938 Z coordinate value
17939 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17940 A coordinate value
17941 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17942 B coordinate value
17943 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17944 C coordinate value
17945 Type: ABS_TOOL_COORD, INC_TOOL_COORD, etc.
17704 View ID number (X2)
17705 View number (X2)
17706 Lathe Cplane coordinate (X2)
17707 Toolplane view matrix (X2)
17708 Toolplane view matrix (X2)
17709 Toolplane view matrix (X2)
17710 Toolplane view matrix (X2)
17711 Toolplane view matrix (X2)
17712 Toolplane view matrix (X2)
17713 Toolplane view matrix (X2)
PARAMETER REFERENCE / Machine definition parameters 359
Quick Start
Machine dynamics
MACHINE_DYNAMICS_TYPE
Parameters taken from HighFeed:
Group dynamic information, NOT from HighFeed
Axis feedrate limits
There are 8 groups of parameters. Each group has the same parameters, but each group
is applied to a different area. Most of these groups have been removed from Mastercam
X3. These are included only for reference for your older posts. Only the last two are still
used
17714 Toolplane view matrix (X2)
17715 Toolplane view matrix (X2)
17716 View origin in world (X2)
17717 View origin in world (X2)
17718 View origin in world (X2)
17024 Maximum change in feedrate to recombine segments
(%)
17025 Look-ahead as a percentage of tool diameter
17026 Maximum feedrate change per block (inch/min)
17027 Maximum feedrate change per block (mm/min)
17029 Segment length as % of tool diameter
17030 Minimum change in direction to slow down to
min_corner_fr
17031 Feedrate to slow down to at sharp corners (inch/min)
17032 Feedrate to slow down to at sharp corners (mm/min)
17033 Test diameter
17034 Cornering acceleration
17035 Timing increment for MT sync-list (Future Use)
17036 Machine motion acceleration value (in/min^2)
17037 Machine motion acceleration value (mm/min^2)
Table 1: Parameter groups for axis feedrate limits
Where used Parameter group name
Linear axis properties (inch) AXIS_FEEDRATE_TYPE (removed for X3)
Linear axis properties (mm) AXIS_FEEDRATE_TYPE001
(removed for X3)
Rotary axis properties (inch) AXIS_FEEDRATE_TYPE002
(removed for X3)
Rotary axis properties (mm) AXIS_FEEDRATE_TYPE003
(removed for X3)
360 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
AXIS_FEEDRATE_TYPE
AXIS_FEEDRATE_TYPE001
AXIS_FEEDRATE_TYPE002
AXIS_FEEDRATE_TYPE003
Machine axis feedrate limits (inch) AXIS_FEEDRATE_TYPE004
(removed for X3)
Machine axis feedrate limits (mm) AXIS_FEEDRATE_TYPE005
(removed for X3)
Operation feedrate limits (inch) AXIS_FEEDRATE_TYPE006
Operation feedrate limits (mm) AXIS_FEEDRATE_TYPE007
17642 Minimum feed per minute
(entire group removed for X3)
17643 Maximium feed per minute
17644 Minimum feed per revolution
17645 Maximium feed per revolution
17646 Minimum inverse feed rate
17647 Maximum inverse feed rate
17648 Minimum degrees per minute
17649 Maximum degrees per minute
17650 Minimum feed per minute
(entire group removed for X3)
17651 Maximium feed per minute
17652 Minimum feed per revolution
17653 Maximium feed per revolution
17654 Minimum inverse feed rate
17655 Maximum inverse feed rate
17656 Minimum degrees per minute
17657 Maximum degrees per minute
17658 Minimum feed per minute
(entire group removed for X3)
17659 Maximium feed per minute
17660 Minimum feed per revolution
17661 Maximium feed per revolution
17662 Minimum inverse feed rate
17663 Maximum inverse feed rate
17664 Minimum degrees per minute
17665 Maximum degrees per minute
17666 Minimum feed per minute
(entire group removed for X3)
17667 Maximium feed per minute
17668 Minimum feed per revolution
17669 Maximium feed per revolution
Table 1: Parameter groups for axis feedrate limits
Where used Parameter group name
PARAMETER REFERENCE / Machine definition parameters 361
Quick Start
AXIS_FEEDRATE_TYPE004
AXIS_FEEDRATE_TYPE005
AXIS_FEEDRATE_TYPE006
AXIS_FEEDRATE_TYPE007
17670 Minimum inverse feed rate
17671 Maximum inverse feed rate
17672 Minimum degrees per minute
17673 Maximum degrees per minute
17038 Minimum feed per minute
(entire group removed for X3)
17039 Maximium feed per minute
17040 Minimum feed per revolution
17041 Maximium feed per revolution
17042 Minimum inverse feed rate
17043 Maximum inverse feed rate
17044 Minimum degrees per minute
17045 Maximum degrees per minute
17046 Minimum feed per minute
(entire group removed for X3)
17047 Maximium feed per minute
17048 Minimum feed per revolution
17049 Maximium feed per revolution
17050 Minimum inverse feed rate
17051 Maximum inverse feed rate
17052 Minimum degrees per minute
17053 Maximum degrees per minute
17054 Minimum feed per minute
17055 Maximium feed per minute
17056 Minimum feed per revolution
17057 Maximium feed per revolution
17058 Minimum inverse feed rate
17059 Maximum inverse feed rate
17060 Minimum degrees per minute
17061 Maximum degrees per minute
17062 Minimum feed per minute
17063 Maximium feed per minute
17064 Minimum feed per revolution
17065 Maximium feed per revolution
17066 Minimum inverse feed rate
17067 Maximum inverse feed rate
17068 Minimum degrees per minute
17069 Maximum degrees per minute
362 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Axis combination info
AXIS_COMBO
General component information
Component header
MACHINE_COMPONENT_TYPE
17683 Entity ID of axis combination (New for X3)
17684 ID of first component in axis combo (closest to base)
(New for X3)
17685 ID of next component in axis combo. (New for X3)
17686 ID of next component in axis combo. (New for X3)
17687 ID of next component in axis combo. (New for X3)
17688 ID of next component in axis combo. (New for X3)
17689 ID of next component in axis combo. (New for X3)
17690 ID of next component in axis combo. (New for X3)
17691 ID of next component in axis combo. (New for X3)
17692 ID of next component in axis combo. (New for X3)
17693 ID of next component in axis combo. (New for X3)
17694 ID of next component in axis combo. (New for X3)
17695 ID of next component in axis combo. (New for X3)
17696 Axis combination user description (New for X3)
19958 Component type (numeric) (New for X3)
19959 Component ID (numeric) (New for X3)
19960 Component type (string) (New for X3)
17201 Component name
17202 Component group id
17203 Type of component (machine base,
chuck, turret, etc)
17204 Color to draw component
17205 Minimum linear/rotational travel limits
(in(mm)/rad)
Deleted in X2
17206 Maximum linear/rotational travel limits
(in(mm)/rad)
Deleted in X2
17207 Reference point on component in world
coordinates
17208 Reference point on component in world
coordinates
17209 Reference point on component in world
coordinates
PARAMETER REFERENCE / Machine definition parameters 363
Quick Start
17210 Point on component which is actually
positioned in the NC program (world
coordinates)
17211 Point on component which is actually
positioned in the NC program (world
coordinates)
17212 Point on component which is actually
positioned in the NC program (world
coordinates)
17213 Position of reference point with
component on machine at initial
position in world coordinates
17214 Position of reference point with
component on machine at initial
position in world coordinates
17215 Position of reference point with
component on machine at initial
position in world coordinates
17216 Transformation matrix to put
component on machine at initial
position
17217 Transformation matrix to put
component on machine at initial
position
17218 Transformation matrix to put
component on machine at initial
position
17219 Transformation matrix to put
component on machine at initial
position
17220 Transformation matrix to put
component on machine at initial
position
17221 Transformation matrix to put
component on machine at initial
position
17222 Transformation matrix to put
component on machine at initial
position
17223 Transformation matrix to put
component on machine at initial
position
17224 Transformation matrix to put
component on machine at initial
position
17225 Transformation matrix to put
component at current NC position =
initXform initially
17226 Transformation matrix to put
component at current NC position =
initXform initially
364 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
17227 Transformation matrix to put
component at current NC position =
initXform initially
17228 Transformation matrix to put
component at current NC position =
initXform initially
17229 Transformation matrix to put
component at current NC position =
initXform initially
17230 Transformation matrix to put
component at current NC position =
initXform initially
17231 Transformation matrix to put
component at current NC position =
initXform initially
17232 Transformation matrix to put
component at current NC position =
initXform initially
17233 Transformation matrix to put
component at current NC position =
initXform initially
17234 Current position of anchorPt (world
coordinates) = anchorPt at start of
program most of the time...
17235 Current position of anchorPt (world
coordinates) = anchorPt at start of
program most of the time...
17236 Current position of anchorPt (world
coordinates) = anchorPt at start of
program most of the time...
17764 Chord tolerance for MachineWorks
polygons. (X2)
17765 Transparency setting. (X2)
17766 String ID for the component. This is
unique for each component. Example:
69D20EEB-02E7-11DC-B46A-
444553544200
(new for X3)
1776717788 A segment of the unique component
group identifier. This is a 192-bit
number broken up into 24 pieces.
(removed for X3)
ENT_IDN_TYPE001
17237 Entity id number of owner machine
17451 Dont show this component in
simulation (True/False)
17238 Component is expanded state in
dialogs:
bit 0 - MDM dialog
bit 1 - axis combination dialog
remaining bits -> future expansion
(Turret Mgr, etc)
PARAMETER REFERENCE / Machine definition parameters 365
Quick Start
17239 Type of geometry used to define the
component
SOLID_COMPONENT (X3)
BLOCK_COMPONENT (X3)
CYLINDER_COMPONENT (X3)
EXTRUDED_COMPONENT (X3)
REVOLVED_COMPONENT (X3)
STL_COMPONENT (new for X5)
STOCK_COMPONENT_TYPE (X3)
MISC_COMPONENT_TYPE (for future use)
MACHINE_BASE_COMPONENT_TYPE (for future use)
LINEAR_AXIS_COMPONENT_TYPE (X3)
ROTARY_AXIS_COMPONENT_TYPE (X3)
RECT_TABLE_COMPONENT_TYPE (for future use)
ROUND_TABLE_COMPONENT_TYPE (for future use)
WIRE_TABLE_COMPONENT_TYPE (for future use)
VISE_JAW_COMPONENT_TYPE (for future use)
VISE_COMPONENT_TYPE (for future use)
CHUCKJAWS_COMPONENT_TYPE (X3)
Renamed from
CHUCK_JAW_COMPONENT_TYPE
(X2)
CHUCK_COMPONENT_TYPE (X3)
COLLET_COMPONENT_TYPE (X3)
GUIDE_BUSHING_COMPONENT_TYPE (for future use)
LATHE_CENTER_COMPONENT_TYPE (X3)
Renamed from
TAILSTOCK_CENTER_COMPONENT_T
YPE (X2)
TAILSTOCK_COMPONENT_TYPE (X3)
STEADYREST_COMPONENT_TYPE (X3)
TOOL_COMPONENT_TYPE (X3)
WIRE_UPPER_GUIDE_COMPONENT_TY
PE
(X3)
WIRE_LOWER_GUIDE_COMPONENT_TY
PE
(X3)
DRILL_BLOCK_STATION_COMPONENT
_TYPE
(X3) [Review]
MULTI_HEAD_COMPONENT_TYPE
MH_PIGGYBACK_COMPONENT_TYPE
ATC_COMPONENT_TYPE
TOOL_SPINDLE_COMPONENT_TYPE
TURRET_COMPONENT_TYPE
MULTI_TOOL_COMPONENT_TYPE (Future Use)
366 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
COMPONENT_GROUP_TYPE
Solid geometry properties
SOLID_COMPONENT
SOLID_COMPONENT_01
SOLID_COMPONENT_02
STL_COMPONENT
STL_COMPONENT_01
STL_COMPONENT_02
Block geometry properties
BLOCK_COMPONENT
1778917812 A segment of the unique component group identifier.
This is a 192-bit number broken up into 24 pieces. (no
longer used)
17268 Entity ID of solid (new for X3)
17269 Solid geometry file (new for X3)
17270 STL file for solid (new for X3)
17271 Entity ID of solid (new for X3)
17272 Solid geometry file (new for X3)
17273 STL file for solid (new for X3)
17274 Entity ID of solid (new for X3)
17275 Solid geometry file (new for X3)
17276 STL file for solid (new for X3)
17952 Entity ID of Mastercam STL entity (new for X5)
17953 Entity ID of Mastercam STL entity (new for X5)
17954 Entity ID of Mastercam STL entity (new for X5)
17277 Length of block (new for X3)
17278 Width of block (new for X3)
17279 Height of block (new for X3)
17280 Base point (X) (new for X3)
17281 Base point (Y) (new for X3)
17282 Base point (Z) (new for X3)
PARAMETER REFERENCE / Machine definition parameters 367
Quick Start
BLOCK_COMPONENT_01
BLOCK_COMPONENT_02
Cylinder geometry properties
CYLINDER_COMPONENT
CYLINDER_COMPONENT_01
17283 Length (new for X3)
17284 Width (new for X3)
17285 Height (new for X3)
17286 Base point (X) (new for X3)
17287 Base point (Y) (new for X3))
17288 Base point (Z) (new for X3))
17289 Length (new for X3)
17290 Width (new for X3)
17291 Height (new for X3)
17292 Base point (X) (new for X3)
17293 Base point (Y) (new for X3)
17294 Base point (Z) (new for X3)
17295 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17296 Length of cylinder (new for X3)
17297 Axis orientation vector (X) (new for X3)
17298 Axis orientation vector (Y) (new for X3)
17299 Axis orientation vector (Z) (new for X3)
17300 Base point (X) (new for X3)
17301 Base point (Y) (new for X3)
17302 Base point (Z) (new for X3)
17841 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17303 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17304 Length of cylinder (new for X3)
17305 Axis orientation vector (X) (new for X3)
17306 Axis orientation vector (Y) (new for X3)
17307 Axis orientation vector (Z) (new for X3)
17308 Base point (X) (new for X3)
17309 Base point (Y) (new for X3)
17310 Base point (Z) (new for X3)
368 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
CYLINDER_COMPONENT_02
CYLINDER_COMPONENT_03
CYLINDER_COMPONENT_04
17842 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17311 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17312 Length of cylinder (new for X3)
17313 Axis orientation vector (X) (new for X3)
17314 Axis orientation vector (Y) (new for X3)
17315 Axis orientation vector (Z) (new for X3)
17316 Base point (X) (new for X3)
17317 Base point (Y) (new for X3)
17318 Base point (Z) (new for X3)
17843 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17319 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17320 Length of cylinder (new for X3)
17321 Axis orientation vector (X) (new for X3)
17322 Axis orientation vector (Y) (new for X3)
17323 Axis orientation vector (Z) (new for X3)
17324 Base point (X) (new for X3)
17325 Base point (Y) (new for X3)
17326 Base point (Z) (new for X3)
17844 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17327 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17328 Length of cylinder (new for X3)
17329 Axis orientation vector (X) (new for X3)
17330 Axis orientation vector (Y) (new for X3)
17331 Axis orientation vector (Z) (new for X3)
17332 Base point (X) (new for X3)
17333 Base point (Y) (new for X3)
17334 Base point (Z) (new for X3)
17845 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
PARAMETER REFERENCE / Machine definition parameters 369
Quick Start
CYLINDER_COMPONENT_05
Extruded profile geometry properties
EXTRUDED_COMPONENT
EXTRUDED_COMPONENT_01
EXTRUDED_COMPONENT_02
Revolved profile geometry properties
REVOLVED_COMPONENT
17335 Outer radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17336 Length of cylinder (new for X3)
17337 Axis orientation vector (X) (new for X3)
17338 Axis orientation vector (Y) (new for X3)
17339 Axis orientation vector (Z) (new for X3)
17340 Base point (X) (new for X3)
17341 Base point (Y) (new for X3)
17342 Base point (Z) (new for X3)
17846 Inner radius of cylinder
(Note: This is a radius value, but the entry field on the
dialog box is a diameter value.) (new for X3)
17343 Extrude profile entity ID (new for X3)
17344 Extrude direction vector (X) (new for X3)
17345 Extrude direction vector (Y) (new for X3)
17346 Extrude direction vector (Z) (new for X3)
17347 Extrude distance (new for X3)
17349 Extrude profile entity ID (new for X3)
17350 Extrude direction vector (X) (new for X3)
17351 Extrude direction vector (Y) (new for X3)
17352 Extrude direction vector (Z) (new for X3)
17353 Extrude distance (new for X3)
17354 Extrude profile entity ID (new for X3)
17355 Extrude direction vector (X) (new for X3)
17356 Extrude direction vector (Y) (new for X3)
17357 Extrude direction vector (Z) (new for X3)
17358 Extrude distance (new for X3)
17359 Revolve profile entity ID (new for X3)
17360 Line of revolution, endpoint 1 (X) (new for X3)
370 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
REVOLVED_COMPONENT_01
REVOLVED_COMPONENT_02
Stock component
This section describes parameters for cylindrical bar stock.
Stock margin parameters are output with the machine group parameters,
BARSTOCK_TYPE.
Stock geometry parameters for other stock models is output using the standard
component geometry parameters: for example, REVOLVED_COMPONENT.
STOCK_COMPONENT_TYPE
BARSTOCK_GEO_TYPE
17361 Line of revolution, endpoint 1 (Y) (new for X3)
17362 Line of revolution, endpoint 1 (Z) (new for X3)
17363 Line of revolution, endpoint 2 (X) (new for X3)
17364 Line of revolution, endpoint 2 (Y) (new for X3)
17365 Line of revolution, endpoint 2 (Z) (new for X3)
17366 Revolve profile entity ID (new for X3)
17367 Line of revolution, endpoint 1 (X) (new for X3)
17368 Line of revolution, endpoint 1 (Y) (new for X3)
17369 Line of revolution, endpoint 1 (Z) (new for X3)
17370 Line of revolution, endpoint 2 (X) (new for X3)
17371 Line of revolution, endpoint 2 (Y) (new for X3)
17372 Line of revolution, endpoint 2 (Z) (new for X3)
17373 Revolve profile entity ID (new for X3)
17374 Line of revolution, endpoint 1 (X) (new for X3)
17375 Line of revolution, endpoint 1 (Y) (new for X3)
17376 Line of revolution, endpoint 1 (Z) (new for X3)
17377 Line of revolution, endpoint 2 (X) (new for X3)
17378 Line of revolution, endpoint 2 (Y) (new for X3)
17379 Line of revolution, endpoint 2 (Z) (new for X3)
BARSTOCK_GEO_TYPE
TUBE_GEO_TYPE
17380 Ref position at max Z (new for X3)
17381 Use margins?(new for X3)
17382 Hole in stock? (new for X3)
17383 OD margin (new for X3)
PARAMETER REFERENCE / Machine definition parameters 371
Quick Start
TUBE_GEO_TYPE
TUBE_GEO_TYPE_01
TUBE_GEO_TYPE_02
Linear axis component
LINEAR_AXIS_COMPONENT_TYPE
AXIS_PARAMS_TYPE
17384 ID margin (new for X3)
17385 Left margin (new for X3))
17386 Right margin (new for X3)
CYLINDER_COMPON
ENT
17387 Inner radius (new for X3)
CYLINDER_COMPON
ENT
17388 Inner radius (new for X3)
CYLINDER_COMPON
ENT
17389 Inner radius (new for X3)
AXIS_PARAMS_TYPE Parameters for direction of physical axis
AXIS_PARAMS_TYPE
001
Parameters for direction of programmed axis (when
different from physical axis direction).
17390 Axis label to be output in the NC program for absolute
axis motion.
17391 Axis to drive on the machine. 1, 2, 3, or -1,
corresponding to X_AXIS, Y_AXIS, Z_AXIS,
MACRO_AXIS.
17923 Axis label to be output in the NC program for
incremental axis motion. (New for X3)
17924 Rapid traverse rate limit (inch) (New for X3)
17925 Rapid traverse rate limit (mm) (New for X3)
17396 Axis is output as diameter (X & Y only) (True/False)
17951 1 = the Define macro-driven axis feed rate option is
selected. This enables the feed rate option for axis
motion events (MT only). (new for X4)
[these parameters are used to describe physical axis
motion]
372 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
AXIS_PARAMS_TYPE001
TRAVEL_LIMITS_TYPE
17392 Base axis direction with relation to the WCS: X_AXIS,
Y_AXIS, Z_AXIS, NEG_X_AXIS, NEG_Y_AXIS,
NEG_Z_AXIS (new for X3)
17393 Tilt the machine axis (True/False)
17394 Tilt axis: Axis of rotation for axis out of plane (WCS
axis!); X_AXIS,-9999, Y_AXIS, Z_AXIS, NEG_X_AXIS,-
9999, NEG_Y_AXIS, NEG_Z_AXIS
17395 Tilt angle: Angle of rotation for tilt,-9999, right hand
rule (degrees)
TRAVEL_LIMITS_TYP
E
inch travel limits
TRAVEL_LIMITS_TYP
E001
mm travel limits
17729 Initial defined axis position (measured along the axis)
(inch)
17730 Initial defined axis position (measured along the axis)
(mm)
17731 Start-up axis position for simulation
[these parameters are used to describe programmed
axis motion, where different from physical]
17950 Base axis direction with relation to the WCS: X_AXIS,
Y_AXIS, Z_AXIS, NEG_X_AXIS, NEG_Y_AXIS,
NEG_Z_AXIS (new for X3)
17926 Tilt the machine axis (True/False) (new for X3)
17927 Tilt axis: Axis of rotation for axis out of plane (WCS
axis!); X_AXIS,-9999, Y_AXIS, Z_AXIS, NEG_X_AXIS,-
9999, NEG_Y_AXIS, NEG_Z_AXIS (new for X3)
17928 Tilt angle: Angle of rotation for tilt,-9999, right hand
rule (degrees) (new for X3)
TRAVEL_LIMITS_TYPE002 inch travel limits (new for X3)
TRAVEL_LIMITS_TYPE003 mm travel limits (new for X3)
17929 Initial defined axis position (measured along the axis)
(inch) (new for X3)
17930 Initial defined axis position (measured along the axis)
(mm) (new for X3)
17931 Initial position for simulation (G28) (new for X3)
17719 Minimum travel limit (physical motion) (inch) (New
for X3)
17720 Maximum travel limit (physical motion) (inch) (New
for X3)
PARAMETER REFERENCE / Machine definition parameters 373
Quick Start
TRAVEL_LIMITS_TYPE001
TRAVEL_LIMITS_TYPE002
TRAVEL_LIMITS_TYPE003
TRAVEL_LIMITS_TYPE004
Rotary axis component
ROTARY_AXIS_COMPONENT_TYPE
17721 Minimum travel limit (physical motion) (mm) (New
for X3)
17722 Maximum travel limit (physical motion) (mm) (New
for X3)
17723 Minimum travel limit (programmed motion) (inch).
Also, rotary axis minimum travel limit. (New for X3)
17724 Maximum travel limit (programmed motion) (inch).
Also, rotary axis maximum travel limit. (New for X3)
17725 Minimum travel limit (programmed motion) (mm)
(New for X3)
17726 Maximum travel limit (programmed motion) (mm)
(New for X3)
17727 Tailstock retracted position (New for X3)
17728 Maximum advanced position of tailstock (New for X3)
17397 Axis label to be output in the NC program for absolute
axis motion.
17398 Axis to drive on the machine. 1, 2, 3, or -1,
corresponding to A_AXIS, B_AXIS, C_AXIS,
MACRO_AXIS.
17932 Axis label to be output in the NC program for
incremental axis motion. (New for X3)
17933 Maximum feed rate (degrees/minute) (New for X3)
17399 Axis of rotation with respect to machine linear axes
17401 Axis '0 deg' vector with relation to machine axes. Lies in
plane perpendicular to axis of rotation
17402 TRUE = CW is positive direction for this axis
17403 Tilted (nutated) machine axis (True/False)
17404 Tilt axis: Axis of rotation for axis out of plane (WCS
axis!). X_AXIS,-9999, Y_AXIS, Z_AXIS, NEG_X_AXIS,-
9999, NEG_Y_AXIS, NEG_Z_AXIS
374 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Machine table
(These parameters for future use. )
RECT_TABLE_COMPONENT_TYPE
TSLOT_GEO_TYPE
17405 Angle of rotation for tilted axis,-9999, right hand rule
(degrees)
17406 Minimum reposition angle (degrees)
17407 Maximum reposition angle (degrees)
17408 This an indexing axis (True/False)
17409 Index angle (must divide evenly into 360)
17410 Output type: Signed continuous,-9999, signed
direction (0-360 deg), shortest direction (0 - 360 deg)
17411 Break rotary moves (True/False)
17412 Use chordal deviation to determine when to break
(True/False)
17413 Maximum angular move before breaking
TRAVEL_LIMITS_TYP
E002
Min/max linear travel limits measured along axis
direction (X2)
17847 Defined angle position (initial angle position) (New
for X3)
17848 Initial angle position for simulation (G28) (New for
X3)
17952 1 = the Define macro-driven axis feed rate option is
selected. This enables the feed rate option for axis
motion events (MT only). (new for X4)
TSLOT_GEO_TYPE
17414 Slot spacing (future use) (New for X3)
17415 Axis direction (future use) (New for X3)
17416 Length (future use) (New for X3)
17417 Width (future use) (New for X3)
17418 Height (future use) (New for X3)
17419 Pocket width (future use) (New for X3)
17420 Pocket height (future use) (New for X3)
17421 Key width (future use) (New for X3)
17422 Key height (future use) (New for X3)
17423 Slot width (future use) (New for X3)
17424 Depth (future use) (New for X3)
17425 Length (future use) (New for X3)
PARAMETER REFERENCE / Machine definition parameters 375
Quick Start
Chuck
CHUCK_COMPONENT_TYPE
CHUCK_GEO_TYPE
Chuck jaws
CHUCKJAWS_COMPONENT_TYPE
CHUCKJAW_GEO_TYPE
17446 Minimum useable spindle RPM
17447 Maximum programmable spindle RPM
17674 Jaw position in X (longitudinal) (removed in X3)
17734 Number of jaws (new for X3)
17934 Jaw position, longitudinal (world X axis) (new for X3)
CHUCK_GEO_TYPE
17849 Automatically set jaw position from channel depth
(True/False) (new for X3)
17441 OD of chuck (new for X3)
17442 ID of chuck (new for X3)
17443 Thickness of chuck (new for X3)
17444 Channel width (new for X3)
17445 Channel depth (new for X3)
17430 [not used] (new for X3)
17840 Grip length (new for X3)
17435 Grip reference point (Z) (new for X3)
17436 Grip reference point (radius) (new for X3)
17437 Clamping method (new for X3)
17438 Active spindle (new for X3)
17439 Get clamp position from stock? (new for X3)
17440 Grip on maximum diameter? (new for X3)
CHUCKJAW_GEO_T
YPE
17426 Jaw width (new for X3)
17427 Width of step (new for X3)
17428 Thickness of chuck jaw (new for X3)
17732 Parametric profile or chained profile? (new for X3)
17733 Entity ID of chain used for profile (new for X3)
17681 Jaw height (new for X3)
17682 Height of jaw step (new for X3)
376 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Collet
COLLET_COMPONENT_TYPE
Tailstock
TAILSTOCK_COMPONENT_TYPE
TAILSTOCK_GEO_TYPE
Lathe center
LATHE_CENTER_COMPONENT_TYPE
LATHE_CENTER_GEO_TYPE
Steady rest
STEADYREST_COMPONENT_TYPE
TUBE_GEO_TYPE (new for X3)
TRAVEL_LIMITS_TYP
E004
(new for X3)
17737 Tailstock advance/retract feed rate (inch) (new for X3)
17738 Tailstock advance/retract feed rate (mm) (new for X3)
17739 Is quill programmable? (new for X3)
TAILSTOCK_GEO_TY
PE
17551 Quill diameter (new for X3)
17736 Quill length
17552 Amount of quill extension (new for X3)
17553 Length of tailstock block (new for X3)
17554 Width of tailstock block (new for X3)
17555 Height of tailstock block (new for X3)
17556 Height at which quill is mounted on block (new for
X3)
LATHE_CENTER_GEO_TYPE
17735 Position along axis of tailstock center (new for X3)
17448 Diameter
17449 Point angle (new for X3)
17450 Length of center (new for X3)
17850 Entity ID of chain used for collision avoidance
boundary (new for X3)
STEADYREST_GEO_
TYPE
PARAMETER REFERENCE / Machine definition parameters 377
Quick Start
STEADYREST_GEO_TYPE
Tool components
TOOL_COMPONENT_TYPE
TOOL_LOCATION_TYPE
17559 (future use) (new for X3)
17560 (future use) (new for X3)
17561 (future use) (new for X3)
17562 (future use) (new for X3)
17740 (future use) (new for X3)
17741 (future use) (new for X3)
17742 (future use) (new for X3)
TOOL_LOCATION_TY
PE
17918 Entity ID of tool geometry (new for X3)
17919 Color of tool holder geometry (new for X3)
17240 (not currently used)
17241 (not currently used)
17242 (not currently used)
17243 (not currently used)
17851 Number of ATC pocket (new for X3)
17852 Number of turret face/index position (new for X3)
17853 Number of gang tool position (new for X3)
17854 (not currently used)
17855 (not currently used)
17252 (not currently used)
17856 (not currently used)
17857 (not currently used)
17858 (not currently used)
17859 (not currently used)
17860 (not currently used)
17861 (not currently used)
17862 (not currently used)
17863 (not currently used)
17864 (not currently used)
17865 (not currently used)
17935 (not currently used)
378 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Wire upper guide
WIRE_UPPER_GUIDE_COMPONENT_TYPE
WIRE_GUIDE_GEO_TYPE
Wire lower guide
WIRE_LOWER_GUIDE_COMPONENT_TYPE
WIRE_LOWER_GUIDE_GEO_TYPE
Router spindles (main & piggyback)
MULTI_HEAD_COMPONENT_TYPE
MH_PIGGYBACK_COMPONENT_TYPE
17568 Thread time (new for X3)
17570 Align with lower guide? (Y/N) (new for X3)
WIRE_GUIDE_GEO_T
YPE
17564 Major radius (new for X3)
17565 Minor radius (new for X3)
17566 Included angle (new for X3)
17567 Cylinder height (new for X3)
WIRE_LOWER_GUIDE_GEO_TYPE
17697 Major radius (new for X3)
17698 Minor radius (new for X3)
17699 Included angle (new for X3)
17700 Cylinder height (new for X3)
17605 Minimum useable spindle RPM
17606 Maximum programmable spindle RPM
17586 Anchor point/position on machineX offset
17587 Anchor point/position on machineY offset
17588 Anchor point/position on machineZ offset
17592 Bitwise number containing the heads that are used
17593 Work offset number
17594 Entity ID number of first head
17701 View number (new for X3)
17605 Minimum useable spindle RPM
17606 Maximum programmable spindle RPM
17586 Anchor point/position on machineX offset
17587 Anchor point/position on machineY offset
17588 Anchor point/position on machineZ offset
PARAMETER REFERENCE / Machine definition parameters 379
Quick Start
Automatic toolchanger
ATC_COMPONENT_TYPE
Mill/live tool spindles
TOOL_SPINDLE_COMPONENT_TYPE
Turret
TURRET_COMPONENT_TYPE
17593 Work offset number
17702 View number (new for X3)
17596 Index method
17597 Tool change time
17598 Max. number of tools in carousel
17866 Time to index between pockets (new for X3)
MACHINE_POSITION
17605 Minimum useable spindle RPM
17606 Maximum programmable spindle RPM
17607 Component id number for associated ATC (removed for
X3)
17868 User ID string for associated turret or ATC component
(new for X3)
17892 Face or index position of associated turret (new for
X3)
17893 Tool transform status (new for X3)
17608 Axis of turret rotation - defines CW/CCW direction for
auto-station numbering
17609 Defines direction of tools in indexed position - must be
perpendicular to rotaryAxis
17610 Time to index between adjacent stations (sec.)
17611 Number of tool stations defined
17612 Index type: CW, CCW, MINIMIZE
POLYGON_GEO_TYP
E
Turret parametric geometry definition (new for X3)
17613 Minimum spindle speed (RPM) for live tools
17614 Maximum spindle speed (RPM) for live tools
17902 Position indexed at start of program (new for X3)
17903 Slant-bed angle (new for X3)
17904 Gauge length in X (cross tools) (new for X3)
17905 Gauge length in Z (face tools) (new for X3)
17906 Use gauge length in X? (new for X3)
380 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
POLYGON_GEO_TYPE
POLYGON_GEO_TYPE001
Gang tool block (lathe)
GANG_TOOL_COMPONENT_TYPE
Coolant type
COOLANT_TYPE
17907 Use gauge length in Z? (new for X3)
17908 Tool location radiusdefault location for mounting
tools. (new for X3)
17630 Width (diameter) of turret across flats (New for X3)
17631 Thickness (New for X3)
17632 Number of faces or index positions (New for X3)
17633 Fillet radius (New for X3)
17634 Width (diameter) of turret across flats (New for X3)
17635 Thickness (New for X3)
17636 Number of faces or index positions (New for X3)
17637 Fillet radius (New for X3)
17946 Minimum spindle speed (RPM) for live tools (new for
X3)
17947 Maximum spindle speed (RPM) for live tools (new for
X3)
17948 Slant-bed angle (new for X3)
17949 Turret index position (new for X3)
17070 Text description for coolant/flushing option 1
17071 Text description for coolant/flushing option 2
17072 Text description for coolant/flushing option 3
17073 Text description for coolant/flushing option 4
17074 Text description for coolant/flushing option 5
17075 Text description for coolant/flushing option 6
17076 Text description for coolant/flushing option 7
17077 Text description for coolant/flushing option 8
17078 Text description for coolant/flushing option 9
17079 Text description for coolant/flushing option 1
17080 Text description for coolant enabled state for coolant
option 1
17081 Text description for coolant enabled state for coolant
option 2
PARAMETER REFERENCE / Machine definition parameters 381
Quick Start
17082 Text description for coolant enabled state for coolant
option 3
17083 Text description for coolant enabled state for coolant
option 4
17084 Text description for coolant enabled state for coolant
option 5
17085 Text description for coolant enabled state for coolant
option 6
17086 Text description for coolant enabled state for coolant
option 7
17087 Text description for coolant enabled state for coolant
option 8
17088 Text description for coolant enabled state for coolant
option 9
17089 Text description for coolant enabled state for coolant
option 10
17090 Text description for coolant disabled state for coolant
option 1
17091 Text description for coolant disabled state for coolant
option 2
17092 Text description for coolant disabled state for coolant
option 3
17093 Text description for coolant disabled state for coolant
option 4
17094 Text description for coolant disabled state for coolant
option 5
17095 Text description for coolant disabled state for coolant
option 6
17096 Text description for coolant disabled state for coolant
option 7
17097 Text description for coolant disabled state for coolant
option 8
17098 Text description for coolant disabled state for coolant
option 9
17099 Text description for coolant disabled state for coolant
option 10
17100 Text to be used for Coolant button label on Toolpath
parameters page.
17101 1st 'coolant off' command shuts off ALL coolant
commands on the machine (True/False)
17102 Use coolant commands in post-processor (provided
for backward compatibility) (True/False)
17103 Use event list to activate coolant
17104 (not used in X3)
382 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Control definition parameters
See Capturing control
definition
parameters on page 48
to learn more about
capturing the parameter
values in your post.
The first section (Control definition: visual reference) shows screen captures of all
themachine definition dialogs annotated with the parameter numbers. The second
section (Control definition: list of parameters on page 412) lists all of the parameters by
group and number.
Control definition: visual reference
Most of the fields shown in the following pages use parameters to store their values, but
the values for some fields are available as pre-defined variables, or even directly in the
NCI G-code. Use the following color key to determine the type of value:
Red labels indicate parameter numbers
Blue labels indicate pre-defined variable names
Green labels indicate NCI G-codes
Some fields are available as both parameters and pre-defined variables. In these cases,
you can use whichever method is most convenient. Typically, this will be the pre-defined
variable.
Overall parameters
18010
18464
18004
18210
PARAMETER REFERENCE / Control definition parameters 383
Quick Start
Tolerance page
mtol$
vert_tol$
xtol$
ltol$
minarc$
minrad$
maxrad$
helix_tol$
arc_tol$
atol$
Names of metric variables are the inch names prefixed with met_
max_atol$
chord_tol$
18010
18464
18004
18210
trunc_mtol$
384 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Communications page
18111
18118
18117
18113 18107 18112 18108 18109
18116
18114
18115
18110
18106
18105
PARAMETER REFERENCE / Control definition parameters 385
Quick Start
Files page
18160
18161
18166
18162
18163
18164
18165
spathnc$
spathnci$
err_file$
err_msg$
sextnc$
18760
18752
18753
18756
18754
18750
18751
18755
18759
386 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
NC Dialog page (MillLatheRouter)
18356
Lathe
18360
18256
Mill
18260
18306
Router
18310
PARAMETER REFERENCE / Control definition parameters 387
Quick Start
NC Output page
absinc$
1051
1008 1053
1052
18458
omitseq$
seqno$
seqinc$
seqmax$
sub_seq_type$
use_dec_seq$
dec_seq_right$
dec_seq_left$
space$
omitcrlf$
eob$
prv_eob$
388 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Misc. Int/Real Values page
mr1$ - mr10$ mi1$ - mi10$
18722
18721
18723
(default values only; actual values from operation)
PARAMETER REFERENCE / Control definition parameters 389
Quick Start
Work System page
workcoord$
18507
tplanemode$
390 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Tool page (MillRouter)
18510 18511
18508
18514
18515
18516
18513
bldnxtool$
PARAMETER REFERENCE / Control definition parameters 391
Quick Start
Tool page (Lathe)
18508 (18761)
18509 (18762) 18512 (18765) 18510 (18763) 18511 (18764)
18517 (18770)
18514 (18767)
18515 (18768)
18516 (18769)
18513 (18766)
NOTE: parameter numbers in ( ) are for Mill/Turn operations
392 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Linear page (MillRouter)
18518
nobrk$
nobrkxz$
nobrkyz$
cutmode$
PARAMETER REFERENCE / Control definition parameters 393
Quick Start
Linear page (LatheMill/TurnWire)
18518 (18771)
NOTE: Parameter numbers in ( ) are for mill/turn operations
Rapid motion parameters not available for Wire.
lcutmode$
394 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Arc page (MillRouter)
do_xz_arcs$
do_yz_arcs$
do_xy_arcs$
arctype$
arctypexz$
arctypeyz$
helix_arcs$
arccheck$
do_full_arc_xz$
breakarcsxz$
do_full_arc_yz$
breakarcsyz$
do_full_arc$
breakarcs$
18523
18524
18525
18531
18532
18533
18534
18526
18535
18527
18536
18528
18529
18537
18538
18539
18540
18530
PARAMETER REFERENCE / Control definition parameters 395
Quick Start
Arc page (LatheWire)
larctypexz$
ldo_full_arcxz$
larccheck$
18537 (18790)
18538 (18791)
18539 (18792)
18540 (18793)
18541 (18794)
18530 (18783)
ldo_xz_arcs$
lbreakarcsxz$
396 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Rotary page (MillRouterLathe)
18542
18543
PARAMETER REFERENCE / Control definition parameters 397
Quick Start
Feed page (MillRouter)
feedtype3$
feedtype4$
rotfeed4$
feedtype5$
rotfeed5$
inversefeed$
convert_rpd$
18701
398 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Feed page (Lathe)
convert_rpd$
18701 (18802)
PARAMETER REFERENCE / Control definition parameters 399
Quick Start
Feed page (Wire)
convert_rpd$
18702 (18803)
400 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Cutter Compensation page
18703
18704
18705
18706
18707
18708
18821
PARAMETER REFERENCE / Control definition parameters 401
Quick Start
Machine Cycles page (MillRouterLathe)
18555
18556
18557
18558
18559
18560
bdrl_use_lead$ (Router only)
usecan_lathe$ (Mill-Turn only)
402 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Drill Cycles page (MillRouterLathe)
usecandrill$
usecanpeck$
usecan $ chip
usecantap$
usecanbore1$
usecanbore2$
usecanmisc1$
usecanmisc2$
lusecandrill$
lusecanpeck$
lusecan $ chip
lusecantap$
lusecanbore1$
lusecanbore2$
lusecanmisc1$
lusecanmisc2$
NOTE: Mill/Router variable in first column, Lathe variable in second column
PARAMETER REFERENCE / Control definition parameters 403
Quick Start
Lathe Canned Cycles page (Lathe)
18584
18590
18591
18593
18592
18816
18586
18587
18589
18588
18815
18814
18594
18595
18597
18596
18819
18818
18585
18817
18582
18583
18598
18570
18571
18572
18573
18575
18576
18577
18578
18579
18580
18581
18574
404 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Subprograms page
sub_level$
18712
18713
18716
18717
18718
18714
18719
18720
PARAMETER REFERENCE / Control definition parameters 405
Quick Start
Start/Leads page (Wire)
18605
18606 18607
18608
18609
18610
18611
18612
406 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Cuts page (Wire)
18613
18614
PARAMETER REFERENCE / Control definition parameters 407
Quick Start
Corner page (Wire)
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
408 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Corner page (Wire)
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
PARAMETER REFERENCE / Control definition parameters 409
Quick Start
Reverse Cuts Contour page (Wire)
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
410 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Reverse Cuts Auxiliary page (Wire)
18643
18644
18645
18646
18647
18648
18650
18651
18652
18653
18654
18655
18656
18657
18658
18660
18661
18662
PARAMETER REFERENCE / Control definition parameters 411
Quick Start
4-Axis Paths page (Wire)
18666
18667
18665 18664
412 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Nocore page (Wire)
Control definition: list of parameters
General control definition parameters
Control definition header
ENT_IDN_CTRL
18669
18670
18668
19990 Machine group name (New for X3)
18001 Post ID
18002 (not used)
18003 (not used)
18004 (not used)
PARAMETER REFERENCE / Control definition parameters 413
Quick Start
CONTROL_TYPE
FILE_POSTLIST_CTRL
Tolerances page
TOLERANCE_CTRL
ENT_IDN_CTRL
18010 Manufacturer
18011 Parent group ID
18012 Start unique post ID
18013 Tolerance entity ID
18014 Communication entity ID
18015 File entity ID
18016 Posts entity ID
18017 NC mill entity ID
18018 NC router entity ID
18019 NC lathe entity ID
18020 NC wire entity ID
18021 NC output entity ID
18022 NC path entity ID
18023 NC cycles entity ID
18024 NC wire path entity ID
18205 Post ID
18206 Valid Status
18207 Start ascii entity id
18208 Start binary entity id
18209 Start text entity id
18210 Post data path and file name
18055 NC Precision Inch (minimum step value - mtol$)
18056 NC Precision - Metric (minimum step value -
met_mtol$)
18057 Chordal Deviation Inch (chord_tol$)
18058 Chordal Deviation Metric (met_chord_tol$)
18059 Deviation of vector endpoints - Inch (vert_tol$)
18060 Deviation of vector endpoints Metric
(met_vert_tol$)
18061 General math function tolerance Inch (xtol$)
18062 General math function tolerance Metric
(met_xtol$)
18063 Minimum distance between arc end points Inch
(ltol$)
414 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Communications page
COMMUNICATION_CTRL
18064 Minimum distance between arc end points Metric
(met_ltol$)
18065 Minimum arc length Inch (minarc$)
18066 Minimum arc length Metric (met_minarc$)
18067 Minimum arc radius Inch (minrad$)
18068 Minimum arc radius Metric (met_minrad$)
18069 Maximum arc radius Inch (maxrad$)
18070 Maximum arc radius Metric (met_maxrad$)
18071 Minimum change in plane for helix Inch
(helix_tol$)
18072 Minimum change in plane for helix Metric
(met_helix_tol$)
18073 Maximum deviation in calculated arc end points from
machine grid Inch (arc_tol$)
18074 Maximum deviation in calculated arc end points from
machine grid Metric (met_arc_tol$)
18075 Minimum angle tolerance (atol$)
18076 Maximum angle tolerance (max_atol$)
18077 Truncate NC Precision: 0 = no, 1 = yes
18105 End of line delay
18106 Baud rate (Actual value selected, i.e. 9600)
18107 Port number (1, 2, 3 or 4)
18108 Number of data bits (6, 7 or 8)
18109 Number of stop bits (1 or 2)
18110 Handshaking (0 = None, 1 = Software, 2 = Hardware)
18111 Communications product (0 = Mastercam, 1 = Other,
2=Cimco)
18112 Parity (O = Odd, E = Even, N = None)
18113 Format (A = Ascii, E = EIA, B = BIN)
18114 Strip carriage return (True/False)
18115 Strip line feed (True/False)
18116 Echo terminal emulation (True/False)
18117 Display to screen (True/False)
18118 DOS communications mode (True/False)
18820 External communications (new for X3)
PARAMETER REFERENCE / Control definition parameters 415
Quick Start
Files page
FILE_CTRL
Post dialog box defaults
These settings are the default Post dialog box settings as saved with the control
definition. They are not the settings selected at the time of posting.
POST_DLG_SETTINGS
POST_DLG_SETTING
S
18155 Error message options (0 = All error messages to file, 1 =
All error messages to screen, 2 = Only first error
message to screen)
18156 Keep error file (0 = On fatal errors, 1 = On fatal and non-
fatal errors, 2 = On post errors and messages, 3 = On
errors, messages, and prompts, 4 = Always keep log file)
18157 Transform operation options (0 = Transform op
parameters only, 1 = Source ops parameters only, 2 =
Transform and source parameters) (obsolete for X3)
15158 NC data path
18159 NCI data path
18160 Setup sheet template data path and file name
18161 Post executable data path and file name
18162 Operations library (Inch) data path and file name
18163 Operations library (Metric) data path and file name
18164 Default operations library (Inch) data path and file
name
18165 Default operations library (Metric) data path and file
name
18166 Chook from Misc. values button data path and file
name
18167 Chook from Aux. register button data path and file
name (Wire)
18168 Power setting library (Inch) data path and file name
(Wire)
18169 Power setting library (Metric) data path and file name
(Wire)
18170 NC File extension (sextnc$)
18171 Write NC operation information (True/False)
(obsolete for X3)
18750 Create NCI file (True/False)
18751 Overwrite NCI file (0 = ask, 1 = overwrite)
18752 Create NC file (True/False)
18753 Overwrite NC file (0 = ask, 1 = overwrite)
18754 Send to machine (True/False)
416 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
NC Dialog page
NC_DIALOG_MILL_CTRL
NC_DIALOG_ROUTER_CTRL
NC_DIALOG_LATHE_CTRL
NC_DIALOG_WIRE_CTRL
18755 Edit NCI file (True/False)
18756 Edit NC file (True/False)
18757 Export oplist (obsolete for X3)
18758 Export prm (obsolete for X3)
18759 Status of the Output Tplanes relative to WCS option.
This affects how the NCI 1014 line is written.
18760 Output MCX file descriptor (True/False)
18255 Not Used (removed for X5)
18256 Set check box for Reference Point button (0 = No, 1 =
Yes)
18257 Not Used
18258 Not Used
18259 Not Used
18260 Set check box for Tool Display button (0 = No, 1 = Yes)
18305 Not Used
18306 Set check box for Reference Point button (0 = No, 1 =
Yes)
18307 Not Used
18308 Not Used
18309 Not Used
18310 Set check box for Tool Display button (0 = No, 1 = Yes)
18355 Not Used
18356 Not Used
18357 Set check box for Reference Point button (0 = No, 1 =
Yes)
18358 Not Used
18359 Not Used
18360 Set check box for Tool Display button (0 = No, 1 = Yes)
18405 Not Used (removed for X3)
18406 Not Used
18407 Not Used
PARAMETER REFERENCE / Control definition parameters 417
Quick Start
NC Output page
NC_OUTPUT_CTRL
Work System page
NC_PATH_WORKSYS_CTRL
18408 Not Used
18409 Not Used
18410 Not Used
18411 Not Used
18455 Start sequence number
18456 Increment sequence number
18457 Maximum sequence number
18458 Maximum characters in NC comment
18459 Number of places to the left of decimal
18460 Number of places to the right of decimal
18461 Spaces between NC addresses
18462 First alternate EOB character (ascii value equivalent)
18463 Second alternate EOB character (ascii value
equivalent)
18464 Text from Description field in Control Def Mgr.
18465 Main program default absolute/incremental (0 =
absolute, 1 = incremental)
18466 Output operation comments to NC (0 = no, 1 = yes)
18467 Output group comments to NC (0 = no, 1 = yes)
18468 Output group name to NC (0 = no, 1 = yes)
18469 Output machine name to NC (0 = no, 1 = yes)
18470 Output sequence numbers (True/False)
18471 Reset sequence numbers in subprograms (True/False)
18472 Use decimal sequence numbers (True/False)
18473 Delete Cr/Lf at end of NC block (True/False)
18474 Use optional EOB characters (True/False)
18475 Ouput debug info (True/False) (Obsolete for X3;
always output as 0.)
18505 Work coordinate selection (0 = home position, 1 = local
work offset, 2 = other, 3 = work offsets)
18506 Tplane during automatic work offset number creation
(0 = all T planes, 1 = only transform T planes)
18507 Translate NCI coordinates to machine view with
aggregate (Mill/Router)
418 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Tool page
NC_PATH_TOOL_CTRL
NC_PATH_TOOL_CTRL002
Linear page
NC_PATH_LINEAR_CTRL
18508 Tool offset registers (0 = add to tool, 1 = from tool)
18509 Add tool amount
18510 Add length amount
18511 Add diameter amount
18512 Add back offset amount
18513 Get Home Position option (0 = from default setting, 1 =
from tool setting, 2 = from machine definition)
18514 Use head number to replace tool number (True/False)
18515 Add head number to offset register (True/False)
18516 Enable staged tool routines (True/False)
18517 Write length register to NCI with lathe toolpaths
18761 Tool offset registers (0 = add to tool, 1 = from tool)
18762 Add tool amount
18763 Add length amount
18764 Add diameter amount
18765 Add back offset amount
18766 Get Home Position option (0 = from default setting, 1 =
from tool setting, 2 = from machine definition)
18767 Use head number to replace tool number (True/False)
18768 Add head number to offset register (True/False)
18769 Enable staged tool routines (True/False)
18770 Write length register to NCI with lathe toolpaths
18518 Rapid motion (0 = each axis moves at max. feed rate
independently, 1 = all axes arrive at destination
simultaneously, 2 = linear interpolation at maximum
feed rate)
18519 XY plane control (0 = do not break linear motion, 1 =
break rapid moves XY then Z for approach, Z then XY
for retract, 2 = break all moves with change in Z)
18520 XZ plane control (0 = do not break linear motion, 1 =
break rapid moves XZ then Y for approach, Y then XZ
for retract, 2 = break all moves with change in Y)
18521 YZ plane control (0 = do not break linear motion, 1 =
break rapid moves YZ then X for approach, X then YZ
for retract, 2 = break all moves with change in X)
PARAMETER REFERENCE / Control definition parameters 419
Quick Start
NC_PATH_LINEAR_CTRL002
Arc page
NC_PATH_ARC_CTRL
18522 Corner rounding/exact stop (0 = control cutting mode,
1 = control exact stop mode, 2 = control corner
rounding mode)
18771 Rapid motion (0 = each axis moves at max. feed rate
independently, 1 = all axes arrive at destination
simultaneously, 2 = linear interpolation at maximum
feed rate)
18772 XY plane control (0 = do not break linear motion, 1 =
break rapid moves XY then Z for approach, Z then XY
for retract, 2 = break all moves with change in Z)
18773 XZ plane control (0 = do not break linear motion, 1 =
break rapid moves XZ then Y for approach, Y then XZ
for retract, 2 = break all moves with change in Y)
18774 YZ plane control (0 = do not break linear motion, 1 =
break rapid moves YZ then X for approach, X then YZ
for retract, 2 = break all moves with change in X)
18775 Corner rounding/exact stop (0 = control cutting mode,
1 = control exact stop mode, 2 = control corner
rounding mode)
18523 XY plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18524 XZ plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18525 YZ plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18526 XY plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18527 XZ plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18528 YZ plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18529 Helix support (0 = no helix allowed, 1 = only in XY
plane, 2 = all planes supported)
18530 Arc end point checks (0= round end point break arc
on failure, 1 = round end point arc to generated point
on failure, 2 = no rounding break arc on failure)
18531 Support arcs on XY plane (True/False)
18532 Support arcs on XZ plane (True/False)
18533 Support arcs on YZ plane (True/False)
420 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
NC_PATH_ARC_CTRL002
18534 Allow 360 degree arcs on XY plane (True/False)
18535 Allow 360 degree arcs on XZ plane (True/False)
18536 Allow 360 degree arcs on YZ plane (True/False)
18537 Arc error checks length of arc (True/False)
18538 Arc error checks length of radius (True/False)
18539 Arc error checks parallel axis motion on quadrant
(True/False)
18540 Arc error checks equilateral triangle (True/False)
18541 Arc error checks end point checks (True/False)
18776 XY plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18777 XZ plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18778 YZ plane arc center type (0 = absolute, 1 = delta start to
center, 2 = delta center to start, 3 = unsigned
incremental, 4 = radius, 5 = signed radius)
18779 XY plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18780 XZ plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18781 YZ plane arc break options (0 = dont break, 1 = break at
quadrants, 2 = break at 180 degrees)
18782 Helix support (0 = no helix allowed, 1 = only in XY
plane, 2 = all planes supported)
18783 Arc end point checks (0= round end point break arc
on failure, 1 = round end point arc to generated point
on failure, 2 = no rounding break arc on failure)
18784 Support arcs on XY plane (True/False)
18785 Support arcs on XZ plane (True/False)
18786 Support arcs on YZ plane (True/False)
18787 Allow 360 degree arcs on XY plane (True/False)
18788 Allow 360 degree arcs on XZ plane (True/False)
18789 Allow 360 degree arcs on YZ plane (True/False)
18790 Arc error checks length of arc (True/False)
18791 Arc error checks length of radius (True/False)
18792 Arc error checks parallel axis motion on quadrant
(True/False)
18793 Arc error checks equilateral triangle (True/False)
18794 Arc error checks end point checks (True/False)
PARAMETER REFERENCE / Control definition parameters 421
Quick Start
Rotary page
NC_PATH_ROTARY_CTRL
Feed page
NC_PATH_FEED_CTRL
NC_PATH_FEED_CTRL002
Cutter Compensation page
NC_PATH_COMP_CTRL
18542 Break rapid rotary moves (True/False)
18543 Attempt to adjust machine to bi-stable position
18544 Three axis feed options (0 = unit/min., 1 = use inverse)
18545 Four axis linear feed options (0 = unit/min., 1 = use
inverse)
18546 Four axis rotary feed options (0 = unit/min., 1 = degree/
min., 2 = use inverse)
18547 Five axis linear feed options (0 = unit/min., 1 = use
inverse)
18548 Five axis rotary feed options (0 = unit/min., 1 = use
inverse)
18549 Inverse feed (0 = feed rate in minutes, 1 = feed rate in
seconds)
18700 Convert rapid to maximum feed rate (True/False)
18701 Adjust feed rate on arc moves (True/False)
18702 Use feed rate in NC output (True/False) (Wire Only)
18795 Three axis feed options (0 = unit/min., 1 = use inverse)
18796 Four axis linear feed options (0 = unit/min., 1 = use
inverse)
18797 Four axis rotary feed options (0 = unit/min., 1 = degree/
min., 2 = use inverse)
18798 Five axis linear feed options (0 = unit/min., 1 = use
inverse)
18799 Five axis rotary feed options (0 = unit/min., 1 = use
inverse)
18800 Inverse feed (0 = feed rate in minutes, 1 = feed rate in
seconds)
18801 Convert rapid to maximum feed rate (True/False)
18802 Adjust feed rate on arc moves (True/False)
18803 Use feed rate in NC output (True/False) (Wire Only)
18703 Number of look ahead blocks for control comp
18704 Control supports cutter compensation in control
422 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Subprograms page
NC_PATH_SUBS_CTRL
Misc. Int/Real Values page
NC_PATH_CTRL
18705 Allow cutter comp in control to be activated/
deactivated on arcs (True/False)
18706 Control supports wear compensation (True/False)
18707 Control supports reverse wear compensation (True/
False)
18708 Start and end cutter compensation above part
18709 Compensate the first and last point in cutter comp. in
control simulation (True/False) (removed for X3)
18710 Display the first and last entities in cutter comp. in
control simulation (True/False) (removed for X3)
18711 Display a warning when cutter compensation in control
simulation finds an error (True/False) (removed for X3)
18821 Optimize toolpaths (true/false) (New for X3)
18712 Maximum subprogram nesting levels
18713 Subprogram location (0 = after main program, 1 =
before main program)
18714 Maximum mirror/rotate coordinate subprogram
routines nesting levels
18715 Control supports subprograms (True/False)
18716 Allow mirror coordinate subprogram routines (True/
False)
18717 Allow rotate coordinate subprogram routines (True/
False)
18718 Allow nesting of mirror/rotate coordinate subprogram
routines (True/False)
18719 Ignore work offset numbers when processing
subprograms
18720 Ignore contour flags when processing subprograms
NC_PATH_WORKSYS_CTRL
NC_PATH_TOOL_CTRL
NC_PATH_TOOL_CTRL002
NC_PATH_LINEAR_CTRL
NC_PATH_LINEAR_CTRL002
NC_PATH_ARC_CTRL
NC_PATH_ARC_CTRL002
NC_PATH_ROTARY_CTRL
PARAMETER REFERENCE / Control definition parameters 423
Quick Start
Machine Cycles page
CYCLES_2CTRL
NC_GEN_CYCLES_CTRL
Drill cycles page
NC_DRILL_CYCLES_CTRL
NC_PATH_FEED_CTRL
NC_PATH_FEED_CTRL002
NC_PATH_COMP_CTRL
NC_PATH_SUBS_CTRL
18721 Initialize tool path operation (0 = from these
settings, 1 = from default operation)
18722 Set miscellaneous values on first operation of each
type only
18723 Use separate mill and lathe text and values (Mill/
Turn control)
NC_GEN_CYCLES_CTRL
NC_DRILL_CYCLES_CTRL
NC_DRILL_CYCLES_CTRL002
NC_LATHE_CYCLES_CTRL
18555 Height return options (0 = return to initial height, 1 =
return to reference height)
18556 Percent drill depth decline with peck and chip
18557 Use lead drill with block drilling (True/False) (Router)
18558 Control supports polar interpolation (True/False)
18559 Control supports cylindrical interpolation (True/False)
18560 Control supports high speed machining (True/False)
18561 Use separate mill and lathe text and values (Mill/Turn)
18562 Simple drill no peck (True/False)
18563 Peck drill full retract (True/False)
18564 Chip break incremental retract (True/False)
18565 Tapping feed in, reverse spindle feed out (True/
False)
18566 Boring #1 feed out (True/False)
18567 Boring #2 stop spindle rapid out (True/False)
18568 Misc. #1 drill uses simple drill (True/False)
18569 Misc. #2 drill uses simple drill (True/False)
424 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
NC_DRILL_CYCLES_CTRL002
Lathe Canned Cycles page
NC_LATHE_CYCLES_CTRL
18804 Simple drill no peck (True/False)
18805 Peck drill full retract (True/False)
18806 Chip break incremental retract (True/False)
18807 Tapping feed in, reverse spindle feed out (True/
False)
18808 Boring #1 feed out (True/False)
18809 Boring #2 stop spindle rapid out (True/False)
18810 Misc. #1 drill uses simple drill (True/False)
18811 Misc. #2 drill uses simple drill (True/False)
18570 Enable canned rough turning (True/False)
18571 Enable canned rough pattern repeat (True/False)
18572 Enable canned roughing undercuts (True/False)
18573 Enable canned finish (True/False)
18574 Enable canned groove cycle (True/False)
18575 Enable canned groove wall taper (True/False)
18576 Enable canned groove radius on corners (True/False)
18577 Enable canned groove radius on chamfers (True/False)
18578 Enable canned groove rough pecking (True/False)
18579 Enable canned groove rough depth cuts (True/False)
18580 Enable canned groove chamfer on corners (True/False)
18581 Enable canned groove dwell (True/False)
18582 Enable canned thread cycles (True/False)
18583 Enable canned thread cycle (True/False)
18584 Enable box thread cycle (True/False)
18585 Enable alternating thread cycle (True/False)
18586 Enable thread equal depth cuts (True/False)
18587 Enable thread equal area (True/False)
18588 Enable thread multiple starts (True/False)
18589 Enable thread anticipated pull off (True/False)
18590 Enable thread equal depth cuts - Box (True/False)
18591 Enable thread equal area - Box (True/False)
18592 Enable thread multiple starts - Box (True/False)
18593 Enable thread anticipated pull off - Box (True/False)
18594 Enable thread equal depth cuts - Alternating (True/
False)
18595 Enable thread equal area - Alternating (True/False)
18596 Enable thread multiple starts - Alternating (True/False)
PARAMETER REFERENCE / Control definition parameters 425
Quick Start
Start/Leads page (Wire)
WIRE_NC_PATH_CTRL
NC_WIRE_LEADS_CTRL
18597 Enable thread anticipated pull off - Alternating (True/
False)
18598 Enable anticipated pull off for long hand thread (True/
False)
18812 NOT USED - First start far from part with multiple
threading
18813 NOT USED First start closest to part with multiple
threading
18814 Enable first start far from part with multiple threading
18815 Enable first start closest to part with multiple threading
18816 Enable first start far from part with multiple threading
18817 Enable first start closest to part with multiple threading
18818 Enable first start far from part with multiple threading
18819 Enable first start closest to part with multiple threading
NC_WIRE_LEADS_CTRL
NC_WIRE_CUTS_CTRL
NC_WIRE_CORNER_CTRL
NC_WIRE_REVERSE_CTRL
NC_WIRE_AUX_REV_CTRL
NC_WIRE_TAPER_CTRL
NC_WIRE_NOCORE_CTRL
18605 Wire threading (0 = manual, 1 = automatic)
18606 Lead in type (0 = line only, 1 = radius only, 2 = line and
arc, 3 = two lines and arc)
18607 Lead out type (0 = line only, 1 = radius only, 2 = line and
arc, 3 = two lines and arc)
18608 Initialize toolpath operation (0 = from these settings, 1
= from default operation)
18609 Start position is automatically set to thread position
(True/False)
18610 Line lead in and exit are required (True/False)
18611 Move to arc center with two lines and arc lead option
(True/False)
18612 Flip taper direction on leads with two lines and arc
lead option (True/False)
426 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Cuts page (Wire)
NC_WIRE_CUTS_CTRL
Corner page (Wire)
NC_WIRE_CORNER_CTRL
Reverse Cuts Contour page (Wire)
NC_WIRE_REVERSE_CTRL
18613 Reset pass number on tab cuts (True/False)
18614 Lock the UV height above the XY height (True/False)
18615 Conical minimum (True/False)
18616 Conical mean (True/False)
18617 Conical maximum (True/False)
18618 Constant (True/False)
18619 Fixed (True/False)
18620 Sharp (True/False)
18621 Fish Tail (True/False)
18622 Other (True/False)
18623 Enable line-arc-line tangent conic mode (True/False)
18624 Enable dual corner types and upper radius with arcs
(True/False)
18625 Change corner type on (0 = point, 1 = move, 2 = prior
point)
18626 Change UV arc type on (0 = point, 1 = move, 2 = prior
point)
18627 Change rapid move on (0 = point, 1 = move, 2 = prior
point)
18628 Change feed rate on (0 = point, 1 = move, 2 = prior
point)
18629 Change manual entry on (0 = point, 1 = move, 2 = prior
point)
18630 Change canned text on (0 = point, 1 = move, 2 = prior
point)
18631 Change wire compensation on (0 = point, 1 = move, 2 =
prior point)
18632 Change condition code on (0 = point, 1 = move, 2 =
prior point)
18633 Change wire offset on (0 = point, 1 = move, 2 = prior
point)
18634 Change wire diameter on (0 = point, 1 = move, 2 = prior
point)
PARAMETER REFERENCE / Control definition parameters 427
Quick Start
Reverse Cuts Auxiliary page (Wire)
NC_WIRE_AUX_REV_CTRL
18635 Change wire over burn on (0 = point, 1 = move, 2 = prior
point)
18636 Change dwell on (0 = point, 1 = move, 2 = prior point)
18637 Change contour flags on (0 = point, 1 = move, 2 = prior
point)
18638 Change stop flags on (0 = point, 1 = move, 2 = prior
point)
18639 Change thread/cut flags on (0 = point, 1 = move, 2 =
prior point)
18640 Change power settings on (0 = point, 1 = move, 2 = prior
point)
18641 Change tank settings on (0 = point, 1 = move, 2 = prior
point)
18642 Change flush settings on (0 = point, 1 = move, 2 = prior
point)
18643 Change auxiliary register 1 on (0 = point, 1 = move, 2 =
prior point)
18644 Change auxiliary register 2 on (0 = point, 1 = move, 2 =
prior point)
18645 Change auxiliary register 3 on (0 = point, 1 = move, 2 =
prior point)
18646 Change auxiliary register 4 on (0 = point, 1 = move, 2 =
prior point)
18647 Change auxiliary register 5 on (0 = point, 1 = move, 2 =
prior point)
18648 Change auxiliary register 6 on (0 = point, 1 = move, 2 =
prior point)
18649 Change auxiliary register 7 on (0 = point, 1 = move, 2 =
prior point)
18650 Change auxiliary register 8 on (0 = point, 1 = move, 2 =
prior point)
18651 Change auxiliary register 9 on (0 = point, 1 = move, 2 =
prior point)
18652 Change auxiliary register 10 on (0 = point, 1 = move, 2 =
prior point)
18653 Change auxiliary register 1 on - modal (True/False)
18654 Change auxiliary register 2 on - modal (True/False)
18655 Change auxiliary register 3 on - modal (True/False)
18656 Change auxiliary register 4 on - modal (True/False)
18657 Change auxiliary register 5 on - modal (True/False)
18658 Change auxiliary register 6 on - modal (True/False)
18659 Change auxiliary register 7 on - modal (True/False)
18660 Change auxiliary register 8 on - modal (True/False)
428 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
4-axis Paths page (Wire)
NC_WIRE_TAPER_CTRL
Nocore page (Wire)
NC_WIRE_NOCORE_CTRL
18661 Change auxiliary register 9 on - modal (True/False)
18662 Change auxiliary register 10 on - modal (True/False)
18663 Direct and Taper wire paths maximum angle
18664 Direct and Taper wire paths maximum step size - inch
18665 Direct and Taper wire paths maximum step size
metric
18666 Control supports Direct wire paths (True/False)
18667 Control supports Taper wire paths (True/False)
18668 Percentage of wire diameter to be used for lead
18669 With Add finish contour operation option, create
finish operation after each pocket (True/False)
18670 Perpendicular leads with rough passes (True/False)
PARAMETER REFERENCE / Machine group parameters 429
Quick Start
Machine group parameters
See Capturing
machine group
parameters on page 49
to learn more about
capturing the parameter
values in your post.
The first section (Machine group properties: visual reference) shows screen captures of all
themachine definition dialogs annotated with the parameter numbers. The second
section (Machine group properties: list of parameters on page 434) lists all of the
parameters by group and number.
Machine group properties: visual reference
Most of the fields shown in the following pages use parameters to store their values, but
the values for some fields are available as pre-defined variables, or even directly in the
NCI G-code. Use the following color key to determine the type of value:
Red labels indicate parameter numbers
Blue labels indicate pre-defined variable names
Green labels indicate NCI G-codes
Some fields are available as both parameters and pre-defined variables. In these cases,
you can use whichever method is most convenient. Typically, this will be the pre-defined
variable.
430 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Files tab (Machine Group Properties)
The comments at the bottom of the tab are available directly from the NCI file, rather
than parameters. The number in green lists the NCI Gcode where the comment will be
output.
19246
19106
19111
19105
1051
1008 1053
1052
PARAMETER REFERENCE / Machine group parameters 431
Quick Start
Tool Settings tab (Machine Group Properties)
Mastercam Wire uses an abbreviated version of this tabProgram Settingsas shown
below.
19113
19114
19116
19118
19119
19120
19121
19122 (Lathe only)
19099
19100
19101
19102
seqno$
seqinc$
19123
19115
19117
19351
19350
19113
seqno$
seqinc$
432 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Stock Setup tabMill/Router (Machine Group Properties)
Stock models are now stored in the machine definition as machine definition
components. This means that in addition to the machine group parameters noted here,
you can also access the machine definition component parameters. These will generally
prove to be more robust and flexible. As a best practice, you should use the machine
definition parameters instead of the legacy machine group parameters.
GROUP_VIEW005
19133
19134
19137
19135
19131
19124
19132
19128
19129
19130
19125 19126
19127
19212
19526
stck_wdth$
stck_thck$
stck_ht$
stck_crnr$
stck_x$
stck_y$
stck_z$
PARAMETER REFERENCE / Machine group parameters 433
Quick Start
Stock Setup tabLathe (Machine Group Properties)
Stock modelsas well as chuck jaws, tailstock centers, and steady restsare now stored
in the machine definition as machine definition components. This means that in
addition to the machine group parameters noted here, you can also access the machine
definition component parameters. These will generally prove to be more robust and
flexible. As a best practice, you should use the machine definition parameters instead of
the legacy machine group parameters.
GROUP_VIEW005
(machine definition components)
(machine definition components)
(machine definition component)
(machine definition component)
19213
19214
19229
19230
19231
19233
19131
19232
19526
434 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Safety Zone tab (Machine Group Properties)
Machine group properties: list of parameters
General machine group parameters
Machine group header
OP_GROUP_INFO
19236
19237
19238
19234 19235
19241
19240
19242
19243
19244
GROUP_VIEW006
19239
19970 Machine group name (New for X3)
19246 Name and path of defaults file
GROUP_PG1 Files tab
GROUP_PG2 Tool settings tab
GROUP_PG3 Stock setup tab
PARAMETER REFERENCE / Machine group parameters 435
Quick Start
GROUP_LIST
ATTRIBUTES
Files page
GROUP_PG1
GROUP_PG4 Safety zone tab
19247 Group number, 0 = deleted, > 0 = alive
19248 Machine group name
19249 Parent group number
19250 Number of grp_ent's pointed to by *e
19251 (Removed in X3)
ATTRIBUTES
19252 Group attributes (not yet used)
19253 True = don't display in groups dialog
19254 Temp marker used in sorting in merging
19255 OpMgr expanded flag
19256 Type of group
19257 Group's color
19258 Group's level
19259 True - use entitys' color & level
19260 File position of group
OP_GROUP_INFO
19261 PRODUCT_MILL, PRODUCT_LATHE,
PRODUCT_ROUTER or PRODUCT_WIRE
19262 (Removed in X3)
19263 (Removed in X3)
19264 (Removed in X3)
19026 Width (not currently used)
19027 Style (not currently used)
19028 Pen (not currently used)
19029 PSTYLE (not currently used)
19104 (removed for X3)
19105 Name and path of machine definition
19106 Path of NCI file
19107 Not used
19108 Project Manager folder flag0
1935219514 Project Manager folder flags
19109 (removed for X3)
436 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
GROUP_VIEW
GROUP_VIEW002
19110 (removed for X3)
GROUP_VIEW Cplane view and origin info (new for X3)
GROUP_VIEW002 Tplane view and origin info (new for X3)
GROUP_VIEW003 Gview view and origin info (new for X3)
GROUP_VIEW004 WCS view and origin info (new for X3)
GROUP_VIEW005 This groups stock view and origin information
GROUP_VIEW006 This groups safety zone view and origin information
19111 General group comments
19112 This groups machine entity ID number
1935219514 Project Manager folder flags
19515 If >0, the Toolpath Manager insert arrow is positioned
after this operation; if <0, it is positioned after this
group. (X2)
GROUP_PG1_ADVAN
CED_DEFAULTS
19112 This groups machine entity ID number
19294 View ID# (new for X3)
19295 View number (new for X3)
19516 Coordinate display (new for X3)
19296 Toolplane view matrix (new for X3)
19297 Toolplane view matrix (new for X3)
19298 Toolplane view matrix (new for X3)
19299 Toolplane view matrix (new for X3)
19300 Toolplane view matrix (new for X3)
19301 Toolplane view matrix (new for X3)
19302 Toolplane view matrix (new for X3)
19303 Toolplane view matrix (new for X3)
19304 Toolplane view matrix (new for X3)
19305 View origin in world (new for X3)
19306 View origin in world (new for X3)
19307 View origin in world (new for X3)
19294 View ID# (new for X3)
19295 View number (new for X3)
19516 Coordinate display (new for X3)
19296 Toolplane view matrix (new for X3)
19297 Toolplane view matrix (new for X3)
19298 Toolplane view matrix (new for X3)
19299 Toolplane view matrix (new for X3)
PARAMETER REFERENCE / Machine group parameters 437
Quick Start
GROUP_VIEW003
GROUP_VIEW004
19300 Toolplane view matrix (new for X3)
19301 Toolplane view matrix (new for X3)
19302 Toolplane view matrix (new for X3)
19303 Toolplane view matrix (new for X3)
19304 Toolplane view matrix (new for X3)
19305 View origin in world (new for X3)
19306 View origin in world (new for X3)
19307 View origin in world (new for X3)
19294 View ID# (new for X3)
19295 View number (new for X3)
19516 Coordinate display (new for X3)
19296 Toolplane view matrix (new for X3)
19297 Toolplane view matrix (new for X3)
19298 Toolplane view matrix (new for X3)
19299 Toolplane view matrix (new for X3)
19300 Toolplane view matrix (new for X3)
19301 Toolplane view matrix (new for X3)
19302 Toolplane view matrix (new for X3)
19303 Toolplane view matrix (new for X3)
19304 Toolplane view matrix (new for X3)
19305 View origin in world (new for X3)
19306 View origin in world (new for X3)
19307 View origin in world (new for X3)
19294 View ID# (new for X3)
19295 View number (new for X3)
19516 Coordinate display (new for X3)
19296 Toolplane view matrix (new for X3)
19297 Toolplane view matrix (new for X3)
19298 Toolplane view matrix (new for X3)
19299 Toolplane view matrix (new for X3)
19300 Toolplane view matrix (new for X3)
19301 Toolplane view matrix (new for X3)
19302 Toolplane view matrix (new for X3)
19303 Toolplane view matrix (new for X3)
19304 Toolplane view matrix (new for X3)
19305 View origin in world (new for X3)
19306 View origin in world (new for X3)
438 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
GROUP_VIEW005
GROUP_VIEW006
Tool settings page
GROUP_PG2
19307 View origin in world (new for X3)
19266 View ID#
19267 View number
19520 Coordinate display (new for X3)
19268 Toolplane view matrix
19269 Toolplane view matrix
19270 Toolplane view matrix
19271 Toolplane view matrix
19272 Toolplane view matrix
19273 Toolplane view matrix
19274 Toolplane view matrix
19275 Toolplane view matrix
19276 Toolplane view matrix
19277 View origin in world
19278 View origin in world
19279 View origin in world
19280 View ID#
19281 View number
19521 Coordinate display (new for X3)
19282 Toolplane view matrix
19283 Toolplane view matrix
19284 Toolplane view matrix
19285 Toolplane view matrix
19286 Toolplane view matrix
19287 Toolplane view matrix
19288 Toolplane view matrix
19289 Toolplane view matrix
19290 Toolplane view matrix
19291 View origin in world
19292 View origin in world
19293 View origin in world
19113 Program number
PARAMETER REFERENCE / Machine group parameters 439
Quick Start
GROUP_PG1_ADVANCED_DEFAULTS
Stock setup tab
Stock modelsas well as chuck jaws, tailstock centers, and steady restsare now stored
in the machine definition as machine definition components. This means that in
addition to the machine group parameters noted here, you can also access the machine
definition component parameters. These will generally prove to be more robust and
flexible. As a best practice, you should use the machine definition parameters instead of
the legacy machine group parameters.
GROUP_PG3
19114 Where this groups ops get their feeds and speeds from
(0 = from tool, 1 = from material, 2 = from defaults,
3=user-defined)
19115 User-defined default feed rate
19116 True if this machine is to have its speed adjusted on an
arc move; False if not
19117 User-defined default spindle speed.
19118 True if the tools created in this group are to be given
sequential tool numbers; False if not
19119 True if the user is to be warned whenever they could be
creating duplicate tool numbers; False if not
19120 True if operations are to get step, peck, and coolant
values from tools; False if not
19121 True if the user wants the tool library searched when
they enter a tool number; False if not
19122 Send tool to clear position to go home (lathe only)
(removed for X5)
19123 This groups material filename and path
19350 User-defined default plunge rate
19351 User-defined default retract rate
19099 Enable options to override defaults with modal values
19100 Override default clearance height with modal value
19101 Override default retract height with modal value
19102 Override default feed plane with modal value
19103 Override defaults with named views
19124 Fit stock in screen (Y/N)
19125 Stock size. X dimension if block, diameter if cylinder.
19126 Stock size. Y dimension if block, length if cylinder.
19127 Stock size. Z dimension if block, not used if cylinder.
19128 Stock origin (X). See parameter 19212 to identify which
corner of stock model this is.
19129 Stock origin (Y). See parameter 19212 to identify which
corner of stock model this is.
19130 Stock origin (Z). See parameter 19212 to identify which
corner of stock model this is.
440 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
19131 Show stock: True=always show stock in gview
19132 Draw stock as a translucent solid instead of wireframe
(True/False)
19133 Stock shape: 0=rect, 1=cyl, 2=solid, 3=stl file
19134 Solid enity id number
19135 Stock cylinder axis: 0=X, 1=Y, 2=Z
19136 Center stock on axis (True/False)
19137 STL filename
19138 Line style to display stock with
19139 Color of stock when displayed
19140 3D lines for stock definition: line 1, endpoint 1, X
19141 3D lines for stock definition: line 1, endpoint 1, Y
19142 3D lines for stock definition: line 1, endpoint 1, Z
19143 3D lines for stock definition: line 1, endpoint 2, X
19144 3D lines for stock definition: line 1, endpoint 2, Y
19145 3D lines for stock definition: line 1, endpoint 2, Z
19146 3D lines for stock definition: line 2, endpoint 1, X
19147 3D lines for stock definition: line 2, endpoint 1, Y
19148 3D lines for stock definition: line 2, endpoint 1, Z
19149 3D lines for stock definition: line 2, endpoint 2, X
19150 3D lines for stock definition: line 2, endpoint 2, Y
19151 3D lines for stock definition: line 2, endpoint 2, Z
19152 3D lines for stock definition: line 3, endpoint 1, X
19153 3D lines for stock definition: line 3, endpoint 1, Y
19154 3D lines for stock definition: line 3, endpoint 1, Z
19155 3D lines for stock definition: line 3, endpoint 2, X
19156 3D lines for stock definition: line 3, endpoint 2, Y
19157 3D lines for stock definition: line 3, endpoint 2, Z
19158 3D lines for stock definition: line 4, endpoint 1, X
19159 3D lines for stock definition: line 4, endpoint 1, Y
19160 3D lines for stock definition: line 4, endpoint 1, Z
19161 3D lines for stock definition: line 4, endpoint 2, X
19162 3D lines for stock definition: line 4, endpoint 2, Y
19163 3D lines for stock definition: line 4, endpoint 2, Z
19164 3D lines for stock definition: line 5, endpoint 1, X
19165 3D lines for stock definition: line 5, endpoint 1, Y
19166 3D lines for stock definition: line 5, endpoint 1, Z
19167 3D lines for stock definition: line 5, endpoint 2, X
19168 3D lines for stock definition: line 5, endpoint 2, Y
19169 3D lines for stock definition: line 5, endpoint 2, Z
19170 3D lines for stock definition: line 6, endpoint 1, X
19171 3D lines for stock definition: line 6, endpoint 1, Y
19172 3D lines for stock definition: line 6, endpoint 1, Z
19173 3D lines for stock definition: line 6, endpoint 2, X
PARAMETER REFERENCE / Machine group parameters 441
Quick Start
19174 3D lines for stock definition: line 6, endpoint 2, Y
19175 3D lines for stock definition: line 6, endpoint 2, Z
19176 3D lines for stock definition: line 7, endpoint 1, X
19177 3D lines for stock definition: line 7, endpoint 1, Y
19178 3D lines for stock definition: line 7, endpoint 1, Z
19179 3D lines for stock definition: line 7, endpoint 2, X
19180 3D lines for stock definition: line 7, endpoint 2, Y
19181 3D lines for stock definition: line 7, endpoint 2, Z
19182 3D lines for stock definition: line 8, endpoint 1, X
19183 3D lines for stock definition: line 8, endpoint 1, Y
19184 3D lines for stock definition: line 8, endpoint 1, Z
19185 3D lines for stock definition: line 8, endpoint 2, X
19186 3D lines for stock definition: line 8, endpoint 2, Y
19187 3D lines for stock definition: line 8, endpoint 2, Z
19188 3D lines for stock definition: line 9, endpoint 1, X
19189 3D lines for stock definition: line 9, endpoint 1, Y
19190 3D lines for stock definition: line 9, endpoint 1, Z
19191 3D lines for stock definition: line 9, endpoint 2, X
19192 3D lines for stock definition: line 9, endpoint 2, Y
19193 3D lines for stock definition: line 9, endpoint 2, Z
19194 3D lines for stock definition: line 10, endpoint 1, X
19195 3D lines for stock definition: line 10, endpoint 1, Y
19196 3D lines for stock definition: line 10, endpoint 1, Z
19197 3D lines for stock definition: line 10, endpoint 2, X
19198 3D lines for stock definition: line 10, endpoint 2, Y
19199 3D lines for stock definition: line 10, endpoint 2, Z
19200 3D lines for stock definition: line 11, endpoint 1, X
19201 3D lines for stock definition: line 11, endpoint 1, Y
19202 3D lines for stock definition: line 11, endpoint 1, Z
19203 3D lines for stock definition: line 11, endpoint 2, X
19204 3D lines for stock definition: line 11, endpoint 2, Y
19205 3D lines for stock definition: line 11, endpoint 2, Z
19206 3D lines for stock definition: line 12, endpoint 1, X
19207 3D lines for stock definition: line 12, endpoint 1, Y
19208 3D lines for stock definition: line 12, endpoint 1, Z
19209 3D lines for stock definition: line 12, endpoint 2, X
19210 3D lines for stock definition: line 12, endpoint 2, Y
19211 3D lines for stock definition: line 12, endpoint 2, Z
A_3D 3D arc #1 for stock definition
A_3D002 3D arc #2 for stock definition
19212 Origin corner: 0=center, 1-8 = one of the stock corners
19213 Boundary avoidance clearance for lathe tools
19214 Entry/exit vector clearance for lathe tools
19526 Use machine tree option (New for X3)
442 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
A_3D
19215 Default active spindle (left/right) (removed for X3)
19216 Default turret to load tools into (top/bottom) (removed
for X3)
19217 Entity ID's for left stock boundaries
19218 Entity ID's for left stock boundaries
19219 Entity ID's for right stock boundaries
19220 Entity ID's for right stock boundaries
19221 Entity ID's for left chuck boundaries
19222 Entity ID's for left chuck boundaries
19223 Entity ID's for right chuck boundaries
19224 Entity ID's for right chuck boundaries
19225 Entity ID's for tailstock boundaries
19226 Entity ID's for tailstock boundaries
19227 Entity ID's for steadyrest boundaries
19228 Entity ID's for steadyrest boundaries
19229 Show stock boundaries (True/False)
19230 Show chuck boundaries (True/False)
19231 Show tailstock boundaries (True/False)
19232 Show steadyrest boundaries (True/False)
19233 Fill lathe stock/chuck/tailstock boundaries with color
(True/False)
BARSTOCK_TYPE Stock definition parameters
BARSTOCK_TYPE002 Stock definition parameters
CHUCK_TYPE (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
CHUCK_TYPE002 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
TAILSTOCK_TYPE (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
STEADYREST_TYPE (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19000 X position of end point 1
19001 Y position of end point 1
19002 Z position of end point 1
19003 X position of end point 2
19004 Y position of end point 2
19005 Z position of end point 2
PARAMETER REFERENCE / Machine group parameters 443
Quick Start
A_3D002
Lathe peripheral boundaries
BARSTOCK_TYPE
19006 X position of center point
19007 Y position of center point
19008 Z position of center point
19009 Radius
19010 Start angle
19011 Sweep angle
19012 View
19013 X position of end point 1
19014 Y position of end point 1
19015 Z position of end point 1
19016 X position of end point 2
19017 Y position of end point 2
19018 Z position of end point 2
19019 X position of center point
19020 Y position of center point
19021 Z position of center point
19022 Radius
19023 Start angle
19024 Sweep angle
19025 View
19030 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19031 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19032 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19033 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19034 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19035 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19036 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19037 Margins on OD, ID min & max Z
19038 Margins on OD, ID min & max Z
19039 Margins on OD, ID min & max Z
19040 Margins on OD, ID min & max Z
444 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
BARSTOCK_TYPE002
CHUCK_TYPE
19041 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19042 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19043 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19044 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19045 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19046 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19047 (Obsolete for X3use CYLINDER_COMPONENT
parameters for bar stock)
19048 Margins on OD, ID min & max Z
19049 Margins on OD, ID min & max Z
19050 Margins on OD, ID min & max Z
19051 Margins on OD, ID min & max Z
19052 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19053 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19054 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19055 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19056 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19057 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19058 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
PARAMETER REFERENCE / Machine group parameters 445
Quick Start
CHUCK_TYPE002
19059 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19060 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19061 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19522 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19523 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19062 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19063 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19064 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19065 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19066 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19077 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19078 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
446 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
TAILSTOCK_TYPE
19079 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19080 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19081 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19524 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19525 (Obsolete for X3use machine definition component
parameters. See CHUCK_COMPONENT_TYPE and
CHUCKJAWS_COMPONENT_TYPE, in addition to
general component parameter groups).
19082 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19083 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19084 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19085 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19086 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19087 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19088 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
PARAMETER REFERENCE / Machine group parameters 447
Quick Start
STEADYREST_TYPE
Safety zone tab
GROUP_PG4
19089 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19090 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19091 (Obsolete for X3use machine definition component
parameters. See TAILSTOCK_COMPONENT_TYPE and
LATHE_CENTER_COMPONENT_TYPE, in addition to
general component parameter groups).
19092 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19093 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19094 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19095 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19096 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19097 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19098 (Obsolete for X3use machine definition component
parameters. See STEADYREST_COMPONENT_TYPE, in
addition to general component parameter groups).
19234 Safezone on (True/False)
19235 Type: SAFEZONE_RECT, SAFEZONE_SPH,
SAFEZONE_CYL
19236 X, Y and Z dimensions of rectangle
19237 X, Y and Z dimensions of rectangle
19238 X, Y and Z dimensions of rectangle
19239 Spherical radius
19240 Cylindrical X axis length
19241 Cylindrical radius
448 MASTERCAM X4 / NCI & Parameter Reference
Quick Start
Agie interface
PRM_AGIE_GROUP_INFO
19242 Cylinder axis: X, Y or Z
19243 Display
19244 Fit screen
19245 Extend Z
19527 Piece details: Name (new for X4)
19528 Piece details: Material (new for X4)
19529 Piece details: Quality target (new for X4)
19530 Piece details: Wire (new for X4)
19531 Piece details: Strategy (new for X4)
19532 Piece reference position, C coordinate (new for X4)
19533 Edge position (X) (new for X4)
19534 Edge position (Y) (new for X4)
19535 Edge position (Z) (new for X4)
19536 Security level (new for X4)