

































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!


































The code for the Program Start will now be opened ready for editing similar to below
If the Upper Turret is active then the start-up code will be formatted as below
% O (PUMA MX2000ST 31I CONTROL)
(UPPER TURRET PROGRAM)
G0 G40 G99 G18 G80 G G10 P0 Z0 (DATUM RESET) G10 L2 P1 X0 Y0 (Z?) C0 (G54) ]G10 L2 P2 X0 Y0 (Z?) C0 (G55) G28 U0 V G28 W M M900 (WAIT CODE) M
The XBUILD Formats menu enters specific program formats for the various blocks which can appear in a part program. Each format is made up of combinations of reserved words, literals, comments, and user-defined variables.
The Formats menu lists a number of general
Program - formats that are used in almost every part program, and include commonly used formats (for example Program Start, Tool Change , Segment Start, Program End ).
Move - formats include the rapid and feed moves which make up the largest portion of any part program (for example Rapid , Linear , Circular ). These program formats must be carefully defined.
Macro - formats include Open Macro, Close Macro, Macro Call, In-Macro Linear, and In-Macro Circular.
The Macro formats are not available for turn posts.
Cycle - formats include most of the canned cycles which are found in many controls (for example Deep Hole , Tap ).
Custom - a custom format is used as a place holder for a block of code that may be used in several different formats. The system reserved word <INCLUDE:> is placed into the appropriate section of a format that uses the block of code from the custom format. The name of custom format should be inserted after colon: <INCLUDE: Custom Format Name>.
Each of these groups contains specific formats which, when selected, are displayed in the Formats editor.
The formats use specific reserved words, which are discussed separately for each post type. For example, milling reserved words can be found under the Mill Post section, turning reserved words can be found under the Turn Post section and so on.
Reserved words are specific words that are used in writing the post in XBUILD. These words are 'reserved' because they have a special meaning in FeatureCAM, and cannot be used for anything else. They are place holders that will later be replaced with values provided by FeatureCAM when it generates the NC code. Reserved words are referenced in formats by enclosing each word with angular brackets < >. Additional ASCII characters (for example X, Z and F) are used to specify the letter for each word address.
In XBUILD, you can see the reserved words from:
The CNC-Info > Words-N menu or the File > WordList menu in the Formats editor.
In XBUILD, there are several types of reserved words:
Numeric reserved words are replaced by their numeric values when Post is executed. For example, the numeric reserved word <X-COORD> is replaced by the current X axis coordinate position. You can configure the output format of numeric reserved words via the Words Info dialog ( CNC-Info > Words option).
Numeric reserved words can be preceded by the symbols $, or @ (<$name>, or <@name>). The $ prefix signals Post to output the previous value of a reserved word
Use the three buttons at the bottom of the dialog, labelled OK , Cancel and Next , to keep the changes made, exit the table without saving any changes, and advance to the next Words Info dialog respectively. The words tables contain the format (symbolic name, numeric parameters and factors) for each numeric reserved word.
The LD_ZR , TRL_ZR , DEC_PT , UNS_V , and +SIGN fields for each reserved word all toggle On/Off. To change an item in the table, select/deselect the check box in the appropriate column for that item. To select the Format or Factor field for any of the reserved words, move the cursor to the appropriate box and double-click the mouse there; the selection is highlighted. To change the format or factor, type the new value, then press Enter.
The first column (far left side) in the tables identifies the symbolic name (sometimes abbreviated) of each numeric reserved word. All of the words in the table that apply to the NC machine must be configured. LD_ZR - leading zeros are output if this option is toggled On. Zeros are output in all leading positions of the value, excluding significant digit locations (for example, 1" with a 3.4 format would output two leading zeros: 001 ). TRL_ZR - trailing zeros are output when this option is set to On. Zeros are output in all trailing positions of each value output for the designated reserved word, excluding significant digit locations (for example, 10" with a 3.4 format would be output with four trailing zeros as 100000 ). DEC_PT - is used to turn the Decimal Point Character On/Off (for example, when DEC_PT is toggled ON, 100" is output as 100.0 ). The decimal character (either a , representing the European decimal, or a. representing the US/UK decimal) is specified in the General Info dialog. To open it, select CNC-Info > General from the menu. UNS_V - when the Unsigned Value option is on, the number is output without its sign. This is often useful for distances. +SIGN - when the Plus Sign is toggled ON , the plus sign ( + ) is output for positive integers. Format - specifies the number of digits in the numeric value, represented by each numeric reserved word. Numbers are specified as N.n , where N represents the maximum number of digits to the left of the decimal point, and n is the maximum number of digits to the right of the decimal point. For example, entering 3. specifies a maximum + , or - departure of 999.9999 , or a minimum departure of 0.. Use the Words Info dialog to specify a numeric representation for each reserved word that requires it. Factor - is used to modify numeric values during post processing. Each value that is output by Post is multiplied by its factor. For example, some controls require arcs to be calculated from centre to start point. This requires a -1 factor for <ARC-Z> and <ARC-X>.
Sometimes you will need to create your own variables for doing calculations or to keep a track of a particular condition which you may need to test later on.
User defined variables must be declared in the PROGRAM START Section.
This can be done by placing them directly in The PROGRAM START by using the Include Reserved word.
This will include all variables that have been defined in the Formats – Custom – VARIABLES Section
Reserved word Definition <ABS-DEPTH> Absolute Z-axis depth from Z axis origin, calculated as
<SP-MAX> Maximum spindle RPM when CSS is On , used to set the maximum RPM at which the spindle should run. Corresponds to the CSS Max RPM turning attribute or the Max. speed for the current range specified on the Feeds&Speeds dialog of XBUILD.
<SPINDLE-POS> Subspindle position.
<STOCK-ID> Inner diameter of the stock - for round (tube) stock only - 0 for other types of stock.
<STOCK-OD> Outer diameter of the stock - for round stock only - 0 for other types of stock.
<STOCK-TYPE> Type of stock: 1.0 for block, 2.0 for round, 3.0 for N-sided, 4.0 for user-defined.
<STOCK-XMAX> Bounding box - maximum X value, or X coordinate of the upper most corner of the bounding box for the stock in space.
<STOCK-XMIN> Bounding box - minimum X value, or X coordinate of the lower most corner of the bounding box for the stock in space.
<STOCK-YMAX> Bounding box - maximum Y value, or Y coordinate of the upper most corner of the bounding box for the stock in space.
<STOCK-YMIN> Bounding box - minimum Y value, or Y coordinate of the lower most corner of the bounding box for the stock in space.
<STOCK-ZMAX> Bounding box - maximum Z value, or Z coordinate of the upper most corner of the bounding box for the stock in space.
<STOCK-ZMIN> Bounding box - minimum Z value, or Z coordinate of the lower most corner of the bounding box for the stock in space.
<SYNC-SPEED> For use in Okuma-style multi-turret posts only, this variable contains the synchronization code for a change in spindle speed. The sync code must be output on the same line as the spindle speed.
<TL-WIDTH> Width of selected tool.
<TURRET-NUM> Returns the number of the current turret.
<X-CHANGE> X coordinate of desired Tool change location passed from the Post Options dialog in FeatureCAM.
<X-COORD> Returns the value of the current X coordinate.
<X-INDEX> X-Index turret position passed from FeatureTURN. Corresponds to the X coordinate of the Tool Change Location (the setting in the Post Options dialog). Post Options can be reached from FeatureCAM by clicking on the Post name in the lower right portion of the FeatureCAM screen.
<X-PRESET> Distance between the tool program point and the part origin when at the index position along the X axis; this value is calculated by Post as:
<X-PRESET> = <X-INDEX> +
<X-RETURN> X coordinate of the previous X-PRESET value plus any differences between tool change locations; this value is calculated by Post as:
<X-VECTOR> Calculated X vector for the next move (cutter compensation vector for Cincinnati
<SEQ-START> Starting NC program line number of profile for roughing and finishing canned cycle.
This variable has the value of 13 in the example above. <X-ALLOW> Corresponds to X Finish Allowance in FeatureTURN. <Z-ALLOW> Corresponds to^ Z Finish Allowance^ in FeatureTURN.
Reserved word Definition <ARC-X> Used in the circular interpolation block to specify the signed X distance from the start point of the arc, to the centre of the arc along the X axis. <ARC-Z> Used in the circular interpolation block to specify the signed Z distance from the start point of the arc, to the centre of the arc along the Z axis.
To generate the signed distance from the arc's centre to the arc's start position, locate the <ARC-Z> and <ARC-X> reserved words in the Words Info dialog, and change their FACTOR values to -1. To generate the unsigned distance from the arc's start position to the centre of an arc, select the UNS_V check boxes for these reserved words in the Words Info dialog.
Reserved word Definition
Tap operation - calculated depth of tap. Twist drill operation - calculated depth of drilling operation including tip. Turning, Boring, and Face operations - depth of cut. Groove operation - depth of cut.
<END-X> The X location where the thread cutting pass ends. This is usually the same as <START-X> except for tapered threads. <END-Z> The Z location where the thread cutting pass ends. <ENG-ANGLE> Corresponds to the 90 - Infeed Angle threading attribute.
This parameter was added to support threading on a Fanuc. On that controller, a vertical retract is considered to be 0 , not 90. <START-X> The X location where the thread cutting pass starts. <START-Z> The Z location where the thread cutting pass starts.
Thread operation - Step 1 of threading pass. Drill operation - First peck. Groove operation - Stepover %.
Thread operation - Step 2 of threading pass. Drill operation - Second peck.
<TAPER-ANGLE> Returns the taper Angle entered on the Dimensions tab of the Thread Properties dialog. <TAPER-DEPTH> The Z distance between the lowest and highest points on the thread. <THRD-DEPTH> Corresponds to Thread Height in FeatureTURN. <TIP-ANGLE> The tip angle of the tool.
then machines the second setup on the main spindle side. The value is set to FALSE in this case.
<IS-PINCH> True if the operation uses pinch turning.
<IS-SYNCED> True if turrets are synced.
<LAST-TOOL> TRUE if the current tool is the very last tool in the program.
<LEFT-HANDED> True if the current tool is left handed.
<MAIN-SPCMD> Is only valid in the spindle transfer formats (Spindle Open, Spindle Position, and so on). If true, M codes in the transfer format should be issued for the main spindle, otherwise use M codes for the sub spindle.
<MAIN-SPNDLE> True if the current operation is working on the main spindle, false if on the sub spindle. Note that this word should not be used in the spindle transfer formats (see <MAIN-SPCMD>)
<OFFSET-CH> Normally used in a Segment Start block; TRUE if the <OFFSET#> is changed between segments:
This value may also be true in the Rapid Move format for the finish pass of a Groove feature if you have specified a second offset register.
<POS-DIR> True if the operation is cutting in a positive direction.
<POST-RCAN> True for the moves after rough canned cycle.
<PRE-GCAN> True for the last move before groove canned cycle.
<PRE-PCAN> True for the moves before finish canned cycle.
<PRE-RCAN> True for the moves before rough canned cycle.
<RANGE-CH> Normally used in a Segment Start block, and is true if there is a change in gear range:
<REUSE-PATH> True if the Reuse path in Canned cycle check box is selected in Turn properties.
<RIGID-TAP> TRUE if Tap cycle type is set to Rigid in FeatureCAM.
<SP-MD-IS-TR> For multi-turret turning. TRUE if the spindle is in turning mode and FALSE if the spindle is in milling mode.
<TCAN-CYCLE> TRUE if inside a turning canned cycle.
<TCAN-END> TRUE for last move in the profile.
<TCAN-START> TRUE for first move in the profile.
<TH-ATSUBPOS> TRUE if turret home format is called because of subspindle position where subspindle is moving closer to the main spindle.
<TH-ATTOOLCH> TRUE if turret home format is called because of tool change.
<TOOL-LEFT> TRUE if the tool is on the left of the cutting path.
<UNDER-CHECK> TRUE if the Undercut Check check box is selected in turn properties.
Reserved word Definition <AIR-BLAST> Returns the proper air-blast codes from the CNC-Info > NC Codes dialog according to selections from the Misc. feature creation page.
Turns On at the first feed move of the profile path.
Usage dialog.
Corresponds to the Turret parameter from the Feature Properties > Tool Usage dialog.
<UDF-COMMENT> Used in the UDF Text format to return a comment from an add-in macro, which creates a user-defined feature.
<UDF-TEXT> Used in the UDF Text format to return a specific code from an add-in macro, which creates a user-defined feature.
Reserved word Definition <ABS-DEPTH> Absolute Z-axis depth from Z axis origin, calculated as