Adding Expanded Turning to a .62 post: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Danm (talk | contribs)
No edit summary
Danm (talk | contribs)
Updates
Line 1: Line 1:
==Replace spindle control subs==
==Replace spindle control subs==
First, you should complete the steps in [[Adding Broaching Support to a .62 post]].
===List of subs to replace===
===List of subs to replace===
#doInverseSpinOn
#doInverseSpinOn
Line 124: Line 125:
RETURN
RETURN
</nowiki>
</nowiki>
==Modify the following subs:==
# In tpRapidFeat:
#* Add doMoveCC to ELSE {implies Position} section
# In tpLineFeat:
#* Add doMoveCC to ELSE {implies Position} section
# In doQuadrantArc:
#* Add doMoveCC to ELSE { Non-Interpolated } -> ELSE section
# In millCore:
#* Change final
#*::ELSE
#*:::IF Drilling?
#*:to:
#*::ELSEIF Drilling?
#* Remove extra END that you now have.
#* And new final ELSE at the bottom of the sub:
#*::ELSE
#*:::toolpath
==In the Form:==
==In the Form:==

Revision as of 20:43, 29 August 2019

Replace spindle control subs

First, you should complete the steps in Adding Broaching Support to a .62 post.

List of subs to replace

  1. doInverseSpinOn
  2. doSpeed
  3. doCalcRPM1
  4. doCalcRPM2
  5. doSpinOn
  6. ckSpinOn
  7. doOpSpinOff
  8. doSpinOff
  9. ckSpindleDirection
  10. ckTapSpindleDirection
  11. ckWorkPieceSpindle
  12. doSpeedC
  13. millSpindleOn

New code for these subs

doInverseSpinOn:
	IF TurningOp?
		IF SpindleForward?
			'M4' {Reverse}
		ELSEIF SpindleReverse?
			'M3' {Forward}
		END
	ELSE {implies MillingOp}
		IF SpindleForward?
			'M54' {Reverse}
		ELSEIF SpindleReverse?
			'M53' {Forward}
		END
	END
RETURN

doSpeed:
	IF NOT OpIsToolOriented?
		ToolSpeed
	END

	IF NOT OpIsPartOriented?
		PartSpeed
	END
RETURN

doCalcRPM1:
	' S' Output('S', CalcRPM1#)
RETURN

doCalcRPM2:
	' S' Output('S', CalcRPM2#)
RETURN

doSpinOn:
	IF NOT OpIsToolOriented?
		ToolSpindleOn
	END

	IF NOT OpIsPartOriented?
		PartSpindleOn
	END
RETURN

ckSpinOn:
	IF (LASTOperation OpIsToolOriented? AND NOT OpIsToolOriented?) OR
	(LASTOperation OpIsPartOriented? AND NOT OpIsPartOriented?)
		doSpinOn
	END
RETURN

doOpSpinOff: {current Op SpinOff}
	IF NOT OpIsToolOriented?
		ToolSpindleOff
	END

	IF NOT OpIsPartOriented?
		PartSpindleOff
	END
RETURN

doSpinOff: {previous Op SpinOff}
	IF NOT LASTOperation OpIsToolOriented?
		LASTOperation ToolSpindleOff
	END

	IF NOT LASTOperation OpIsPartOriented?
		LASTOperation PartSpindleOff
	END
RETURN

ckSpindleDirection:
	IF PartSpindleDirChanged? OR ToolSpindleDirChanged?
		SeqLabC doSpinOff EOL
	END
RETURN

ckTapSpindleDirection:
	IF ToolBAxisAvail?
		IF Milling? AND ABCToolPath?	{if 5-axis Milling or Drilling}
			IF (PartSpindleDirChanged? OR ToolSpindleDirChanged?) AND Tap?
				SeqLabC doOpSpinOff EOL
				SeqLabC doSpeed doSpinOn EOL
			END
		END
	END
RETURN

ckWorkPieceSpindle:	{Part Spindle Off before MillingOp}
	IF OpIsPartOriented? AND NOT LASTOperation OpIsPartOriented?
		LASTOperation PartSpindleOff
	END
RETURN

doSpeedC:
	IF (TurningOp? AND NOT OpIsPartOriented?) AND (PartSpindleRPMChanged? OR PartSpindleSFPMChanged?)
		doSpeed
	ELSEIF (NOT OpIsToolOriented?) AND ToolSpindleRPMChanged? {implies MillingOp}
		doSpeed
	END
RETURN

millSpindleOn:
	IF NOT OpIsToolOriented?
		SeqLabC CSSOff constantRPM doSpeed doSpinOn EOL
	END
RETURN

In the Form:

  1. Form->Program Options->Options tab
    • Check "Broaching"
    • Check "Expanded Turning"
    • Leave "Flat Eccentric Turning" set to "No Support."
  2. Form->Toolgroups and Part Stations->Spindle Options tab
    • "Unconditional Spindle Commands" must be turned on