V11 Posting Output Changes

From Compost Wiki
Jump to navigation Jump to search

Overview

GibbsCAM UKM Post Engine has been rewritten. This means that new capabilities were added that previous versions either didn't support, or supported poorly. This wiki page will itemize the changes in posted output between GibbsCAM v10 and GibbsCAM UKM.

If you contribute to this page, please try to add descriptions why the UKM output is better than v10 output, or why the decision was made to change the output.

Changes in UKM Posted Output

MetricOutput? Command

If the MetricOutput? command is called in a post that does not support inch/metric combo output ( as in it does not have the flags set in the form) then it will return FALSE by default.

Repeat Loops

All Repeat loops (repeats, patterns, rotations) have been updated to fully update all start position and toolpath commands to be in the correct place for each instance of the repeat. The main change for this is that when a post is in an EachRotation Loop all the axes will be updated for the rotation not just the single rotary angle. This can affect the StartPosY command during subsequent loops. Only a single post has been found that outputs Y values outside of the toolpath sub and is affected by this change.

Tool Offsets

The software now automatically computes tool offsets for all mill tools, regardless of the MDD setting. Since most posts always stay in tool tip mode, this can affect where the software thinks the tool group datum and axes are.

Status Register

The Status register no longer tracks just the axis values that the post outputs. The Stats register has been replaced with a kinematic model of the machine that is updated to match moves the post processor makes. The status tree tracks the actual axis and node positions of all parts of the machine. This makes it unnecessary to "retrack" after changing an output modes since the status tree does not physicaly move on a mode change.

Some changes in conditionality may happen if the post does not ask for output in the correct tool/CS. This can happen if a legacy post calls a command like ZCP1C during the retract section of a new tool and does not use LAST, or LASTOPERATION before the command. In this case the status register would have been updated at the end of toolpath using the previous tool, but will now be evaluated using the current op tool, this may cause the conditionality command to think the tooltip is not where it actual is on the machine if it has not done the tool-change yet. It is important for legacy non-looper posts to know what tool/CS they are using during the retract sections of new tool and CS change ops, especially if they never change modes.

The status register is not longer initialized to "999999999.99" for linear axes and "0" for rotary axes. Conditional commands and move Booleans will always return true on the first test of an axis before it is tracked or output. This will force the first potion to be output since we don't know where the machine is at the start. This does not affect most posts since they usual call SetHome or some other set of commands to initialize the machine state.

Rotation out of limits

The old post engine would only warn about ops that were out of rotary limits, or required an axis that did not exist. It would then extend the limits, or add the missing rotary axis and compute a solution for the operation. This would cause the output to be "correct" as if the machine did not have the limit.

The UKM posting engine will no longer "fix" bad programs. In addition to giving a warning the posting solution will try to get as close to the requested orientation as possible but will not add any axes or increase any limits. This will change how the tool ends up being oriented relative to the part during these operations, and will change X,Y, and Z values as we will not be able to move to the correct orientation for the workfixture.

Workfixture modes at program end

The old post engine would "unclear" the csoffset after the last "NextOp" command. This would cause commands like ZCP1 to output in CS1 not the CS of the last op. The new post engine does not do this and keeps the post engine in a mode until it changes. Many badly written posts were output the CP1 in CS1 even if they were still in the WFO for the last op. This could cause crashes. Posts will now output the value in the last op's CS if they have not changed to mode to the CS1 WFO.

Incremental Angles

Previous versions of the post engine did not support the output of rotary angles in incremental. UKM does. This will cause an output discrepancy between old posts that output incremental rotary repeats and wrapped pasterns. The old code was incorrect.

FeedRate

The FeedRate compost command called from outside a feature loop (toolpath) in v10 would output the Contour feedrate from the Mill process. UKM will output the Entry feedrate, if it has not yet been output. See Op7 in these sample files: Download

Feed rates and Tap

Calling FeedEnt, FeedRate and others will return the Pitch of the Tap/RigidTap tool in UKM. Tapping operations don't have an operation feedrate, so legacy used to output garbage feedrates set from previous operations. The "Tap %" in the operation dialog will still affect the pitch being output as the feedrate.

Polar Interpolation Tracking

The post engine now automatically tracks the C angle when a post is in polar output based on the rounded X and Y values output for each feature. Previous versions of the post engine ignored the rotary axis during polar output and the post processor had to track to a C angle on each feature. This is no longer required and all tracking commands for the rotary axis are ignored when the post is in polar mode.

G92 error accumulation in .19 and previous posts

Older mill/turn master posts did not properly handle the transition from polar interpolation to machine coordinates. These posts would track to a C angle that was based on a rotary angle rounded to 3 decimal places for each move. When in polar mode, the CNC does not go to any angle specified by the program, but instead computes an angle based on rounded X and Y values from the program. There is a difference between these angles that varies depending on the radius (up to 90 deg. very close to the center of rotation). These posts would then output a G92/G50 for this tracked angle WITHOUT outputting any actual angle when coming out of polar mode. This G92 would then "burn in" any error between the 2 angle systems and cause the program to drift by this amount.

