Fanuc 3TA Cincom F12 L063 85


{Change Comments ***********************************************************}

{for Maury Microwave, by WFG , 5/30/88, Citizen Cincom F12-Fanuc 3TA, from KiaMaster}
{ no G97/G96 for CSS }
{2 turrets, tools 1-9 turret1, tools 21-29 turret 2}
{collet in Z+ direction}

{ 10/28/88 }
{ originaly Fan 3TA Cincom F12 L063.54, updated for Maury Microwave }
{ 2 turrets, tools 11-15 turret 1, tools 21-25 turret 2 }
{ changed X.55 in literal face off and cut-off sequence's to XCP
changed Z litteral in cut-off to ZStockMin# }
{ modified pretooling operations to include; '00', 'T0' or 'T1100' }
{ G92 with SimpleRough for threading }
{ G50 uses turret index position, ReverseXZArcs }
{ using tool and offset numbers for minimum 'N' numbers }
{ Jim Radcliffe }

{7/24/90, Added InitProg globally to posts with this remark, DWB}

{11/23/96, Updated Fanuc 3TA Cincom F12 L063.57 to .85 format per Fanuc 10T MS [-] L001.85.01.02, JR}

{Prog Numeric Format Definitions *******************************************}

#1 = '0.00'
#2 = '###.####;0.'
#3 = '#######0'
#4 = '#.######;0.'
#5 = '#'
#6 = '00'

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(MUL#,2) { Non-Canned Threading AutoFinish }
FORMAT(FirstMoveEPX#,2)
FORMAT(FirstMoveEPZ#,2)
FORMAT(ToolOffsetXRadius#,2)
FORMAT(ToolOffsetZ#,2)
FORMAT(TurretX#,2)
FORMAT(ZStockMin#,2)
FORMAT(Dwell#,2)
FORMAT(Program#,3)
FORMAT(Operation#,3)
FORMAT(Tool#,3)
FORMAT(FeedIPR#,4)
FORMAT(RapidF#,5)
FORMAT(ToolOffsetLess20#,6)
FORMAT(ToolOffset#,6)

{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

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# ': ' ToolSize$ ' ' ToolType$ ' )' EOL
END
IF ToolComment?
'( ' ToolComment$ ' )' EOL
END
RestoreScale
END
RETURN

PSInit: {reset flags from last Op, .70}
RETURN

PSStuff:
RETURN

DoPostScript:
PSInit
EachPS
SeqLabC PostScript EOL {literals}
PSStuff {commands}
NextPS
RETURN

DoEndOpPS:
PSInit
EachEOPS
SeqLabC EndOpPS EOL {literals}
PSStuff {commands}
NextPS
RETURN

StockOnNoCan:
IF NOT CannedCycle?
StockOn
END
RETURN

FeedNoCan:
IF NOT CannedCycle?
FeedC
END
RETURN

FeedRateNoCan:
IF NOT CannedCycle?
FeedRateC
END
RETURN

ApproachSP:
IF ApproachFace?
SeqLabC StockOnNoCan XSPC EOL
SeqLabC StockOff ZOpCPC EOL
StockOnNoCan
IF NotEqual? CycleStartZ# ZOpCP#
SeqLabC FeedNoCan ZSPC FeedRateNoCan EOL
END
ELSE { ODApproach/IDApproach }
SeqLabC StockOnNoCan ZSPC EOL
SeqLabC StockOff XOpCDC EOL
StockOnNoCan
IF NotEqual? CycleStartX# XOpCD#
SeqLabC FeedNoCan XSPC FeedRateNoCan EOL
END
END
RETURN

AppMove:
StockOff ThisOpEntryZCP 'T' ToolOffset#
RETURN

Approach: { NOT FOR TAILSTOCK, .82 }
Rapid 'G99' RapidF# { RapidF# Forces FeedRate }
IF ApproachOD?
SeqLabC ThisOpEntryXCP AppMove EOL
ELSE
IF ApproachID?
SeqLabC XOpCD AppMove EOL
ELSE {ApproachFace}
SeqLabC StockOnNoCan XSP AppMove EOL
END
END
ApproachSP
RETURN

CheckOffset:
DoEndOpPS
IF LAST ProgStop?
SeqLabC 'M0' EOL
END
DoOpComments
DoPostScript
IF NewToolOffset?
SeqLabC 'T' ToolOffset# EOL
END
RETURN

FormatArc:
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXC MoveZC
IF ArcIJFormat?
ArcIJC
ELSE
ArcRC
END
RETURN

CkCRC: { 4.2 }
IF XMove? OR ZMove? { Approach Length Feature and Multiple Pockets }
IF NOT LastFeat?
CRCOnC
END
END
IF LastFeat? AND EmptyLine? { Exit Length Feature }
CRCOffC
END
RETURN

ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling? AND Dwell?
SeqLabC 'G4X' Dwell# EOL
ELSE
IF CannedCycle?
SeqLab
END
END
END
IF PointFeat?
SeqLabC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqLabC
IF LAST ThreadFeat?
Rapid
ELSE
RapidC
END
MoveXC MoveZC EOL
ELSE
IF LineFeat?
SeqLabC CkCRC FeedC MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
EACHQuadrant
SeqLabC FormatArc FeedRateC EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqLabC 'G32' MoveXC MoveZC ThrdLead EOL
END
END
END
END
END
NEXTFeat
RETURN

CheckRapid:
CRCOffC
IF LAST CannedCycle?
Rapid
ELSE
IF LAST Threading?
Rapid
ELSE
RapidC
END
END
RETURN

{Start of executable Prog **************************************************}

{setup and initializations}
InitProg
SetAbs
NegateZ
PosSideLathe
ReverseXZArcs
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: must be all capital letters when typed in.' 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
EachOp {Start of post processing *********************}
GetLCycle
IF FirstOperation?
EOR EOL
ProgID1 EOL
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 ABSOLUTE INCHES )' EOL
END
END
RestoreScale
OpenSub
StockOff
SetHome

SeqLabC 'G69' EOL {st turret 1, tool 11 is in pos}
SeqLabC 'G50X-.12Z-.02' EOL {preset position at prog end}
SeqLabC 'M6' EOL {close collet}
SeqLabC 'M3S01' EOL
IF ToolOver?('20') {using turret 2}
SeqLabC OpToolID '00' EOL {OP1 tool call}
END
SeqLabC 'G0' XCP EOL
SeqLabC 'Z0T01'EOL
SeqLabC 'G99G1X-.12F.001' EOL {face part with tool 11}
SeqLabC 'G0' XCP 'Z-.02' EOL

DoOpComments
DoPostScript
Plane

IF ToolOver?('20') {using turret 2, tool already in pos}
IF LastTool?
SeqLabC 'T1100' EOL
ELSE
SeqLabC PreToolUnder('20')
IF NOT EmptyLine?
'00' EOL {set turret 1 tool for next use and cancel offset}
ELSE
'T0' EOL {cancel offset if no next tool under 20}
END
END
'N' Tool# ToolOffset# 'G68' EOL {set turret 2 for OP 1 use}
ELSE
SeqLabC PreToolOver('20')
IF NOT EmptyLine?
'00' EOL
ELSE
'T0' EOL {cancel offset if no next tool over 20}
END
IF ToolOver?('11') {OP 1 tool is not tool 11}
SeqLabC OpToolID '00' EOL {new turret 1 tool}
SeqLabC 'G4X1.' EOL {dwell if same turet}
END
'N' Tool# ToolOffset# EOL
END

SeqLabC 'G50U' TurretX# EOL
Approach
ELSE
IF NewTool?

{Finish off last Operation}

StockOff {.62}
CheckRapid
IF LAST ApproachOD?
SeqLabC LAST OpExitXCPC EOL
ELSE
IF LAST ApproachID?
SeqLabC LAST XOpECDC EOL
END
END
SeqLabC LAST OpExitZCPC EOL
DoEndOpPS
IF ToolChangeAtHome?
SeqLabC NewHome EOL
END
IF LAST ProgStop?
SeqLabC 'M0' EOL
ELSE
SeqLabC ProgStop EOL
END

{Start new Operation}

DoOpComments
DoPostScript

IF LAST ToolOver?('20')
IF ToolOver?('20')
IF LastTool?
SeqLabC 'T1100' EOL
ELSE
SeqLabC OpToolID '00' EOL {same turret 2}
SeqLabC 'G4X1.' EOL {dwell if same turet}
END
'N' Tool# ToolOffset# EOL
ELSE
SeqLabC PreToolOver('20')
IF NOT EmptyLine?
'00' EOL {set turret 2 for next use and cancel offset}
ELSE
'T0' EOL {cancel offset if no next tool over 20}
END
'N' Tool# ToolOffset# 'G69' EOL {use turret 1}
END
ELSE
IF ToolOver?('20')
IF LastTool?
SeqLabC 'T1100' EOL
ELSE
SeqLabC PreToolUnder('20')
IF NOT EmptyLine?
'00' EOL {set turret 1 for next use and cancel offset}
ELSE
'T0' EOL {cancel offset if no next tool under 20}
END
END
'N' Tool# ToolOffset# 'G68' EOL {use turret 2}
ELSE
SeqLabC OpToolID '00' EOL {same turret 1}
SeqLabC 'G4X1.' EOL {dwell if same turet}
'N' Tool# ToolOffset# EOL
END
END

SeqLabC 'G50U' TurretX# EOL
Approach
ELSE
IF SameTool? {.62}

{Start new Operation}

StockOff
IF LAST StraightConnect?
CheckOffset
CheckRapid
SeqLabC StockOnNoCan XSPC ZSPC EOL
ELSE
CheckRapid
IF ApproachOD?
IF LAST ApproachOD?
SeqLabC LAST XOpECDC EOL
ELSE {around}
IF LAST ApproachID?
SeqLabC LAST XOpECDC EOL
END
SeqLabC LAST OpExitZCPC EOL
SeqLabC LAST OpExitXCPC EOL
END
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqLabC LAST XOpECDC EOL
ELSE
IF LAST ApproachOD? {around}
SeqLabC LAST OpExitXCPC EOL
END
SeqLabC LAST OpExitZCPC EOL
SeqLabC XOpCDC EOL
END
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqLabC LAST ZOpECPC EOL
ELSE
IF LAST ApproachOD? {around}
SeqLabC LAST OpExitXCPC EOL
ELSE {LAST ApproachID}
SeqLabC LAST XOpECDC EOL
END
SeqLabC LAST OpExitZCPC EOL
END
END
END
CheckOffset
ApproachSP
END
END
END
END {common point for all operations}
IF CannedCycle?
StockOff
IF Roughing?
IF RoughSimple?
StockOn
SetPass1
SeqLabC LCycle
IF ApproachFace?
'Z' FirstMoveEPZ# XatFinZ
ELSE
XatFinZ FinZ
END
XTapAtZ FeedRate EOL
SimpleRough
ELSE
TagInc
SetPass2
IF RoughContour?
SeqLabC LCycle CutDepth 'R.01' EOL
SeqLabC LCycle 'PÅ‚' Tag# 'Q²' Tag# XStkLeft ZStkLeft FeedRate EOL
'>' Tag# EOL
IF ApproachFace?
SeqLab StepMove ZSP EOL
SeqLabC XSP EOL
ELSE
SeqLab StepMove XSP EOL
SeqLabC ZSP EOL
END
ELSE
IF RoughPatternShift?
SeqLabC LCycle XminusU ZminusW NumCuts EOL
SeqLabC LCycle 'PÅ‚' Tag# 'Q²' Tag# XStkLeft ZStkLeft FeedRate EOL
'>' Tag# EOL
SeqLab Rapid StrtPos EOL
END
END
ToolPath
'<' Tag# EOL
IF AutoFinish?
SeqLabC 'G70' 'PÅ‚' Tag# 'Q²' Tag# EOL
END
SetPass1
TrackXNO# CycleStartX#
TrackZNO# CycleStartZ#
END
ELSE
IF Threading?
SeqLabC 'G92X' FirstMoveEPX# FinZ ThrdLead EOL
SimpleRough
IF AutoFinish?
SeqLabC XatFinZ EOL
END
ELSE
IF Drilling? { No Canned-Cycle drill !!!! }
IF PeckChipBreaker?
SeqLabC LCycle ZDepth RLevel Dwell Peck Retract FeedRate EOL
SeqLabC DrillOff EOL
IF AutoFinish?
SeqLabC Feed ZDepth EOL
IF Dwell?
SeqLabC 'G4X' Dwell# EOL
END
SeqLabC Rapid ZSP EOL
END
END
ELSE
IF Grooving?
StockOn
SetPass1
SeqLabC StrtPos EOL
ToolPath
END
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish? { .82.1c }
StockOff
IF Turning?
IF ApproachFace?
SeqLabC RapidC ZOpECPC EOL
ELSE
SeqLabC RapidC XOpECDC EOL
END
ApproachSP
SeqLabC StockOff StrtPosC EOL
ToolPath
ELSE
IF Roughing? AND NOT RoughSimple?
SetPass2
SeqLabC RapidC XSPC ZSPC EOL
SeqLabC StockOff StrtPosC EOL
ToolPath
SetPass1
ELSE
IF Threading?
SeqLabC 'X' MUL# Num#('2') ADD# FinishXRadius# Taper# EOL
SeqLabC 'G32'
IF Taper?
XatFinZ
END
FinZ ThrdLead EOL
SeqLabC Rapid XSP EOL
SeqLabC ZSP EOL
END
END
END
END
END
NextOp {loops back to EachOP until last Operation}

{End of program ************************************************************}

{finish last operation}
StockOff
CRCOffC
IF CannedCycle?
Rapid
ELSE
IF Threading?
Rapid
ELSE
RapidC
END
END
IF ApproachOD?
SeqLabC OpExitXCPC EOL
ELSE
IF ApproachID?
SeqLabC XOpECDC EOL
END
END
SeqLabC OpExitZCPC EOL
DoEndOpPS
IF FIRST ToolChangeAtHome?
SeqLabC FirstHome EOL
END
IF ProgStop?
SeqLabC 'M0' EOL
ELSE
SeqLabC ProgStop EOL
END

IF UseComments?
IF OperationComment?
'( CUT-OFF SEQUENCE )' EOL
END
IF ToolTypeComment? OR ToolComment?
'( TOOL 11: .060 WIDE PART-OFF TOOL )' EOL
END
END

IF ToolOver?('11') {last tool}
IF ToolOver?('20') {last tool}
SeqLabC 'T0' EOL {cancel offset, tool 11 is in pos}
'N1116' 'G69' EOL {set turrt for tool 11}
ELSE
SeqLabC 'T1100' EOL {tool 11}
SeqLabC 'G4X1.' EOL {dwell 1 sec.}
'N1116' EOL
END
ELSE
SeqLabC 'T0' EOL {cancel offset, for same tool new offset}
'N1116' EOL
END

SeqLabC 'G50U4.0' EOL
SeqLabC 'G0' XCP 'Z' ZStockMin# 'T16' EOL {X clear, Z cutoff position}
SeqLabC 'G1X-.12F.0008' EOL {pull}
SeqLabC 'M5' EOL {spindle off}
SeqLabC 'G4X1.' EOL {dwell 1 sec.}
SeqLabC 'M7' EOL {open collet}
SeqLabC 'G0X-.12Z-.02T0' EOL { bar pull }
SeqLabC 'M2' EOL
Post
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


Wyszukiwarka

Podobne podstrony:
Fanuc 10T Cincom F20 L527 85 1
Fanuc 3TC Cincom F20 L081 85
Fanuc 10T HS [KMT] L759 85
Fanuc 0T DP [TTT] L567 85
Fanuc 15T Dianichi CGB L754 85 2
Fanuc 0T Nak [BMR] L767 85
Fanuc 6T HS [CSD] L208 85 2
Fanuc 6T MS [SE] L683 85
Fanuc 10T MS [PT] L703 85 1
Fanuc 0T DP [HP] L497 85 1
Fanuc 10T Mazak QT L088 85
Fanuc 18GCA Weldon 1632 M842 85

więcej podobnych podstron