{Change Comments ***********************************************************}
{7/24/90, Added InitProg globally to posts with this remark, DWB}
{11/20/90, Updated: Fanuc 5T [+Ä] L027.54 to .71 format, JR}
{3/29/91
Modified: Fanuc 5T [+Ä] L027.71
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 10T MS [-] L001.80 Format.
All normal Fanuc Canned Cycles except for Drilling are supported.
DWB}
{08/05/91
Updated: Fanuc 5T [+Ä] L027.80
Updated to Version 4.0 per Fanuc 6M M001.82 Format.
Kim Michelman}
{10/15/91
Modified & Changed: Fanuc 5T [+Ä] L027.82
Changed ToolChange Command in Form from M6 to M11.
Deleted Leading Zeros in the 'N' Code or Sequence Numbers.
And Deleted Leading Zeros from the 'P' and 'Q' codes in the Form.
Kim Michelman}
{1/24/97, updated to .85 format, MPK}
{1/2/98
Updated:Fanuc 5T [A&D+Ä] L244.85
Created: Fanuc 5T [A&D+Ä] L244.85.1
For: Gibbs & Associates/General Hone Corporation
Versions: Catalyst v4.21.30(mac)/ComPost2 1.1b3
Updated for Catalyst v3.35C per Fanuc 10T MS [-] L001.85.02e Format.
DWB}
{1/13/98
Modified: Fanuc 5T [A&D+Ä] L244.85.1
Created: GN5 P&W-ST [GH] L689.85
For: General Hone Corporation
Machine: General Numeric 5 Series
Control: Pratt & Whitney Star Turn
Versions: Catalyst v4.21.30(mac)/ComPost2 1.1b3
Changes made per Dave Kauffman of General Hone Corporation, phone calls, G200B5701.VNC,
L689.85 Test, L689.85 V Tool & Gear, L689.85 Tool & Gear.
Changed SeqLab to 'N' Operation# '00' at FirstOperation and NewTool.
Added 'N' Operation# '00' EOL at SameTool.
Changed Spindle Forward from M03 to M04 in Compost2 Spindle and Coolant Dialog.
Changed Spindle Reverse from M04 to M03 in Compost2 Spindle and Coolant Dialog.
Added XsAreRadii at setup and initializations.
Changed Form Canned Cycles for X Axis from Diameter to Radius.
Added Spindle Ranges.
S01 = S0 to S247, S02 = S248 to S494, S03 = S495 to S989, S04 = S990 to S2000.
Changed Speed commands to TABLE(1,SpeedRPM#,1).
Added INT# and STR# Resources.
INT# stages are 124, 374, 618 and 1361.
Added ckSpeed sub.
Added Flag(2) to test for need to output new TABLE(1,SpeedRPM#,1).
This control only has 1 Turret with 8 Tools.
OD Tools = T11, T22, T33, T44.
ID Tools = T15, T26, T37, T48.
No LatheOffset command.
OfstOff = T10, T20, T30, T40.
Added GetLastLOfstOff sub.
Added getLOfstOff sub.
No ConstantSurfaceFeed.
Changed Approach to move at RapidF.
RapidF value = F2000.
Made other changes per customer requests.
DWB}
{2/2/98
Modified: GN5 P&W-ST [GH] L689.85
Created: GN5 P&W-ST [GH] L689.85.1
For: General Hone Corporation
Versions: Catalyst v4.21.30(mac)/ComPost2 1.1b3
Changes made per Dave Kauffman of General Hone Corporation, phone calls, fax.
Changed Spindle Forward from M04 to M03 in Compost2 Spindle and Coolant Dialog.
Changed Spindle Reverse from M03 to M04 in Compost2 Spindle and Coolant Dialog.
Changed Address T from '00' to '0' in Compost2 Default Formats Dialog.
Changed OpToolID to OpToolID LatheOffset at FirstOperation and NewTool.
Deleted GetLastLOfstOff sub.
Changed call to LOfstOff '0' at NewTool.
Deleted getLOfstOff sub.
Changed call to OpToolID '0' at end of Prog.
DWB}
{2/11/98
Modified: GN5 P&W-ST [GH] L689.85.1
Created: GN5 P&W-ST [GH] L689.85.2
For: General Hone Corporation
Versions: Catalyst v4.21.30(mac)/ComPost2 1.1b3
Changes made per Dave Kauffman of General Hone Corporation, phone calls.
Customer requested that all Line Numbers be based on Operation#.
Added setOpLines sub.
Outputs 'Åš' Operation# '00' EOL
Added call to setOpLines at FirstOperation, NewTool and SameTool.
Changed 'N' Operation# '00' to SeqLab at FirstOperation and NewTool.
Changed 'N' Operation# '00' to SeqLab ' ' at and SameTool.
DWB}
{4/23/98
Modified: GN5 P&W-ST [GH] L689.85.2
Created: GN5 P&W-ST [GH] L689.85.3
For: General Hone Corporation
Versions: Catalyst v4.23.13(mac)/ComPost2 1.1b3
Changes made per Dave Kauffman of General Hone Corporation, fax, phone calls.
Added FORMAT#8 '0000' at Prog Numeric Format Definitions.
Changed Program# from FORMAT#3 to FORMAT#8 at Prog Numeric Format Definitions.
Changed ProgID to ':' Program# at FirstOperation.
Added SpinOff block just prior to EOP at end of Prog.
Only outputs if LastOp NOT ProgStop.
DWB}
{Prog Numeric Format Definitions *******************************************}
#1 = '#.00'
#2 = '###^###0'
#3 = '#######0'
#4 = '###^##0'
#5 = '#^0000'
#6 = '###0'
#7 = '#'
#8 = '0000'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(MUL#,2) { Non-Canned Threading AutoFinish }
FORMAT(InFeedAngle#,2)
FORMAT(FirstMoveEPX#,2)
FORMAT(FirstMoveEPZ#,2)
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(Dwell#,4) {.72}
FORMAT(FeedIPR#,5)
FORMAT(CalcEPRPM#,6)
FORMAT(RapidF#,7)
FORMAT(Program#,8) {.72}
{Added Subroutines *********************************************************}
ckSpeed:
SetFlagF('2') { NewSpeedRange }
IF GTEqual? SpeedRPM# Num#('990')
IF LessThan? LAST SpeedRPM# Num#('990')
SetFlag('2')
END
ELSE
IF GTEqual? SpeedRPM# Num#('495')
IF GTEqual? LAST SpeedRPM# Num#('990')
SetFlag('2')
ELSE
IF LessThan? LAST SpeedRPM# Num#('495')
SetFlag('2')
END
END
ELSE
IF GTEqual? SpeedRPM# Num#('248')
IF GTEqual? LAST SpeedRPM# Num#('495')
SetFlag('2')
ELSE
IF LessThan? LAST SpeedRPM# Num#('248')
SetFlag('2')
END
END
ELSE
IF GTEqual? LAST SpeedRPM# Num#('248')
SetFlag('2')
END
END
END
END
IF Flag?('2')
TABLE(1,SpeedRPM#,1)
END
SetFlagF('2') { NewSpeedRange }
RETURN
{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
setOpLines:
'Åš' Operation# '00' EOL
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 {need stock for SP positioning, if not a canned cycle}
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 RapidF CoolOn
RETURN
approach: { NOT FOR TAILSTOCK, .82 }
Feed
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 'M00' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqLabC CoolOff EOL
END
END
CSSOff
IF LAST ProgStop?
TABLE(1,SpeedRPM#,1)
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
ckSpeed
END
END
IF LAST ProgStop?
SeqLabC {SpeedC} SpinOn EOL
SeqLabC CoolOn EOL
ELSE
SeqLabC {SpeedC} EOL
IF NOT CoolOff? AND LAST CoolOff?
SeqLabC CoolOn EOL
END
END
doPostScript
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 LastFeat?
CRCOffC { Exit Length Feature }
ELSE
CRCOnC { Entry Length Feature }
END
END
RETURN
toolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqLabC SpinOff EOL
SeqLabC 'G04P2000' EOL
SeqLabC TABLE(1,SpeedRPM#,1) InverseSpinOn EOL
ELSE
IF Dwell?
SeqLabC 'G04P' Dwell# EOL
END
END
ELSE
IF CannedCycle?
SeqLab
END
END
END
IF PointFeat?
SeqLabC MoveSXYC EOL
ELSE
IF RapidFeat?
IF LAST ThreadFeat?
Rapid
END
SeqLabC RapidC MoveXC MoveZC EOL
ELSE
IF LineFeat?
SeqLabC ckCRC FeedC MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
EACHQuadrant { Do not use NOT, LAST, FIRST or NEXT modifiers in this loop }
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? OR LAST Threading?
Rapid
ELSE
RapidC
END
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
SetAbs
XsAreRadii
PosSideLathe
StandardXZArcs
SetMaxRPM('2000')
IF Metric?
SetMaxFeed('12700')
ELSE
SetMaxFeed('500')
END
SetFlagF('2') { NewSpeedRange }
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
':' Program# 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 {.71.2}
SetHome
doOpComments
doPostScript
Plane
setOpLines
SeqLab Preset Home EOL
SeqLabC Rapid OpToolID LatheOffset EOL
SeqLabC 'M24' EOL { Low GearRange }
SeqLabC CSSOff TABLE(1,SpeedRPM#,1) SpinOn 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
SeqLabC NewHome CoolOff EOL
SeqLabC LOfstOff '0' EOL
IF LAST ProgStop?
SeqLabC 'M00' EOL
ELSE
SeqLabC ProgStop EOL
END
{Start new Operation}
doOpComments
doPostScript
setOpLines
SeqLab Preset Home EOL
SeqLabC Rapid OpToolID LatheOffset EOL
SeqLabC 'M24' EOL { Low GearRange }
SeqLabC CSSOff TABLE(1,SpeedRPM#,1) SpinOn EOL
approach
ELSE
IF SameTool? {.62}
{Start new Operation}
StockOff
doOpComments
setOpLines
SeqLab ' ' EOL
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 'PÅ‚' Tag# 'Q²' Tag# XStkLeft ZStkLeft CutDepth FeedRate EOL
'>' Tag# EOL
SeqLab StepMove StrtPos EOL
ELSE
IF RoughPatternShift?
SeqLabC LCycle 'PÅ‚' Tag# 'Q²' Tag# XStkLeft ZStkLeft XminusU ZminusW NumCuts 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?
IF NOT ConstantVolumeCut? AND NOT SingleEdgeCut?
SeqLabC 'G92X' FirstMoveEPX# FinZ XTapAtZ ThrdLead EOL
SimpleRough
SeqLabC XatFinZ EOL
IF AutoFinish?
SeqLabC XatFinZ EOL
END
ELSE
SeqLabC LCycle XatFinZ FinZ XTapAtZ ThrdHeight CutDepth ThrdLead 'A' InFeedAngle# EOL
IF AutoFinish?
SeqLabC 'G92' XatFinZ FinZ XTapAtZ ThrdLead EOL
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#('1') 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
IF Drilling? AND Tap?
SeqLabC SpinOff EOL
SeqLabC 'G04P2000' EOL
SeqLabC TABLE(1,SpeedRPM#,1) SpinOn EOL
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
StockOff
CRCOffC
IF CannedCycle? OR Threading?
Rapid
ELSE
RapidC
END
IF ApproachOD?
SeqLabC OpExitXCPC EOL
ELSE
IF ApproachID?
SeqLabC XOpECDC EOL
END
END
SeqLabC OpExitZCPC EOL
doEndOpPS
SeqLabC FirstHome CoolOff EOL
SeqLabC OpToolID '0' EOL
IF ProgStop?
SeqLabC 'M00' EOL
ELSE
SeqLabC SpinOff EOL
END
SeqLabC EOP 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 6T Mazak [GH] L688 85 1GE 1050T LB Kngt [GH] L691 85 2GE 1050T LB Rgl [GH] L690 85 1Fanuc 10T SNK [ST] L404 85 4Fanuc 0T DP [ST] L403 85 2Fanuc 6TB MS [ST] L410 85 5Fanuc 3T MS [ST] L405 85 1Fanuc 2000C MS [ST] L406 85 3Yasnac 2000G MS (ST) L106 85Administracja bezpieczenstwa stCin 10HC [ST&D] PM931 17 3witamina K1 St Majarm mat mult ?st q15?arm biquad ?scade ?1 ?st q31? sourcekn gik inz st 5 3więcej podobnych podstron