ProtoTRAK LX2 L317 85


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

{11/23/94
Copied: Fanuc 10T MS [-] L001.82.1b
Created: ProtoTRAK LX2 L317.82.1
For: Tower Tool
Machine:
Control: ProtoTRAK LX2
Versions: ncCad 4.33/ncCAM 4.33/ncPost 4.33.04/Compost 4.21.23
Changes made per Mike Lapchynski and zeroxed manual.
Output is similar to modified Fanuc 6T control.
FeedRates are programmed in inches per minute, not inches per revolution.
Added ' F' MUL# SpeedRPM# FeedIPR# formula.
Added Flag(1) to support conditionality.
Control only supports G00, G01, G02 and G03 commands of the G-Code group.
Control does not support any M-Code group commands.
Deleted all Spindle and Coolant related commands.
Changed all SeqLab commands to Seq.
Added spaced to all Addresses.
Deleted all Offset related commands.
Deleted all ProgStop related commands.
Control only supports Canned Threading and Pecking Cycles.
Added Var(1) to count number of passes.
Changed NegSideLathe to PosSideLathe at setup and initializations.
Changed ReverseXZArcs to StandardXZArcs at setup and initializations.
Deleted EOR and ProgID1 at FirstOperation.
Deleted all Preset commands.
Added literal ' G20' at FirstOperation.
Deleted all Dwell Related commands.
DWB}

