Fanuc 3000C Mat LH PM M495 89 3


{Change Comments ***********************************************************} {4/17/91 Copied & modified: Fanuc 3000C Mat [BM] M482.80 For: Pride Machine Control: Fanuc 3000C Machines: Matsuura 1500 & 1000 Changes made per Rick Meide at Pride Machine. Added G45 lines to beginning of program. Changed Preset Z value at beginning of program to Z0. Changed OfstOff line to use standard G91G28Z0. Changed M19 to SpinOff. Changed OfstOff code in MachSpec from G45 to G28. Unchecked "Cancel Offset Only at Good Z" in MachSpec booleans. Added Preset Z0 after tool change in NewTool. Added move to machine home at end of program. Updated to .81 format. JR} {4/14/93 Modified: Fanuc 3000C Mat [PM] M495.81 For: Pride Machine Changes made per conversations with Rick Mahr at Pride Machine. Updated to Version 4.1 per Fanuc 6M M001.81.2 Format. Added routine to output CRC vector directions. Rules in manual states that if block following G41/G42 is an ArcFeat, no vector is needed because the IJ ArcCenters take care of it. If the block following G41/G42 is a linear move, then an I and or J vector is needed. If the linear move is in the X plus direction, the G41/G42 block needs an I.9999, without the decimal. A Y plus move requires a J9999, a negative XY move needs I-9999J-9999. Changed Preset 'Z0' to Preset 'X0Y0Z0' at NewTool. Moved CoolOn to block by itself at FirstOperation, NewTool and SameTool. Changed literal 'M00' to 'M02' at NewTool, SameTool and end of Prog. DWB} {9/25/97 Initial: Fanuc 3000C Mat [PM] M495.81.1 Created: Fanuc 3000C Mat [PM] M495.89 ForUser: Pride Industries Develop: ComPost2 1.1b2, Virtual Gibbs 4.21 Comment: Arc output only if axis moves. Updated per Fanuc 6M NoNest M001.89.1 Jim Radcliffe} {9/25/97 Initial: Fanuc 3000C Mat [PM] M495.89 Created: Fanuc 3000C Mat [PM] M495.89.1 Comment: Removed Drill Subs support. Jim Radcliffe} {9/30/97 Initial: Fanuc 3000C Mat [PM] M495.89.1 Created: Fanuc 3000C Mat [PM] M495.89.2 Comment: Changed to NoSubs format per Fanuc 6M NoSubs M877.89.2 Jim Radcliffe} {10/9/97 Initial: Fanuc 3000C Mat [PM] M495.89.2 Created: Fanuc 3000C Mat [PM] M495.89.3 Comment: Modified per marked up readout Updated per Fanuc 6M NoSubs M877.89.3 to fix Pattern position moves. Modified tool change postion and Preset output. Go to X0 Y0 if NOT ToolChangeAtHome. Preset to Home if ToolChangeAtHome. Corrected sequence number 3 places at beginning of program. Jim Radcliffe} {Prog Numeric Format Definitions *******************************************} #1 = '#.00' #2 = '###^##0' #3 = '*###^##0' #4 = '####.####;0.' #5 = '#######0' #6 = '####^##0' #7 = '###^0000' #8 = '#;' FORMAT(FileFeet#,1) FORMAT(FileMeters#,1) FORMAT(ToolDiameter#,4) FORMAT(Program#,5) FORMAT(Operation#,5) FORMAT(Tag#,5) FORMAT(Tool#,5) FORMAT(Parts#,5) FORMAT(Dwell#,6) FORMAT(CRCNormalVectorX#,7) FORMAT(CRCNormalVectorY#,7) FORMAT(RapidF#,8) {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 DoSubComment: IF UseComments? AND SubComment? '( CYCLE START )' EOL END RETURN DoOpComments: IF UseComments? SetScale('1') IF MultipleParts? AND SubComment? '( PART ' Tag# ' )' EOL END 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 AbsValueC: IF NOT AbsValue? AbsValue END RETURN IncValueC: IF AbsValue? IncValue END RETURN AbsOrIncC: IF AbsoluteMoves? AbsValueC ELSE IncValueC END RETURN PSInit: {reset flags} 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 PSStuff NextPS RETURN DoEndOpPS: PSInit EachEOPS SeqC EndOpPS EOL PSStuff NextPS RETURN ExitType: IF FIFO? FeedC ELSE RapidC END RETURN ExitFeed: IF FIFO? FeedEntC END RETURN FormatArc: IF ArcCW? CWArcC ELSE CCWArcC END MoveXYZC IF ArcIJFormat? ArcIJC ELSE ArcRC END RETURN GetVector: IF Flag?('2') IF NOT LastFeat? IF NEXT NOT ArcFeat? SetStatusOff SetAbs IF GreaterThan? EPX# NEXT EPX# 'I-9999' ELSE IF LessThan? EPX# NEXT EPX# 'I9999' END END IF GreaterThan? EPY# NEXT EPY# 'J-9999' ELSE IF LessThan? EPY# NEXT EPY# 'J9999' END END IF AutoCycle? SetInc ELSE SetAbsOrInc END SetStatusOn END END SetFlagF('2') { For Vector Output } END RETURN GetCRC: CRCOnC IF NOT EmptyLine? { Needs Vectors } SetFlag('2') END RETURN StdRapid: IF LastFeat? SeqC CRCOffC RapidC MoveXYZC EOL ELSE IF ZMove? {skip CRCOn until first non-Z move line, skipping ramps} SeqC RapidC MoveXYZC EOL ELSE IF XMove? OR YMove? OR ZMove? SeqC GetCRC RapidC MoveXYZC GetVector CRCOffsetC EOL END END END RETURN StdLine: {enables CRC on first call, .70} 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 IF Decelerate? IF RoomToDecel? DecelMove1 SeqC GetCRC FeedC MoveXYZC GetVector CRCOffsetC FeedRateC EOL DecelMove2 END SeqC GetCRC FeedC MoveXYZC GetVector CRCOffsetC DecelFeed EOL ELSE IF XMove? OR YMove? OR ZMove? SeqC GetCRC FeedC MoveXYZC GetVector CRCOffsetC FeedRateC EOL END END END END RETURN StdArc: EACHQuadrant IF XMove? OR YMove? OR ZMove? IF LastQuadrant? AND Decelerate? IF RoomToDecel? DecelMove1 SeqC FormatArc ArcFeedC EOL DecelMove2 END SeqC FormatArc DecelFeed EOL ELSE SeqC FormatArc ArcFeedC EOL END END NEXTQuadrant RETURN ToolPath2: {for AutoCycle element moves} ResetCRCNum {.72} EACHFeat IF RapidFeat? StdRapid ELSE IF LineFeat? StdLine ELSE IF ArcFeat? StdArc END END END NEXTFeat RETURN EntryMove: IF FeedEntry? SeqC FeedC ZInC FeedEntC EOL ELSE SeqC RapidC ZInC EOL END RETURN CutAutoCycle: SaveSubStatus {save tool position} SetPass1 {element cut moves} SetSRXYtoSP SeqC IncValue EOL IF Repeats? AND ZshiftOnly? EachRep IF NOT FirstCycle? IF SPXMove? OR SPYMove? IF FeedConnect? SeqC FeedC StrtPosC EOL ELSE SeqC RapidC StrtPosC EOL END END END EntryMove ToolPath2 IF NOT FeedConnect? SeqC ExitType PRIME ZCP2 ExitFeed EOL END NextRep ELSE EntryMove ToolPath2 END SeqC AbsOrInc ExitType ZCP2 ExitFeed EOL SetSRSubXY {restore tool position} SetSRSubMove ReSetPass2 {restore for positioning moves} RETURN ToolPath: ResetCRCNum {.72} EACHFeat IF PointFeat? IF AutoCycle? SeqC IF FIFO? AND NOT FirstFeat? Rapid END MoveSXYC EOL CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY} CutAutoCycle ELSE SeqC MoveSXYZC EOL {.80.01} END ELSE IF RapidFeat? StdRapid ELSE IF LineFeat? StdLine ELSE IF ArcFeat? StdArc END END END END NEXTFeat RETURN WFOStuff: { NOTE: This Post does not support WorkFixtureOffsets } RETURN CheckPass: IF AutoCycle? {use the correct StrtPos} SetPass2 ELSE SetPass1 END RETURN DoOp: IF FirstOperation? IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart? IF FullUp? SeqC CoolOff EOL SeqC IncValueC Rapid OfstOff EOL END DoOpComments WFOStuff ELSE Seq OpToolID ToolChng EOL DoOpComments SeqC Plane DrillOff CRCOff EOL DoPostScript WFOStuff SeqC TABLE(1,Speed,1) SpinOn EOL END CheckPass IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? AND NOT FirstPart? SeqC Rapid StrtPos EOL ELSE SeqC AbsOrInc Rapid StrtPos EOL SeqC OfstOn EOL SeqC CoolOn EOL END ELSE IF NewTool? IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart? {only need to set up for tool change on 1st part} ELSE SeqC CoolOff EOL SeqC IncValueC Rapid OfstOff SpinOff EOL DoEndOpPS SeqC AbsOrIncC Rapid IF ToolChangeAtHome? Home ELSE 'X0Y0' END EOL IF LAST ProgStop? SeqC 'M02' EOL ELSE SeqC ProgStop EOL END END {Start new Operation} IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart? IF FullUp? SeqC CoolOff EOL SeqC IncValueC Rapid OfstOff EOL END DoOpComments WFOStuff ELSE Seq OpToolID ToolChng EOL SeqC Preset IF ToolChangeAtHome? Home ELSE 'X0Y0' END 'Z0' EOL DoOpComments SeqC Plane DrillOff CRCOff EOL DoPostScript WFOStuff SeqC TABLE(1,Speed,1) SpinOn EOL END CheckPass IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane? AND NOT FirstPart? SeqC Rapid StrtPos EOL ELSE SeqC AbsOrInc Rapid StrtPos EOL SeqC OfstOn EOL SeqC CoolOn EOL END ELSE IF SameTool? {Finish off last Operation} IF LAST ProgStop? SeqC CoolOff EOL ELSE IF CoolOff? AND LAST NOT CoolOff? SeqC CoolOff EOL END END SeqC IF LAST ProgStop? OR NewToolOffset? IncValueC Rapid OfstOff END IF LAST ProgStop? SpinOff END EOL DoEndOpPS IF LAST ProgStop? SeqC 'M02' EOL END {Start new Operation} DoOpComments DoPostScript WFOStuff CheckPass SeqC IF LAST ProgStop? OR NotEqual? SpeedRPM# LAST SpeedRPM# TABLE(1,Speed,1) END IF LAST ProgStop? SpinOn END EOL SeqC PlaneC AbsOrIncC Rapid StrtPos EOL IF LAST ProgStop? OR NewToolOffset? SeqC OfstOn EOL END IF LAST ProgStop? SeqC CoolOn EOL ELSE IF NOT CoolOff? AND LAST CoolOff? SeqC CoolOn EOL END END END END END { Common Point for All Operations } RapidF# {forces the output of a conditional feedrate for each operation} IF Milling? SeqC ZCP2C EOL IF Repeats? IF ZshiftOnly? AND AutoCycle? {done 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? {done in CutAutoCycle called from ToolPath} ELSE SeqC IF NOT FeedConnect? ExitType PRIME ZCP3C END ExitFeed EOL SeqC CRCOffC IF NOT EmptyLine? LastFeatExtend END EOL NEXTRep END END IF AutoCycle? SeqC ZCP3C EOL ELSE SeqC ExitType ZCP3C ExitFeed EOL END SeqC CRCOffC IF NOT EmptyLine? LastFeatExtend END EOL ELSE IF Drilling? IF Repeats? EACHRep DoSubComment IF NOT FirstCycle? SeqC Rapid StrtPos EOL END END SeqC DrillCP EOL GetCycle SeqC Cycle FromCP StrtPos ZDepth RLevel Dwell Peck Retract FeedEnt EOL TrackZNO# FIRST SPZ# ToolPath IF RetractToCP1? TrackZNO# ClearancePlane1# ELSE TrackZNO# ClearancePlane2# END SeqC 'G80' EOL IF Repeats? NEXTRep END SeqC RapidC ZCP3C EOL END END RETURN FinishLastOp: SeqC CoolOff EOL SeqC IncValueC Rapid OfstOff SpinOff EOL DoEndOpPS SeqC AbsOrIncC Rapid IF FIRST ToolChangeAtHome? FirstHome ELSE 'X0Y0' END EOL IF MultipleParts? AND AllToolsOnePart? AND NOT LastPart? {no tool change after doing last part} IF ProgStop? SeqC 'M02' EOL ELSE SeqC ProgStop EOL END ELSE SeqC IncValueC 'G28X0Y0' EOL SeqC EOP EOL END RETURN DoToolsOps: EachOp IF GTEqual? Operation# Recall# Num#('1') AND LTEqual? Operation# Recall# Num#('2') {Tools1stOp ² op ² ToolsLastOp} DoOp END NextOp RETURN NextTools1stOp: SetNextToolOp Operation# RETURN GetToolsOps: EachOp IF Equal? Operation# Recall# Num#('1') {if op = Tools1stOp} IF GreaterThan? NextTools1stOp Recall# Num#('1') {if NextTools1stOp is greater Tools1stOp} Save# Num#('2') SUB# NextTools1stOp Num#('1') {ToolsLastOp becomes NextTools1stOp less 1} ELSE {else} Save# Num#('2') Recall# Num#('3') {ToolsLastOp becomes ncCAMsLastOp} END END NextOp RETURN DoTool: IF NOT Flag?('1') GetToolsOps IF WorkFixtureOffsets? NewWFO EachWFO TagInc DoToolsOps IncWFO NextWFO ELSE EachPart TagInc DoToolsOps NextPart END IF LessThan? Recall# Num#('2') Recall# Num#('3') {if ToolsLastOp < ncCAMsLastOp} Save# Num#('1') ADD# Recall# Num#('2') Num#('1') {Tools1stOp becomes NextTools1stOp} ELSE {else} SetFlag('1') {set DoneFlag} END TagInit END RETURN {Start of executable Prog **************************************************} {setup and initializations} InitProg TagInit SetFlagF('1') {done flag} SetFlagF('2') { For Vector Output } ReverseXZArcs InitWFONum SetFlood SetMaxRPM('3025') 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 ToolChangeAtHome? SetHome END IF UseComments? IF ProgramNameComment? '( PROGRAM: ' ProgramName$ ' )' EOL END 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 SeqC IncValue 'G45' Rapid 'X-0H60' EOL SeqC 'G45Y-0H61' EOL SeqC Preset IF ToolChangeAtHome? Home ELSE 'X0Y0' END 'Z0' EOL END NextOp IF MultipleParts? IF AllToolsOnePart? IF WorkFixtureOffsets? NewWFO EachWFO TagInc EachOp DoOp NextOp FinishLastOp IncWFO NextWFO ELSE EachPart TagInc EachOp DoOp NextOp FinishLastOp NextPart END ELSE IF OneToolAllParts? EachOp IF FirstOperation? Save# Num#('1') Operation# {ncCAMs1stOp becomes Tools1stOp} END IF LastOp? Save# Num#('3') Operation# {save ncCAMsLastOp} END NextOp DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool FinishLastOp END END ELSE EachOp DoOp NextOp FinishLastOp END EOR EOL CloseSub Post2 IF UseComments? SetScale('1') IF FileBytesComment? '( FILE LENGTH: ' FileBytes# ' CHARACTERS )' EOL END IF FileFeetComment? '( FILE LENGTH: ' FileFeet# ' FEET )' EOL END IF FileMetersComment? '( FILE LENGTH: ' FileMeters# ' METERS )' EOL END END Close

Wyszukiwarka

Podobne podstrony:
Fanuc 3000C Mat [BM] M482 80
Fanuc 15M Mat LH [KP] CV71 15
Fanuc 3000C Mat [PMW] MV81 14
Fanuc 3000C Mat [WI] MY45 14
Fanuc 11M Demo LH [TI] MU21 89
Fanuc 15M Mon LH [RI] MU56 89 1
Fanuc 6M Kuraki LH FES MW33 89
Fanuc 3000C HS [NI] M384 89
Fanuc 11M Mat [PM] M716 81 8
Fanuc 11M Mat 1500 M702 89
Fanuc 3000C M013 89
Fanuc 11M Mat [PM] M716 10 1
Fanuc 11M MTS LH M059 13 1
Fanuc 0M LW LH [RI] CU58 16
Fadal Format 1 LH AI MV41 89 1
Fanuc 5M Mazak LH [JT] MU88 16m
Dynapath 20M LH [PC] MV20 89
Juaristi LH [GT] MY76 89 3

więcej podobnych podstron