Docsity

Featurecam Pós processadores, Manuais, Projetos, Pesquisas de Matemática

Pré-visualização parcial do texto

Baixe Featurecam Pós processadores e outras Manuais, Projetos, Pesquisas em PDF para Matemática, somente na Docsity!

Table of Contents

  • How to Open a Post Processor for editing
  • Formats menu
  • What are Reserved words
    • Numeric
    • String
    • System and logical
    • Examples of conditional statements
    • How to Configure reserved words
    • User Defined Variables
  • Turning reserved words
    • Numeric
    • Numeric canned cycle block words
    • Numeric circular block words
    • Numeric drilling and threading type cycle words
    • Logical reserved words
    • String reserved words
  • Milling reserved words
    • Numeric reserved words
    • Logical reserved words
    • String reserved words
  • Turn/Mill reserved words
    • Numeric reserved words
    • Logical reserved words
    • String reserved words
    • Multi-turret reserved words
  • Using expressions in formats...............................................................................................................
    • Numeric operators
    • Logical operators
    • Examples..................................................................................................................................
    • String operators
    • Example
    • Formatting of Numbers in Post
    • Suppressing printing of an expression
    • Comments
  • Entering mixed printable ASCII and non-printable codes
  • Previous Reserved Word Value...........................................................................................................
  • Incremental programming rules
  • Sync Codes in FeatureCAM Posting
    • Introduction...............................................................................................................................
    • Xbuild Reserved Words
    • Basic Synchronization in the Post
    • Synchronization for Subspindle Transfer
    • Advanced Notes

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

Formats menu

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.

What are Reserved words

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

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

String

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>.

User Defined Variables

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

Turning reserved words

Numeric

Reserved word Definition <ABS-DEPTH> Absolute Z-axis depth from Z axis origin, calculated as - . <ABS-STEP1> Absolute first step, calculated as - . <BAXIS-ROT> Returns turning tool rotary angle where turning tool is locked in B-axis spindle. Commonly used to flip turn tools when moving from main to sub. This is not the same as the B-angle of the tool. <CALC-SPEED> Calculated direct RPM speed at the path's start point; the spindle can be turned ON, or readjusted in direct RPM prior to rapid traversing to the path's start point, where CSS is turned On. The <CALC-SPEED> reserved word can be used to automatically calculate the direct RPM 'turn on' speed (to turn on CSS after position moves), which avoids rapid traversing to and from a remote indexing point in the CSS mode. Corresponds to the Clearance attribute. <CLR-DEPTH> + <COMP-NUM> Compensation number passed from FeatureCAM as the Diameter offset register in the Tool Mapping dialog, or on the Overrides tab of the Tool Properties dialog. <CSS-SPEED> Corresponds to the Surface Speed parameter on the Feed/Speed tab of a feature. Corresponds to the Dwell parameter for Cutoff, Groove, and Tapping. <ENG-ANGLE90> 90 - Engage Angle for turning or 90 + Engage Angle for boring. Passes the feed rate value to the word format of <FEED-UPM> or <FEED-UPR>, depending upon the Feed Units specified in FeatureTURN. <FEED-UPM> Format of this word is used to pass feed rate value and/or the reserved word when Use IPR is not selected on the Feed/Speed tab for a feature. <FEED-UPR> Format of this word is used to pass feed rate value and/or the reserved word when Use IPR is selected on the Feed/Speed tab for a feature. <INC-MACX> X location of the pattern instance to be cut by the macro. This coordinate is not usually output in the CNC program. <INC-MACZ> Z location of the pattern instance to be cut by the macro. This coordinate is not usually output in the CNC program. <LIFT-OFF> For groove only. Corresponds to Liftoff Dist. attribute. <NEXT-TL> Next tool to be used, may be required by some controls. Corresponds to the^ Tool column of the Tool Mapping dialog. <NOSE-RAD> Tool nose radius of an endmill or the tool tip radius of a turning or threading tool. <OFFSET#> Tool length offset register number, passed from FeatureCAM as the^ Length offset register in the Tool Mapping dialog, or on the Overrides tab of the Tool Properties dialog. Generally, this value is updated only in the Program Start, Tool Change, and Segment Start formats. For the finish pass of a Groove feature, however, the value may also be updated in the Rapid Move format if you have specified a second offset register. See also <OFFSET-CH>. <OP-ORDERNUM> Used to create Psync codes for Okuma machines. Because Okuma has only one file for both turrets, each operation needs an individual sync code that determines the operation order (whether synced or not). When the turrets are synced the P codes for both turrets are the same. <R-CSS> Radius value in constant surface speed; in Post, this value is set to the first X coordinate value. <RTR-ANGLE-P> The Withdraw Angle used for EZ-Path. <RTR-FEED> Withdraw feed rate.

