Fanuc 0MB Laser MX98 15


{Change Comments ***********************************************************} {9/11/97 Modified: Fanuc 6M M001.15 Format Created: Fanuc 0MB Laser MX98.15 For: WL Gore & Associates Machine: C-80 Series Laser Control: Fanuc 0-MB Versions: Catalyst v3.35C/ComPost2 MSL 68K Changes made per Ray Torrez of WL Gore, phone calls and Laser Test VNC file. Very basic. No WFO, MP, CRC, ZMoves, Drilling, Spindle, Coolant, Tool related code. DWB} {Prog Numeric Format Definitions ****} #1 = '#.00' #2 = '#####.0##;0.' #3 = '*#####.0##;0.' #4 = '####.0###;0.' #5 = '#######0' #6 = '###.0;0.' #7 = '0000' FORMAT(FileFeet#,1) FORMAT(FileMeters#,1) FORMAT(ToolDiameter#,4) FORMAT(TrackZNO#,4) FORMAT(Repeats#,5) FORMAT(Operation#,5) FORMAT(Tool#,5) FORMAT(Dwell#,6) FORMAT(Program#,7) {Prog Subroutines ****} RestoreScale: IF Metric? {CAM file is in Metric, tools and tool path} SetScale('.03937007874') { change to English, this is an English post} END RETURN WFONum: { Note: This Post Processor does not support WorkFixtureOffsets. } RETURN WFOStuff: { Note: This Post Processor does not support WorkFixtureOffsets. } RETURN DoSubComment: IF UseComments? AND SubComment? FORMAT(Program#,5) '( SUB NUMBER: ' Program# ' )' EOL FORMAT(Program#,7) 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 PSInit: NewWFOF RotateF OptCyc1F MasterOpF CallMasterOpF FourthCWF FourthCCWF FifthCWF FifthCCWF RETURN PSStuff: RETURN DoPostScript: PSInit EachPS SeqC PostScript EOL PSStuff NextPS RETURN DoEndOpPS: PSInit EachEOPS SeqC EndOpPS EOL PSStuff NextPS RETURN EntryMove: { Note: This Post Processor does not support ZMoves } RETURN StartSub: OpenSub SubID EOL DoSubComment RETURN SubWarning: { Note: This Post Processor does not support ZMoves } RETURN StdSub: SeqC SubCall ' P' Repeats# Program# EOL StartSub RETURN FinishSub1: {part 1} { Note: This Post Processor does not support ZMoves } RETURN FinishSubG92: {part 2} SeqC Preset ShiftRC EOL SeqC EndSub EOL CloseSub SeqC Preset UnshftRC EOL RETURN OpenMP: { Note: This Post Processor does not support MultipleParts } RETURN CloseMP: { Note: This Post Processor does not support MultipleParts } RETURN DoAbsOrInc: { Note: This Post Processor does not support ZMoves } RETURN DoDrillAbsOrInc: { Note: This Post Processor does not support ZMoves } RETURN RestoreAbsOrInc: { Note: This Post Processor does not support ZMoves } RETURN FormatArc: IF ArcCW? CWArcC ELSE CCWArcC END MoveXY ArcR RETURN ckCRC: { Note: This Post Processor does not support CutterRadiusCompensation } RETURN ckCRCNum: { Note: This Post Processor does not support CutterRadiusCompensation } RETURN ToolPath: EACHFeat IF PointFeat? IF AutoCycle? SeqC MoveSXYC EOL SeqC SubCall ' P1' Program# EOL CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY} ELSE { Note: This Post Processor does not support Drilling } END ELSE IF RapidFeat? IF XMove? OR YMove? SeqC RapidC MoveXYC EOL END ELSE IF LineFeat? IF XMove? OR YMove? IF Decelerate? IF RoomToDecel? DecelMove1 SeqC FeedC MoveXYC EOL DecelMove2 END SeqC FeedC MoveXYC EOL ELSE SeqC FeedC MoveXYC 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 SeqC FormatArc EOL DecelMove2 END SeqC FormatArc EOL ELSE SeqC FormatArc EOL END NEXTQuadrant END END END END NEXTFeat RestoreAbsOrInc RETURN AutoCycCutSub1: {part 1} SaveSubStatus {save tool position} SetPass1 {element cut moves} StartSub SetSRXYtoSP SeqC IncValue EOL RETURN AutoCycCutSub2: {part 2} ToolPath SeqC AbsOrInc EOL SeqC 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? NewProg AutoCycCutSub1 EntryMove AutoCycCutSub2 AutoCycPat ELSE EntryMove ToolPath END RETURN G92Sub: SubWarning StdSub SeqC AbsOrInc Connect StrtPos EOL Milling FinishSub1 FinishSubG92 RETURN ZonlyRepAutoCycle: AutoCycPat {write pattern moves and main calls} StartSub NewProg EachCycle SetSRXYtoEP IF FeedConnect? Feed IF NOT FirstCycle? IF SPXMove? OR SPYMove? SeqC IncValue StrtPosC EOL AbsOrInc END END ELSE IF NOT FirstCycle? Rapid IF SPXMove? OR SPYMove? SeqC IncValue StrtPosC EOL AbsOrInc END END END IF FirstCycle? SetStatusOff {protect Z position for incremental sub} END SeqC SubCall ' P1' Program# EOL NextCycle SetStatusOn AutoCycCutSub1 {build element sub} AutoCycCutSub2 SeqC EndSub EOL CloseSub {Element shift, not pattern} RETURN ZonlyRep: EachCycle IF NOT FirstCycle? SeqC Connect StrtPos EOL END SeqC SubCall ' P1' Program# EOL NextCycle StartSub ToolPath FinishSub1 EndSub EOL CloseSub RETURN CheckPass: IF AutoCycle? {use the correct StrtPos} SetPass2 ELSE SetPass1 END RETURN SkipToLastFeat: { Note: This Post Processor does not support Drilling } RETURN SetDrillEndOpZ: { Note: This Post Processor does not support Drilling } RETURN OpGuts: IF Milling? IF Repeats? NewProg IF ZshiftOnly? IF AutoCycle? {incremental Autocycle sub can have Z moves} ZonlyRepAutoCycle ELSE {Z shift only, NOT Auto Cycle} IF UseSeparateSubCalls? AND CyclesLessThanMaxSubCalls? ZonlyRep 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 ELSE IF Drilling? { Note: This Post Processor does not support Drilling } END END RETURN ProgStart: InitProg ReverseXZArcs SetFlood UseSeparateSubCalls SetMaxSeparateSubCalls('50') SetMaxRPM('10000') IF Metric? SetMaxFeed('6350') ELSE SetMaxFeed('250') END 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 END RETURN InitOp: EOR EOL ProgID1 IF UseComments? AND ProgramNameComment? '( PROGRAM: ' ProgramName$ ' )' END EOL IF ToolChangeAtHome? SetHome 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 IN SPINDLE )' EOL END END OpenSub RestoreScale RETURN FirstOp1: DoOpComments DoPostScript SeqC ' G20' EOL { Inch Mode } SeqC Plane EOL SeqC ' G61' EOL { Exact Stop Mode } SeqC AbsOrInc Preset ' X13. Y13.75' EOL IF Milling? SeqC Rapid ZIn EOL ELSE ' ***** NOTE: This Post Processor does not support Drilling Operations. *****' EOL END SkipZ SeqC ' M68' EOL { Lens Air Blower On } SeqC ' G04 X2.' EOL { Dwell } RETURN FirstOp2: CheckPass SeqC Rapid StrtPos EOL RETURN FirstOp3: IF Milling? SeqC FeedRate EOL END SeqC ' S00' EOL { Pulse Spacing = .0030 } SeqC ' S30' EOL { Pulse Spacing } SeqC ' T50' EOL { Pulse Duration = .0100 } SeqC ' T51' EOL { Pulse Duration } SeqC ' T50' EOL { Pulse Duration } SeqC ' T50' EOL { Pulse Duration } SeqC ' M88' EOL { Laser Shutter Open } SeqC ' M90' EOL { Incremental Pulsing Enabled } RETURN NewToolOp1: SeqC ' M91' EOL { Incremental Pulsing Disabled } RETURN NewToolOp2: DoEndOpPS RETURN NewToolOp3: {Start new Operation} DoOpComments DoPostScript SeqC PlaneC EOL IF Drilling? ' ***** NOTE: This Post Processor does not support Drilling Operations. *****' EOL END RETURN NewToolOp4: CheckPass SeqC Rapid StrtPos EOL RETURN NewToolOp5: SeqC ' M88' EOL { Laser Shutter Open } SeqC ' M90' EOL { Incremental Pulsing Enabled } RETURN SameToolOp1: SeqC ' M91' EOL { Incremental Pulsing Disabled } DoEndOpPS IF LAST ProgStop? SeqC ' M69' EOL { Lens Air Blower Off } SeqC ' M89' EOL { Laser Shutter Close } SeqC AbsOrInc Rapid ' X13. Y13.75 Z0' EOL SeqC ' M00' EOL END RETURN SameToolOp2: {Start new Operation} DoOpComments DoPostScript CheckPass RETURN SameToolOp3: {Start new Operation} IF LAST ProgStop? SeqC ' M68' EOL { Lens Air Blower On } SeqC ' G04 X2.' EOL { Dwell } END IF Drilling? ' ***** NOTE: This Post Processor does not support Drilling Operations. *****' EOL END SeqC Rapid StrtPos EOL IF Milling? SeqC FeedRateC EOL END SeqC ' M88' EOL { Laser Shutter Open } SeqC ' M90' EOL { Incremental Pulsing Enabled } RETURN End1: SeqC ' M91' EOL { Incremental Pulsing Disabled } RETURN End2: DoEndOpPS SeqC ' M69' EOL { Lens Air Blower Off } SeqC ' M89' EOL { Laser Shutter Close } SeqC AbsOrInc Rapid ' X13. Y13.75 Z0' EOL IF ProgStop? SeqC ' M00' EOL END RETURN End3: UnSkipZ SeqC EOP EOL CloseSub Post2 {organize Subs into one program} EOR EOL Close 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} { Note: This Post Processor does not support MultipleParts } RETURN MP1ToollAllPfu: {Multiple Parts, 1 Tool all Parts, full up} { Note: This Post Processor does not support MultipleParts } RETURN MP1ToollAllPXcp: {Multiple Parts, 1 Tool all Parts, exit Clearance plane} { Note: This Post Processor does not support MultipleParts } RETURN NoMPs: {no multiple parts} EachOp {Start of post processing} IF FirstOperation? InitOp FirstOp1 FirstOp2 FirstOp3 ELSE IF NewTool? NewToolOp1 NewToolOp2 NewToolOp3 NewToolOp4 NewToolOp5 ELSE {implied SameTool?} SameToolOp1 SameToolOp2 SameToolOp3 END END {common point for all operations} OpGuts NextOp {loops back to EachOP until last Operation} End1 {End of program} End2 End3 RETURN {Start of executable Prog, Top Level ****} ProgStart {setup and initializations} IF MultipleParts? { Note: This Post Processor does not support MultipleParts } NoMPs ELSE NoMPs END

Wyszukiwarka

Podobne podstrony:
Fanuc 0M Supermax M130 15
Fanuc 11M Toyoda D434 15 1
Fanuc 6M [BW] MZ45 15
Fanuc 6M Chiron D214 15
Fanuc 0M Supermax C130 15
Fanuc 0M [TK] MU53 15
Fanuc 6M NoSubs D877 15 3
Fanuc 6M Chiron B214 15
Fanuc 0MB LeBlond WDI MW11 89 2
Fanuc 6M NoSubs C877 15 3
Fanuc 18M Elgamill D468 15
Fanuc 11M Matsuura C353 15
Fanuc 10M [LAM] CW65 15 2
Fanuc 0MB LeBlond [LB] MY10 89
Fanuc 11M [WP] MV06 15 1
Fanuc 6M [UPE] CY71 15
Fanuc 11M Toyoda C434 15 1
Fanuc 6M Chiron C214 15

więcej podobnych podstron