Extended Markers: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
JeffM (talk | contribs)
No edit summary
JeffM (talk | contribs)
No edit summary
Line 9: Line 9:
*Text Comments
*Text Comments
*Prog Stop
*Prog Stop
This is all in addition to the existing feedrate maker.


=Post Support=
=Post Support=
Line 40: Line 42:
Each marker type is implanted in one of two different ways. Markers are ether supported as new feature types, or as attributes on existing features. The implementation of the markers depends on how the marker is intended to work in in the program, and how it affects the features around them. All markers will "split" a feature when they are not placed on a start or end point.
Each marker type is implanted in one of two different ways. Markers are ether supported as new feature types, or as attributes on existing features. The implementation of the markers depends on how the marker is intended to work in in the program, and how it affects the features around them. All markers will "split" a feature when they are not placed on a start or end point.


== Marker Features ==
== Feature Based Markers ==
Markers that are implemented as new feature types all include a new ''Feat?'' boolean. These markers are assumed to be placed on lines by themselves and are assumed to take place instantly, and do not affect the state of any features before or after the marker.
Markers that are implemented as new feature types all include a new ''Feat?'' boolean. These markers are assumed to be placed on lines by themselves and are assumed to take place instantly, and do not affect the state of any features before or after the marker. If a particular control does not support a specific marker ( such as common with markers like tool sub position ) then the post can simply skip the feature.


=== Text Comment Marker ===
=== Text Comment Marker ===
Line 92: Line 94:




== New State Commands ==
== Attribute Based Markers ==
Markers that are implemented as new attributes on existing features have new boolean command associated with the marker, and must be called for every feature, if the marker is to be supported. The control of where the marker is to be placed is now up to the user or the toolpath generator, '''not the post'''.
 
=== Feedrate Markers ===
Feedrate makers are supported using the standard [[Feedrate]] commands. The conditional [[FeedrateC]]is simply called on every feature. This is currently supported in nearly every post. No additional change is needed.
 
Example:
  SeqC FeedC OutputCRCC MoveXYZABCC '''FeedrateC''' SpeedC OutputCRCOffsetC EOL
 
=== Spindle Speed Markers ===
Speed markers are supported using the standard [[Speed]] commands. The conditional SpeedC is simply called for every feature. This is not supported by most posts and must be added in a similar way to the existing feedrate commands.
 
Example:
  SeqC FeedC OutputCRCC MoveXYZABCC FeedrateC '''SpeedC''' OutputCRCOffsetC EOL
 
=== Tool Offset Change Markers ===
 


= Notes =
= Notes =

Revision as of 06:05, 25 March 2008

Overview

Extended markers were added to GibbsCAM for version 9.0. They allow the user a greater level of control over the program by allowing them to optimized not only the federates of a tool path but many other aspects, including;

  • Spindle Speed
  • Tool Offset
  • Cutter Radius Compensation
  • Dwells
  • Tool Sub-Position
  • Text Comments
  • Prog Stop

This is all in addition to the existing feedrate maker.

Post Support

There are 2 levels of post support for markers, Legacy, and Full support.

Legacy

Legacy post will only support 2 marker types, CRC and Feedrates.

Feedrate support has been included in post processors since the .82 format from the mid 1990's.

The post engine will automatically support federate markers by overriding the standard behavior of the CRCOn and CRCOff commands.

This will allow some marker support in the majority of the existing posts. There are posts that will not "pick up" the marker support and that is a known issue. They will have to be upgraded as needed.

Full Marker Support

To fully support markers a post processor must be upgraded. Upgraded posts fully support all marker types that are valid for the machine type.

Upgrade

Upgrading a post to full marker support is a moderately trivial task, and simply requires a few changes to the post.

Compost Flag

In order to have the post engine send all marker types to the post processor the form must be flagged as supporting the markers. This is an option in Compost 3 1.3.3 or later, under the Flags item in the Advanced menu.

When this item is checked, the post engine will send all possible markers to the post processor as part of the toolpath (EachFeat/NextFeat loop ).

Toolpath

