Adding Broaching Support to a .62 post
Turn on Broaching in the Form

Suppress G97 output in Broaching ops
constantRPM: IF IsAnyTurningOp? AND NOT OpIsPartOriented? 'G97' END RETURN
Don't use SpeedRPM# at all in Broaching Ops
If your SameTool subs use logic similar to:
IF NotEqual? SpeedRPM# LASTOperation SpeedRPM#
You need to add NOT OpIsToolOriented? / NOT OpIsPartOriented? before this, as using SpeedRPM# in an IF statement will cause GibbsCAM to throw an exception. For example, change from:
IF holdPartStationCodes?
{ * No Output of Spindle On Here * }
ELSE
IF NotEqual? SpeedRPM# LASTOperation SpeedRPM#
SeqLabC CSSOff constantRPM doSpeed ckSpinOn EOL
ELSE
SeqLabC ckSpinOn EOL
END
END
To:
IF holdPartStationCodes?
{ * No Output of Spindle On Here * }
ELSEIF NOT OpIsPartOriented?
IF NotEqual? SpeedRPM# LASTOperation SpeedRPM#
SeqLabC CSSOff constantRPM doSpeed ckSpinOn EOL
ELSE
SeqLabC ckSpinOn EOL
END
END
I advise using the Compost4 search function to search for the SpeedRPM#, SpeedSFPM#, and SpeedSUPM# in your post, and make sure that you cannot reach this logic in a Broaching op.
Always call toolPath if no other logic returns TRUE
In millCore:
Change:
ELSE IF Drilling?
to:
ELSEIF Drilling?
Change:
ckDrillClampOff END END
to:
ckDrillClampOff ELSE toolPath END
Output C-only moves for Positioning and Rotations
In tpLineFeat:
Change:
ELSE {implies Position}
IF XMove? OR YMove? OR ZMove?
SeqLabC doAbsOrInc ckCRC FeedC doMoveXC doMoveYC doMoveZC doFeedRateC doSpeedC doToolOffsetC EOL
END
END
Add CMove? and doMoveCC call:
ELSE {implies Position}
IF XMove? OR YMove? OR ZMove? OR CMove?
SeqLabC doAbsOrInc ckCRC FeedC doMoveXC doMoveYC doMoveZC doMoveCC doFeedRateC doSpeedC doToolOffsetC EOL
END
END
In tpRapidFeat:
Change:
ELSE {implies Position}
IF XMove? OR YMove? OR ZMove?
SeqLabC doAbsOrInc ckCRC RapidC doMoveXC doMoveYC doMoveZC doSpeedC doToolOffsetC EOL
END
END
Add CMove? and doMoveCC:
ELSE {implies Position}
IF XMove? OR YMove? OR ZMove? OR CMove?
SeqLabC doAbsOrInc ckCRC RapidC doMoveXC doMoveYC doMoveZC doMoveCC doSpeedC doToolOffsetC EOL
END
END
Special Consideration for Rotary Broaching - multiple spindle speeds
Rotary Broaching operations are special, in that they are currently the only type of operation in GibbsCAM (as of v13) that can have more than one spindle speed if the "Entry RPM" box is checked in the Process dialog. Due to the way older post commands work, the Speed/SpeedC commands will output ONLY the "Broaching RPM" speed, and thus an older post will never output the "Entry RPM" speed.

As a workaround, the EntrySpeedC commands were added in GibbsCAM v13.0.18. After some testing, the GibbsCAM Post Department has found that replacing Speed in the Approach loop - in the getSpeed: sub in many older posts, for example - with the following code seems to work well:
IF (EntrySpeedRPM# != SpeedRPM#)
' S' Output('S', EntrySpeedRPM#)
ELSE
Speed
END
Similarly, SpeedC can be replaced with:
IF (EntrySpeedRPM# != SpeedRPM#) EntrySpeedC ELSE SpeedC END
This will result in the "Entry RPM" value being output in the Approach Loop, and the "Broaching RPM" value being output during Toolpath at the appropriate Marker. Other operation types will continue to use the standard Speed/SpeedC commands due to the ELSE statement.