{Change Comments ***********************************************************}
{10/20/95
Updated for Catalyst v2.20 per Fanuc 6M M001.85 Format
and
Modifed: Bostomatic BDC 3200 M831.85
For: Odenthal
Changed SeqLab and SeqLabC to SeqC
and N? to N.
Always output 'N' and the tool number at toolchange locations,
output 'N' with the program number at the main program beginning.
No other 'N' numbers if minimizing line numbers.
Removed 'Retag'
Removed DoR: and all calls to DoR.
Added Rapid and RapidC where appropriate.
Modified Rigid Tapping variables for correct output
keeping spindle off if Rigid Tapping (the cycle controls the spindle).
Created sub DoDwellForSpindle:
to add proportional dwell of 1 to 7 seconds for any RPM of 2000 or more.
+ other modifications per documents supplied by Odenthal
and verbal instructions from David Odenthal
- MPS}
{11/13/95
Modifed: Bostomatic BDC 3200 M831.85
For: Odenthal
Fixed some rapid and feed problems.
Moved DoDwellForSpindle to before tool offset.
Shortened dwell in DoDwellForSpindle by one second.
Modified drilling to use special 'M' functions to drill first hole.
Modified rigid-tapping to use special 'G188' function to tap first hole.
- MPS}
{11/16/95
Modifed: Bostomatic BDC 3200 M831.85.1
For: Odenthal
Turned off Quadrant Stopping per info provided by customer.
- MPS}
{12/04/95
Modifed: Bostomatic BDC 3200 M831.85.2
For: Odenthal
Turned on Quadrant Stopping.
Created sub called CheckArc which calls FormatArc if there is a move.
- MPS}
{1/17/96 - Updated .85 to .86 format, MPK}
{
Format: Bostomatic BDC 3200 M831.86.1
3/13/96
Changed MoveSXYC to MoveSXYZC in PointFeat? in toolpath
TH}
{3/22/96, Tested ZOnlyRepAutoCycle, Changed version # to .89, MPK}
{30Jan98
Original: Bostomatic BDC 3200 M831.89
Created: Bostomatic BDC 3200 M831.15
For: Jeff Plamann
Changes made per: Kimberly Clark
Deleted old version numbers and comments e.g. {.62}, {commands}, {literals}, etc
Updated to .15 Format per Fanuc 6M M001.15
Charles Winston}
{Prog Numeric Format Definitions ****}
#1 = '#.00'
#2 = '#####.###;0.'
#3 = '*#####.###;0.'
#4 = '####.####;0.'
#5 = '#######0'
#6 = '####^##0'
#7 = '##^0'
#8 = '+##^0000'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ABS#,4)
FORMAT(ToolDiameter#,4)
FORMAT(TrackZNO#,4)
FORMAT(Program#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(Parts#,5)
FORMAT(Dwell#,6)
FORMAT(FeedEntry#,7)
FORMAT(SUB#,8)
FORMAT(CalcZFmSurf#,8)
FORMAT(Peck#,8)
FORMAT(Retract#,8)
FORMAT(SpeedRPM#,8)
FORMAT(DIV#,8)
FORMAT(ADD#,1)
{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
WFONum:
{ Not Supported }
RETURN
WFOStuff:
{Note: This processor does not support work fixture offsets.}
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
EntryMove:
IF FeedEntry?
SeqC FeedC ZIn FeedEnt EOL
ELSE
SeqC RapidC FeedC ZIn EOL
END
RETURN
StartSub:
OpenSub
DoSubComment
SeqC 'G92' SubID EOL
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}
IF NOT FeedConnect?
IF AutoCycle?
SeqC Rapid ZCP3C
ELSE
IF FIFO?
SeqC Feed ZCP3C FeedEntC
ELSE
SeqC Rapid ZCP3C
END
END
END
EOL
RETURN
FinishSubG92: {part 2}
SeqC Preset ShiftRC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftRC EOL
RETURN
OpenMP:
IF EquallySpacedOffsets?
NewProg
SeqC SubCall CallLab RepLab Parts EOL
StartSub
END
RETURN
CloseMP:
IF EquallySpacedOffsets?
SeqC Preset ShiftPC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftPC EOL
END
RETURN
DoAbsOrInc:
IF Flag?('1') AND AbsoluteMoves?
IF ZMove? AND AbsValue?
IncValue
ELSE
IF NOT ZMove? AND NOT AbsValue?
AbsValue
END
END
END
RETURN
DoDrillAbsOrInc:
IF Flag?('1') AND AbsoluteMoves?
IF SPZMove? AND AbsValue?
IncValue
ELSE
IF NOT SPZMove? AND NOT AbsValue?
AbsValue
END
END
END
RETURN
RestoreAbsOrInc:
IF Flag?('1') AND AbsoluteMoves? AND NOT AbsValue?
SeqC AbsValue EOL
END
RETURN
FormatArc:
DoAbsOrInc
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
IF XYPlane?
MoveX MoveY MoveZC
ELSE
IF XZPlane?
MoveX MoveYC MoveZ
ELSE
MoveXC MoveY MoveZ
END
END
IF ArcIJFormat?
IF AutoCycle?
IF XYPlane?
'I' ABS# ArcI# 'J' ABS# ArcJ#
ELSE
IF XZPlane?
'I' ABS# ArcI# 'K' ABS# ArcJ#
ELSE
'J' ABS# ArcI# 'K' ABS# ArcJ#
END
END
ELSE
ArcIJ
END
ELSE
ArcR
END
RETURN
CheckArc:
IF XYPlane?
IF XMove?
FormatArc
ELSE
IF YMove?
FormatArc
END
END
ELSE
IF XZPlane?
IF XMove?
FormatArc
ELSE
IF ZMove?
FormatArc
END
END
ELSE { must be YZ plane }
IF YMove?
FormatArc
ELSE
IF ZMove?
FormatArc
END
END
END
END
RETURN
ckCRC:
IF LastFeat?
CRCOffC
ELSE
IF NOT ZMove?
CRCOnC
END
END
RETURN
ckCRCNum:
{ Not Supported }
RETURN
ToolPath:
EACHFeat
IF PointFeat?
IF AutoCycle?
SeqC MoveSXYC EOL
SeqC SubCall CallLab EOL
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
SeqC DoDrillAbsOrInc MoveSXYZC EOL
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?
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqC DoAbsOrInc ckCRC FeedC MoveXYZC FeedRateC ckCRCNum EOL
DecelMove2
END
SeqC DoAbsOrInc ckCRC FeedC MoveXYZC DecelFeed ckCRCNum EOL
ELSE
SeqC DoAbsOrInc ckCRC FeedC MoveXYZC FeedRateC ckCRCNum EOL
END
END
ELSE
IF ArcFeat?
EACHQuadrant { Do not use NOT, FIRST, LAST or NEXT modifiers in this loop }
IF LastQuadrant? AND Decelerate?
IF RoomToDecel?
DecelMove1
SeqC CheckArc ArcFeedC EOL
DecelMove2
END
SeqC CheckArc DecelFeed EOL
ELSE
SeqC CheckArc ArcFeedC EOL
END
NEXTQuadrant
END
END
END
END
NEXTFeat
RestoreAbsOrInc
RETURN
AutoCycCutSub1: {part 1}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
StartSub
SetSRXYtoSP
SeqC IncValue EOL
RETURN
AutoCycCutSub2: {part 2}
ToolPath
SeqC AbsOrInc
IF Repeats? AND FeedConnect? AND ZshiftOnly?
ELSE
IF FIFO?
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
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
IF CutterRadiusCompensation?
SeqC FeedC CRCOff LastFeatExtend EOL
END
END
RETURN
G92Sub:
SubWarning
StdSub
SeqC AbsOrInc Feed StrtPos EOL
Milling
FinishSub1
FinishSubG92
RETURN
ZonlyRepAutoCycle:
AutoCycPat {write pattern moves and main calls}
StartSub
NewProg
EachCycle
SetSRXYtoEP
IF FeedConnect?
Feed
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqC IncValue StrtPosC EOL
AbsOrInc
END
END
SeqC ZInPlusInc FeedEnt EOL
ELSE
IF NOT FirstCycle?
Rapid
IF SPXMove? OR SPYMove?
SeqC IncValue StrtPosC EOL
AbsOrInc
END
IF FeedEntry?
SeqC ZCP2PlusInc EOL
END
END
IF FeedEntry?
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
IF FirstCycle?
Rapid
END
SeqC RapidC ZInPlusInc EOL
END
END
IF FirstCycle?
SetStatusOff {protect Z position for incremental sub}
END
SeqC SubCall CallLab EOL
NextCycle
SetStatusOn
AutoCycCutSub1 {build element sub}
AutoCycCutSub2
IF FeedConnect? {there is no Z up in the sub}
IF FIFO?
SeqC Feed ZCP2 FeedEnt EOL
ELSE
SeqC Rapid ZCP2 EOL
END
END
SeqC EndSub EOL
CloseSub
{Element shift, not pattern}
RETURN
ZonlyRep:
EachCycle
IF NOT FirstCycle?
SeqC Connect StrtPos EOL
END
IF FeedConnect?
SeqC FeedC ZInPlusInc FeedEnt EOL
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqC RapidC ZCP2PlusIncC EOL
END
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqC RapidC ZInPlusInc EOL
END
END
SeqC SubCall CallLab EOL
NextCycle
StartSub
TrackZNO# FIRST SPZ#
ToolPath
IF CutterRadiusCompensation?
SeqC FeedC CRCOff LastFeatExtend EOL
END
FinishSub1
SeqC EndSub EOL
CloseSub
RETURN
CheckPass:
IF AutoCycle? {use the correct StrtPos}
SetPass2
ELSE
SetPass1
END
RETURN
SkipToLastFeat:
EachFeat
IF LastFeat?
TrackXNO# SPX#
TrackYNO# SPY#
END
NextFeat
RETURN
SetDrillEndOpZ:
IF RetractToCP1?
TrackZNO# ClearancePlane1#
ELSE
TrackZNO# ClearancePlane2#
END
RETURN
DoDwellForSpindle:
IF NOT RigidTap?
IF GTEqual? SpeedRPM# Num#('2000')
SeqC 'G4X' {'X' in this case is the address for the dwell amount -MPS}
ADD# Num#('0') MUL# Num#('0.00075') SUB# SpeedRPM# Num#('2000')
{Num#('0') was Num#('1'), left it in for fine tuning, adjusted per David Odenthal -MPS}
EOL
END
END
RETURN
OpGuts:
IF Milling?
SeqC RapidC ZCP2 EOL
IF Repeats?
NewProg
IF ZshiftOnly?
IF AutoCycle? {incremental Autocycle sub can have Z moves}
ZonlyRepAutoCycle
ELSE {Z shift only, NOT Auto Cycle}
IF UseSeparateSubCalls? AND CyclesLessThanMaxSubCalls?
SetFlag('1') { Milling ZShiftOnly SepSubs }
ZonlyRep
SetFlagF('1')
ELSE {no sep subs desired}
G92Sub
END
END {end Auto Cycle IF}
ELSE {not Z only}
G92Sub
END {end Z only IF}
ELSE {no repeat OPs}
Milling
END
IF AutoCycle?
SeqC ZCP3C EOL
ELSE
IF FIFO?
SeqC FeedC CRCOffC ZCP3C FeedEntC EOL
ELSE
SeqC RapidC CRCOffC ZCP3C EOL
END
END
ELSE
IF Drilling?
IF Repeats?
NewProg
StdSub
END
SeqC { needs unconditional output of Z position here, Z not yet output }
RapidC
IF RetractToCP1?
ZCP1
ELSE
ZCP2
END
EOL
GetCycle
IF RigidTap? {This is a NON-MODAL Rigid-Tap to Tap the first hole}
SeqC 'G188P' ABS# DIV# NUM#('1') FeedTapIPR#('1')
'S' ABS# SpeedRPM#
'Z' {unsigned incremental distance from current Z position to finish Z}
IF RetractToCP1?
ABS# SUB# ClearancePlane1# CalcZFmSurf#
ELSE
ABS# SUB# ClearancePlane2# CalcZFmSurf#
END
EOL
END
SeqC 'V60D' CalcZFmSurf# EOL
SeqC 'V64D' {unsigned incremental distance from current Z position to drill surface}
IF RetractToCP1?
SUB# ClearancePlane1# CalcZSurf#
ELSE
SUB# ClearancePlane2# CalcZSurf#
END
EOL
IF RigidTap?
SeqC 'V89D' SpeedRPM# EOL
SeqC 'V90D' DIV# NUM#('1') FeedTapIPR#('1') EOL
SeqC 'G88' EOL
ELSE
IF Peck?
IF PeckChipBreaker?
SeqC 'V65D' Retract# EOL
ELSE
SeqC 'V66D' Retract# EOL
END
END
SeqC 'V67D' FeedEntry# EOL
IF Peck?
SeqC 'V63D' Peck# EOL
END
IF FIRO?
IF Dwell?
SeqC 'M2008' EOL {'M2008' is a non-modal equivalent to 'G82'}
ELSE
SeqC 'M2007' EOL {'M2007' is a non-modal equivalent to 'G81'}
END
ELSE
IF FIFO?
SeqC 'M2009' EOL {'M2009' is a non-modal equivalent to 'G85'}
ELSE
IF Peck?
IF PeckChipBreaker?
SeqC 'M2001' EOL {'M2001' is a non-modal equivalent to 'G84'}
ELSE
SeqC 'M2000' EOL {'M2000' is a non-modal equivalent to 'G83'}
END
END
END
END
SeqC Cycle EOL
END
{SeqC StrtPos EOL}
IF CallMasterOp?
SeqC SubCall 'D' CallMasterNum# EOL
SkipToLastFeat
ELSE
TrackZNO# FIRST SPZ#
IF MasterOp?
SetFlag('1') {std sep sub Zreps in effect}
NewMasterProg
SeqC SubCall CallLab EOL
StartSub
ToolPath
SeqC EndSub EOL
CloseSub
SetFlagF('1') {not std sep sub Zreps in effect}
ELSE
ToolPath
END
END
SetDrillEndOpZ
SeqC 'G80' RapidC ZCP3C EOL
IF Repeats?
FinishSubG92
END
END
END
RETURN
ProgStart:
InitProg
ReverseXZArcs
ArcsNeedXYZ
SetFlood
UseSeparateSubCalls
SetMaxSeparateSubCalls('50')
SetMaxRPM('10000')
SetMinRPM('1')
SetMaxFeed('100') {?}
SetFlagF('1') { Milling ZShiftOnly SepSubs }
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
RETURN
InitOp:
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
RETURN
FirstOp1:
IF UseComments?
'( START OF MAIN PROGRAM )' EOL
END
'N' Program# AbsOrInc 'G49' CRCOff Plane 'R' EOL
DoOpComments
'N' Tool# OpToolID ToolChng EOL
DoPostScript
RETURN
FirstOp2:
SeqC
IF NOT RigidTap?
ProSpeed SpinOn
END
CoolOn EOL
CheckPass
SeqC Rapid StrtPos EOL
RETURN
FirstOp3:
DoDwellForSpindle
SeqC OpToolID 'G48R' EOL
RETURN
NewToolOp1:
SeqC CoolOff EOL
SeqC 'G49R' EOL
RETURN
NewToolOp2:
DoEndOpPS
IF ToolChangeAtHome?
SeqC RapidC Home EOL
END
SeqC SpinOff EOL
IF LAST ProgStop?
SeqC 'M1' EOL
ELSE
SeqC ProgStop EOL
END
RETURN
NewToolOp3: {Start new Operation}
DoOpComments
'N' Tool# OpToolID ToolChng EOL
DoPostScript
RETURN
NewToolOp4:
SeqC PlaneC
IF NOT RigidTap?
ProSpeed SpinOn
END
CoolOn EOL
CheckPass
SeqC AbsOrInc Rapid StrtPos EOL
RETURN
NewToolOp5:
DoDwellForSpindle
SeqC OpToolID 'G48R' EOL
RETURN
SameToolOp1:
DoEndOpPS
IF LAST ProgStop?
SeqC CoolOff EOL
SeqC 'G49R' EOL
SeqC SpinOff EOL
SeqC 'M1' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
IF NewToolOffset?
SeqC 'G49R' EOL
END
END
RETURN
SameToolOp2: {Start new Operation}
DoOpComments
DoPostScript
CheckPass
RETURN
SameToolOp3: {Start new Operation}
IF LAST ProgStop?
SeqC
IF NOT RigidTap?
PlaneC ProSpeed SpinOn
END
CoolOn EOL
SeqC AbsOrInc Rapid StrtPos EOL
DoDwellForSpindle
SeqC OpToolID 'G48R' EOL
ELSE
SeqC AbsOrInc PlaneC Rapid StrtPos
IF NOT RigidTap?
ProSpeed
END
EOL
IF NewToolOffset?
SeqC OpToolID 'G48R' EOL
END
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EOL
END
END
RETURN
End1:
SeqC CoolOff EOL
SeqC 'G49R' EOL
RETURN
End2:
DoEndOpPS
IF FIRST ToolChangeAtHome? {.71.2 added FIRST modifier}
SeqC RapidC FirstHome EOL
END
SeqC SpinOff EOL
IF ProgStop?
SeqC 'M1' EOL
END
SeqC UnTool EOL
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')
END
IF FirstOperation?
InitOp
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 {End of program}
End2
CloseMP
End3
RETURN
MP1ToollAllPfu: {Multiple Parts, 1 Tool all Parts, full up}
EachOp {Start of post processing}
IF EquallySpacedOffsets?
SetFlag('2')
END
IF FirstOperation?
InitOp
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 {End of program}
CloseMP
End2
End3
RETURN
MP1ToollAllPXcp: {Multiple Parts, 1 Tool all Parts, exit Clearance plane}
EachOp {Start of post processing}
SetFlag('2')
IF FirstOperation?
InitOp
FirstOp1
FirstOp2
FirstOp3
OpenMP
FirstOp2 {need StrtPos in Sub}
ELSE
IF NewTool?
CloseMP
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 {End of program}
End1
End2
End3
RETURN
NoMPs: {no multiple parts}
EachOp {Start of post processing}
SetFlag('2') { WFOStuff }
IF FirstOperation?
InitOp
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 {End of program}
End2
End3
RETURN
{Start of executable Prog, Top Level ****}
ProgStart {setup and initializations}
IF MultipleParts?
IF AllToolsOnePart?
MPallTools1P
ELSE {implied OneToolAllParts?}
IF FullUp?
MP1ToollAllPfu
ELSE {implied ExitClearancePlane?}
MP1ToollAllPXcp
END
END
ELSE
NoMPs
END
Wyszukiwarka
Podobne podstrony:
Bostomatic SPC II M411 15Bostomatic SPC II D411 15 315 315Program wykładu Fizyka II 14 1515 zabtechnŁódzkiego z311[15] Z1 01 Wykonywanie pomiarów warsztatowychwięcej podobnych podstron