Adding Expanded Turning to a .62 post: Difference between revisions
Jump to navigation
Jump to search
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. |
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
- 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 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:
- 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

