Fanuc 5M (QMT) M335 80


{Change Comments ***********************************************************} {12/13/88, Added missing connect info for milling repeats, JR} {5/26/90, Updated: Fanuc 5M M015.54 to .72.1 format, fixed MultipleParts endless loop, JR} {7/24/90, Replaced all occurances of SetSRXYZero with SetSRXYtoSP, DWB} {8/3/90 Copied & modified: Fanuc 5M M015.73 For: Quality Machine & Tools Machine: Control: Fanuc 5M Formatted N to '0000' in form. Formatted S to '0000' in form. Replaced Speed5M with Speed in prog. Combined Speed and SpinOn together in prog. Modified toolchange output like this: NxxxxT02 {Tool being used} NxxxxT01M06 {Last tool used} Modified AbsorInc Rapid Home to 'G28X00Y00' at tool change. Modified AbsorInc Rapid FirstHome to 'G28X00Y00' at end. Updated to Version 3.2 per Fanuc 6M M001.74 Format DWB} {3/26/91 Modified: Fanuc 5M (QMT) M335.74 For: Quality Machine Moved SpinOn line to before tool change lines. Added AbsOrInc to SpinOn line, deleted from StrtPos line, added call in MP as needed. Deleted saftey start blocks, calling Plane on line by itself before SpinOn. Added Preset line, using Home & ToolLength#. Moved coolant to StrtPos line. Changed OfstOn to ZCP1. Moved CoolOff to OfstOff line. Changed to go to 'G28X00Y00' regardless of Home check box and no SpinOff. Added loop to output the final ops tool number in the first op. NOTE: due to the above loop change, MultipleParts? AND AllToolsOnePart? doesnt work and is commented as such. Updated to .80 format. Jim Radcliffe} {Prog Numeric Format Definitions *******************************************} #1 = '#.00' #2 = '###.###;0.' #3 = '*###.###;0.' #4 = '####^###;' #5 = '####.####;0.' #6 = '########;0' #7 = '00' #8 = '####^###0' FORMAT(FileFeet#,1) FORMAT(FileMeters#,1) FORMAT(Dwell#,4) FORMAT(ToolDiameter#,5) {.72} FORMAT(Program#,6) {.72} FORMAT(Operation#,6) {.72} FORMAT(Parts#,6) {.72} FORMAT(Tool#,7) {.72} FORMAT(ToolLength#,8) {Prog Subroutines **********************************************************} DoSubComment: IF UseComments? AND SubComment? '( CYCLE START )' EOL END RETURN DoPartSubComment: IF UseComments? AND SubComment? TagInc '( Part Number: ' Tag# ' )' EOL IF LastPart? TagInit 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 IF Metric? {CAM file is in metric, tools and tool path} SetScale('.03937007874') { change to English, this is an English post} END END RETURN PSInit: {reset flags} NewWFOF RotateF RETURN PSStuff: {revised.72} IF FourthCW? FORMAT(FourthDegree#,2) SeqC 'A' FourthDegree# EOL FourthCWF {reset flag} END IF FourthCCW? FORMAT(FourthDegree#,3) SeqC 'A' FourthDegree# EOL FourthCCWF {reset flag} END IF FifthCW? FORMAT(FifthDegree#,2) SeqC 'B' FifthDegree# EOL FifthCWF {reset flag} END IF FifthCCW? FORMAT(FifthDegree#,3) SeqC 'B' FifthDegree# EOL FifthCCWF {reset flag} END RETURN DoPostScript: PSInit EachPS SeqC PostScript EOL {literals} PSStuff {commands} NextPS RETURN DoEndOpPS: PSInit EachEOPS SeqC EndOpPS EOL {literals} PSStuff {commands} NextPS RETURN EntryMove: SeqC IF FeedEntry? FeedC ZInC FeedEntC ELSE RapidC ZInC END EOL RETURN FormatArc: IF ArcCW? CWArcC ELSE CCWArcC END MoveXYZC IF ArcIJFormat? ArcIJC ELSE ArcRC END RETURN StdLine: {enables CRC on first call, .70} IF Decelerate? IF RoomToDecel? DecelMove1 SeqC CRCOnC FeedC MoveXYZC FeedRateC CRCOffsetC EOL DecelMove2 END SeqC CRCOnC FeedC MoveXYZC DecelFeed CRCOffsetC EOL ELSE IF XMove? OR YMove? OR ZMove? SeqC CRCOnC FeedC MoveXYZC FeedRateC CRCOffsetC EOL END END RETURN ToolPath2: {for AutoCycle element moves} ResetCRCNum {.72} EACHFeat IF RapidFeat? IF LastFeat? SeqC CRCOffC RapidC MoveXYZC EOL ELSE IF XMove? OR YMove? OR ZMove? SeqC RapidC MoveXYZC EOL END END ELSE IF LineFeat? IF LastFeat? SeqC CRCOffC FeedC MoveXYZC FeedRateC EOL ELSE IF ZMove? {skip CRCOn until first non-Z move line, skipping ramps} SeqC FeedC MoveXYZC FeedRateC EOL ELSE StdLine {enables CRC on first call} END END ELSE IF ArcFeat? EACHQuadrant IF LastQuadrant? AND Decelerate? IF RoomToDecel? DecelMove1 SeqC FormatArc ArcFeedC EOL DecelMove2 END SeqC FormatArc DecelFeed EOL ELSE SeqC FormatArc ArcFeedC EOL END NEXTQuadrant END END END NEXTFeat RETURN CutAutoCycle: SaveSubStatus {save tool position} SetPass1 {element cut moves} SetSRXYtoSP SeqC IncValue EOL IF Repeats? AND ZshiftOnly? EachRep EntryMove ToolPath2 IF NOT FeedConnect? SeqC RapidC PRIME ZCP2 EOL END NextRep SeqC AbsOrInc RapidC ZCP2 EOL ELSE EntryMove ToolPath2 SeqC AbsOrInc RapidC ZCP2 EOL END SetSRSubXY {restore tool position} SetSRSubMove ReSetPass2 {restore for positioning moves} RETURN ToolPath: EACHFeat IF PointFeat? SeqC MoveSXYC EOL IF AutoCycle? CutAutoCycle CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY} END ELSE IF RapidFeat? SeqC RapidC MoveXYZC EOL ELSE IF LineFeat? IF Decelerate? IF RoomToDecel? DecelMove1 SeqC CRCOnC FeedC MoveXYZC FeedRateC CRCOffsetC EOL DecelMove2 END SeqC CRCOnC FeedC MoveXYZC DecelFeed CRCOffsetC EOL ELSE SeqC CRCOnC FeedC MoveXYZC FeedRateC CRCOffsetC EOL END ELSE IF ArcFeat? EACHQuadrant IF LastQuadrant? AND Decelerate? IF RoomToDecel? DecelMove1 SeqC CRCOnC FormatArc ArcFeedC CRCOffsetC EOL DecelMove2 END SeqC CRCOnC FormatArc DecelFeed CRCOffsetC EOL ELSE SeqC CRCOnC FormatArc ArcFeedC CRCOffsetC EOL END NEXTQuadrant END END END END NEXTFeat RETURN CheckPass: IF AutoCycle? {use the correct StrtPos} SetPass2 ELSE SetPass1 END RETURN GetStartOfSameTool: DoOpComments DoPostScript CheckPass RETURN {Start of executable Prog **************************************************} {setup and initializations} InitProg ReverseXZArcs SetFlood SetMaxRPM('10000') {?} SetMaxFeed('500') {?} 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 ' 4thAxisCW(12.5), 4ACW(12.5) -' EOL ' generates a + A move of the value you specify' EOL ' 4thAxisCCW(22.5), 4ACCW(22.5) -' EOL ' generates a - A move of the value you specify' EOL ' 5thAxisCW(30), 5ACW(30) -' EOL ' generates a + B move of the value you specify' EOL ' 5thAxisCCW(22.5), 5ACCW(22.5) -' EOL ' generates a - B move of the value you specify' EOL END EachOp {Start of post processing *********************} IF FirstOperation? EOR EOL IF UseComments? AND ProgramNameComment? '( ' 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 NOT IN SPINDLE )' EOL END END OpenSub IF Metric? {CAM file is in metric, tools and tool path} SetScale('.03937007874') { change to English, this is an English post} END IF MultipleParts? AND AllToolsOnePart? {EachPart} {DoPartSubComment} '( *** "Multiple Parts" with "All Tools One Part" does not work in this Processor *** )' EOL END SeqC Plane EOL SeqC AbsOrInc Speed SpinOn EOL SeqC OpToolID EOL ELSE IF LastOp? SeqC OpToolID ToolChng EOL {needs the final op's tool number in the 1st op} END END NextOp EachOp IF FirstOperation? SeqC Preset Home 'Z' ToolLength# EOL DoOpComments DoPostScript IF MultipleParts? AND OneToolAllParts? AND FullUp? EachPart DoPartSubComment IF NOT FirstPart? DoOpComments END END CheckPass Seq Rapid StrtPos CoolOn EOL SeqC ZCP1 EOL IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? EachPart DoPartSubComment IF NOT FirstPart? DoOpComments Seq Rapid StrtPos EOL END END ELSE IF NewTool? {Finish off last Operation} IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? NextPart END SeqC IncValue OfstOff CoolOff EOL IF MultipleParts? AND OneToolAllParts? AND FullUp? IF NOT LastPart? SeqC AbsOrInc EOL END NextPart END DoEndOpPS SeqC 'G28X00Y00' EOL IF LAST ProgStop? SeqC 'M00' EOL ELSE SeqC ProgStop EOL END {Start new Operation} SeqC Plane EOL SeqC AbsOrInc Speed SpinOn EOL SeqC OpToolID EOL SeqC 'T' LAST Tool# ToolChng EOL SeqC Preset Home 'Z' ToolLength# EOL DoOpComments DoPostScript IF MultipleParts? AND OneToolAllParts? AND FullUp? EachPart DoPartSubComment IF NOT FirstPart? DoOpComments END END CheckPass Seq Rapid StrtPos CoolOn EOL SeqC ZCP1 EOL IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? EachPart DoPartSubComment IF NOT FirstPart? DoOpComments Seq Rapid StrtPos EOL END END ELSE IF SameTool? DoEndOpPS IF LAST ProgStop? SeqC IncValue OfstOff CoolOff EOL SeqC SpinOff EOL SeqC 'M00' EOL {Start new Operation} GetStartOfSameTool SeqC AbsOrInc Speed SpinOn EOL SeqC PlaneC Rapid StrtPos CoolOn EOL SeqC ZCP1 EOL ELSE IF CoolOff? AND LAST NOT CoolOff? SeqC CoolOff EOL END IF NewToolOffset? {Start new Operation} GetStartOfSameTool SeqC IncValue OfstOff EOL SeqC AbsOrInc SpeedC EOL SeqC PlaneC Rapid StrtPos EOL SeqC ZCP1 EOL ELSE {Start new Operation} GetStartOfSameTool SeqC SpeedC EOL SeqC PlaneC Rapid StrtPos EOL END IF NOT CoolOff? AND LAST CoolOff? SeqC CoolOn EOL END END END END END {common point for all operations} IF Milling? SeqC ZCP2C EOL IF Repeats? IF ZshiftOnly? AND AutoCycle? {taken care of in CutAutoCycle called from ToolPath} ELSE EachRep DoSubComment IF NOT FirstCycle? SeqC Connect StrtPos EOL IF NOT FeedConnect? SeqC ZCP2C EOL END END END END IF NOT AutoCycle? EntryMove END ToolPath IF Repeats? IF ZshiftOnly? AND AutoCycle? {taken care of in CutAutoCycle called from ToolPath} ELSE SeqC CRCOffC IF NOT FeedConnect? RapidC PRIME ZCP3C END EOL NextRep END END SeqC RapidC CRCOffC ZCP3C EOL ELSE IF Drilling? IF Repeats? EachRep END SeqC DrillCP EOL GetCycle SeqC Cycle FromCP StrtPos ZDepth RLevel Dwell Peck Retract FeedEnt EOL ToolPath SeqC 'G80' EOL IF Repeats? NextRep END SeqC RapidC ZCP3C EOL END END {NextOp} {modified to prevent endless looping in ncPOST} IF MultipleParts? IF LastOp? IF OneToolAllParts? AND ExitClearancePlane? NextPart END SeqC IncValue OfstOff CoolOff EOL IF OneToolAllParts? AND FullUp? IF NOT LastPart? SeqC AbsOrInc EOL END NextPart END DoEndOpPS SeqC 'G28X00Y00' EOL IF ProgStop? SeqC 'M00' EOL END IF AllToolsOnePart? {NextPart} END ELSE NextOp {loops back to EachOP until last Operation} END ELSE NextOp {loops back to EachOP until last Operation} {End of program ************************************************************} {finish last operation} SeqC IncValue OfstOff CoolOff EOL DoEndOpPS SeqC 'G28X00Y00' EOL IF ProgStop? SeqC 'M00' EOL END END SeqC EOP EOL CloseSub PostCinc 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

Wyszukiwarka

Podobne podstrony:
AT Fanuc 5M M083 80
Fanuc 5M Mazak LH [JT] MU88 16m
Fanuc 5M M015 87m
Fanuc 6M (SM) M264 80
Fanuc 3000C HS M197 80
Fanuc 5M [HM] M653 81 4m
Fanuc 5M [NM] M961 89 1
Fanuc 10M KiaMaster M423 80 1
Fanuc 5M M015 87
Fanuc 5M Mazak V5 M657 89
Fanuc 11M (JP) M313 80 1
Fanuc 5M [HM] M653 81 4
Fanuc 10M [CRC] M607 80
Fanuc 5M Router [SP] M571 81 3
Fanuc 6M HS (r) M263 80
Fanuc 11M MS [HM] M433 80

więcej podobnych podstron