Adding Expanded Turning to a .62 post: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
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> | ||
==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
- doInverseSpinOn
- doSpeed
- doCalcRPM1
- doCalcRPM2
- doSpinOn
- ckSpinOn
- doOpSpinOff
- doSpinOff
- ckSpindleDirection
- ckTapSpindleDirection
- ckWorkPieceSpindle
- doSpeedC
- 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

