{5/24/96 Modified: Meldas 500M 0KK B970.12.2 Created: Meldas 500M 0KK B970.12.3 For: Armstrong Blum Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04.05C/Compost 4.21.37/1.0a Changes made per Jeff Myers of Gibbs & Associates. Customer requested method of outputting true G10XYZ coordinate values. Jeff instructed them to use machine coordinates in stock size dialogue and not use CS#1. Added restriction of G10 Block for CS#1 at StartUpStuff sub. Added CS#1 Warning at DoOpComments. DWB}
{5/30/96 Modified: Meldas 500M 0KK B970.12.3 Created: Meldas 500M 0KK B970.12.4 For: Armstrong Blum Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04.05C/Compost 4.21.37/1.0a Changes made per Lee Hensch of Armstrong Blum. Customer reported that some Operations were not outputting a FeedRate. This was caused by a Pocketing Operation with Rapid Entry whose FeedRate was identicle to previous Operation. Added FORMAT#9 at Prog Numeric Format Definitions. Added RapidF# to FORMAT#9 at Prog Numeric Format Definitions. Added RapidF# at start of OpGuts sub. DWB}
{6/26/96 Updated: Meldas 500M 0KK B970.12.4 Modified: Meldas 500M 0KK B970.12.5 For: Armstrong Blum Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.05C/Compost 4.21.37/1.0a Changes made per Lee Hensch of Armstrong Blum. Customer reported problem of outputting true G10XYZ coordinate values, see 5/24/96. Not sure, but I think it has to do with creating the CSOrigins in machine coordinates. Distance from Machine Home to Center of Table Rotation is always the same. Instructed user to us normal dimensions from center of table rotation. Added SUB# to FORMAT#4 at Prog Numeric Format Definitions. Subtracting 14.1732 from CSOffsetX# and 31.1023 from CSOffsetZ# at DoCSWFOComment and G10Block. Deleted changes made on 5/24/96. Deleted condition to output warning when CS#1 is current at DoOpComments. Deleted NotEqual CS#1 condition at StartUpStuff. Customer reported bad CSOffsetB# values. Changed CSOffsetB# from FORMAT#7 to FORMAT#8 at Prog Numeric Format Definitions. Modified formulas at ModCSOffsetB. Post was not calculating negative angles correctly. Customer requested that Tapping Cycles output Speed and SpinOn at Cycle block, not StrtPos block. Added GetSpeedOn sub to suppress from StrtPos block of Tapping Cycles. GetSpeedOn sub is called from FirstOp3, FirstOp3a, NewToolOp5, NewToolOp5a and two places at SameToolOp3 Added output of Speed SpinOn to Cycle block at OpGuts IF Drilling. DWB}
{7/2/96 Modified: Meldas 500M 0KK B970.12.5 Created: Meldas 500M 0KK B970.12.6 For: Armstrong Blum Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.05C/Compost 4.21.37/1.0a Changes made per Lee Hensch of Armstrong Blum. Added call to GetCoolOn for ChangeCS at SameToolOp3. Indexing B-Axis causes CoolOff. Calling sub allows to turn CoolOn back on. DWB}
{8/8/97 Initial: Meldas 500M OKK [FR] CZ22.12 Created: Mitsubishi [SM]CXXX.12 For: Spacecraft Machine Changed to standard Fanuc style sub calls, Eliminated StartUpStuff calls, Changed to standard Fanuc style WFOs, Moved call to NotSameToolWFO into FirstOp1, Made output of Speed SpinOn in FirstOp, NewTool, and SameTool conditional upon Tap? being false, Speed SpinOn for tap is output on the block before the cycle call, Added Rapid Plane DrillOff CRCOff block to FirstToolOp1, Added IncValue to G30 blocks, Moved G30 block in FirstOp1 to before Tool call, Added M11 (unclamp table) before all rotary table moves and M10 (clamp table) after, MPK}
{8/20/97, Initial: Meldas 500 Mit MH5A [SMP] CX73.12 Created: Meldas 500 Mit MH5A [SMP] CX73.12.1 Changed the A axis to output 'B' and B to output 'A', MPK}
{06/04/98, Initial: Meldas 500 Mit [SMP] CX73.12.1 Created: Meldas 500 Mit [EE] Cxxx.12 For: Equitable Engineering
Changes to Form: 1) General Info - Changed Sequence label to N?.
Changes to Prog: 1) FirstOp1a - Added sub-routine to output values for variables for work fixture offsets. 2) Changed all literal 'G28' to 'G30'. 3) FirstOp1 - Added AbsValue Preset 'G53X0.Y0.Z0.A0.' 4) NewToolOp4 - Changed CS rotation output. 5) NotSameToolWFO/SameToolWFO - Changed WFO stuff to output literal 'G10XD1YD2ZD41'. 6) Modified post to use Tagging. CDH}
{08/28/98, Initial: Meldas 500 Mit [EE] CU06.12 Created: Meldas 500 Mit [EE] CU06.12.1 For: Equitable Engineering
Changes to Prog: 1) StdSub - Added 'P' Repeats# so subroutines can be looped if doing G92subs. 2) OpenMp - Added 'P' Parts# so subroutines can be looped if doing equally spaced offsets. 3) NewToolOp2 - Added ToolChangeAtHome boolean and contents. 4) Deleted all literal 'M60's. 5) FirstOp1/NewToolOp2/SameToolOp1/End1 - Broke up G91G28X0.Y0.Z0.M5 into two seperate lines: G91G28Z0.M5 and G28X0.Y0. CDH}
RestoreScale: IF Metric? {CAM file is in Metric, tools and tool path} SetScale('.03937007874') { change to English, this is an English post} END RETURN
DoSubComment: IF UseComments? AND SubComment? '( SUB NUMBER: ' Tag# ' )' EOL IF MultipleParts? AND OneToolAllParts? NOT SameTool? '( TOOL ' Tool# ': ' ToolDiameter# ' ' ToolType$ ' )' EOL END END RETURN
DoOpComments: IF UseComments? SetScale('1') IF OperationIDComment? '( OPERATION ' Operation# ': ' OperationType$ ' )' EOL END IF OperationComment? '( ' OperationComment$ ' )' EOL END IF WorkGroupComment? '( ' WorkGroupComment$ ' )' EOL END IF ToolTypeComment? '( TOOL ' Tool# ': ' ToolDiameter# ' ' ToolType$ ' )' EOL END IF ToolComment? '( ' ToolComment$ ' )' EOL END RestoreScale END RETURN
RecallWFO: {Should be expanded later to handle multiple parts} IF WFOCS? CSWFO ELSE SeqLab 'G' NewWFO# END IF AAxisAvail? 'B0' END IF BAxisAvail? 'A0' END EOL RETURN
CSAngleA: IF AAxisAvail? 'B' CSOffsetA# END RETURN
CSAngleAC: IF AChange? CSAngleA END RETURN
CSAngleB: IF BAxisAvail? 'A' CSOffsetB# END RETURN
FinishSub1: {part 1} SeqLab CRCOffC IF NOT FeedConnect? IF AutoCycle? ZCP3C ELSE IF FIFO? FeedC ZCP3C FeedEntC ELSE RapidC ZCP3C END END END EOL RETURN
SubCSMP: IF WFOCS? IF ChangeCS? SeqLab EndSub EOL CloseSub NewProg StartSub SaveCSProg END ClearCSOffset END RETURN
DoAbsOrInc: IF Flag?('1') AND AbsoluteMoves? IF ZMove? AND AbsValue? IncValue ELSE IF NOT ZMove? AND NOT AbsValue? AbsValue END END END RETURN
DoDrillAbsOrInc: IF Flag?('1') AND AbsoluteMoves? IF SPZMove? AND AbsValue? IncValue ELSE IF NOT SPZMove? AND NOT AbsValue? AbsValue END END END RETURN
RestoreAbsOrInc: IF Flag?('1') AND AbsoluteMoves? AND NOT AbsValue? SeqLab AbsValue EOL END RETURN
FormatArc: DoAbsOrInc IF ArcCW? CWArcC ELSE CCWArcC END MoveXYZC IF ArcIJFormat? ArcIJC ELSE ArcRC END RETURN
ckCRC: IF LastFeat? CRCOffC ELSE IF NOT ZMove? SetFlag('5') { CRCOffsetC } CRCOnC END END RETURN
ckCRCNum: IF Flag?('5') SetFlagF('5') CRCOffsetC END RETURN
ToolPath: ResetCRCNum EACHFeat IF PointFeat? IF AutoCycle? SeqLab MoveSXYC EOL SeqLab SubCall 'Hł' Tag# EOL CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY} ELSE SeqLab DoDrillAbsOrInc MoveSXYZC EOL END ELSE IF RapidFeat? IF XMove? OR YMove? OR ZMove? SeqLab DoAbsOrInc ckCRC RapidC MoveXYZC ckCRCNum EOL END ELSE IF LineFeat? IF XMove? OR YMove? OR ZMove? IF Decelerate? IF RoomToDecel? DecelMove1 SeqLab FormatLine FeedRateC ckCRCNum EOL DecelMove2 END SeqLab FormatLine DecelFeed ckCRCNum EOL ELSE SeqLab FormatLine FeedRateC ckCRCNum EOL END END ELSE IF ArcFeat? EACHQuadrant { Do not use NOT, FIRST, LAST or NEXT modifiers in this loop } IF LastQuadrant? AND Decelerate? IF RoomToDecel? DecelMove1 SeqLab FormatArc ArcFeedC EOL DecelMove2 END SeqLab FormatArc DecelFeed EOL ELSE SeqLab FormatArc ArcFeedC EOL END NEXTQuadrant END END END END NEXTFeat RestoreAbsOrInc RETURN
AutoCycCutSub2: {part 2} ToolPath SeqLab AbsOrInc IF Repeats? AND FeedConnect? AND ZshiftOnly? {removed RapidC} {removed CRCOffC, gets turned off in ToolPath} ELSE IF FIFO? FeedC ZCP2 FeedEntC ELSE RapidC ZCP2 END END EOL SeqLab EndSub EOL CloseSub SetSRSubXY {restore SR to 1st position value} SetSRSubMove RETURN
AutoCycPat: SetPass2 {position pattern} ToolPath {call after NewProg for correct sub calls} SetPass1 {reset} RETURN
Milling: IF AutoCycle? TagUp TagInc AutoCycCutSub1 EntryMove AutoCycCutSub2 AutoCycPat TagDown ELSE EntryMove ToolPath END RETURN
ZonlyRepAutoCycle: AutoCycPat {write pattern moves and main calls} StartSub TagUp TagInc EachCycle SetSRXYtoEP IF FeedConnect? IF NOT FirstCycle? IF SPXMove? OR SPYMove? SeqLab Feed IncValue StrtPosC EOL SeqLab AbsOrInc ELSE SeqLab Feed END ELSE SeqLab Feed END ZInPlusInc FeedEnt EOL ELSE IF NOT FirstCycle? IF SPXMove? OR SPYMove? SeqLab Rapid IncValue StrtPosC EOL IF FeedEntry? SeqLab AbsOrInc ZCP2PlusInc EOL SeqLab Feed ZInPlusInc FeedEnt EOL ELSE SeqLab AbsOrInc ZInPlusInc EOL END ELSE IF FeedEntry? SeqLab Rapid ZCP2PlusInc EOL SeqLab Feed ZInPlusInc FeedEnt EOL ELSE SeqLab Rapid ZInPlusInc EOL END END ELSE IF FeedEntry? SeqLab Feed ZInPlusInc FeedEnt EOL ELSE SeqLab Rapid ZInPlusInc EOL END END END IF FirstCycle? SetStatusOff {protect Z position for incremental sub} END SeqLab SubCall 'Hł' Tag# EOL NextCycle SetStatusOn AutoCycCutSub1 {build element sub} AutoCycCutSub2 IF FeedConnect? {there is no Z up in the sub} IF FIFO? SeqLab Feed ZCP2 FeedEnt EOL ELSE SeqLab Rapid ZCP2 EOL END END SeqLab EndSub EOL TagDown CloseSub {Element shift, not pattern} RETURN
ZonlyRep: EachCycle IF NOT FirstCycle? SeqLab Connect StrtPos EOL {added Connect} END IF FeedConnect? SeqLab FeedC ZInPlusInc FeedEnt EOL {changed to FeedC} ELSE {Entry/Exit Connect} IF FeedEntry? IF NOT FirstCycle? SeqLab RapidC ZCP2PlusIncC EOL {can't call for cycle =1} {added Rapid, reads better} {.71.2, changed to RapidC, reads better} END SeqLab Feed ZInPlusInc FeedEnt EOL ELSE SeqLab RapidC ZInPlusInc EOL {added Rapid, reads better} {changed to RapidC, reads better} END END SeqLab SubCall 'Hł' Tag# EOL NextCycle StartSub TrackZNO# FIRST SPZ# ToolPath FinishSub1 SeqLab EndSub EOL TagDown CloseSub RETURN
CheckPass: IF AutoCycle? {use the correct StrtPos} SetPass2 ELSE SetPass1 END RETURN
GetCoolOn: IF NOT CoolOff? IF ThruSpin? 'M58' SetFlag('6') { For SameTool } ELSE CoolOn SetFlagF('6') { For SameTool } END END RETURN
{ GetOfstOff: IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? Rapid ZCP1 {OfstOff} ELSE 'G28Z0.' {OfstOff} END RETURN } ProgStart: InitProg TagInit ReverseXZArcs InitWFONum SetFlood UseSeparateSubCalls SetMaxSeparateSubCalls('50') SetMaxRPM('10000') SetMaxFeed('500') SetFlagF('1') { Milling ZShiftOnly SepSubs } SetFlagF('2') { use WFO for CS changes } SetFlag('3') {True = incrementing WFO numbers for MP. False = decrementing WFO numebrs for MP} SetFlag('4') {True = toggle between incrementing/decrementing WFO's } SetFlagF('5') { CRCOffsetC } SetFlagF('6') { SameTool GetCoolOn } IF PSComment? AND UseComments? 'PostScript:' EOL ' Literals: put between single or double quotes.' EOL ' Separate commands and literals with at least one space.' EOL ' A CR ( RETURN key ) will start a new line.' EOL ' Commands: may be capital and/or lower case letters. Separate commands with a space.' EOL ' EndOP -' EOL ' all literals and commands before an ENDOP command' EOL ' will appear at the beginning of the operation. All ' EOL ' literals and commands after an ENDOP command will appear' EOL ' at the end of the operation. ' EOL ' SetFlood, SF' EOL ' This is a modal command affecting all operations.' EOL ' Outputs flood coolant, M8, for all following operations.' EOL ' This is the default setting.' EOL ' FloodCoolant, FCool' EOL ' This is a non-modal command affecting the current operation only.' EOL ' Outputs flood coolant, M8, for the current operation.' EOL ' SetThruSpindle, STS' EOL ' This is a modal command affecting all operations.' EOL ' Outputs thru-the-spindle coolant, M58, for all following operations.' EOL ' ThruSpindleCoolant, TSCool' EOL ' This is a non-modal command affecting the current operation only.' EOL ' Outputs thru-the-spindle coolant, M58, for the current operation.' EOL ' OptionalCycle1, OptCyc1' EOL ' This command, combined with now-obsolete 4thAxisCW(n) command will cause Post' EOL ' to output a non-Canned LongHand Web Drilling Cycle.' EOL ' 4thAxisCW(-1.25), 4ACW(-1.25) -' EOL ' This command, combined with OptionalCycle1 command will cause the Post Processor to' EOL ' output a non-Canned LongHand Web Drilling Cycle. Argument should contain ZRapidStart' EOL ' value. For this example, ZRapidStart value is equal to Z-1.25. In addition to this,' EOL ' Post Processor uses the the ZSurface Edit Field for ZRapidEnd position.' EOL END
IF MultipleParts? IF WorkFixtureOffsets? IF LTEqual? MUL# Parts# NumOfCS# Num#('48') SetWFOCS { use WFO for CS changes } ELSE SetFlag('2') IF UseComments? '( Not enough Work Fixture Offsets to handle this part. )' EOL '( Number of parts [ ' Parts# ' ] times CSs [ ' NumOfCS# ' ] )' EOL '( exceeds the machine limit. Switching to G52 style output. )' EOL END END END ELSE IF LTEqual? NumOfCS# Num#('48') {****} SetWFOCS { use WFO for CS changes } ELSE IF UseComments? '( Not enough Work Fixture Offsets to handle this part. )' EOL '( Number of CSs [ ' NumOfCS# ' ] exceeds the machine limit. )' EOL '( Switching to G52 style output. )' EOL END END END RETURN
SkipToLastFeat: EachFeat IF LastFeat? TrackXNO# SPX# TrackYNO# SPY# END NextFeat RETURN
SetDrillEndOpZ: IF RetractToCP1? TrackZNO# ClearancePlane1# ELSE TrackZNO# ClearancePlane2# END RETURN
OpGuts: RapidF# { No Output } IF Milling? SeqLab ZCP2C EOL IF Repeats? TagUp TagInc IF ZshiftOnly? IF AutoCycle? {incremental Autocycle sub can have Z moves} ZonlyRepAutoCycle ELSE {Z shift only, NOT Auto Cycle} IF UseSeparateSubCalls? AND CyclesLessThanMaxSubCalls? SetFlag('1') { Milling ZShiftOnly SepSubs } ZonlyRep SetFlagF('1') ELSE {no sep subs desired} G92Sub END END {end Auto Cycle IF} ELSE {not Z only} G92Sub END {end Z only IF} ELSE {no repeat OPs} Milling END IF AutoCycle? SeqLab ZCP3C EOL ELSE IF FIFO? SeqLab FeedC CRCOffC ZCP3C FeedEntC EOL ELSE SeqLab RapidC CRCOffC ZCP3C EOL END END ELSE IF Drilling? IF Repeats? TagUp TagInc StdSub SeqLab AbsOrInc Rapid StrtPos EOL END SeqLab DrillCP EOL GetCycle IF FIFO? AND OptCyc1? AND FourthCW? { Web Drill Cycle } EachFeat IF NOT FirstFeat? SeqLab RapidC MoveSXYC EOL SeqLab RapidC ZCP2C EOL END SeqLab FeedC 'Z' FourthDegree# FeedEnt EOL SeqLab RapidC 'Z' CalcZSurf# EOL SeqLab FeedC ZDepth FeedEnt EOL SeqLab SpinOff EOL SeqLab 'M19' EOL SeqLab IncValue Feed 'Y-.005' EOL SeqLab AbsOrInc EOL IF RetractToCP1? SeqLab RapidC ZCP1 EOL ELSE SeqLab RapidC ZCP2 EOL END SeqLab SpinOn EOL NextFeat ELSE IF Tap? SeqLab Speed SpinOn EOL END IF Tap? AND NOT CWSpindle? 'G74' ELSE IF FIFO? AND NOT Dwell? 'G76' ELSE Cycle END END SeqLab FromCP StrtPos ZDepth RLevel Dwell Peck Retract IF FIFO? AND NOT Dwell? 'J-.005' { Shift away from wall } END IF Tap? 'E' DIV# Num#('1') FeedTapIPR#('1') { # of Threads per Inch } ELSE FeedEnt END EOL IF CallMasterOp? SeqLab SubCall 'Hł' CallMasterNum# EOL SkipToLastFeat ELSE TrackZNO# FIRST SPZ# IF MasterOp? SetFlag('1') {std sep sub Zreps in effect} TagUp NewMasterTag SeqLab SubCall 'Hł' Tag# EOL StartSub ToolPath SeqLab EndSub EOL TagDown CloseSub SetFlagF('1') {not std sep sub Zreps in effect} ELSE ToolPath END END SetDrillEndOpZ SeqLab Rapid 'G80' ZCP3 EOL IF Repeats? FinishSubG92 END END END END RETURN
NotSameToolWFO: IF WFOCS? IF FirstOperation? OR ChangeCS? DoCSWFOComment SeqLab AbsOrInc CSWFO 'G10XD1YD2ZD41' EOL END ELSE IF ChangeCS? DoCSG52Comment SeqLab 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL ELSE IF NeedWFO1? SeqLab 'G' NewWFO# EOL END END END ClearCSOffset RETURN
SameToolWFO: IF WFOCS? IF ChangeCS? DoCSWFOComment SeqLab AbsOrInc CSWFO 'G10XD1YD2ZD41' EOL END ELSE IF ChangeCS? DoCSG52Comment SeqLab 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL END END ClearCSOffset RETURN
InitOp: EOR EOL ProgID1 EOL IF UseComments? AND ProgramNameComment? '( PROGRAM: ' ProgramName$ ' )' EOL END IF UseComments? IF ProgramComment? '( ' ProgramComment$ ' )' EOL END IF FormatNameComment? '( FORMAT: ' FormatName$ ' )' EOL END IF TimeComment? '( ' Date$ ' AT ' Time$ ' )' EOL END IF MovesComment? '( OUTPUT IN ' MoveType$ ' INCHES )' EOL END IF PartsComment? '( PARTS PROGRAMMED: ' Parts# ' )' EOL END IF StartToolComment? '( FIRST TOOL NOT IN SPINDLE )' EOL END END OpenSub RestoreScale RETURN
NewToolOp2: DoEndOpPS SeqLab IncValue 'G28Z0.' SpinOff EOL SeqLab 'G28X0.Y0.' EOL IF ToolChangeAtHome? SeqLab AbsOrInc Rapid Home EOL END SeqLab ToolChng PreTool EOL IF LAST ProgStop? SeqLab 'M0' EOL ELSE SeqLab ProgStop EOL END RETURN
NewToolOp3: {Start new Operation} SeqLab PlaneC EOL DoOpComments DoPostScript RETURN
NewToolOp4: IF ChangeCS? SeqLab 'M11' IncValue Rapid CSAngleAC CSAngleBC 'M10' EOL SeqLab AbsValue EOL END { Speed SpinOn moved to NewToolOp5 and NewToolOp5a } RETURN
NewToolOp5: CheckPass SeqLab Rapid AbsOrInc StrtPos IF NOT Tap? Speed SpinOn END EOL SeqLab OfstOn GetCoolOn EOL RETURN
SameToolOp1: DoEndOpPS IF LAST ProgStop? SeqLab CoolOff EOL SeqLab IncValue 'G28Z0.' SpinOff EOL SeqLab 'G28X0.Y0.' EOL SeqLab 'M0' EOL ELSE IF NewToolOffset? OR ChangeCS? SeqLab CoolOff EOL SeqLab SpinOff EOL SeqLab IncValue 'G28Z0.' SpinOff EOL SeqLab 'G28X0.Y0.' EOL ELSE IF CoolOff? AND LAST NOT CoolOff? SeqLab CoolOff EOL END END END RETURN
SameToolOp2: {Start new Operation} DoOpComments DoPostScript CheckPass RETURN
SameToolOp3: {Start new Operation} IF LAST ProgStop? SeqLab PlaneC AbsOrInc Rapid StrtPos IF NOT Tap? Speed SpinOn END GetCoolOn EOL SeqLab OfstOn EOL ELSE SeqLab PlaneC AbsOrInc Rapid StrtPos EOL IF AChange? OR BChange? SeqLab 'M11' IncValue Rapid CSAngleAC CSAngleBC 'M10' EOL SeqLab AbsValue EOL ELSE IF Drilling? GetCycle IF NOT Tap? SpeedC END END IF NOT CoolOff? AND LAST CoolOff? GetCoolOn ELSE IF ThruSpin? AND NOT Flag?('6') GetCoolOn ELSE IF NOT ThruSpin? AND Flag?('6') GetCoolOn END END END END EOL IF NewToolOffset? OR ChangeCS? SeqLab OfstOn EOL END END RETURN
End2: DoEndOpPS IF AAxisAvail? OR BAxisAvail? SeqLab 'M11' EOL END IF AAxisAvail? SeqLab 'G28' CSAngleA EOL END IF BAxisAvail? SeqLab 'G28' CSAngleB EOL END SeqLab 'M10' EOL {Clamp Table} IF ProgStop? SeqLab 'M0' EOL END RETURN
End3: SeqLab EOP EOL CloseSub Post2 {organize Subs into one program} EOR EOL Close Retag IF UseComments? SetScale('1') {restore scale for comments} Reopen IF FileBytesComment? '( FILE LENGTH: ' FileBytes# ' CHARACTERS )' EOL END IF FileFeetComment? '( FILE LENGTH: ' FileFeet# ' FEET )' EOL END IF FileMetersComment? '( FILE LENGTH: ' FileMeters# ' METERS )' EOL END Close END RETURN
MPallTools1P: {Multiple Parts, All Tools 1 Part} InitOp EachOp {Start of post processing} IF FirstOperation? IF ToolChangeAtHome? SetHome END OpenMP IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END FirstOp1a FirstOp1 FirstOp2 FirstOp3 ELSE IF NewTool? NewToolOp1 NewToolOp2 {to tool change, CS problem} SubCSMP NewToolOp3 IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END NewToolOp4 NewToolOp5 ELSE {implied SameTool?} SameToolOp1 SubCSMP SameToolOp2 SameToolOp3 END END OpGuts NextOp End1 End2 CloseMP End3 RETURN
MP1ToollAllPfu: {Multiple Parts, 1 Tool all Parts, full up} InitOp EachOp IF FirstOperation? IF ToolChangeAtHome? SetHome END IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END FirstOp1a FirstOp1 FirstOp2 OpenMP FirstOp3 ELSE IF NewTool? NewToolOp1 CloseMP NewToolOp2 {to tool change, CS problem} NewToolOp3 IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END NewToolOp4 OpenMP NewToolOp5 ELSE {implied SameTool?} SameToolOp1 SubCSMP SameToolOp2 SameToolOp3 END END OpGuts NextOp End1 CloseMP End2 End3 RETURN
MP1ToollAllPXcp: {Multiple Parts, 1 Tool all Parts, exit Clearance plane} InitOp EachOp IF FirstOperation? IF ToolChangeAtHome? SetHome END IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END FirstOp1a FirstOp1 FirstOp2 OpenMP FirstOp3 ELSE IF NewTool? NewToolOp1 CloseMP NewToolOp2 {to tool change, CS problem} NewToolOp3 IF NOT WorkFixtureOffsets? SeqLab WFO1 EOL END NewToolOp4 OpenMP NewToolOp5 ELSE {implied SameTool?} SameToolOp1 SubCSMP SameToolOp2 SameToolOp3 END END OpGuts NextOp End1 CloseMP End2 End3 RETURN
NoMPs: {no multiple parts} InitOp EachOp IF FirstOperation? IF ToolChangeAtHome? SetHome END FirstOp1a FirstOp1 FirstOp2 FirstOp3 ELSE IF NewTool? NewToolOp1 NewToolOp2 NewToolOp3 NotSameToolWFO NewToolOp4 NewToolOp5 ELSE {implied SameTool?} SameToolOp1 SameToolOp2 SameToolWFO SameToolOp3 END END OpGuts NextOp End1 End2 End3 RETURN
{Start of executable Prog, Top Level ****}
ProgStart {setup and initializations}
IF MultipleParts? IF AllToolsOnePart? MPallTools1P ELSE {implied OneToolAllParts?} IF FullUp? MP1ToollAllPfu ELSE {implied ExitClearancePlane?} MP1ToollAllPXcp END END ELSE NoMPs END