Adding Expanded Turning to a .62 post: Difference between revisions
Jump to navigation
Jump to search
Initial page |
No edit summary |
||
| Line 1: | Line 1: | ||
=== | ==Replace spindle control subs== | ||
===List of subs to replace=== | |||
#doInverseSpinOn | |||
#doSpeed | |||
#doCalcRPM1 | |||
#doCalcRPM2 | |||
#doSpinOn | |||
#ckSpinOn | |||
#doOpSpinOff | |||
#doSpinOff | |||
#ckSpindleDirection | |||
#ckTapSpindleDirection | |||
#ckWorkPieceSpindle | |||
#doSpeedC | |||
#millSpindleOn | |||
===New code for these subs=== | |||
<nowiki> | <nowiki> | ||
doInverseSpinOn: | doInverseSpinOn: | ||
| Line 118: | Line 133: | ||
</nowiki> | </nowiki> | ||
==Modify the following subs:== | |||
# In tpRapidFeat: | # In tpRapidFeat: | ||
#* Add doMoveCC to ELSE {implies Position} section | #* Add doMoveCC to ELSE {implies Position} section | ||
| Line 127: | Line 142: | ||
# In millCore: | # In millCore: | ||
#* Change final | #* Change final | ||
#*:ELSE | #*::ELSE | ||
#*: | #*:::IF Drilling? | ||
#*:to: | #*:to: | ||
#*: ELSEIF Drilling? | #*::ELSEIF Drilling? | ||
#* Remove extra END that you now have. | #* Remove extra END that you now have. | ||
#* And new final ELSE at the bottom of the sub: | #* And new final ELSE at the bottom of the sub: | ||
#*:ELSE | #*::ELSE | ||
#*: | #*:::toolpath | ||
==In the Form:== | |||
# Form->Program Options->Options tab | # Form->Program Options->Options tab | ||
#: [[Image:ProgramOptionsOptions.png|none]] | #: [[Image:ProgramOptionsOptions.png|none]] | ||
| Line 142: | Line 157: | ||
#* Check "Expanded Turning" | #* Check "Expanded Turning" | ||
#* Leave "Flat Eccentric Turning" set to "No Support." | #* Leave "Flat Eccentric Turning" set to "No Support." | ||
[[Category:Articles]] | |||
[[Category:GibbsCAM v13]] | |||
Revision as of 21:18, 20 March 2019
Replace spindle control subs
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 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:
- 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?
- ELSE
- to:
- ELSEIF Drilling?
- Remove extra END that you now have.
- And new final ELSE at the bottom of the sub:
- ELSE
- toolpath
- ELSE
- Change final
