V14 Basic Probing: Difference between revisions
No edit summary |
JeffBuchan (talk | contribs) No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
To add support for GibbsCAM V14 Basic Probing, you simply need to enable the Form setting and add support for the [[GCodeStep?]] feature during the [[EachFeat]]/[[NextFeat]] loop. | == 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|GCodeStep?]] feature during the [[EachFeat]]/[[NextFeat]] loop. | |||
== Form Setting == | == Form Setting == | ||
[[Image: | 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_2021_03.png|none]] | |||
== Code Changes == | == Code Changes == | ||
=== .70+ Format: === | === .70+ Format: === | ||
Add the following in the "toolPathDoMove" subroutine: | *Add the following in the "toolPathDoMove" subroutine: | ||
<nowiki> | <nowiki> | ||
ELSEIF GCodeStep? { Is this a GCode feat? } | ELSEIF GCodeStep? { Is this a GCode feat? } | ||
tpGCodeStep | tpGCodeStep | ||
</nowiki> | </nowiki> | ||
For example: | *For example: | ||
<nowiki> | <nowiki> | ||
IF SyncFeat? | IF SyncFeat? | ||
| Line 32: | Line 36: | ||
</nowiki> | </nowiki> | ||
Then add the following subroutine to your post: | *Then add the following subroutine to your post: | ||
<nowiki> | <nowiki> | ||
tpGCodeStep: | tpGCodeStep: | ||
| Line 42: | Line 46: | ||
=== Other Post Formats: === | === 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...<br/> | |||
<br/> | |||
'''toolPath and ELSEIF:''' | |||
*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 this case IF DwellFeat? was the last logic section, so it was added as an ELSEIF to that.) | |||
<nowiki> | |||
ELSE | |||
IF DwellFeat? | |||
SeqC 'G4X' Dwell# EOL | |||
ELSEIF GCodeStep? { Is this a GCode feat? } | |||
tpGCodeStep | |||
END | |||
END | |||
</nowiki> | |||
'''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.<br/> | |||
*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.<br/> | |||
For Example: | |||
<nowiki> | |||
getSpeedSpinOn: | |||
IF Flag?('UseDrillCycle') AND RigidTap? | |||
{no output} | |||
ELSE | |||
Speed SpinOn | |||
END | |||
RETURN | |||
</nowiki> | |||
Could be changed to... | |||
<nowiki> | |||
getSpeedSpinOn: | |||
IF (Flag?('UseDrillCycle') AND RigidTap?) OR ProbingOp? | |||
{no output} | |||
ELSE | |||
Speed SpinOn | |||
END | |||
RETURN | |||
</nowiki> | |||
[[Category:Articles]] | [[Category:Articles]] | ||
[[Category:GibbsCAM v14]] | [[Category:GibbsCAM v14]] | ||
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