{
MILL=T
LATHE=F
SIMPLE_ROT_POS=F
ROTARY_MILL=F
ADV_MILL=F
SUBS=T
MILLTURN_POLAR-SEG=F
MILLTURN_Y-AXIS=F
METRIC=F
}
{Change Comments ***********************************************************}
{9/17/96
Updated:
Modified:
Copied: Fanuc 6M M001.13.1
Created: Yasnac i80 [PS] MZ33.13
For: Packard Specialties
Machine:
Control:
Versions: Catalyst v3.05.03C/Compost 4.21.37/v1.0b1
Changes made per Steve Sturgis of Packard Specialties.
Added FORMAT#7, '##.######;0.' for RigidTap Cycle at Prog Numeric Format Definitions.
Added FeedTapIPR# to FORMAT#7 at Prog Numeric Format Definitions.
Deleted RepLab OnePart at openMP sub.
Added support of RigidTap at opGuts.
IF TRUE, Post will:
Output literal 'G93' block prior to Cycle block.
Output 'F' FeedTapIPR#('1') Speed instead of FeedEnt.
Output literal 'G94' on 'G80' block.
Modified SafeStart blocks at firstOp1 and NewTool.
Moved Speed SpinOn from firstOp2 to firstOp3.
Moved Speed SpinOn from newToolOp4 to newToolOp5.
Added condition to output literal 'S3000' instead of Speed for RigidTap at firstOp3, newToolOp5
and sameToolOp3.
This is to make sure machine is in High Gear during running of RigidTap Cycle.
Moved CoolOn to OfstOn block at FirstOp4, NewToolOp6 and sameToolOp3.
Added PreTool at FirstOp4 at NewToolOp6.
Moved SpinOff from newToolOp2 to newToolOp1.
Moved SpinOff from end2 to end1.
Added Rapid to OfstOff block at newToolOp1, sameToolOp1 and end1.
Added literal 'G28Y0' to LAST ProgStop conditiona at newToolOp2 and sameToolOp1.
Added literal 'G28Y0' at end2.
G28Y0 causes Table to advance forward to allow Operator to inspect part.
Deleted OpToolID at newToolOp3.
Added ToolChng at end2.
DWB}
{10/9/96
Initial: Yasnac I80 [PS] MZ33.13
Created: Yasnac I80 [PS] MZ33.13.1
ForUser: Packard Specialties
ForUser: Next Intent
Develop: ComPost2 68k v1.0b3, Catalyst68K v3.04.10.C
Comment: Modified per request by Next Intent and OK from Packard Specialties
Moved ToolChng to OpToolID line is FirstOperation
Moved G94 to line by itself before G80
Jim Radcliffe}
{11/8/97
Initial: Yasnac I80 [PS] MZ33.13.1
Created: Yasnac I80 Kit [SAB] MW49.15
For: Sabritec
updated to .15 format
deleted AbsOrInc and Rapid from saftey block in FirstOp,
Put OpToolID and ToolChng on separate lines,
moved Speed SpinOn from StrtPos block to line before in FirstOp and NewTool,
Removed Speed call from Rigid Tap cycle block,
Moved G94 call in IF Drilling? to after G80 block,
Removed literal 'S3000' call in FirstOp, NewTool, and SameTool when Rigid Tapping,
put OfstOn and CoolOn on separate blocks in FirstOp and NewTool,
Removed Pretool in FirstOp4 and NewToolOp6,
changed:
IF AbsoluteMoves?
SeqC Rapid IncValue OfstOff EOL
SeqC AbsValue EOL
ELSE
SeqC Rapid OfstOff EOL
END
to:
SeqC IncValue OfstOff OpToolID EOL
in newToolOp1 and end1,
and to:
SeqC IncValue OfstOff EOL
in SameTool.
added AbsOrInc to Home move in newToolOp2 and end2,
changed saftey start block in newToolOp3 from:
Seq PlaneC CRCOffC EOL
to:
Seq Plane CRCOff DrillOff EOL
Changed:
SeqC
IF NewToolOffset?
OfstOn
END
IF NOT CoolOff? AND LAST CoolOff?
CoolOn
END
EOL
in sameToolOp3 to:
IF NewToolOffset?
SeqC OfstOn EOL
END
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EOL
END
EOL
added
SeqC Rapid IncValue OfstOff EOL
SeqCSpinOff EOL
before final closeMP in mP1ToollAllPfu,
removed canceling of offset in end1,
Deleted
SeqC ToolChng EOL
SeqC 'G28Y0' EOL { Bring Table Forward }
in end2,
added:
SeqC IncValue OfstOff 'Y0' PreTool EOL { Bring Table Forward }
SeqC SpinOff EOL
to end2
MPK
}
{11/10/97
Initial: Yasnac I80 Kit [SAB] MW49.15
Created: Fanuc [SAB] MW50.15
Changed 'G93' that was output when RigidTapping to 'M54' Speed,
Rigid Tapping now uses IPM feedrates,
removed 'G94' after Rigid Tapping,
MPK}
{22Mar99
Original: Fanuc 0M [SAB] MW50.15
Created: Fanuc 0M Supermax [AM] MQ49.16
For: Aerotron Mfg
Changes made per: Mike
Develop: Catalyst 5.05/ComPost2 1.7b15
Added Post Header Comment at the top of Prog.
Updated to.16 format per Fanuc 6M M001.16.2
Moved CoolOff to OpGuts.
Deleted Colons in Comment Lines and replaced with Hyphens.
Added a Comment on SubID Line to output the Main Program Number. Uses Num#('21')
Added a Tool List in initOp.
Added AbsOrInc to the WFO line in FirstOp2 and NewToolOp4 and AbsOrIncC in
Added Pre-Tooling in FirstOp1 and newToolOp3.
Moved CoolOn up onto the Tool Offset Line in FirstOp3 and NewTool1 and sameToolOp3.
Added M29 to M54 Line for Tapping.
Added Literal 'G28Y0' in end1
Charles Winston}
{23Mar99
Original: Fanuc 0M Supermax [AM] MQ49.16
Created: Fanuc 0M Suprmax [AM] MQ49.16.1
For: Aerotron Mfg
Changes made per: Mike
Develop: Catalyst 5.05/ComPost2 1.7b15
Deleted Literal 'PROGRAM' from the first line of Output.
Deleted 'M54' from Rigid Tapping line.
Added 'G94' preparitary line for Rigid Tap.
Moved SpinOff up on the Tool Length cancel line in End2.
Charles Winston}
{Prog Numeric Format Definitions ****}
#1 = '#.00'
#2 = '#####.###;0.'
#3 = '*#####.###;0.'
#4 = '####.####;0.'
#5 = '#######0'
#6 = '####^##0'
#7 = '##.######;0.'
#8 = '#'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(Recall#,4)
FORMAT(ADD#,4)
FORMAT(ToolDiameter#,4)
FORMAT(TLDia#,4)
FORMAT(TrackXNO#,4)
FORMAT(TrackYNO#,4)
FORMAT(TrackZNO#,4)
FORMAT(Program#,5)
FORMAT(CallMasterNum#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(TLNum#,5)
FORMAT(NewWFO#,5)
FORMAT(Parts#,5)
FORMAT(FeedTapIPR#,7)
FORMAT(Dwell#,6)
FORMAT(RapidF#,8)
{Coolant Subs ****}
doCoolOff:
IF NOT CoolOff?
IF NOT LastOp?
IF NEXT NOT SameTool?
CoolOff
END
ELSE
CoolOff
END
END
RETURN
ckCoolOFF:
IF MultipleParts?
IF AllToolsOnePart?
doCoolOff
ELSE {implied OneToolAllParts?}
IF FullUp?
doCoolOff
ELSE {implied ExitClearancePlane?}
{ DO NOT call doCoolOff here }
END
END
ELSE
doCoolOff
END
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
wfo:
'G' NewWFO#
RETURN
wfoStuff:
IF NewWFO?
IF MultipleParts? AND WorkFixtureOffsets?
EOL
'*** WARNING *** DO NOT USE NEWWFO() WITH MULTIPLE PARTS AND WORK FIXTURE OFFSETS' EOL
ELSE
wfo
END
ELSE
IF Flag?('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
IF NOT SameTool?
IF MultipleParts?
IF WorkFixtureOffsets?
WFO1
ELSE
wfo
END
ELSE
wfo
END
END
END
END
SetFlagF('2') { Do not output WFO second time wfoStuff is called for MP-WFO-OTAP-ECP }
RETURN
doSubComment:
IF UseComments? AND SubComment?
'( SUB NUMBER: ' Program# ' )' EOL
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
restoreScale
END
RETURN
psInit:
NewWFOF
RotateF
OptCyc1F
MasterOpF
CallMasterOpF
RETURN
psStuff:
IF FourthCW?
FORMAT(FourthDegree#,2)
SeqC 'A' FourthDegree# EOL
FourthCWF
END
IF FourthCCW?
FORMAT(FourthDegree#,3)
SeqC 'A' FourthDegree# EOL
FourthCCWF
END
IF FifthCW?
FORMAT(FifthDegree#,2)
SeqC 'B' FifthDegree# EOL
FifthCWF
END
IF FifthCCW?
FORMAT(FifthDegree#,3)
SeqC 'B' FifthDegree# EOL
FifthCCWF
END
RETURN
doPostScript:
psInit
EachPS
SeqC PostScript EOL
psStuff
NextPS
RETURN
doEndOpPS:
psInit
EachEOPS
SeqC EndOpPS EOL
psStuff
NextPS
RETURN
absValueC:
IF NOT AbsValue?
AbsValue
END
RETURN
incValueC:
IF AbsValue?
IncValue
END
RETURN
absOrIncC:
IF AbsoluteMoves?
absValueC
ELSE
incValueC
END
RETURN
entryMove:
IF FirstOperation? OR NewTool?
RapidF# { Forces FeedEnt/FeedRate }
END
IF FeedEntry?
SeqC Feed ZIn FeedEntC EOL
ELSE
SeqC RapidC ZIn EOL
END
RETURN
startSub:
OpenSub
FORMAT(Recall#,5)
SubID ' ( Sub for ' Recall# Num#('21') ' )' EOL
FORMAT(Recall#,4)
doSubComment
RETURN
subWarning:
IF NOT FeedConnect?
IF AnyZshift?
' ' EOL
'( WARNING Z CLEARANCE WILL CHANGE WITH EACH CYCLE OF SUB REPEAT )' EOL
' ' EOL
END
END
RETURN
stdSub:
SeqC SubCall CallLab RepLab RepCycs EOL
startSub
RETURN
finishSub1: {part 1}
SeqC CRCOffC
IF NOT FeedConnect?
RapidC ZCP3C
END
EOL
RETURN
finishSubG92: {part 2}
SeqC Preset ShiftRC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftRC EOL
RETURN
doWFOOps:
IF Flag?('5')
SetFlagF('5') { Suppress Redundant WFO for MP-WFO-OTAP-ECP }
ELSE
SeqC SetWFO EOL
END
SeqC SubCall CallLab EOL
RETURN
openMP:
NewProg
IF WorkFixtureOffsets?
IF OneToolAllParts? AND ExitClearancePlane?
SetFlag('5') { Suppress Redundant WFO for MP-WFO-OTAP-ECP }
END
NewWFO
EachWFO {simple eachPart}
doWFOOps
IncWFO
NextWFO {simple NextPart}
startSub
ELSE
SeqC SubCall CallLab RepLab Parts EOL
IF OneToolAllParts? AND ExitClearancePlane?
SetFlag('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
END
startSub
END
RETURN
closeMP:
IF WorkFixtureOffsets?
SeqC EndSub EOL
CloseSub
SeqC WFO1 EOL
ELSE
SeqC absOrIncC EOL
SeqC Preset ShiftPC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftPC EOL
END
RETURN
doAbsOrInc:
IF Flag?('1') { Milling ZShiftOnly SepSubs/DrillSubs activated }
IF ZMove?
incValueC
ELSE
absOrIncC
END
END
RETURN
doDrillAbsOrInc:
IF Flag?('1') { DrillSubs activated }
IF SPZMove?
incValueC
ELSE
absOrIncC
END
END
RETURN
restoreAbsOrInc:
IF Flag?('1') { Milling ZShiftOnly SepSubs/DrillSubs activated }
SeqC absOrIncC EOL
END
RETURN
ckCRC:
IF LastFeat?
CRCOffC
ELSE
IF NOT ZMove?
CRCOnC
END
END
RETURN
ckCRCNum:
IF NOT LastFeat? AND Equal? SPZ# EPZ#
CRCOffsetC
END
RETURN
getACEPXY:
SetACSPCompF
Save# Num#('1') SPX# { Status Register Variable for X Axis }
Save# Num#('2') SPY# { Status Register Variable for Y Axis }
SetACSPComp
RETURN
setSRXYtoACEP:
SetPass1
SetSRXYtoEP
LoadFeat Num#('0') Num#('0') Num#('0')
TrackXNO# ADD# Recall# Num#('1') SPX# { Status Register Variable for X Axis }
TrackYNO# ADD# Recall# Num#('2') SPY# { Status Register Variable for Y Axis }
RETURN
toolPath:
ResetCRCNum
EACHFeat
IF PointFeat?
IF AutoCycle?
IF LastFeat?
getACEPXY
END
SeqC MoveSXYC EOL
SeqC SubCall CallLab EOL
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
IF NOT FirstFeat?
SeqC doDrillAbsOrInc MoveSXYZC EOL
END
END
ELSE
IF RapidFeat?
IF XMove? OR YMove? OR ZMove?
SeqC doAbsOrInc ckCRC RapidC MoveXYZC ckCRCNum EOL
END
ELSE
IF LineFeat?
IF XMove? OR YMove? OR ZMove?
SeqC doAbsOrInc ckCRC FeedC MoveXYZC FeedRateC ckCRCNum EOL
END
ELSE
IF ArcFeat?
EACHQuadrant { Do not use NOT, FIRST, LAST or NEXT modifiers in this loop }
SeqC doAbsOrInc
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXYZC
IF ArcIJFormat?
ArcIJC
ELSE
ArcRC
END
ArcFeedC EOL
NEXTQuadrant
END
END
END
END
NEXTFeat
restoreAbsOrInc
RETURN
autoCycCutSub1: {part 1}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
startSub
SetSRXYtoSP
SeqC incValueC EOL
RETURN
autoCycCutSub2: {part 2}
toolPath
SeqC absOrIncC CRCOffC
IF Repeats? AND FeedConnect? AND ZshiftOnly?
ELSE
RapidC ZCP2
END
EOL
SeqC EndSub EOL
CloseSub
SetSRSubXY {restore SR to 1st position value}
SetSRSubMove
RETURN
autoCycPat:
SetPass2 {position pattern}
toolPath {call after NewProg for correct sub calls}
SetPass1 {reset}
RETURN
milling:
IF AutoCycle?
NewProg
autoCycCutSub1
entryMove
autoCycCutSub2
autoCycPat
ELSE
entryMove
toolPath
END
RETURN
g92Sub:
subWarning
stdSub
SeqC absOrIncC Connect StrtPos EOL
milling
finishSub1
finishSubG92
RETURN
doSepSubZMoves:
IF FeedConnect?
SeqC FeedC ZInPlusInc FeedEnt EOL
ELSE
IF FeedEntry?
IF NOT FirstCycle?
SeqC RapidC ZCP2PlusInc EOL
END
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
IF FirstCycle? AND AutoCycle?
Rapid
END
SeqC RapidC ZInPlusInc EOL
END
END
SeqC SubCall CallLab EOL
IF NOT FeedConnect? AND NOT AbsValue?
TrackZNO# ZCP2PlusInc#
SeqC ZCP2C EOL
IF NOT AutoCycle?
TrackZNO# ClearancePlane3#
END
END
RETURN
setSepSubZ:
SetAbs
TrackZNO# ADD# SPZ# MUL# RepsLess1# RepeatZ#
SetInc
RETURN
zonlyRepAutoCycle:
autoCycPat {write pattern moves and main calls}
startSub
NewProg
EachCycle
SetSRXYtoEP
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqC incValueC Connect StrtPosC EOL
absOrIncC
ELSE
Connect
END
END
SetStatusOn
doSepSubZMoves
SetStatusOff
NextCycle
SetStatusOn
autoCycCutSub1 {build element sub}
TrackZNO# SPZ#
autoCycCutSub2
IF FeedConnect?
IF NOT AbsValue?
setSepSubZ
END
SeqC Rapid ZCP2 EOL
END
SeqC EndSub EOL
CloseSub
{Element shift, not pattern}
RETURN
zonlyRep:
EachCycle
SetSRXYtoEP
IF NOT FirstCycle?
Connect
IF SPXMove? OR SPYMove?
SeqC StrtPosC EOL
END
END
doSepSubZMoves
NextCycle
startSub
TrackZNO# SPZ#
toolPath
finishSub1
SeqC EndSub EOL
CloseSub
IF FeedConnect? AND NOT AbsValue?
setSepSubZ
END
RETURN
skipToLastFeat:
EachFeat
IF LastFeat?
TrackXNO# SPX#
TrackYNO# SPY#
END
NextFeat
RETURN
setDrillEndOpZ:
IF RetractToCP1?
TrackZNO# ClearancePlane1#
ELSE
TrackZNO# ClearancePlane2#
END
RETURN
checkPass: {use the correct StrtPos}
IF AutoCycle?
SetPass2
ELSE
SetPass1
END
RETURN
opGuts:
IF Milling?
SeqC ZCP2C EOL
IF Repeats?
NewProg
IF ZshiftOnly?
IF AutoCycle? {incremental Autocycle sub can have Z moves}
zonlyRepAutoCycle
ELSE {Z shift only, NOT Auto Cycle}
SetFlag('1') { Milling ZShiftOnly SepSubs activated }
zonlyRep
SetFlagF('1') { Milling ZShiftOnly SepSubs deactivated }
END {end Auto Cycle IF}
ELSE {not Z only}
g92Sub
END {end Z only IF}
ELSE {no repeat OPs}
milling
END
IF AutoCycle?
SeqC CRCOffC ZCP3C ckCoolOFF EOL
setSRXYtoACEP
ELSE
SeqC RapidC CRCOffC ZCP3C ckCoolOFF EOL
END
ELSE
IF Drilling?
SeqC DrillCP EOL
GetCycle
IF RigidTap?
SeqC 'G94' EOL
SeqC 'M29' Speed EOL
END
SeqC Cycle FromCP ZDepth RLevel Dwell Peck Retract FeedEnt EOL
IF CallMasterOp?
SeqC SubCall CallLabB CallMasterNum# EOL
skipToLastFeat
ELSE
TrackZNO# SPZ#
IF MasterOp?
SetFlag('1') { DrillSubs activated }
NewMasterProg
SeqC SubCall CallLab EOL
startSub
toolPath
SeqC EndSub EOL
CloseSub
SetFlagF('1') { DrillSubs deactivated }
ELSE
toolPath
END
END
setDrillEndOpZ
SeqC Rapid 'G80' ZCP3 ckCoolOFF EOL
END
END
RETURN
progStart:
InitProg
ReverseXZArcs
InitWFONum
SetFlood
SetMaxRPM('12000')
IF Metric?
SetMaxFeed('12700')
ELSE
SetMaxFeed('500')
END
Save# Num#('1') Num#('0') { Status Register Variable for X Axis }
Save# Num#('2') Num#('0') { Status Register Variable for Y Axis }
SetFlagF('1') { Milling ZShiftOnly SepSubs/DrillSubs deactivated }
SetFlagF('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
SetFlagF('5') { Suppress Redundant WFO for MP-WFO-OTAP-ECP }
IF PSComment? AND UseComments?
'Utility Data:' EOL
' At Op Start: All literals and commands will appear at the beginning of the operation.' EOL
' At Op End: All literals and commands will appear at the end of the operation.' 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
' NewWFO(56), NWFO(56) -' EOL
' The Work Fixture Offset # you specify will be used for all following operations.' EOL
' Do not use with the ncPost multiple part option.' 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
RETURN
initOp:
EOR EOL
ProgID1
Save# Num#('21') Program#
IF UseComments? AND ProgramNameComment?
'( ' ProgramName$ ' )'
END
EOL
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
EachTool
'( Tool ' TLNum# ' - ' TLDia# ' ' TLToolType$ ' ' TLToolComment$ ' )' EOL
NextTool
END
OpenSub
restoreScale
RETURN
firstOp1:
IF ToolChangeAtHome?
SetHome
END
SeqC OpToolID EOL
SeqC ToolChng EOL
IF NOT LastTool?
SeqC PreTool EOL
END
Seq Plane CRCOff 'G80' EOL
doOpComments
doPostScript
RETURN
firstOp2:
SeqC AbsOrInc wfoStuff EOL
SeqC Speed SpinOn EOL
checkPass
SeqC AbsOrInc Rapid StrtPos EOL
RETURN
firstOp3:
SeqC OfstOn CoolOn EOL
RETURN
newToolOp1:
SeqC IncValue OfstOff EOL
SeqC SpinOff EOL
RETURN
newToolOp2:
doEndOpPS
IF ToolChangeAtHome?
SeqC AbsOrInc Rapid Home EOL
END
IF LAST ProgStop?
SeqC 'G28Y0' EOL { Bring Table Forward }
SeqC 'M0' EOL
ELSE
SeqC ProgStop EOL
END
RETURN
newToolOp3: {Start new Operation}
Seq Plane CRCOff DrillOff EOL
SeqC OpToolID EOL
SeqC ToolChng EOL
SeqC PreTool EOL
doOpComments
doPostScript
RETURN
newToolOp4:
SeqC AbsOrInc wfoStuff EOL
SeqC Speed SpinOn EOL
checkPass
SeqC AbsOrInc Rapid StrtPos EOL
RETURN
newToolOp5:
SeqC OfstOn CoolOn EOL
RETURN
sameToolOp1:
doEndOpPS
IF LAST ProgStop?
SeqC SpinOff EOL
SeqC IncValue OfstOff EOL
SeqC 'G28Y0' EOL { Bring Table Forward }
SeqC 'M0' EOL
ELSE
IF NewToolOffset?
SeqC IncValue OfstOff EOL
END
END
RETURN
sameToolOp2: {Start new Operation}
doOpComments
doPostScript
checkPass
RETURN
sameToolOp3: {Start new Operation}
SeqC absOrIncC wfoStuff EOL
IF LAST ProgStop?
SeqC SpeedC SpinOn EOL
SeqC PlaneC AbsOrInc Rapid StrtPos EOL
SeqC OfstOn CoolOn EOL
ELSE
SeqC SpeedC EOL
SeqC PlaneC AbsOrInc Rapid StrtPos EOL
SeqC
IF NewToolOffset?
OfstOn
END
IF NOT CoolOff? AND LAST CoolOff?
CoolOn
END
EOL
END
RETURN
end1:
{ CoolOff in opGuts }
SeqC IncValue OfstOff SpinOff EOL
SeqC 'G28Y0' EOL
RETURN
end2:
doEndOpPS
IF ToolChangeAtHome?
SeqC Rapid AbsOrInc FirstHome EOL
END
IF ProgStop?
SeqC 'M0' EOL
END
RETURN
end3:
SeqC EOP EOL
CloseSub
Post2 {organize Subs into one program}
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
RETURN
mpAllTools1P: {Multiple Parts, All Tools 1 Part}
EachOp {Start of post processing}
IF EquallySpacedOffsets?
SetFlag('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
END
IF FirstOperation?
openMP
firstOp1
firstOp2
firstOp3
ELSE
IF NewTool?
newToolOp1
newToolOp2 {to tool change, CS problem}
newToolOp3
newToolOp4
newToolOp5
ELSE {implied SameTool?}
sameToolOp1
sameToolOp2
sameToolOp3
END
END {common point for all operations}
opGuts
NextOp {loops back to EachOP until last Operation}
end1
end2
closeMP
end3
RETURN
mp1ToollAllPfu: {Multiple Parts, 1 Tool all Parts, full up}
EachOp {Start of post processing}
IF EquallySpacedOffsets?
SetFlag('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
END
IF FirstOperation?
firstOp1
openMP
firstOp2
firstOp3
ELSE
IF NewTool?
newToolOp1
closeMP
newToolOp2 {to tool change, CS problem}
newToolOp3
openMP
newToolOp4
newToolOp5
ELSE {implied SameTool?}
sameToolOp1
sameToolOp2
sameToolOp3
END
END {common point for all operations}
opGuts
NextOp {loops back to EachOP until last Operation}
end1
closeMP
end2
end3
RETURN
mp1ToollAllPXcp: {Multiple Parts, 1 Tool all Parts, exit Clearance plane}
EachOp {Start of post processing}
SetFlag('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
IF FirstOperation?
firstOp1
firstOp2
firstOp3
openMP
firstOp2 {need StrtPos in Sub}
ELSE
IF NewTool?
closeMP
SeqC CoolOff EOL
newToolOp1
newToolOp2 {to tool change, CS problem}
newToolOp3
newToolOp4
newToolOp5
openMP
newToolOp4 {need StrtPos in Sub}
ELSE {implied SameTool?}
sameToolOp1
sameToolOp2
sameToolOp3
END
END {common point for all operations}
opGuts
NextOp {loops back to EachOP until last Operation}
closeMP
SeqC CoolOff EOL
end1
end2
end3
RETURN
noMPs: {no multiple parts}
EachOp {Start of post processing}
SetFlag('2') { Need to output wfoStuff twice for MP-ESO-OTAP-ECP, once for all others }
IF FirstOperation?
firstOp1
firstOp2
firstOp3
ELSE
IF NewTool?
newToolOp1
newToolOp2
newToolOp3
newToolOp4
newToolOp5
ELSE {implied SameTool?}
sameToolOp1
sameToolOp2
sameToolOp3
END
END {common point for all operations}
opGuts
NextOp {loops back to EachOP until last Operation}
end1
end2
end3
RETURN
{Start of executable Prog, Top Level ****}
progStart {setup and initializations}
initOp
IF MultipleParts?
IF AllToolsOnePart?
mpAllTools1P
ELSE {implied OneToolAllParts?}
IF FullUp?
mp1ToollAllPfu
ELSE {implied ExitClearancePlane?}
mp1ToollAllPXcp
END
END
ELSE
noMPs
END
Wyszukiwarka
Podobne podstrony:
Fanuc 0M Supermax [AM] MW17 89Fanuc 0M LH P&W [SP] CV84 16 3Fanuc 0M Supermax M130 15Fanuc 0M Supermax C130 15Fanuc 11M Mat [AM] C820 16Fanuc 0M Supermax [LM] MW80 87mFanuc 0M Supermax AP MW23 89 1Fanuc 0M LH [RI] MU55 16 1Fanuc 0M Tkswa [PP] CX06 16Fanuc 0M LeBlond [WDI] BW11 16Fanuc 0M LH K&T [SP] CV95 16 1Fanuc 0MD Hard [AM] CQ63 16Fanuc 0M Tkswa [PP] CX04 16Fanuc 0M Supermax M130 15mFanuc 0M Supermax CGR MW21 87 1Fanuc 0M Supermax B130 15Fanuc 0M Supermax PM130 17 3Fanuc 0M Supermax D130 15więcej podobnych podstron