The first thing to do when upgrading a post is to ensure that the toolpath loop does not make any assumptions about what type of feature it is on. Some older posts will simply have an "else" case at the end of the feature tests, and assume that the feature is an arc or a point. This will cause problems if the extended marker features are passed to the post and it attempts to treat them as thewrong kind of feature. This can be solved by ensureing that every feature type has it's own corosponding IF test, and that the final ELSE case is left empty. Advanced marker support is best supported by posts that have been upgraded to the current Master Post for the machine type.

Marker Types

Each marker type is implanted in one of two different ways. Markers are ether supported as new feature types, or as attributes on existing features. The implementation of the markers depends on how the marker is intended to work in in the program, and how it affects the features around them. All markers will "split" a feature when they are not placed on a start or end point.

Feature Based Markers

Markers that are implemented as new feature types all include a new Feat? boolean. These markers are assumed to be placed on lines by themselves and are assumed to take place instantly, and do not affect the state of any features before or after the marker. If a particular control does not support a specific marker ( such as common with markers like tool sub position ) then the post can simply skip the feature.

Text Comment Marker

The text comment marker will generate a feature that will cause the CommentFeat? boolean to return true. The text comment may include more then one line, so the post processor must execute an EachCommentFeatLine / NextCommentFeatLine loop. Inside this loop, the command CommentFeatLine$ is called to output the code for each line.

Example:

 IF CommentFeat?
   EachCommentFeatLine
     SeqC '(' CommentFeatLine$ ')' EOL
   NextCommentFeatLine
 END

The post engine will not do any processing or verification of any of the contents of the Comment Marker, it is simply output. No post script, or special command parsing of the text is provided.

Tool Sub Position Marker

The Tool SubPos marker will generate a new feature that will cause the ToolSubPosFeat? boolean to return true. This feature should be output on a line by itself by the post processor, and the post must not output any additional tool path or clearance moves. It is assumed that the customer will place these markers in the appropriate place in the tool path for there needs ( impeded retracts or clearance moves ). The addition of moves by the post processor will not allow the program to be properly simulated.

The existing sub position command ToolSubPosition# is used to get the new sub position.

Example:

 IF ToolSubPosFeat?
     SeqC 'M19' 'S' ToolSubPosition# EOL
 END

The commands TLToolSubPosition# and ToolSubPosChange? are not used by this feature.

Program Stop Marker

The prog stop marker will generate a new feature that will cause the ProgStopFeat? boolean to return true. This feature should be output on a line by itself by the post processor, and the post must not output any additional tool path or clearance moves. It is assumed that the customer will place these markers in the appropriate place in the tool path for there needs ( impeded retracts or clearance moves ). The addition of moves by the post processor will not allow the program to be properly simulated.

The existing OptionalStops? is used to test the type of stop.

Example:

 IF ProgStopFeat?
     SeqC
     IF OptionalStops?
       'M1'
     ELSE
       'M0'
     END
     EOL
 END

Dwell Marker

The dwell marker will generate a new feature that will cause the DwellFeat? boolean to return true. This feature should be output on a line by itself by the post processor. Dwell features have been supported for some time in a number of operation types ( mostly turning ops, and expanded drill cycles ), and the same commands used in the past to support the markers, including Dwell# and DwellRevs#.

Example:

 IF DwellFeat?
     SeqC 'G4 X' Dwell# EOL
 END


Attribute Based Markers

Markers that are implemented as new attributes on existing features have new boolean command associated with the marker, and must be called for every feature, if the marker is to be supported. The control of where the marker is to be placed is now up to the user or the toolpath generator, not the post.

Feedrate Markers

Feedrate makers are supported using the standard Feedrate commands. The conditional FeedrateCis simply called on every feature. This is currently supported in nearly every post. No additional change is needed.

Example:

 SeqC FeedC OutputCRCC MoveXYZABCC FeedrateC SpeedC OutputCRCOffsetC EOL

Spindle Speed Markers

Speed markers are supported using the standard Speed commands. The conditional SpeedC is simply called for every feature. This is not supported by most posts and must be added in a similar way to the existing feedrate commands.

Example:

 SeqC FeedC OutputCRCC MoveXYZABCC FeedrateC SpeedC OutputCRCOffsetC EOL

Tool Offset Change Markers

Notes