V14 Basic Probing

From Compost Wiki
Revision as of 23:27, 10 June 2020 by Jeffb (talk | contribs)
Jump to navigation Jump to search

Summary

To add support for GibbsCAM V14 Basic Probing, you simply need to enable the Form setting and add support in the post for the GCodeStep? feature during the EachFeat/NextFeat loop.

Form Setting

Navigate to Form > Program Options. Check the Probing option in the Operation Support group of the Options Tab.

File:Form Probing.png

Code Changes

.70+ Format:

  • Add the following in the "toolPathDoMove" subroutine:
	ELSEIF GCodeStep?						{ Is this a GCode feat? }
		tpGCodeStep

  • For example:
	IF SyncFeat?
		doSyncFeat
	ELSEIF (RapidMove? OR LineMove?) AND AnyFlowAxisMoves?
		tpLinearFeat
	ELSEIF ArcMove? AND (AnyFlowAxisMoves? OR FullArc?)
		tpArcFeat
	ELSEIF DwellFeat?
		tpDwellFeat
	ELSEIF ToolSubPosFeat?
		tpToolSubPosFeat
	ELSEIF ProgStopFeat?
		tpProgStopFeat
	ELSEIF CommentFeat?
		tpCommentFeat
	ELSEIF GCodeStep?		{ Is this a GCode feat? }
		tpGCodeStep
	END

  • Then add the following subroutine to your post:
tpGCodeStep:
	EachGCodeStepLine
		GCodeStepLine EOL
	NextGCodeStepLine
RETURN

Other Post Formats:

Two Legacy masters were tested, "Fanuc 6M 5AS [VG] IRC001.26.7im" and "Fanuc 30i Any 2S2T Mill-Turn 5as [VG] BYIAML800.62im_c". Implementation was almost identical to the .70 format aside from the following considerations...

toolPath and ELSEIF:

  • Add the ELSEIF GCodeStep? logic to the toolPath subroutine. toolPathDoMove is a UKM post construct, legacy posts use "toolPath" instead.
  • In addition, the toolPath subroutine in legacy posts does not have a logic tree that uses ELSEIF. However you can still add the "ELSEIF GCodeStep?" logic as written.

(In this case IF DwellFeat? was the last logic section, so it was added as an ELSEIF to that.)

	ELSE
		IF DwellFeat?
			SeqC 'G4X' Dwell# EOL
		ELSEIF GCodeStep?						{ Is this a GCode feat? }
			tpGCodeStep
		END
	END

Spindle Output:

  • Legacy posts use legacy spindle commands and quite a few of these are non-conditional commands that always force output. You may need to utilize logic to suppress spindle output in a number of places.
  • In the .26 Master, spindle speed is output by a call to getSpeedSpinOn in the newToolOp4 subroutine. By adding logic in the getSpeedSpinOn subroutine, the spindle output can be suppressed.

For Example:

getSpeedSpinOn:
	IF Flag?('UseDrillCycle') AND RigidTap?
		{no output}
	ELSE
		Speed SpinOn
	END
RETURN

Could be changed to...

getSpeedSpinOn:
	IF (Flag?('UseDrillCycle') AND RigidTap?) OR ProbingOp?
		{no output}
	ELSE
		Speed SpinOn
	END
RETURN