LegacyPostLogic: Difference between revisions
No edit summary |
|||
| Line 40: | Line 40: | ||
===ToolGroup# called outside EachOP Loop=== | ===ToolGroup# called outside EachOP Loop=== | ||
Older versions of the post engine would allow the command [[ToolGroup#]] to be called outside an operation loop, but did not always return valid information. V11 is designed to generate a posting error if this happens so the developers knows that the call is invalid. The legacy flag forces this case to return -1 and not generate the error. This was done so that old customer posts did not have to be updated to work in 11. The old values were invalid before and -1 is still invalid so the end result on the post logic is the same. | Older versions of the post engine would allow the command [[ToolGroup#]] to be called outside an operation loop, but did not always return valid information. V11 is designed to generate a posting error if this happens so the developers knows that the call is invalid. The legacy flag forces this case to return -1 and not generate the error. This was done so that old customer posts did not have to be updated to work in 11. The old values were invalid before and -1 is still invalid so the end result on the post logic is the same. | ||
===[[Plane]] commands and VMM Utility Ops=== | |||
Legacy GibbsCAM (GC2014 and earlier) only supported VMM utility operations for mill-turn style machines. GC2015 now supports VMM utility operations for milling only style machines. To support this new capability, the VMM will stamp the milling only utility operations to use the XY plane CS. This new VMM feature also means the post can't have this Legacy Post Logic flag set to get expected output. | |||
If the Legacy Post Logic checkbox is checked, then the [[Plane]] family of commands will work like they used to and always force the utility operations be in the ZX plane (G18), even on a milling only style machine. | |||
If the Legacy Post Logic checkbox is unchecked, then the [[Plane]] family of commands will work in the new way and output utility operations in the XY plane (G17) for milling only style machines. | |||
[[Category:Articles]] | [[Category:Articles]] | ||
Revision as of 18:18, 5 October 2015
Overview
The legacy post logic check-box in the Program Options dialog, Options tab in Compost controls a number of odd/inconsistent behaviors in the post engine. The check-box exists to allow older post processors to continue to run with the inconsistent behavior of older versions to maintain compatibility.
The vast majority of these behaviors are included simply to minimize the number of regression discrepancies. It is expected that newer post processors will be written to not rely on these problems and will want the more consistent behavior of the flag being disabled. The post engine will assume that a post processor has been updated to work with out the need for these legacy behaviors when the check-box is off.
All upgraded PST files have this check-box enabled by default so they will post as close to older versions as possible.
Effects of flag
When the check-box is enabled the following logical behaviors will be in effect.
Cylindrical Milling
In legacy mode, the post engine will ignore tracking of the cylindrical wrap axis to behave more like 10.7's separate status registers. Because post processors don't consistently call SetCylindricalInterp for wrapped ops that are posted with flat geometry, the post engine has to ignore some tracking calls to the linear axis that is tied to the wrap axis. This is a problem in V11 because even though a post may output a Y axis move when doing cylindrical interpolation, the actual Y axis on the machine does not move. The motion is output as a rotation. V11 knows this and maps the unwrapped linear axis to the matching rotary axis. The post engine assumes that posts that output flat will ask for Y values, and posts that output wrapped will ask for rotary values. Sadly not all posts do this consequently and track linear axes when they are actually output angles. To make these posts output valid g-code the post engine will ignore some tracking calls when they would conflict. This prevents the Y and C axis from "fighting" over the status in the case of a mill/turn.
Modern posts that do properly respect the rules about flat vs. wrapped do not need this legacy behavior.
Polar Milling
Some legacy post processors did not track both the X and Y values when outputting in polar-interpolation. For this reason our legacy emulation logic is designed to update the status state properly in these cases, pulling the missing information from the current feature's endpoint angle. Posts that correct output and track in a valid polar mode do not need this legacy behavior. This issue is mainly found in Okuma posts that incorrectly computed polar rotary motion from linear features.
Y axis on approach and retract
Older versions of the post engine defaulted the Y status register differently then V11 does (it was not based off a kinematic tree). This had the effect of changing the Y output in Mill/Turn approach loops and many posts depend on this behavior. The legacy logic flag puts in special logic to emulate this behavior in the status register. Newer posts that properly setup flow start status states, and fully output each move in the approach and retract do not want this behavior.
CRC Reversal
Older versions of the post engine would base CRC direction on how the part station depth axis mapped to the tool-group. This is inconsistent with all other plane based reversal systems, so posts would often have to reverse CRC differently then they did arcs and planes. The legacy behavior is to emulate this inconsistency. Posts that want all direction based computations be handled the same do not need this legacy behavior.
Turning Plane Reversal
Older versions of the post engine defined the plane for turning operations backwards from milling operations done in the same orientation. The legacy behavior is to emulate this inconsistency. Posts that want all planes to be based on the same computations do not need this legacy behavior.
ZDepth
Older versions of the post engine forced ZDepth to output a distance from the exit plane instead of an absolute value for milling ops. Posts that want all depths to be based on the same computations do not need this legacy behavior.
WFO Offsets
Older versions of the post engine automatically undid the effects of ClearCSOffset on each iteration of the EachOp/NextOp loop. This had the effect of putting posts back into "D" style when it was doing the previous operation's retract. This could have adverse affects on the exit moves if the machine was left in a local WFO. When the legacy logic is disabled, the previous op's WFO mode is left in effect until it is canceled.
FeedrateC And Rapid Moves
Older versions of the post engine would allow FeedrateC to be called and output on a rapid move. The legacy logic behavior is to still allow this. Modern posts suppress the output of feed rates on rapid moves.
LessThan Tolerance
Older versions of the post engine used a very loose tolerance for the Less Than operator. This can cause accuracy problems. The old tolerance is only enabled when the legacy logic flag is enabled.
ToolGroup# called outside EachOP Loop
Older versions of the post engine would allow the command ToolGroup# to be called outside an operation loop, but did not always return valid information. V11 is designed to generate a posting error if this happens so the developers knows that the call is invalid. The legacy flag forces this case to return -1 and not generate the error. This was done so that old customer posts did not have to be updated to work in 11. The old values were invalid before and -1 is still invalid so the end result on the post logic is the same.
Plane commands and VMM Utility Ops
Legacy GibbsCAM (GC2014 and earlier) only supported VMM utility operations for mill-turn style machines. GC2015 now supports VMM utility operations for milling only style machines. To support this new capability, the VMM will stamp the milling only utility operations to use the XY plane CS. This new VMM feature also means the post can't have this Legacy Post Logic flag set to get expected output.
If the Legacy Post Logic checkbox is checked, then the Plane family of commands will work like they used to and always force the utility operations be in the ZX plane (G18), even on a milling only style machine. If the Legacy Post Logic checkbox is unchecked, then the Plane family of commands will work in the new way and output utility operations in the XY plane (G17) for milling only style machines.