Okuma Turn-Cut support
Okuma Turn-Cut support
GibbsCAM v13 adds features to allow GibbsCAM to natively support Okuma's Turn-Cut feature. For our purposes in the post, Okuma Turn-Cut is simply a manufacturer-specific brand name for standard V13 Elliptical Turning with flat output. In essence, it allows a mill-only machine control to read 2D lathe toolpath, and the control will automatically adjust the orientation of a turning tool inserted into the mill's spindle to correctly cut the desired profile shape.
Here is a demo video from Okuma: https://youtu.be/wyLN5e1XeKg
Prerequisites
General requirements
- You must have a custom MDD with an interpolatable C axis for the tool.
- Your post must be bound to this custom MDD and must have Flat Eccentric Turning output enabled around the tool's C axis.
Older (pre-.68 post) considerations
- Your post needs to use the new WFO system, and needs to have WFOs turned on for Flat Lathe Turning.
- Your post needs to go through an EachFeat/NextFeat loop (generally using the toolPath sub) for FlatTurningOps. In a .26-format mill post, check the opGuts sub if and make sure a turning op will have a way to get to toolPath. In a .62-format post, you should follow the instructions from Adding Broaching Support to a .62 post to make sure this case is handled.
New code to handle Turn-Cut
Add the following 2 subs to your post:
enableOkumaTurnCut:
IF EccentricTurningOp? AND FlatTurningOp?
SetOutputMode('TurnCut')
SeqLabC ' M510' EOL { Collision Avoidance Off - Incompatible with TurnCut }
SeqLabC ' G149' ' E0' EOL {Enable turn-cut, E word is tool offset in C}
SeqLabC FeedRateMode ' F' Output('F', FeedEntry#) EOL
SeqLabC Plane2 EOL
SeqLabC ' X0. Y0. ' EOL
SeqLabC 'G189 X1. HB' EOL
SeqLabC
IF SpindleForward?
' G165' {Turn "virtual spindle" on forwards}
ELSE
' G166' {Turn "virtual spindle" on reverse}
END
OutputValueAsAxis('Y', StartPosY#)
{AxisLabel('Z') OutputValueAsAxis('Z', EPZ#)}
' S' Output('S', VirtualSpindleRPM#) EOL
SetFlag('TurnCutEnabled')
END
RETURN
cancelOkumaTurnCut:
IF Flag?('TurnCutEnabled')
SeqLabC ' G164' EOL {Stop "virtual spindle"}
SeqLabC ' G188' EOL
SeqLabC ' G148' EOL {Disable turn-cut}
ResetMoveType
SetFlagF('TurnCutEnabled')
SetOutputMode('OnPart')
END
RETURN
You will need to call enableOkumaTurnCut during the approach loop on OpStartFeat.
You will need to call cancelOkumaTurnCut during the retract loop on OpEndFeat.
GibbsCAM Programming Considerations
Okuma Turn-Cut expects