This is a line sequence number identifier (when the word appears in a line, it is substituted with the current sequence number, and is subsequently incremented by the sequence step value).

Spindle RPM value passed from feature Properties dialog.

<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.

For groove only. Corresponds to Stepover % * Tool Width.

<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.

Returns sync number from the CNC-Info > Turrets dialog. Used to synchronize multiple turrets.

<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.

The Tool number , passed from the Tool Mapping dialog in FeatureCAM.

<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> + -

is equal to zero for primary turret.

<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-RETURN> = <$X-PRESET> + <X-INDEX> - <$X-INDEX>

<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.

Numeric circular block words

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. Returns the arc radius in a circular block. <S-RAD> Generates the signed arc radius value in a circular block, +R<180 degrees and R> degrees. <Z-CEN> Returns the absolute Z coordinate position from the Z axis origin to the arc's center in a circular block. <X-CEN> Returns the absolute X coordinate position from the X axis origin to the arc's center in a circular block.

 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.

Numeric drilling and threading type cycle words

Reserved word Definition This word has different values for different operations:

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. Calculated tip to tip X axis lead. Corresponds to Pitch thread dimension. <MIN-INFEED> Corresponds to the Min Infeed attribute. <NUM-SPRING> Number of thread spring passes. Corresponds to Spring Passes threading attribute. <NUM-THREAD> Number of thread passes. <RTR-ANGLE> Corresponds to Withdraw Angle. <RTR-ANGLE90> Withdraw Angle - 90.

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. This word has different values for different operations:

Thread operation - Step 1 of threading pass.  Drill operation - First peck.  Groove operation - Stepover %.

This word has different values for different operations:

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>)

True for Outside Diameter operations.

<OFFSET-CH> Normally used in a Segment Start block; TRUE if the <OFFSET#> is changed between segments:

<OFFSET-CH>

{N}T{<COMP-NUM>}

<OFFSET#>

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:

<RANGE-CH>

{N}MO5

{N}<SP-RANGE>

{N}S<CALC-SPEED>

<SPINDLE-ON>

<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.

TRUE if using a pushing/pressing or skip function when transferring a part from one spindle to another.

TRUE for tapered threads.

<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.

String reserved words

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. Beginning of line identifier. Used to indent line in NC code output. Indents line by spacing amount between and rest of line. <CANCEL-COOL> Used to output NC code to turn off coolant at the end of an operation. See the CNC- Info > Coolant dialog. <COMP-STAT> Returns the applicable code from the CNC-Info > NC Codes dialog, when tool nose radius compensation is selected in the Turn Properties dialog (for example G41, G42).

Turns On at the first feed move of the profile path. Returns the Coolant ON code for the selected turret from the Coolant dialog. <COOLANT-3> Returns string from the XBUILD Coolant dialog. <COOLANT-4> Returns string from the XBUILD Coolant dialog. <COOLANT-MST> Returns string from the XBUILD Coolant dialog. <COOLANT-OFF> Returns string from the XBUILD Coolant dialog. <COOLANT-ON> Returns string from the XBUILD^ Coolant^ dialog. Returns the date that the NC code was posted. See also <REGION-DATE>. Specifies the end of block code on each line of a format. <FM-NAME> Returns the FeatureCAM file name. <F-UNITS> Returns the applicable code for feed per revolution or feed per linear unit feed rates from the CNC-Info > Feeds & Speeds dialog. For example, G99, G98. Returns the current fixture offset code from the CNC-Info > Fixture ID dialog. <MACH-TIME> Returns the estimated time needed to machine the part. Outputs the name of the material. Returns the current Setup name, as set in FeatureCAM. Returns the motion code for the current move from the XBUILD CNC-Info > NC codes dialog. <OP-PASS> Returns Rough or Finish based on the type of pass. Value is always in English in order to support language-independent comparison. See also <OP-PASS-LOCAL>. <OP-PASS-LOCAL> Same as <OP-PASS>, but the value is in the local language, so it can be used for inserting comments in the NC code. <OP-TYPE> Returns the current operation type name from the following list

