V11 Posting Output Changes: Difference between revisions
m Add Category:GibbsCAM v11 |
|||
| (60 intermediate revisions by 5 users not shown) | |||
| Line 2: | Line 2: | ||
GibbsCAM UKM Post Engine has been rewritten. This means that new capabilities were added that previous versions either didn't support, | 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. | or supported poorly. This wiki page will itemize the changes in posted output between GibbsCAM v10 and GibbsCAM UKM. | ||
An overview of the changes to UKM can be found on the [[WhatsInV11]] page. | |||
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. | 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. | ||
| Line 8: | Line 10: | ||
===MetricOutput? Command=== | ===MetricOutput? Command=== | ||
If the [[MetricOutput|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 | If the [[MetricOutput|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 generate an error because it can not determine the user's choice. Previous versions of the command would silently ignore the error and return a default value of FALSE. | ||
===Repeat Loops=== | ===Repeat Loops=== | ||
| Line 17: | Line 19: | ||
===Status Register=== | ===Status Register=== | ||
The Status register no longer tracks just the axis values that the post outputs. The | The Status register no longer tracks just the axis values that the post outputs. The Status 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. | 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. | ||
| Line 41: | Line 43: | ||
===Polar Interpolation Tracking=== | ===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 | 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 silenced (no output) tracking commands during polar interpolation should be removed (especially if suppressed tracking is done to linear axes) to avoid the risk of tracking to a rounded value which would conflict with the expected status position and cause Gibbs to throw an error (Discrepancy in calculated polar angle). | ||
===G92 error accumulation in .19 and previous posts=== | ===G92 error accumulation in .19 and previous posts=== | ||
| Line 50: | Line 52: | ||
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 | 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 [[ | 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. | 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. | ||
| Line 69: | Line 71: | ||
===Part Clearance and Op Clearance=== | ===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. | 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|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. [https://svn.gibbscam.com/svn/post_dev/samples/v10_UKM_Output_Diffs/Coolant.zip <nowiki>Download</nowiki>] | |||
===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|SpindleControl?]] boolean is always true for mill and utility operations in V11, where legacy may not be the case. The [[SpindleControl|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?]]=== | |||
[[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|FirstRotation?]]=== | |||
The [[FirstRotation|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|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): | |||
# 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.) | |||
# Click on the T1 Tool Group node. On the Orientation Tab, change the H Vector to X+. | |||
# Click on the Root node (main page), in the General tab, change the Views Workspace to Vertical Lathe. | |||
# Done. | |||
===[[Extended_Markers|Toolpath/Extended 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. | |||
===Depth Axis commands and non Z aligned tools=== | |||
GibbsCAM v11.0.3 and later will no longer assume that drilling operations move in Z for milling machines, or X/Z for Turning machines. All Depth axis commands ([[ZDepth]],[[ClearancePlane2]], etc..) now take the tool's orientation into account and will output the axis that corresponds to how the tool is oriented relative to the current output mode. For most parts this results in no change in output, since the tool will almost always be aligned with the depth axis of current output mode. The main change is for Right Angle Head adapters. For these machines the depth commands will work as expected when a right angle adapter orients the tool along X or Y in a milling part. This change is required in order to fully support right angle adapters. Some Mill/Turn parts with incorrectly oriented tools may be detected as right angle head cases and output values with the tool axis instead of the operation axis as they did before. In these cases the part must be changed to orient the tool properly. These cases all generate orientation errors during output. | |||
[https://svn.gibbscam.com/svn/post_dev/feature_samples/v10_UKM_Output_Diffs/ToolpathUtilityMarker.zip <nowiki>Download sample files illustrating the difference.</nowiki>] | |||
===[[FirstMove]]? and [[FirstAxisMove]]? Fixes=== | |||
GibbsCAM v11.0.4 and earlier has a bug where the commands [[FirstMove]]? and [[FirstAxisMove]]? would not return correctly for all driven axes. The commands have been fixed in 11.0.5 and later to properly detect moves in all cases (including forced moves due to tracking) and correctly match rendering. This bug had the effect of masking some MDDs with incorrect approach orders. These output from posts using these MDDs may change. If the new output is not desired, the MDD should be updated to the correct approach order. | |||
===Tilted ZX Cutting Plane and VMMs=== | |||
For details on this issue and its fix, [[Tilted_Cutting_Plane_and_VMMs|please see this article]]. | |||
===[[CWSpindle?]] , [[SpindleForward?]] , [[InverseSpinOn]]=== | |||
There is a change between 10 and 11 for [[CWSpindle?]] , [[SpindleForward?]] , and [[InverseSpinOn]]. | |||
The GC2014 post engine computed the spindle state by itself in flow order and was wrong in some cases (like when multiple flows use the same spindle or utility ops change spindle states). In v11 the spindle state is retrieved from the prog-iterator and it is tracked in time order. There may be cases where there are differences but the V11 ones should be correct according to the internal system state. | |||
If there is a concern that these command are misbehaving, it is suggested that one check the PIReport to see whether there is actually a conflict; it could be that fixes or enhancements in GibbsCAM are the cause of different output, as would be implied if the PI report showed differing output between versions. | |||
===[[PRIME]], [[ClearancePlane2#]] and [[ClearancePlane3#]]=== | |||
GibbsCAM v10.7 allowed PRIME to precede CP2 and CP3 commands while in Z Repeats, and would correctly shift the CP2/CP3 value to output in G54 (as [[PRIME]] intended). But now in GibbsCAM v11.3+ it no longer works the same. It was a deliberate fix to 11.3. | |||
'''Here's the history:''' | |||
[[PRIME]] did 2 things in 10.7, 1) it removes the WFO offset, 2) it removes the repeat offset. Because it did two things, it was not clear what it would do if it was called inside a repeat loop during an op with a WFO. Like "next" the command was not well made and was assumed it would not be used in a case where both things it changed were true. In 10.7 it would cancel both offsets and give the rad dialog value, even if there was no motion to that value in the current mode. | |||
11.x doesn't work off of raw dialog values, it has to work with moves so how prime was implemented was changed. There were reported issues where people wanted to get values inside the repeat loop and only get the first repeat value, and not cancel the WFO (Since [[PRIME]] is really only useful when one but not both cases was true). So we changed prime to not cancel the WFO when you are in a repeat loop. This made sense, you are in a repeat loop, you didn't cancel the WFO. So all calls to prime now inside a repeat loop, just cancel the repeat offset (give you the move for repeat 1). | |||
So this command is working as expected. | |||
See bug#46330 for further details and an example, if necessary. | |||
===[[AChange|AChange?]], [[BChange|BChange?]], and [[CChange|CChange?]]=== | |||
In GibbsCAM v10.7 and earlier, these booleans would return True if the current Op Start A/B/C Axis position is different than that of the previous operation's Op Start A/B/C axis position. <br> | |||
In GibbsCAM v11.0 and later, True if the current Op Start A/B/C Axis position is different than that of the previous operation's Op End A/B/C axis position. <br> | |||
This change was made because rotary milling posts would often have an operation end at a different angle than it started, so comparing the op start angles to detect if the angle changed was insufficient in GibbsCAM 10.7. | |||
=== [[OperationComment?]] and potentially other comment booleans === | |||
Prior to version 11, these booleans may not have been affected by the "insert comments" checkbox on the post processor dialog. Ideally this checkbox should cause these booleans to return false so comments are suppressed. This may cause booleans that were returning true in v10 (if a comment existed, whether or not it was to be output) to return false in v11 (even if comments exist in the entry field, the boolean will return false unless "insert comments" is checked). | |||
=== [[PRIME]] and output modes === | |||
Prior to version 11, this command may have returned the DCD home location regardless of the post output mode. This could not be relied upon and is no longer the case (3DS devs, see defect #46353). [[PRIME]] should only be used with work fixture output (where there are linear offsets that have been applied, that prime subtracts), and not in outputs modes such as [[SetUseOpCS]], [[SetUseWorkplaneAxes]], [[SetUseCSOrigin]]. | |||
===[[LastFeat|LastFeat?]] outside a feature loop=== | |||
In GibbsCAM 10.7 and earlier, it will return TRUE if called outside a feature loop. <br> | |||
In GibbsCAM 11.0 and later, it will return FALSE if called outside a feature loop. | |||
===[[SetUseOpCS]] & [[SetUseOpCSF]]=== | |||
Versions of GibbsCAM prior to version 11 are limited in when they can go into and out of OPCS mode using the SetUseOpCS command. This command was originally intended to output all ops in a program relative to the programed operation CS. This meant that the effects of the command only take effect when the EachOp/NextOp loop cycles. This limitation makes it very hard for posts to go into OPCS mode during an approach loop. We have used the OpCS command to implement workplanes in some special case Rotary Part Mill-Turn machines (Cublex), but have not done so for Rotary Head Mill-Turns. These limitations have been removed in V11 and more posts can be written using these styles of workplanes. Put simply : stating SetUseOpCS or SetUseOPCSF in v10, the command would not affect output until hitting a [[NextOp]], where as in v11 this command will affect the output immediately. | |||
===[[ZCP1]], [[ClearancePlane1#]], [[OfstOn]] and Incremental Mode=== | |||
Versions of GibbsCAM prior to version 11 did not output a Z-move when [[ZCP1]], [[ClearancePlane1#]], or [[OfstOn]] were used while in Incremental (G91) mode. Posts would have to utilize the [[LoadFeat]] command if they wanted to output [[ZCP1]] in incremental. Now in GibbsCAM version 11 and later, these commands will output an incremental value when called in incremental mode. | |||
===[[CallLab]] only outputs if Form data is present=== | |||
GibbsCAM 10.7 would output the [[Program#]] number (aka the value from [[CallLab]]) even if the 'Sub Number' text field in the Form was empty in the Form.<br> | |||
GibbsCAM 11+ will no longer output if the Form text field is empty. This change was made so that all commands that format using a label now perform consistently. | |||
===Axis output during polar and cylindrical milling, and the checkbox "assume cylindrical interpolation"=== | |||
The unwrap axis may output during cylindrical rotary milling when upgrading from GibbsCAM v10.x to v11+. | |||
During GibbsCAM 11+ post upgrades, the form checkbox labelled "assume cylindrical interpolation" will default to checked. When this checkbox is checked, the post engine will assume that the post code will request the appropriate axis that needs to be output (either Y or C, for instance), but not both.<br> | |||
In v10, during the approach, the '''actual''' axis values would be output (for Y, this is usually zero); in v11 during the approach, with the checkbox checked, we assume that whichever axis that is called for is the interpolation axis and will output even if that actual axis did not move. This can cause differences in old posts that checked for a Y move during the approach for rotary milling: in v10 actual Y would not move, so SPYMove? would be false, while in v11 the interpolated Y position is registered which will cause SPYMove? & YMove? etc. to be true, and a Y move to be output by any conditional Y move commands. This may result in both Y and C being output if the post is not set up properly.<br> | |||
Posts that tightly control which axes are output may leave this checkbox checked. Posts that are set up to allow the post engine to choose the appropriate axes for output while silencing all others should uncheck this box. | |||
[[Category:Articles]] | [[Category:Articles]] | ||
[[Category:GibbsCAM v11]] | |||
Latest revision as of 00:38, 20 October 2018
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.
An overview of the changes to UKM can be found on the WhatsInV11 page.
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 generate an error because it can not determine the user's choice. Previous versions of the command would silently ignore the error and return a default value of FALSE.
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 Status 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 silenced (no output) tracking commands during polar interpolation should be removed (especially if suppressed tracking is done to linear axes) to avoid the risk of tracking to a rounded value which would conflict with the expected status position and cause Gibbs to throw an error (Discrepancy in calculated polar angle).
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):
- 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.)
- Click on the T1 Tool Group node. On the Orientation Tab, change the H Vector to X+.
- Click on the Root node (main page), in the General tab, change the Views Workspace to Vertical Lathe.
- Done.
Toolpath/Extended 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.
Depth Axis commands and non Z aligned tools
GibbsCAM v11.0.3 and later will no longer assume that drilling operations move in Z for milling machines, or X/Z for Turning machines. All Depth axis commands (ZDepth,ClearancePlane2, etc..) now take the tool's orientation into account and will output the axis that corresponds to how the tool is oriented relative to the current output mode. For most parts this results in no change in output, since the tool will almost always be aligned with the depth axis of current output mode. The main change is for Right Angle Head adapters. For these machines the depth commands will work as expected when a right angle adapter orients the tool along X or Y in a milling part. This change is required in order to fully support right angle adapters. Some Mill/Turn parts with incorrectly oriented tools may be detected as right angle head cases and output values with the tool axis instead of the operation axis as they did before. In these cases the part must be changed to orient the tool properly. These cases all generate orientation errors during output.
Download sample files illustrating the difference.
FirstMove? and FirstAxisMove? Fixes
GibbsCAM v11.0.4 and earlier has a bug where the commands FirstMove? and FirstAxisMove? would not return correctly for all driven axes. The commands have been fixed in 11.0.5 and later to properly detect moves in all cases (including forced moves due to tracking) and correctly match rendering. This bug had the effect of masking some MDDs with incorrect approach orders. These output from posts using these MDDs may change. If the new output is not desired, the MDD should be updated to the correct approach order.
Tilted ZX Cutting Plane and VMMs
For details on this issue and its fix, please see this article.
CWSpindle? , SpindleForward? , InverseSpinOn
There is a change between 10 and 11 for CWSpindle? , SpindleForward? , and InverseSpinOn.
The GC2014 post engine computed the spindle state by itself in flow order and was wrong in some cases (like when multiple flows use the same spindle or utility ops change spindle states). In v11 the spindle state is retrieved from the prog-iterator and it is tracked in time order. There may be cases where there are differences but the V11 ones should be correct according to the internal system state.
If there is a concern that these command are misbehaving, it is suggested that one check the PIReport to see whether there is actually a conflict; it could be that fixes or enhancements in GibbsCAM are the cause of different output, as would be implied if the PI report showed differing output between versions.
PRIME, ClearancePlane2# and ClearancePlane3#
GibbsCAM v10.7 allowed PRIME to precede CP2 and CP3 commands while in Z Repeats, and would correctly shift the CP2/CP3 value to output in G54 (as PRIME intended). But now in GibbsCAM v11.3+ it no longer works the same. It was a deliberate fix to 11.3.
Here's the history: PRIME did 2 things in 10.7, 1) it removes the WFO offset, 2) it removes the repeat offset. Because it did two things, it was not clear what it would do if it was called inside a repeat loop during an op with a WFO. Like "next" the command was not well made and was assumed it would not be used in a case where both things it changed were true. In 10.7 it would cancel both offsets and give the rad dialog value, even if there was no motion to that value in the current mode.
11.x doesn't work off of raw dialog values, it has to work with moves so how prime was implemented was changed. There were reported issues where people wanted to get values inside the repeat loop and only get the first repeat value, and not cancel the WFO (Since PRIME is really only useful when one but not both cases was true). So we changed prime to not cancel the WFO when you are in a repeat loop. This made sense, you are in a repeat loop, you didn't cancel the WFO. So all calls to prime now inside a repeat loop, just cancel the repeat offset (give you the move for repeat 1). So this command is working as expected.
See bug#46330 for further details and an example, if necessary.
AChange?, BChange?, and CChange?
In GibbsCAM v10.7 and earlier, these booleans would return True if the current Op Start A/B/C Axis position is different than that of the previous operation's Op Start A/B/C axis position.
In GibbsCAM v11.0 and later, True if the current Op Start A/B/C Axis position is different than that of the previous operation's Op End A/B/C axis position.
This change was made because rotary milling posts would often have an operation end at a different angle than it started, so comparing the op start angles to detect if the angle changed was insufficient in GibbsCAM 10.7.
OperationComment? and potentially other comment booleans
Prior to version 11, these booleans may not have been affected by the "insert comments" checkbox on the post processor dialog. Ideally this checkbox should cause these booleans to return false so comments are suppressed. This may cause booleans that were returning true in v10 (if a comment existed, whether or not it was to be output) to return false in v11 (even if comments exist in the entry field, the boolean will return false unless "insert comments" is checked).
PRIME and output modes
Prior to version 11, this command may have returned the DCD home location regardless of the post output mode. This could not be relied upon and is no longer the case (3DS devs, see defect #46353). PRIME should only be used with work fixture output (where there are linear offsets that have been applied, that prime subtracts), and not in outputs modes such as SetUseOpCS, SetUseWorkplaneAxes, SetUseCSOrigin.
LastFeat? outside a feature loop
In GibbsCAM 10.7 and earlier, it will return TRUE if called outside a feature loop.
In GibbsCAM 11.0 and later, it will return FALSE if called outside a feature loop.
SetUseOpCS & SetUseOpCSF
Versions of GibbsCAM prior to version 11 are limited in when they can go into and out of OPCS mode using the SetUseOpCS command. This command was originally intended to output all ops in a program relative to the programed operation CS. This meant that the effects of the command only take effect when the EachOp/NextOp loop cycles. This limitation makes it very hard for posts to go into OPCS mode during an approach loop. We have used the OpCS command to implement workplanes in some special case Rotary Part Mill-Turn machines (Cublex), but have not done so for Rotary Head Mill-Turns. These limitations have been removed in V11 and more posts can be written using these styles of workplanes. Put simply : stating SetUseOpCS or SetUseOPCSF in v10, the command would not affect output until hitting a NextOp, where as in v11 this command will affect the output immediately.
ZCP1, ClearancePlane1#, OfstOn and Incremental Mode
Versions of GibbsCAM prior to version 11 did not output a Z-move when ZCP1, ClearancePlane1#, or OfstOn were used while in Incremental (G91) mode. Posts would have to utilize the LoadFeat command if they wanted to output ZCP1 in incremental. Now in GibbsCAM version 11 and later, these commands will output an incremental value when called in incremental mode.
CallLab only outputs if Form data is present
GibbsCAM 10.7 would output the Program# number (aka the value from CallLab) even if the 'Sub Number' text field in the Form was empty in the Form.
GibbsCAM 11+ will no longer output if the Form text field is empty. This change was made so that all commands that format using a label now perform consistently.
Axis output during polar and cylindrical milling, and the checkbox "assume cylindrical interpolation"
The unwrap axis may output during cylindrical rotary milling when upgrading from GibbsCAM v10.x to v11+.
During GibbsCAM 11+ post upgrades, the form checkbox labelled "assume cylindrical interpolation" will default to checked. When this checkbox is checked, the post engine will assume that the post code will request the appropriate axis that needs to be output (either Y or C, for instance), but not both.
In v10, during the approach, the actual axis values would be output (for Y, this is usually zero); in v11 during the approach, with the checkbox checked, we assume that whichever axis that is called for is the interpolation axis and will output even if that actual axis did not move. This can cause differences in old posts that checked for a Y move during the approach for rotary milling: in v10 actual Y would not move, so SPYMove? would be false, while in v11 the interpolated Y position is registered which will cause SPYMove? & YMove? etc. to be true, and a Y move to be output by any conditional Y move commands. This may result in both Y and C being output if the post is not set up properly.
Posts that tightly control which axes are output may leave this checkbox checked. Posts that are set up to allow the post engine to choose the appropriate axes for output while silencing all others should uncheck this box.