Okuma Turn-Cut support: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Danm (talk | contribs)
No edit summary
Danm (talk | contribs)
No edit summary
 
Line 6: Line 6:
===Prerequisites===
===Prerequisites===
====General requirements====
====General requirements====
* You must have a custom MDD with an interpolatable C axis for the tool.
* You must have a custom MDD with an interpolatable C axis for the tool. [[Image:ToolInterpC.png|none]]
* Your post must be bound to this custom MDD and must have Flat Eccentric Turning output enabled around the tool's C axis. [[Image:FlatEccentricAxis.png|none]]
* Your post must be bound to this custom MDD and must have Flat Eccentric Turning output enabled around the tool's C axis. [[Image:FlatEccentricAxis.png|none]]
* Your post needs to use the new WFO system, and needs to have WFOs turned on for Flat Lathe Turning. [[Image:FlatTurningWFO.png|none]]
* Your post needs to use the new WFO system, and needs to have WFOs turned on for Flat Lathe Turning. [[Image:FlatTurningWFO.png|none]]
Line 53: Line 53:


===GibbsCAM Programming Considerations===
===GibbsCAM Programming Considerations===
Okuma Turn-Cut expects the operation to be programmed in a CS with the center point in the center of the turned shape, and expects the tool to move to X0Y0 in that WFO before engaging the Turn-Cut feature. To ensure that this move is shown in Machine Sim, the user will need to enable the Okuma Turn-Cut plug-in, which will enable the Okuma Turn-Cut Op Modifier. This will allow a user to add this X0Y0 move to an operation.
Okuma Turn-Cut expects the operation to be programmed in a CS with the center point in the center of the turned shape, and expects the tool to move to X0Y0 in that WFO before engaging the Turn-Cut feature. To ensure that this move is shown in Machine Sim, the user will need to enable the Okuma Turn-Cut plug-in, [[Image:OkumaTurnCutPluginManager.png|none]] which will enable the Okuma Turn-Cut Op Modifier. This will allow a user to add this X0Y0 move to an operation. [[Image:OkumaTurnCutOpModifier.png|none]]




[[Category:Articles]]
[[Category:Articles]]
[[Category:GibbsCAM v13]]
[[Category:GibbsCAM v13]]

Latest revision as of 00:40, 3 October 2019

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.
  • Your post needs to use the new WFO system, and needs to have WFOs turned on for Flat Lathe Turning.

Older (pre-.68 post) considerations

  • 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 the operation to be programmed in a CS with the center point in the center of the turned shape, and expects the tool to move to X0Y0 in that WFO before engaging the Turn-Cut feature. To ensure that this move is shown in Machine Sim, the user will need to enable the Okuma Turn-Cut plug-in,

which will enable the Okuma Turn-Cut Op Modifier. This will allow a user to add this X0Y0 move to an operation.