Adding Expanded Turning to a .62 post

From Compost Wiki
Revision as of 21:02, 20 March 2019 by Danm (talk | contribs) (Initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Replace the following 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 MillingOp?
		IF NOT ToolIsOriented?
			ToolSpeed
		END
	ELSE {implies TurningOp OR UtilityOp}
		IF NOT PartIsOriented?
			PartSpeed
		END
	END
RETURN

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

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

doSpinOn:
	IF MillingOp?
		IF NOT ToolIsOriented?
			ToolSpindleOn
		END
	ELSE {implies TurningOp OR UtilityOp}
		IF NOT PartIsOriented?
			PartSpindleOn
		END
	END
RETURN

ckSpinOn:
	IF (LASTOperation ToolIsOriented? AND NOT ToolIsOriented?) OR
	(LASTOperation PartIsOriented? AND NOT PartIsOriented?)
		doSpinOn
	END
RETURN

doOpSpinOff: {current Op SpinOff}
	IF MillingOp?
		IF NOT ToolIsOriented?
			ToolSpindleOff
		END
	ELSE {implies TurningOp OR UtilityOp}
		IF NOT PartIsOriented?
			PartSpindleOff
		END
	END
RETURN

doSpinOff: {previous Op SpinOff}
	IF LASTOperation MillingOp?
		IF NOT LASTOperation ToolIsOriented?
			LASTOperation ToolSpindleOff
		END
	ELSE {implies LastOperation TurningOp OR LastOperation UtilityOp}
		IF NOT LASTOperation PartIsOriented?
			LASTOperation PartSpindleOff
		END
	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 PartIsOriented?) AND (PartSpindleRPMChanged? OR PartSpindleSFPMChanged?)
		doSpeed
	ELSEIF (NOT ToolIsOriented?) AND ToolSpindleRPMChanged? {implies MillingOp}
		doSpeed
	END
RETURN

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

Modify the following subs:

  1. In tpRapidFeat:
    • Add doMoveCC to ELSE {implies Position} section
  2. In tpLineFeat:
    • Add doMoveCC to ELSE {implies Position} section
  3. In doQuadrantArc:
    • Add doMoveCC to ELSE { Non-Interpolated } -> ELSE section
  4. 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:

  1. Form->Program Options->Options tab
    • Check "Broaching"
    • Check "Expanded Turning"
    • Leave "Flat Eccentric Turning" set to "No Support."