Adding Broaching Support to a .62 post

From Compost Wiki
Jump to navigation Jump to search

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