V14 Basic Probing: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffb (talk | contribs)
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
== Form Setting ==
== Form Setting ==
Navigate to Form > Program Options. Check the Probing option in the Operation Support group of the Options Tab.
Navigate to Form > Program Options. Check the Probing option in the Operation Support group of the Options Tab.
Also, make sure Extended Markers are enabled, this activates the GCodeStep? Boolean.


[[Image:Form_Probing.png|none]]
[[Image:Form_Probing_2021_03.png|none]]


== Code Changes ==
== Code Changes ==
Line 50: Line 51:
*Add the ELSEIF GCodeStep? logic to the toolPath subroutine. toolPathDoMove is a UKM post construct, legacy posts use "toolPath" instead.<br/>
*Add the ELSEIF GCodeStep? logic to the toolPath subroutine. toolPathDoMove is a UKM post construct, legacy posts use "toolPath" instead.<br/>
*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.<br/>
*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.<br/>
(In this case IF DwellFeat? was the last logic section, so I added it as an ELSEIF to that.)
(In this case IF DwellFeat? was the last logic section, so it was added as an ELSEIF to that.)
  <nowiki>
  <nowiki>
ELSE
ELSE

Latest revision as of 20:27, 11 March 2021

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. Also, make sure Extended Markers are enabled, this activates the GCodeStep? Boolean.

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