Adding Broaching Support to a .62 post: Difference between revisions
Add SpeedRPM# section |
JeffBuchan (talk | contribs) No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 26: | Line 26: | ||
IF holdPartStationCodes? | IF holdPartStationCodes? | ||
{ * No Output of Spindle On Here * } | { * No Output of Spindle On Here * } | ||
ELSEIF NOT | ELSEIF NOT OpIsPartOriented? | ||
IF NotEqual? SpeedRPM# LASTOperation SpeedRPM# | IF NotEqual? SpeedRPM# LASTOperation SpeedRPM# | ||
SeqLabC CSSOff constantRPM doSpeed ckSpinOn EOL | SeqLabC CSSOff constantRPM doSpeed ckSpinOn EOL | ||
| Line 35: | Line 35: | ||
</nowiki> | </nowiki> | ||
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. | 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== | ==Always call toolPath if no other logic returns TRUE== | ||
===In millCore:=== | ===In millCore:=== | ||
| Line 86: | Line 87: | ||
END | END | ||
END</nowiki> | END</nowiki> | ||
==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. | |||
[[Image:BroachingDialogEntryRPM.png|none]] | |||
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: | |||
<nowiki>IF (EntrySpeedRPM# != SpeedRPM#) | |||
' S' Output('S', EntrySpeedRPM#) | |||
ELSE | |||
Speed | |||
END</nowiki> | |||
Similarly, [[SpeedC]] can be replaced with: | |||
<nowiki>IF (EntrySpeedRPM# != SpeedRPM#) | |||
EntrySpeedC | |||
ELSE | |||
SpeedC | |||
END</nowiki> | |||
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 [[Extended Markers#Spindle_Speed_Markers|Marker]]. Other operation types will continue to use the standard Speed/SpeedC commands due to the ELSE statement. | |||
===Workaround for Speed Change in Tool Path:=== | |||
Another Workaround, this one for the speed change in the toolpath of a multiple spindle speed Rotary Broaching Op. As of GibbsCAM version 22.0.37, if the Rotary Broaching op spins the part, it is treated as a "OpIsToolOriented" type op, if it spins the tool, it is treated as an "OpIsPartOriented" type op. These two types of ops seem to get handled a bit differently and if OutputPartSpeed(n) isn't used, then Speed/SpeedC will only output S0 when SpeedChange? is true... | |||
<nowiki>doSpeedC: | |||
IF SpeedChange? | |||
IF TurningOp? | |||
doSpeed | |||
ELSE {implies MillingOp} | |||
IF RotaryBroachingOp? | |||
IF OpIsPartOriented? | |||
doSpeed | |||
ELSE | |||
OutputPartSpeed(WorkPiece#) | |||
END | |||
ELSE | |||
doSpeed | |||
END | |||
END | |||
END | |||
RETURN</nowiki> | |||
[[Category:Articles]] | |||
[[Category:GibbsCAM v13]] | |||
Latest revision as of 21:57, 25 April 2022
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.
Workaround for Speed Change in Tool Path:
Another Workaround, this one for the speed change in the toolpath of a multiple spindle speed Rotary Broaching Op. As of GibbsCAM version 22.0.37, if the Rotary Broaching op spins the part, it is treated as a "OpIsToolOriented" type op, if it spins the tool, it is treated as an "OpIsPartOriented" type op. These two types of ops seem to get handled a bit differently and if OutputPartSpeed(n) isn't used, then Speed/SpeedC will only output S0 when SpeedChange? is true...
doSpeedC:
IF SpeedChange?
IF TurningOp?
doSpeed
ELSE {implies MillingOp}
IF RotaryBroachingOp?
IF OpIsPartOriented?
doSpeed
ELSE
OutputPartSpeed(WorkPiece#)
END
ELSE
doSpeed
END
END
END
RETURN