FACE

SPOTDRILL

PILOT DRILL

DRILL

REAM

TAP

COUNTERSINK

REAM

GROOVE: OUTER

GROOVE: INNER

GROOVE: FACE

Usage dialog.

Selects the programmed turret.

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.

Returns the value from the Inch Units or Metric Units field on the CNC-Info > NC Codes dialog (commonly G20 or G21).

Milling reserved words

Numeric reserved words

Reserved word Definition <ABS-DEPTH> Absolute Z-axis depth from Z axis origin, calculated as - . <ABS-SHIFTX> X offset from machine zero to current Setup without any rotations applied. <ABS-SHIFTY> Y offset from machine zero to current Setup without any rotations applied. <ABS-SHIFTZ> Z offset from machine zero to current Setup without any rotations applied. <ABS-STEP1> Absolute first step, calculated as - . <ABS-ZCLEAR> Absolute position of Z Clear -- Z Clear + Z Surf (not used in incremental programming). <ABS-ZRAPID> Absolute position of Z Rapid -- Z Rapid + Z Surf (not used in incremental programming). <ANG-CFEED> Outputs the feed value required for an Okuma or Fanuc control to maintain the programmed feed rate. This is a Cartesian feed rate value. <ANG-DPM> Wrapped feed rate, degrees per minute. <ANG-DPM-NOFR> Same as <ANG-DPM> except no feed rate reduction in corners when wrapping (for machines which do the reduction). <ANG-FPM> Wrapped feed rate, inch (or mm) per minute. <ANG-INVTIME> Wrapped feed rate inverse time. This reserved word is also calculated for 5-axis simultaneous. Computed as (linear distance traveled after coordinates are transformed

  • angular distance traveled)/feed. <ARC-X> Used in the circular interpolation block to specify the signed X distance from the start point of the arc, to the center of the arc along the X axis. <ARC-Y> Used in the circular interpolation block to specify the signed Y distance from the start point of the arc, to the center of the arc along the Y axis. <ARC-Z> Used in the circular interpolation block to specify the signed Z distance from the start point of the arc, to the center of the arc along the Z axis. <BOT-LALLOW> Corresponds to Bottom Semi Finish Allowance attribute for a milling operation. <COMP-NUM> Compensation number passed from FeatureCAM as the Diameter offset register in the Tool Mapping dialog, or on the Overrides tab of the Tool Properties dialog. <COMP-VAL> Cutter compensation diameter. Outputs the maximum depth between operation depth and feature depth for the current segment. Returns the Dwell value passed from FeatureCAM. <EXP-LENGTH> Corresponds to the Exposed length tool parameter. <FEED/MIN> Feed rate value identifier (in minutes) passed from FeatureCAM. <FEED/REV> Feed rate value identifier (in revolutions) passed from FeatureCAM. <FINI-ALLOW> Finish allowance of a milling operation. The X distance from the fixture offset to the local coordinate system. The Y distance from the fixture offset to the local coordinate system. The Z distance from the fixture offset to the local coordinate system. <HELIX-PITCH> Pitch of helical move. Controlled by Max Ramp Angle attribute. <HLDR-LENGTH> Length of the tool holder. <HOLE-DIAM> The diameter of the hole. Intended for use with Hole Milling cycles. <INC-DEPTH> Incremental depth from Z Clear, + . <INC-MACX> X location of the pattern instance to be cut by the macro. This coordinate is not usually