Newer posts output the tracked angle before the G92 and thus get the CNC state synced up with the post's internal state.

In UKM the status register is no longer based on the machine angle that would be output if the post was not in polar, but on the estimated angle that control will go for the rounded XY input. These older posts will show a difference in the G92 angle after any same tool polar ops. The new angle is closer to where the machine actually is and will be off only by 1/2 of a rounding tolerance. Posts that have this problem should be upgraded to output a rounded "big angle" before calling the G92/G50

SetCP1LocalF

The SetCP1LocalF command can cause problems in V11. A few posts attempted to turn Local CP1 on and off during a program. This is not allowed (and did not work correctly in older versions). The CP1 mode must be set once at the start of a program and be kept the same. Any post that attempts to change the CP1 state multiple times during a program will produce an error.

Small Segmentation Caryover

The EachQuadrant/NextQuadrant loop now knows the rounding tolerance used by the axes that move. It will use this rounding tolerance to trim small arc segments that may extend past the quadrant boundary (aka ‘nubbins’). This should produce better output for posts that have correct values for axis label formats.

CP2 is now DrillCP

The CP2 command will return the Z level where we start the first hole, this will be the DrillCP of the first hole. We have found a few posts that do not fully support drill clearances at anything other then the R level, these posts will now behave like the R level and the DrillCP are the same level, this makes the tool motion match rendering.

LoadFeat

LoadFeat while obsolete has been changed in how it operates. It no longer requires the post to scale input values. Posts that used NumSC# to scale the input will need to be changed to ether not call load feat (most can just call LAST ZCP1C ) or to not scale the input.

ToolType$

This command supports all tool types now. For instance, Form tools output "CUSTOM" in legacy but output "FORM" in UKM.

CutDepth in Threading

Changed the CutDepth command to output a value equal to the thread height only when One Finish Pass is selected. (Defect# 12641)

Part Clearance and Op Clearance

Approach and retract moves may be different than previous versions in some parts/operation configurations . The Part Clearance (CP1) will be moved to the Entry and Exit Operation Clearances (CP2/CP3) if needed. For some parts that set operation clearances higher than part clearances, this will have the effect of moving the part clearance up to the level of the operation clearance, and creating a zero-length feature between the 2 clearance levels. This change was made to prevent inter-op paths from going “Up then down” for parts programmed incorrectly.

For Example: For a turn drill cycle, CP1 is set to 0.1 in the DCD and CP2 is set to 0.3 in the process dialog, the post will output a move to Z0.3 in the approach loop and no other op clearance moves.

Conditionality Changes

Conditionality has been changed significantly for V11. It no longer does simple comparisons of output numbers to detect a move. Conditionality in the entire posting system now uses the kinematic tree and does all tests in the tree’s machine space. This means that changes to output modes such as XsAreRadiiF, ClearCSOffset, and others will no longer cause unwanted output when the axis has not moved and only the mode has changed. This feature greatly reduces the redundant output caused by mode changes and ancillary axis motion (B axis head rotations in MTM). If a post developer wishes to force the output of an axis after a mode change, then they need to invalidate the status register for that axis using one of the Invalidate commands. This will force the output of the axis on the next Step that is capable of moving it.

Segmentation

All segmentation has been upgraded to make better decisions on how to segment. The algorithm takes into account additional factors which will generate more, less, and/or different arc segments in the output. One way to think of it is the new v11 segmentation algorithm segments in Machine Space whereas the legacy solution was in Part Space. This will affect the following commands: EACHArcSegment, EachFadalSegment, EachPiece, EACHQuadrant, EachRotarySegment, and EachSpiralSeg.

Coolant and Utility Operations

The default coolant state for a utility operations is "Off," and compost commands in legacy Gibbs would not detect this coolant state properly, now in V11 they do. This means querying IF CoolOff? in V11 for a Utility Operation without coolant will always be true, where legacy it wasn't necessarily. As an example, get the files in the following link and compare the .NCF (V11) and .OK (legacy) files. See how the end of Op2 (and other ops) turn off Coolant with M9 in the .NCF (V11) file. Download

Automatic Sub Expansion

Single Point Patterns and Face Polar Milling Patterns (Thread Milling) are automatically expanded longhand.

Spindle Control

In legacy GibbsCAM, the Sync dialog allowed the user to click/unclick a multi-flow utility op tile to add or remove spindle control to the operation. In V11, all mill and utility operations will force all op tiles to be selected, whereby giving it spindle control (see defect 29679 for more details). For posting, this means the SpindleControl? boolean is always true for mill and utility operations in V11, where legacy may not be the case. The SpindleControl? boolean is widely used, so the impacts are too generalized to mention, but the most common usage is with turning workpiece spindles on and off.