Adding Broaching Support to a .62 post: Difference between revisions
Jump to navigation
Jump to search
Used wrong code sample, fixed. |
Add SpeedRPM# section |
||
| Line 8: | Line 8: | ||
END | END | ||
RETURN</nowiki> | RETURN</nowiki> | ||
==Don't use [[SpeedRPM#]] at all in Broaching Ops== | |||
If your SameTool subs use logic similar to: | |||
<nowiki>IF NotEqual? SpeedRPM# LASTOperation SpeedRPM#</nowiki> | |||
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: | |||
<nowiki> | |||
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</nowiki> | |||
To: | |||
<nowiki> | |||
IF holdPartStationCodes? | |||
{ * No Output of Spindle On Here * } | |||
ELSEIF NOT OpIsToolOriented? | |||
IF NotEqual? SpeedRPM# LASTOperation SpeedRPM# | |||
SeqLabC CSSOff constantRPM doSpeed ckSpinOn EOL | |||
ELSE | |||
SeqLabC ckSpinOn EOL | |||
END | |||
END | |||
</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. | |||
==Always call toolPath if no other logic returns TRUE== | ==Always call toolPath if no other logic returns TRUE== | ||
===In millCore:=== | ===In millCore:=== | ||
Revision as of 20:29, 29 August 2019
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 OpIsToolOriented?
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