V11 Posting Output Changes: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Dannym (talk | contribs)
Dannym (talk | contribs)
No edit summary
Line 148: Line 148:
# Click on the Root node (main page), in the General tab, change the Views Workspace to Vertical Lathe.
# Click on the Root node (main page), in the General tab, change the Views Workspace to Vertical Lathe.
# Done.
# Done.
===Toolpath Utility Markers===
GibbsCAM v10.7 had a bug with Toolpath Utility Markers that caused the marker to be applied a line too early. GibbsCAM v11 has corrected the bug so the difference in output will show the utility marker being applied a line later.
The rule is that tool offset change, CRC change, spindle speed change, and other markers should be applied following the marker.
[https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/ToolpathUtilityMarker.zip <nowiki>Download sample files illustrating the difference.</nowiki>]


[[Category:Articles]]
[[Category:Articles]]

Revision as of 23:16, 1 July 2015

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.

NewTool?

NewTool? has received some changes, mainly due to bug fixes, new features in the MDD, and specification refinement.

Legacy Non-Looper

For legacy non-looper posts, the command will behave the same as it did in previous versions, except when transitioning from an op with a tool that uses ToolID to an op with a tool that doesn't use ToolID and they have the same tool number. In this case the command will return false; meaning we no longer consider this scenario a tool change because the machine would be told to change to the same tool number it is on.

Looper and Stepper Posts

NewTool? has been changed to accurately reflect tool-changes that are shown in simulation and rendering,and has been extended to support the new Tool Change Events that are available in machine manager. The command now only returns true when the tool-group actually changes tools. The behavior is no longer based on what tool an operation is set to.

Non Tool Utility Ops

This change will have some effect on how some post processors handle transitions between an op that controls a tool and one that does not. An op that does not control a tool does not cause the machine to unload the current tool, it simply does not use it. This means that a change to or from an op that doesn't use a tool is not technically a tool change, since the machine may not not change tools. A number of older looper based posts will change from using the "New Tool Op" section of the prog to using the "Same Tool Off Part" sections in cases where non-tool ops are is in-between two same tool ops. The output from posts will still be valid but may be slightly different, the most commonly observed difference is that the post will not restate the tool. This considered an acceptable change since the machine was left on the required tool. If the customer wishes to restate the the tool or other values, then the post should check to see if the previous op controlled a tool instead of checking the NewTool? boolean.

MoveC and OkumaMoveC

There was a change in the behavior of the "MoveC" set of commands for V11. They used to be special cased and did not follow the same rules as other axes. This has been fixed in V11.

in 10.7 the "rotary C" was updated to toolpath start on EachOp. This post then did not make any calls to CalcCAng. This prevented the special C from being updated. When the OkumaMoveC# was called after the BTC loop it just went and read the current value. If the post had done anything with C during the BTC loop, the angle after the BTC loop would have been changed. This is not good behavior since it is based on the state.

In V11, the C axis is now read like all other axes, it is updated on every feature loop (ATC and BTC) included. This means that after the BTC loop, the C axis is at the tool change C, just like the Z value is at the tool change Z. This is consistent and desired behavior.

When posts want values for the toolpath start location, they should use the StartPos set of commands. These commands are not based on the state of feature loops and have consistent behavior. In this case the post should call StartPosC# and set the angle output mode in the form to Okuma. This way the C axis behaves the same as all other axes (you would not call EPZ# to get the toolpath start in the same place, you'd call StartPosZ#)

CalcRPM2

There is a change between 10 and 11 for the CalcRPM2 command.

GC2014 used the last X you were at to compute an RPM. GC2015 uses the RPM from CP3 where we know we turn CSS Off. This is so the command can match the prog-iterator speeds and match run-times.

FirstRotation?

The FirstRotation? boolean used to return true in GC2014 if Rotations? was false (weren't any rotations). It now returns false in GC2015.

It would also return true if called outside the EachRotation/NextRotation loop, in GC2014. It now returns false in GC2015.

The new 5-axis canned cycle drilling implementation relies on this change to FirstRotation?.

Incremental Arc Centers

The CircleIC, CircleJC, and CircleKC commands have been fixed to be consistent with other conditional move commands where incremental-zero moves are skipped and are no longer output. An incremental distance of 0 is the same as no output, aka “don’t move.” GC2014 would output I0, J0, or K0 for an incremental arc center move while using these conditional commands, but GC2015 no longer outputs them. In GC2015, for machines that do incremental arc centers, if they always want to output a value, then use the non-conditional commands (CircleI, CircleJ, and CircleK).

Here is an example of the output difference:

GC2014: G3 X444.805 Z51.534 I0. K.38

GC2015: G3 X444.805 Z51.534 K.38

ClearancePlane1#

The CP1 value is only computed for operations that go to CP1. This keyword will not give desired results for a same tool operation that does not specifically use the CP1 level or is not preceded with an off part event.

ContourFeed2# and OpContourFeed#

With Keyword list 293, the ContourFeed2# keyword was changed to OpContourFeed#.

Rotated Tool Approach

Axis output control in v11 is a bit different than with v10. You may notice a difference in looper approach of a rotated tool. See "Conditionality Changes" earlier in this article. Tool length offset activation uses a mode change, from SetOutputStraigthTG to SetOutputRotatedTT for example. When this mode change causes a change in linear axis positions, v10 would output those axes, v11 does not. If your tool length offset activation line is missing an axis, the workaround is to force all linear axes. See the differences in approachMove between the previous Rotary Head master "Sample TT NHDU99.26im" and the current Full Looper master "Fanuc 15iM 5AS [VG] NRHDU99.26.2im" post processor. It is recommended that whenever there is undesired output with a GibbsCAM update that you update your post processor to the latest master format. It is intended that masters used with v10 will output correctly with v11, so you should only need to update to the latest v10 master and not all the way to the v11 master.

Table-Table Lathe MDDs

GibbsCAM v10.7 and earlier required Lathe MDDs that had a 5th rotary axis on the workpiece (instead of the Toolgroup) to be use MTM MDDs/Posts. We often refer to these type of MDDs as CUBLEX-style since the CUBLEX machine was the first to need this special kinematic configuration. (We have since seen other machines, and found that this configuration isn't so special.)

The changes in v11 requires that CUBLEX-style MDDs be changed. The Post Engine will detect this obsolete MDD configuration and throw up an error and stop posting: "Legacy Table-Table Turning configuration detected. Update MDD with correct kinematic orientations."

In order to update the MDD in v11, follow these instructions (in Machine Manager):

  1. Click on the B101 Rotary Axis node in the Kinematic Tree. On the Rotary Axis tab, change the Zero Vector to "Along +Z". (When you leave this page, the Zero Vector option will disappear. This is because the Developers no longer want you changing this node when it's set to a Standard configuration.)
  2. Click on the T1 Tool Group node. On the Orientation Tab, change the H Vector to X+.
  3. Click on the Root node (main page), in the General tab, change the Views Workspace to Vertical Lathe.
  4. Done.

Toolpath Utility Markers

GibbsCAM v10.7 had a bug with Toolpath Utility Markers that caused the marker to be applied a line too early. GibbsCAM v11 has corrected the bug so the difference in output will show the utility marker being applied a line later.

The rule is that tool offset change, CRC change, spindle speed change, and other markers should be applied following the marker.

Download sample files illustrating the difference.