V13 Spindle Control: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Danm (talk | contribs)
mNo edit summary
Danm (talk | contribs)
No edit summary
Line 50: Line 50:


====Part Spindle Booleans====
====Part Spindle Booleans====
*[[ActivatePartSpindle?]]
*[[ActivatePartSpindle?]]
*[[DeactivatePartSpindle?]]
*[[DeactivatePartSpindle?]]
Line 68: Line 67:


====Tool Spindle Booleans====
====Tool Spindle Booleans====
*[[ActivateToolSpindle?]]
*[[DeactivateToolSpindle?]]
*[[ToolSpindleDirChanged?]]
*[[ToolSpindleDirChanged?]]
*[[ToolSpindleRPMChanged?]]
*[[ToolSpindleRPMChanged?]]
Line 73: Line 74:


==Sample Code==
==Sample Code==
===Sample subroutine to handle Part Spindle output on a lathe===
  <nowiki>
  <nowiki>
IF ActivatePartSpindle? OR DeactivatePartSpindle?
IF ActivatePartSpindle? OR DeactivatePartSpindle?

Revision as of 00:02, 20 October 2018

Overview

GibbsCAM v13 12.8.28 and Compost4 4.4.6.3 introduce new features for handling the output of spindle control codes. These features were largely necessitated by the addition of Fully Oriented operation types, such as broaching and Elliptical Turning. This means that, for the first time in GibbsCAM history, a user can program an operation with neither the part spindle nor the tool spindle turning.

The configuration for these spindle changes is split between the MDD, the Form, and the Prog. The MDD controls when the spindles are turned on, and the Form and Prog control when the spindles are stopped, when CSS is activated and deactivated on a lathe, and format the actual G-codes used for these options.

Additionally, there is the potential for future versions of GibbsCAM to support operations with both part and tool spindle spinning, such as for gear hobbing. Master post developers should consider this possibility in order to ensure a flexible post design.

New Compost Options

Program Options tab

Broaching checkbox

  • This box must be checked in order to post a part file with a broaching operation. If this box is not checked, a part with broaching ops will error out on post.
  • Checking this box will also cause the post to error out on posting if the post uses any "old" speed commands, such as SpeedC.

Toolgroups and Part Stations Turning tab

Turn CSS On with spindle

  • When unchecked, the spindle will be turned on with the Fixed RPM command, and then switched to CSS once it goes on part.
  • When checked, the spindle will be turned on with the CSS command with an SFPM.

CSS Off dropdown

  • Normal (CP3) will switch from CSS to Fixed RPM at CP3 in the retract loop.
  • Off Part Only will only switch CSS off at CP3 if the retract loop is going off part.
  • Never will never switch CSS off during retract.

Unconditional Spindle Commands

  • When checked, the spindle commands listed below will always output when called.
  • When unchecked, the spindle commands will output conditionality, based on logic used in some .65 posts.

New MDD Options

SpindleStateOptions dialog

Tool Group Spindles

  • Default - Undefined behavior
  • On at Approach Start - Turn on the Tool Group spindles at the ApproachStart event.
  • On at Op Start - Turn on the Tool Group spindles at the OpStart event.
  • On at Entry Clearance - Turn on the Tool Group spindles at CP1.

Part Station Spindles

  • Default - Undefined behavior
  • On at Approach Start - Turn on the Part Station spindles at the ApproachStart event.
  • On at Op Start - Turn on the Part Station spindles at the OpStart event.
  • On at Entry Clearance - Turn on the Part Station spindles at CP1.

Prog Commands

Part Spindle

The part spindle is the spindle which can spin a part. Requires an MDD with one or more part stations set to "Spins Part."

Part Spindle Commands

Part Spindle Booleans

Tool Spindle

The tool spindle is the spindle that can spin a tool. Requires an MDD with one or more tool stations set to "Live Tool."

Tool Spindle Commands

Tool Spindle Booleans

Sample Code

Sample subroutine to handle Part Spindle output on a lathe

IF ActivatePartSpindle? OR DeactivatePartSpindle?
  IF PartSpindleDirChanged? OR PartSpindleRPMChanged? OR
      PartSpindleSFPMChanged? OR PartSpeedTypeChange?
    IF FirstPartSpindleActivateOfOp?
      IF ConstantSurfaceSpeed?
        SeqLabC Preset MaxRPM EOL
      END
      SeqLabC PartSpindleSpeedType PartSpindleSpeed PartSpindleOn EOL
    ELSE
      SeqLabC
      IF PartSpindleOff? AND PartSpindleDirChanged?
        PartSpindleOff
      ELSE
        IF PartSpeedTypeChange?
          PartSpeedType
        END
        PartSpindleSpeed
          IF PartSpindleDirChanged?
            PartSpindleOn
          END
        END
      EOL
    END
  END
END