Workfixtures: Difference between revisions
No edit summary |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
The new work fixture functionality manages all WFO computation and output internal to the post engine and supports all WFO modes (single and multiple parts) as well as managing several fallback methods for machines that do not have enough WFOs for all operations in a part. | The new work fixture functionality manages all WFO computation and output internal to the post engine and supports all WFO modes (single and multiple parts) as well as managing several fallback methods for machines that do not have enough WFOs for all operations in a part. | ||
== | ==Form Data== | ||
[[Image:WFO Dialog.PNG | right]] | [[Image:WFO Dialog.PNG | right]] | ||
The WFO system is designed around the concept of pre-computing WFOs for the entire program before the post processor even runs. The WFOs are computed using data provided by the post professor form in the Worfixtures dialog, accessed from the Form -> Offsets and Workplanes menu. | The WFO system is designed around the concept of pre-computing WFOs for the entire program before the post processor even runs. The WFOs are computed using data provided by the post professor form in the Worfixtures dialog, accessed from the Form -> Offsets and Workplanes menu. | ||
===Workfixtures Dialog=== | ===Workfixtures Dialog=== | ||
In this dialog, the post developer specifies a number of work fixture ranges. This allows the post engine to know how many WFOs are available for a specific machine. By default WFOs are assigned from the | In this dialog, the post developer specifies a number of work fixture ranges. This allows the post engine to know how many WFOs are available for a specific machine. By default WFOs are assigned from the first range in order up to the last range. | ||
====Ranges==== | ====Ranges==== | ||
| Line 54: | Line 54: | ||
* Linear Offsets: The system will compute a linear shift (G52/G92) for each part or op as needed. This can allow operations to still be placed in subprograms with out needing a WFO to shift the origin. | * Linear Offsets: The system will compute a linear shift (G52/G92) for each part or op as needed. This can allow operations to still be placed in subprograms with out needing a WFO to shift the origin. | ||
* Error: No fallback will be used and an error will be generated. Posting will stop. This is for cases where the CNC has no way of outputing the desired program. | * Error: No fallback will be used and an error will be generated. Posting will stop. This is for cases where the CNC has no way of outputing the desired program. | ||
====Group Part WFOs==== | |||
When checked the system will try to pre-allocate all part instance WFOs first, before processing any operation WFOs. This will group the part WFOs in a contiguous block. This setting is ignored if the user has manually define any user WFOs for any CSs in the CS List in GibbsCAM. | |||
====Default Part WFOs==== | |||
This dialog allows the post to define specific WFOs to be assigned to specific part stations from the MDD. The vast majority of posts do not need this setting, it is only needed when a part station needs a specific WFO that is not contiguous with it's part station number. Single part MDDs will always pre-assign the first WFO to the part, and most MTMs can just use the group part WFOs option. | |||
====Local CS Shfit Code==== | |||
This G-Code will be used by the local shift command when local shift fallbacks are in use. | |||
====Workfixture Usage==== | |||
The chekboxes determine what op types can be assigned an operation WFO. Unchecked op types will be output in the WFO for whatever part they are on. | |||
==Compost Commands== | |||
Once a post has been configured to use the workfxitures system it has access to a number of new commands to output the data in the post. | |||
===Most Common Machines=== | |||
The WFO system is designed to be simple to use for the most common CNC machines. | |||
When posts want to output a WFO for an operation , if one exists, they simply need to call 2 commands. | |||
SeqLabC [[UseOpWFO]] EOL | |||
SeqLabC [[UseOpLocalShift]] EOL | |||
These commands will conditionally output the WFO and local Shift (if used) for the current operation. If an op wfo was not computed, or a fallback is in use, these commands will handle them correctly. These commands support both single and multi-part cases, so no additional logic is required for multi-part. | |||
The Op WFO can be canceled by going back to ether the part WFO/shift using the following commands. | |||
SeqLabC [[UsePartWFO]] EOL | |||
SeqLabC [[UsePartLocalShift]] EOL | |||
The part station WFO (may be different from the part WFO ) can be set with the command. this is useful for off part motion such as tool change positions that are defined in the part station rather than the individual part instance. Part Stations never have a linear shift value. | |||
SeqLabC [[UsePartStationWFO]] EOL | |||
The operation command can be automatically generated with the [[OpWFOComment]] command. | |||
Several Boolean commands are available to tell the post what the state of the WFO system is | |||
[[UsingOpWFOs]]? | |||
[[UsingPartWFOs]]? | |||
[[PartInstanceWFOs]]? | |||
[[PartInstancesCanDoSubs]]? | |||
If a post processor is unable to use the built in WFO codes for any reason, it can manually get and apply the WFOs using the following commands. | |||
Axis offset comands | |||
[[OpWFOAxisOffset]]#('Axis') | |||
[[AxisInOpWFO]]?('Axis') | |||
WFO index commands, to get the WFO index so the post can compute the g-code label. The WFO index is zero based. | |||
[[OpWFOIndex]]# | |||
[[PartWFOIndex]]# | |||
[[PartStationWFOIndex]]# | |||
Commands to get the WFO Code but not apply the shift to the output. | |||
[[OpWFOCode]] | |||
[[PartWFOCode]] | |||
[[PartStationWFOCode]] | |||
Commands the shift to the output but not output the code | |||
[[SetOpWFO]] | |||
[[SetPartWFO]] | |||
[[SetPartStationWFO]] | |||
Commands to get a WFO list | |||
[[EachWorkfixture]] / [[NextWorkfixture]] | |||
==Notes on differences from legacy behavior== | |||
The new WFO system was not designed to emulate the flawed logic that older post processors employed. It was designed to provide optimized WFO usage for customer parts. For this reason the output of the new WFO system will not match the output of old post processors in every case. | |||
* The System uses as many WFOs as possible, in order to maximize the number of available WFOs. | |||
* The system supports an additional "D style" mode where each part is given a WFO but each op is not. | |||
* The shift system is based on actual operation locations, not just equally spaced offsets in multi-part so it will output different offsets at different times. | |||
* Multi-part fully defines where all parts are, so those locations are used for WFO computations. | |||
Additionally there are two new user options on the post dialog that are not available for legacy posts. | |||
The user can turn off WFOs, effectively turning every post processor into a single WFO post. When active, this forces the system to assume there is only one WFO per part station, and to process the fallbacks as defined in the post. | |||
The user can have the system combine identical WFOs. This uses the information in the post regarding what offsets are in a WFO, and WFOs with identical offsets are combined, regardless of the CS they come from. | |||
[[Category:Articles]] | [[Category:Articles]] | ||
Latest revision as of 16:23, 23 August 2018
Overview
GibbsCAM 12 added dedicated command support for Work Fixture Offsets (WFOs) to the compost language and GibbsCAM. Previously WFO computation and output was handled entirely by the post processors and had a number of issues.
- No optimization of WFO uses
- Gaps in WFOs for multiple parts
- No support for WFO use on machines with additional rotary or redundant axes (W axis machines, and 6 axis rotary machines).
- A hard limit of one WFO per operation CS.
- Separate logic for Multi-Part
- Limited Multi-part functionality.
The new work fixture functionality manages all WFO computation and output internal to the post engine and supports all WFO modes (single and multiple parts) as well as managing several fallback methods for machines that do not have enough WFOs for all operations in a part.
Form Data
The WFO system is designed around the concept of pre-computing WFOs for the entire program before the post processor even runs. The WFOs are computed using data provided by the post professor form in the Worfixtures dialog, accessed from the Form -> Offsets and Workplanes menu.
Workfixtures Dialog
In this dialog, the post developer specifies a number of work fixture ranges. This allows the post engine to know how many WFOs are available for a specific machine. By default WFOs are assigned from the first range in order up to the last range.
Ranges
At least one WFO must be specified. The system will generate an error if the machine does not have at least one free WFO for each part station as defined in the MDD. Both the Minimum and Maximum WFO numbers are included in each range.
Workfixture Options

