LegacyPostLogic: Difference between revisions
Created page with "==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 chec..." |
No edit summary |
||
| Line 4: | Line 4: | ||
All upgraded PST files have this check-box enabled by default. | All upgraded PST files have this check-box enabled by default. | ||
Newer post processors should be written with this check-box off so they perform consistently. | Newer post processors should be written with this check-box off so they perform consistently. The post engine will assume that a post processor has been updated to work with out the need for these legacy behaviors when the checkbox is off. | ||
==Effects of Check-box== | ==Effects of Check-box== | ||
When the check-box is enabled the following logical behaviors will be in effect | 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. | |||
Revision as of 19:58, 2 June 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.
All upgraded PST files have this check-box enabled by default.
Newer post processors should be written with this check-box off so they perform consistently. The post engine will assume that a post processor has been updated to work with out the need for these legacy behaviors when the checkbox is off.
Effects of Check-box
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.