PeckGroove
Overview
Peck Grooving is a new operation type that is to be released with Version 10. It is currently implemented as a plug-in and does not show up in the CAM pallet. The feature will be integreated into a native operation in a later version so native compost commands have been added to support it.
In order to output the operation as a canned cycle the post processor will need to be changed. Posts that have not been changed will treat the new op as a longhand contour and output the path normaly.
This article will go over the post changes required to provide initial canned cycle support. Due to limitations in the current post processor format (PST), additional canned cycle information can not be added to the FORM. This implementation of canned cycle support does not use the normal GetLCycle system and is implemented with number commands and booleans. Future versions of GibbsCAM and Compost will support additional canned cycles and allow for this feature to be "rolled in" to the normal canned cycle system.
Cycle Description
The G74 and G75 cycles are simple peck repeat cycles used to define a groove. The cycle does not require any toolpath moves to define a boundary since it can only define an axis aligned rectangular area with it's repeat counts.
The full cycle description can be found in chapter 4.2.5/6 of the Fanuc Users Manual.
Prog Changes
The prog changes are very simple. No changes need to be made to the approach or retract sections, only changes to the latheOp sub.
Add these subs before latheOp
peckGroovCycle:
IF ApproachFace?
'G74'
ELSE
'G75'
END
RETURN
peckGrooveParamsFirst:
IF ApproachFace?
'P0' 'Q' Peck#
ELSE
'P' Peck# 'Q0'
END
RETURN
peckGrooveParams:
IF ApproachFace?
'P' Stepover# 'Q' Peck#
ELSE
'P' Peck# 'Q' Stepover#
END
RETURN
PeckGrooveFirstEndX:
IF NOT ApproachFace?
StartPosX#
ELSE
PeckGrooveEPX#
END
RETURN
PeckGrooveFirstEndZ:
IF ApproachFace?
StartPosZ#
ELSE
PeckGrooveEPZ#
END
RETURN
PeckGrooveSecondStartX:
IF NOT ApproachFace?
'X' Add# StartPosX# Stepover#
END
RETURN
PeckGrooveSecondStartZ:
IF ApproachFace?
'Z' Add# StartPosZ# Stepover#
END
RETURN
peckGrooving:
IF NOT PulloffOnFirstCut?
SeqLabC peckGroovCycle 'R' Retract# EOL
SeqLabC peckGroovCycle 'X' PeckGrooveEPX# 'Z' PeckGrooveEPZ# peckGrooveParams 'R' Pulloff# 'F' FeedEntry# EOL
ELSE
SeqLabC peckGroovCycle 'R' Retract# EOL
SeqLabC peckGroovCycle 'X' PeckGrooveFirstEndX 'Z' PeckGrooveFirstEndZ peckGrooveParamsFirst 'R0' 'F' FeedEntry# EOL
SeqLabC Rapid PeckGrooveSecondStartX PeckGrooveSecondStartZ EOL {make the move in X or Z }
SeqLabC peckGroovCycle 'R' Retract# EOL
SeqLabC peckGroovCycle 'X' PeckGrooveEPX# 'Z' PeckGrooveEPZ# peckGrooveParams 'R' Pulloff# 'F' FeedEntry# EOL
END
RETURN
In the latheOp sub add a check for Peck Grooving in the else case of the CannedCycle? test. Changes are in bold
latheOp:
IF CannedCycle?
....NORMAL CANNED CYCLES....
ELSE
IF PeckGrooving? AND PreferCan?
peckGrooving
ELSE
....NORMAL LONGHAND OPS....
END
END
RETURN
Of course the number commands must be formatted as required for the specific machine.
The form will not contain information for the PeckGrooving cycle so CannedCycle? will return false. PreferCan? checks the user preference and will work as intended. At a later date when cycle information for this operation can be put into the form a new post will be made that does this cycle in a similar manner to the others.
Commands vs Fields
The following is a list of the commands that are related to the various fields in the dialog box. Some of the commands such as StartPosX# and PeckGrooveEPZ# will change from X to Z depending on the orientation of the cycle.