{6/15/95
Updated: ProtoTRAK LX2 L317.82.1
For: Gibbs & Associates
Versions: ncCad 4.33.01/ncCAM 4.33.01/ncPost 4.33.06/Catalyst v2.14.40/Compost 4.21.29
Updated to Version 4.1 per Fanuc 10T MS [-] L001.82.1c Format.
Added support for AutoFinish of non-Canned Threading Cycle.
Added FinishXDia# to FORMAT#2 at Prog Numeric Format Definitions.
Added FinishZ# to FORMAT#2 at Prog Numeric Format Definitions.
Deleted FirstMoveEPZ# from FORMAT#2 at Prog Numeric Format Definitions.
Command is not used.
Added FORMAT(MUL#,2) at non-Canned AutoFinish.
Gets reset to FORMAT(MUL#,8), for formula at GetFeedRateC sub.
Added FORMAT(FinishXDia#,2) at non-Canned AutoFinish.
Gets reset to FORMAT(FinishXDia#,7), for formula at Canned Threading.
DWB}

{9/10/95, Updated ProtoTRAK LX2 L317.82.2 to .85 foramt per Fanuc 10T MS [-] L001.85.01.01, JR}

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

#1 = '#.00'
#2 = '###.####;0.'
#3 = '#######0'
#4 = '###^##0'
#5 = '#.######;0.'
#6 = '00'
#7 = 'ą##0.0000;0.'
#8 = '0.0#;0.'

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(FinishZ#,2)
FORMAT(Program#,3) {.72}
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(Dwell#,4) {.72}
FORMAT(FeedIPR#,5)
FORMAT(Recall#,6)
FORMAT(FinishXDia#,7)
FORMAT(CycleStartZ#,7)
FORMAT(MUL#,8) { GetFeedRateC formula }

{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
SeqC PostScript EOL {literals}
PSStuff {commands}
NextPS
RETURN

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

StockOnNoCan:
IF NOT CannedCycle?
StockOn {need stock for SP positioning, if not a canned cycle}
END
RETURN

GetFeedRateC:
IF Flag?('1')
SetFlagF('1')
' F' MUL# SpeedRPM# FeedIPR#
END
RETURN

FeedNoCan:
IF NOT CannedCycle?
FeedC
END
RETURN

FeedRateNoCan:
IF NOT CannedCycle?
GetFeedRateC
END
RETURN

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

AppMove:
StockOff ThisOpEntryZCP
RETURN

Approach: { NOT FOR TAILSTOCK, .82 }
Rapid
IF ApproachOD?
SeqC ThisOpEntryXCP AppMove EOL
ELSE
IF ApproachID?
SeqC XOpCD AppMove EOL
ELSE {ApproachFace}
SeqC StockOnNoCan XSP AppMove EOL
END
END
ApproachSP
RETURN

CheckOffset:
DoEndOpPS
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 NOT LastFeat?
CRCOnC
END
END
IF LastFeat? AND EmptyLine? { Exit Length Feature }
CRCOffC
END
RETURN

ToolPath:
EACHFeat
GetToolTip
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqC RapidC MoveXC MoveZC EOL
ELSE
IF LineFeat?
SeqC CkCRC FeedC MoveXC MoveZC GetFeedRateC EOL
ELSE
IF ArcFeat?
EACHQuadrant { Do not use NOT, LAST, FIRST or NEXT modifiers in this loop }
SeqC FormatArc GetFeedRateC EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqC FeedC MoveXC MoveZC GetFeedRateC EOL
END
END
END
END
END
NEXTFeat
RETURN

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

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

{setup and initializations}
InitProg
SetAbs
PosSideLathe
StandardXZArcs
SetMaxFeed('500')
SetFlagF('1') { No FeedRate Output necessary }
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
SetFlag('1') { Conditional FeedRateC Converted to IPM }
IF FirstOperation?
IF UseComments?
IF ProgramNameComment?
'( ' 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
Seq ' G20' EOL { Inch }
Approach
ELSE
IF NewTool?

{Finish off last Operation}

StockOff {.62}
CheckRapid
IF LAST ApproachOD?
SeqC LAST OpExitXCPC EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
END
SeqC LAST OpExitZCPC EOL
DoEndOpPS

{Start new Operation}

DoOpComments
DoPostScript
Seq OpToolID EOL
Approach
ELSE
IF SameTool? {.62}
IF NotEqual? SpeedRPM# LAST SpeedRPM#
SetFlag('1') { Conditional FeedRateC Converted to IPM }
ELSE
IF NotEqual? FeedIPR# LAST FeedIPR#
SetFlag('1') { Conditional FeedRateC Converted to IPM }
ELSE
SetFlagF('1') { No FeedRate Output necessary }
END
END

{Start new Operation}

StockOff
DoOpComments
IF LAST StraightConnect?
CheckOffset
CheckRapid
SeqC StockOnNoCan XSPC ZSPC EOL
ELSE
CheckRapid
IF ApproachOD?
IF LAST ApproachOD?
SeqC LAST XOpECDC EOL
ELSE {around}
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
SeqC LAST OpExitZCPC EOL
SeqC LAST OpExitXCPC EOL
END
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC EOL
END
SeqC LAST OpExitZCPC EOL
SeqC XOpCDC EOL
END
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqC LAST ZOpECPC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC EOL
ELSE {LAST ApproachID}
SeqC LAST XOpECDC EOL
END
SeqC LAST OpExitZCPC EOL
END
END
END
CheckOffset
ApproachSP
END
END
END
END {common point for all operations}
IF CannedCycle?
StockOff
IF Threading?
SeqC LCycle ' XB' FinishXDia# 'A' ' ZB' CycleStartZ# 'A'
IF Taper?
XTapAtZ 'I'
ELSE
XatFinZ 'A'
END
FinZ 'A'
ThrdLead
Save# Num#('1') Num#('0')
EachFeat
IF ThreadFeat?
Save# Num#('1') ADD# Recall# Num#('1') Num#('1')
END
NextFeat
' NP' Recall# Num#('1')
ToolAngle
IF ApproachOD?
' SI1'
ELSE
' SI0'
END
' ST01' EOL { ST = Number of Multiple Threads }
SetPass1
TrackXNO# CycleStartX#
TrackZNO# CycleStartZ#
ELSE
IF Drilling?
IF Peck?
SetFlag('1') { Conditional FeedRateC Converted to IPM }
SeqC LCycle ' ZB' CycleStartZ# 'A' ZDepth 'A' GetFeedRateC
Save# Num#('1') Num#('0')
EachFeat
IF LineFeat?
Save# Num#('1') ADD# Recall# Num#('1') Num#('1')
END
NextFeat
' NP' Recall# Num#('1') EOL
TrackXNO# CycleStartX#
TrackZNO# CycleStartZ#
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish? { .82.1c }
StockOff
IF Turning?
IF ApproachFace?
SeqC RapidC ZOpECPC EOL
ELSE
SeqC RapidC XOpECDC EOL
END
ApproachSP
SeqC StockOff StrtPosC EOL
ToolPath
ELSE
IF Roughing? AND NOT RoughSimple?
SetPass2
SeqC RapidC XSPC ZSPC EOL
SeqC StockOff StrtPosC EOL
ToolPath
SetPass1
ELSE
IF Threading?
FORMAT(MUL#,2)
SeqC ' X' MUL# Num#('2') ADD# FinishXRadius# Taper# EOL
FORMAT(MUL#,8)
SeqC FeedC
IF Taper?
FORMAT(FinishXDia#,2)
' X' FinishXDia#
FORMAT(FinishXDia#,7)
END
' Z' FinishZ# GetFeedRateC EOL
SeqC Rapid XSP EOL
SeqC 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
RapidC
END
IF ApproachOD?
SeqC OpExitXCPC EOL
ELSE
IF ApproachID?
SeqC XOpECDC EOL
END
END
SeqC OpExitZCPC EOL
DoEndOpPS
Post
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:
ProtoTRAK LX2 [PE] L350 85 03
Yasnac LX2 HS TPS L099 85
85 (12)
Fanuc 10T HS [KMT] L759 85
Bridgeport EZPath WF L554 85 2
Fanuc 0T DP [TTT] L567 85
Cin Acr CNC TC [12] L273 85 1
Okuma OSP 5020L [PB] L604 85 1
Fanuc 15T Dianichi CGB L754 85 2
Fanuc 16M Edgetec L570 85
Fanuc 0T Nak [BMR] L767 85

więcej podobnych podstron