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

From Compost Wiki
Jump to navigation Jump to search
Danm (talk | contribs)
m moved Adding Broaching and Expanded Turning to a .62 post to Adding Expanded Turning to a .62 post: Broaching now has fewer requirements than Expanded does.
Danm (talk | contribs)
Add note for Unconditional Spindle Commands checkbox.
Line 157: Line 157:
#* Check "Expanded Turning"
#* Check "Expanded Turning"
#* Leave "Flat Eccentric Turning" set to "No Support."
#* Leave "Flat Eccentric Turning" set to "No Support."
# Form->Toolgroups and Part Stations->Spindle Options tab
#: [[Image:UnconditionalCheckbox.png|none]]
#* "Unconditional Spindle Commands" must be turned on


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

Revision as of 01:11, 17 July 2019

Replace spindle control subs

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 MillingOp?
		IF NOT OpIsToolOriented?
			ToolSpeed
		END
	ELSE {implies TurningOp OR UtilityOp}
		IF NOT OpIsPartOriented?
			PartSpeed
		END
	END
RETURN

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

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

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

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

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

doSpinOff: {previous Op SpinOff}
	IF LASTOperation MillingOp?
		IF NOT LASTOperation OpIsToolOriented?
			LASTOperation ToolSpindleOff
		END
	ELSE {implies LastOperation TurningOp OR LastOperation UtilityOp}
		IF NOT LASTOperation OpIsPartOriented?
			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 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

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."
  2. Form->Toolgroups and Part Stations->Spindle Options tab
    • "Unconditional Spindle Commands" must be turned on