This section defines the WFO options that will be used when computing WFOs for a program. If the ‘Pre-Compute WFOs’ checkbox is unchecked, the system will not do any work to compute WFOs and the Workfixtures options tab in the post dialog will not be shown when the post is selected. The post is assumed to be a legacy post processor and will do its own computations for WFOs if they are supported at all.
WFO Type
This setting tells the system how workfxitures are used on the CNC Machine.
- Per Part : In this mode, a single WFO is assigned to each part station or mutli-part instance. This is known as "D style" in legacy post processors.
- Linear Offset Only: A WFO will only have linear (XYZ) offsets on the CNC Machine. The rotary orientation of the part will not be used to compute the WFO. This is known as "C style" in legacy post processors.
- Linear and Rotary Offsets: A WFO will contain offsets for the entire interpolation set, including table rotary axes. this is known as "B style" in legacy post processors.
This setting will determine how many WFOs are computed for the program based on the operation CSs and cutting orientations. Since the system knows what is included in each WFO, it is able to know if the same Operation CS used in different orientations can be used in the same WFO at run time or not. This allows for the correct generation of multiple WFOs from the same CS when there are redundant axes.
WFO Linear Origin
This defines the origin for the WFO. This setting only affects the offsets returned for WFO comments and pre-setting to the post. It does not affect the computed toolpath in any way. This setting should be set to match how the CNC machine accepts WFO input.
- From Part Origin: This is the legacy default mode for the CSOffsetX#/CSOffsetY#/CSOffsetZ# commands, from the part XY CS (CS1).
- From Part Station: This is the most common origin type for CNC Machines, it defines the origin from the part station, usually known as G53.
- From Toolgroup: This is an uncommon but not unheard of origin type where the WFOs are defined from machine home, usually known as G28.
Fallback Options
Fallback options tell the system how to handle cases where there are not enogh Workfixtures for the current program. This can happen if the user programs too many operations in different CSs or more multiple parts than the machine can handle with WFOs.
Fallbacks are broken into 2 categories,
- Insufficient Op WFO Fallback : This is the fallback to use when there are not enough WFOs to assign to all the operations in a program.
- Insufficient Part WFO Fallback : This is the fallback to use when there are not enough WFOs to assign to all the part instances in a multi-part program.
Both fallback categories use the same set of options.
- Part Workfixture : the fallback will go back to the part or part station WFO as needed. If there are enough WFOs for each part but not enough WFOs for each op in a multi-part case, one WFO will be assigned to each part instance. If there are not enough WFOs for the parts, the entire program will be output from the part station WFO (G54).
- Linear Offsets: The system will compute a linear shift (G52/G92) for each part or op as needed. This can allow operations to still be placed in subprograms with out needing a WFO to shift the origin.
- Error: No fallback will be used and an error will be generated. Posting will stop. This is for cases where the CNC has no way of outputing the desired program.
Group Part WFOs
When checked the system will try to pre-allocate all part instance WFOs first, before processing any operation WFOs. This will group the part WFOs in a contiguous block. This setting is ignored if the user has manually define any user WFOs for any CSs in the CS List in GibbsCAM.
Default Part WFOs
This dialog allows the post to define specific WFOs to be assigned to specific part stations from the MDD. The vast majority of posts do not need this setting, it is only needed when a part station needs a specific WFO that is not contiguous with it's part station number. Single part MDDs will always pre-assign the first WFO to the part, and most MTMs can just use the group part WFOs option.
Local CS Shfit Code
This G-Code will be used by the local shift command when local shift fallbacks are in use.
Workfixture Usage
The chekboxes determine what op types can be assigned an operation WFO. Unchecked op types will be output in the WFO for whatever part they are on.
Compost Commands
Once a post has been configured to use the workfxitures system it has access to a number of new commands to output the data in the post.
Most Common Machines
The WFO system is designed to be simple to use for the most common CNC machines.
When posts want to output a WFO for an operation , if one exists, they simply need to call 2 commands.
SeqLabC UseOpWFO EOL SeqLabC UseOpLocalShift EOL
These commands will conditionally output the WFO and local Shift (if used) for the current operation. If an op wfo was not computed, or a fallback is in use, these commands will handle them correctly. These commands support both single and multi-part cases, so no additional logic is required for multi-part.
The Op WFO can be canceled by going back to ether the part WFO/shift using the following commands.
SeqLabC UsePartWFO EOL SeqLabC UsePartLocalShift EOL
The part station WFO (may be different from the part WFO ) can be set with the command. this is useful for off part motion such as tool change positions that are defined in the part station rather than the individual part instance. Part Stations never have a linear shift value.
SeqLabC UsePartStationWFO EOL
The operation command can be automatically generated with the OpWFOComment command.
Several Boolean commands are available to tell the post what the state of the WFO system is
UsingOpWFOs? UsingPartWFOs? PartInstanceWFOs? PartInstancesCanDoSubs?
If a post processor is unable to use the built in WFO codes for any reason, it can manually get and apply the WFOs using the following commands.
Axis offset comands
OpWFOAxisOffset#('Axis') AxisInOpWFO?('Axis')
WFO index commands, to get the WFO index so the post can compute the g-code label. The WFO index is zero based.
OpWFOIndex# PartWFOIndex# PartStationWFOIndex#
Commands to get the WFO Code but not apply the shift to the output.
OpWFOCode PartWFOCode PartStationWFOCode
Commands the shift to the output but not output the code
SetOpWFO SetPartWFO SetPartStationWFO
Commands to get a WFO list
EachWorkfixture / NextWorkfixture
Notes on differences from legacy behavior
The new WFO system was not designed to emulate the flawed logic that older post processors employed. It was designed to provide optimized WFO usage for customer parts. For this reason the output of the new WFO system will not match the output of old post processors in every case.
- The System uses as many WFOs as possible, in order to maximize the number of available WFOs.
- The system supports an additional "D style" mode where each part is given a WFO but each op is not.
- The shift system is based on actual operation locations, not just equally spaced offsets in multi-part so it will output different offsets at different times.
- Multi-part fully defines where all parts are, so those locations are used for WFO computations.
Additionally there are two new user options on the post dialog that are not available for legacy posts.
The user can turn off WFOs, effectively turning every post processor into a single WFO post. When active, this forces the system to assume there is only one WFO per part station, and to process the fallbacks as defined in the post.
The user can have the system combine identical WFOs. This uses the information in the post regarding what offsets are in a WFO, and WFOs with identical offsets are combined, regardless of the CS they come from.