BP DX32 Boss 9 [TO] DV56 12


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

{9/12/95, M174.81.2, Updated for Catalyst v2.20 per Fanuc 6M M001.85 Format, DWB}
{1/17/96 - Updated .85 to .86 format, MPK}

{3/28/96
Converted M174.86 to D174.12.
DWB}

{4/20/98,
Initial : BP Boss 9 D174.11
Created: BP DX32 Boss 9 [TO] DV56.12
Customer: Texas Offline, Dealer

**** Most changes made to match MV56.89 output ****

Changes to "Form":

1. Under Default Formats, added ###.###;0. to A & B
2. Under Spindle and Coolant, changed Coolant On Number to 8 & Change Tool to 6
3. Under Program Stops, changed End Program Number to 22

Changes to "Prog":

1. Changed ProgID1 to ':' Program# to eliminate the output of '.'
2. Added SpinON (M03) to be output after every tool change.
3. Added ToolChng (M06) to be output before every tool change.
4. Changed the output at program End.
5. Added M29 before & M28 after Rigid Tapping.
6. Removed SeqLabC in all call sub (=#) blocks.
7. Added SetProgNum('0').
8. Switch all OR Flag('2') order.
9. Added CSAngleA & CSAngleB to the first motion after each tool change and moved
the Z-axis motion to the next block.
10. Added CSAngleA & CSAngleB to the first motion of SameTool if ChangeCS and moved
the Z-axis motion to the next block. Also output M25 before ChangeCS.
11. in SameTool, removed ToolOfst (caused redundent output of tool#.).
JHE}


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

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

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ToolDiameter#,4)
FORMAT(CSOffsetX#,4)
FORMAT(CSOffsetY#,4)
FORMAT(CSOffsetZ#,4)
FORMAT(TrackZNO#,4)
FORMAT(Tag#,5)
FORMAT(Program#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(NewWFO#,5)
FORMAT(ADD#,5)
FORMAT(CS#,5)
FORMAT(Parts#,5)
FORMAT(CallMasterNum#,5)
FORMAT(Dwell#,6)
FORMAT(CSOffsetA#,8)
FORMAT(CSOffsetB#,8)

{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

DoSubComment:
IF UseComments? AND SubComment?
ASCII('39') ' SUB NUMBER: ' Program# ' ' ASCII('39') EOL
END
RETURN

DoOpComments:
IF UseComments?
SetScale('1')
IF OperationIDComment?
ASCII('39') ' OPERATION ' Operation# ': ' OperationType$ ' ' ASCII('39') EOL
END
IF OperationComment?
ASCII('39') ' ' OperationComment$ ' ' ASCII('39') EOL
END
IF WorkGroupComment?
ASCII('39') ' ' WorkGroupComment$ ' ' ASCII('39') EOL
END
IF ToolTypeComment?
ASCII('39') ' TOOL ' Tool# ': ' ToolDiameter# ' ' ToolType$ ' ' ASCII('39') EOL
END
IF ToolComment?
ASCII('39') ' ' ToolComment$ ' ' ASCII('39') EOL
END
RestoreScale
END
RETURN

CSWFO:
'G' ADD# CS# SUB# NewWFO# Num#('1')
RETURN

CalcCSWFO: {(iPart-1)*NumOfCS#)}
'G' ADD# MUL# NumOfCS# SUB# PartNum# Num#('1') ADD# CS# SUB# NewWFO# Num#('1')
RETURN

CSAngleA:
IF AAxisAvail?
'A' CSOffsetA#
END
RETURN

CSAngleAC:
IF AChange?
CSAngleA
END
RETURN

CSAngleB:
IF BAxisAvail?
'B' CSOffsetB#
END
RETURN

CSAngleBC:
IF BChange?
CSAngleB
END
RETURN

DoCSWFOComment:
'( CS#' CS# ' - ' CSComment$ ' )' EOL
'( ' CalcCSWFO '= X' CSOffsetX# ' Y' CSOffsetY# ' Z' CSOffsetZ# ' )' EOL
RETURN

DoCSG97Comment:
'( CS#' CS# ' - ' CSComment$ ' )' EOL
RETURN

PSInit:
OptCyc1F
MasterOpF
CallMasterOpF
RETURN

PSStuff:
RETURN

DoPostScript:
PSInit
EachPS
SeqLabC PostScript EOL
PSStuff
NextPS
RETURN

DoEndOpPS:
PSInit
EachEOPS
SeqLabC EndOpPS EOL
PSStuff
NextPS
RETURN

EntryMove:
IF FeedEntry?
SeqLabC Feed ZIn FeedEnt EOL
ELSE
SeqLabC RapidC ZIn EOL
END
RETURN

StartSub:
OpenSub
'#' Program# EOL
DoSubComment
RETURN

SubWarning:
IF NOT FeedConnect?
IF AnyZshift?
ASCII('39') ' ' ASCII('39') EOL
ASCII('39') ' ( WARNING Z CLEARANCE WILL CHANGE WITH EACH CYCLE OF SUB REPEAT ) ' ASCII('39') EOL
ASCII('39') ' ' ASCII('39') EOL
END
END
RETURN

StdSub:
SeqLabC '=N²' Tag# RepLab RepCycs EOL
{StartSub}
RETURN

GetStartPos:
IF CutterRadiusCompensation? AND NOT AutoCycle?
BPCRCStartPos
ELSE
StrtPos
END
RETURN

GetEndPos:
IF CutterRadiusCompensation?
CRCOffC BPCRCEndPos
END
RETURN

FinishSub1: {part 1}
IF CutterRadiusCompensation? AND NOT AutoCycle?
SeqLabC FeedC GetEndPos EOL
END
SeqLabC
IF NOT FeedConnect?
IF AutoCycle?
ZCP3C
ELSE
IF FIFO?
FeedC ZCP3C FeedEntC
ELSE
RapidC ZCP3C
END
END
END
EOL
RETURN

FinishSubG92: {part 2}
SeqLab Preset ShiftRC EOL
'<' Tag# EOL
TagDown
{CloseSub}
SeqLabC Preset UnshftRC EOL
RETURN

ToggleIncDecWFO:
IF Flag?('3')
SetFlagF('3')
ELSE
SetFlag('3')
END
RETURN

OpenMP:
IF Flag?('2') OR WFOCS? {Switched order - JHE}
NewProg
StartSub
SaveCSProg
SaveCSOpStart
ClearCSOffset
ELSE
IF WorkFixtureOffsets?
' ' EOL
' ( Note - Post does not support MultipleParts with WorkFixtureOffsets. )' EOL
' ( Please change to EquallySpacedOffsets. )' EOL
' ' EOL
ELSE
TagUp TagInc
SeqLabC '=N²' Tag# RepLab Parts EOL
{StartSub}
END
END
RETURN

CloseMP:
IF Flag?('2') OR WFOCS? {Switched order - JHE}
SeqLabC EndSub EOL
CloseSub
IF Flag?('3')
NewWFO
EachWFO {simple eachPart}
IF Flag?('2')
SeqLabC SetWFO EOL
EachCSOp
DoCSG97Comment
ClearCSOffset
SeqLabC 'G97X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
SeqLabC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
ELSE
EachCSOp
DoCSWFOComment
ClearCSOffset
SeqLabC CalcCSWFO EOL
SeqLabC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
END
ClearCSOffset
IncWFO
NextWFO {simple NextPart}
ELSE
LastWFO
EachWFO {simple eachPart}
IF Flag?('2')
SeqLabC SetWFO EOL
EachCSOp
DoCSG97Comment
ClearCSOffset
SeqLabC 'G97X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
SeqLabC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
ELSE
EachCSOp
DoCSWFOComment
ClearCSOffset
SeqLabC CalcCSWFO EOL
SeqLabC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
END
ClearCSOffset
DecWFO
NextPrevWFO {simple NextPart}
END
IF Flag?('4')
ToggleIncDecWFO
END
ELSE
IF EquallySpacedOffsets?
SeqLab Preset ShiftPC EOL
'<' Tag# EOL
TagDown
{CloseSub}
SeqLabC Preset UnshftPC EOL
END
END
RETURN

SubCSMP:
IF WFOCS?
IF ChangeCS?
SeqLabC EndSub EOL
CloseSub
NewProg
StartSub
SaveCSProg
END
ClearCSOffset
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?
SeqLabC AbsValue EOL
END
RETURN

FormatArc:
DoAbsOrInc
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXYZC
IF ArcIJFormat?
ArcIJC
ELSE
ArcRC
END
RETURN

CkCRC:
{ This is a Bridgeport, CRC handled outside of ToolPath. }
RETURN

FormatLine:
DoAbsOrInc CkCRC FeedC MoveXYZC
RETURN

ckCRCNum:
{ Not supported }
RETURN

ToolPath:
EACHFeat
IF PointFeat?
IF AutoCycle?
SeqLabC MoveSXYC EOL
{SeqLabC} '=#' Program# EOL {Removed SeqLabC - JHE}
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
SeqLabC DoDrillAbsOrInc MoveSXYZC EOL {.80.01}
END
ELSE
IF RapidFeat?
IF XMove? OR YMove? OR ZMove?
SeqLabC DoAbsOrInc CkCRC RapidC MoveXYZC EOL
END
ELSE
IF LineFeat?
IF XMove? OR YMove? OR ZMove?
IF Decelerate? AND NOT CutterRadiusCompensation?
IF RoomToDecel?
DecelMove1
SeqLabC FormatLine FeedRateC EOL
DecelMove2
END
SeqLabC FormatLine DecelFeed EOL
ELSE
SeqLabC FormatLine FeedRateC EOL
END
END
ELSE
IF ArcFeat?
IF NOT XYPlane?
SeqLabC Plane EOL
END
EACHQuadrant { Do not use NOT, FIRST, LAST or NEXT modifiers in this loop }
IF LastQuadrant? AND Decelerate?
IF RoomToDecel?
DecelMove1
SeqLabC FormatArc ArcFeedC EOL
DecelMove2
END
SeqLabC FormatArc DecelFeed EOL
ELSE
SeqLabC FormatArc ArcFeedC EOL
END
NEXTQuadrant
END
END
END
END
NEXTFeat
RestoreAbsOrInc
RETURN

AutoCycCutSub1: {part 1}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
StartSub
SetSRXYtoSP
SeqLabC IncValue EOL
RETURN

AutoCycCutSub2: {part 2}
IF CutterRadiusCompensation?
SeqLabC RapidC BPCRCStartPos EOL
SeqLabC FeedC CRCOn StrtPos FeedRateC EOL
ToolPath
SeqLabC FeedC GetEndPos EOL
ELSE
ToolPath
END
SeqLabC AbsOrInc
IF Repeats? AND FeedConnect? AND ZshiftOnly?
ELSE
IF FIFO?
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
END
EOL
'$' 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
IF CutterRadiusCompensation?
IF Repeats?
SeqLabC Connect GetStartPos EOL
END
SeqLabC FeedC CRCOn StrtPos FeedRateC EOL
END
ToolPath
END
RETURN

G92Sub:
TagUp TagInc
SubWarning
StdSub
IF NOT CutterRadiusCompensation?
SeqLabC Connect GetStartPos EOL
END
Milling
FinishSub1
FinishSubG92
RETURN

ZonlyRepAutoCycle:
NewProg
AutoCycPat {write pattern moves and main calls}
StartSub
NewProg
EachCycle
SetSRXYtoEP
IF FeedConnect?
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqLabC Feed IncValue StrtPosC EOL
SeqLabC AbsOrInc
ELSE
SeqLabC Feed
END
ELSE
SeqLabC Feed
END
ZInPlusInc FeedEnt EOL
ELSE
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqLabC Rapid IncValue StrtPosC EOL
IF FeedEntry?
SeqLabC AbsOrInc ZCP2PlusInc EOL
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC AbsOrInc ZInPlusInc EOL
END
ELSE
IF FeedEntry?
SeqLabC Rapid ZCP2PlusInc EOL
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC Rapid ZInPlusInc EOL
END
END
ELSE
IF FeedEntry?
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC Rapid ZInPlusInc EOL
END
END
END
IF FirstCycle?
SetStatusOff {protect Z position for incremental sub}
END
{SeqLabC} '=#' Program# EOL {Removed SeqLabC - JHE}
NextCycle
SetStatusOn
AutoCycCutSub1 {build element sub}
AutoCycCutSub2
IF FeedConnect? {there is no Z up in the sub}
IF FIFO?
SeqLabC Feed ZCP2 FeedEnt EOL
ELSE
SeqLabC Rapid ZCP2 EOL
END
END
'$' EOL
CloseSub
{Element shift, not pattern}
RETURN

ZonlyRep:
NewProg
EachCycle
IF NOT FirstCycle?
SeqLabC Connect GetStartPos EOL {added Connect}
END
IF FeedConnect?
SeqLabC FeedC ZInPlusInc FeedEnt EOL {changed to FeedC}
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqLabC RapidC ZCP2PlusIncC EOL {can't call for cycle =1} {added Rapid, reads better} {.71.2, changed to RapidC, reads better}
END
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC RapidC ZInPlusInc EOL {added Rapid, reads better} {changed to RapidC, reads better}
END
END
{SeqLabC} '=#' Program# EOL {Removed SeqLabC - JHE}
NextCycle
StartSub
TrackZNO# FIRST SPZ#
IF CutterRadiusCompensation?
SeqLabC Feed CRCOn StrtPos FeedRate EOL
END
ToolPath
FinishSub1
'$' EOL
CloseSub
RETURN

CheckPass:
IF AutoCycle? {use the correct StrtPos}
SetPass2
ELSE
SetPass1
END
RETURN

ProgStart:
InitProg
TagInit
ReverseYZArcs
InitWFONum
SetFlood
SetFlagF('2') {not using G97's for multiple parts }
SetFlag('3') {True = incrementing WFO numbers for MP. False = decrementing WFO numebrs for MP}
SetFlag('4') {True = toggle between incrementing/decrementing WFO's }
UseSeparateSubCalls
SetMaxSeparateSubCalls('500')
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: 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
END

IF MultipleParts?
IF WorkFixtureOffsets?
IF LTEqual? MUL# Parts# NumOfCS# Num#('0')
SetWFOCS { use WFO for CS changes }
ELSE
SetFlag('2')
END
END
ELSE
IF LTEqual? NumOfCS# Num#('0') {****}
SetWFOCS { use WFO for CS changes }
ELSE
SetFlag('2')
END
END
RETURN

SkipToLastFeat:
EachFeat
IF LastFeat?
TrackXNO# SPX#
TrackYNO# SPY#
END
NextFeat
RETURN

SetDrillEndOpZ:
IF RetractToCP1?
TrackZNO# ClearancePlane1#
ELSE
TrackZNO# ClearancePlane2#
END
RETURN

OpGuts:
IF Milling?
SeqLabC ZCP2C EOL
IF Repeats?
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
IF CutterRadiusCompensation? AND NOT AutoCycle?
SeqLabC FeedC GetEndPos EOL
END
END
IF AutoCycle?
SeqLabC ZCP3C EOL
ELSE
IF FIFO?
SeqLabC FeedC ZCP3C FeedEntC EOL
ELSE
SeqLabC RapidC ZCP3C EOL
END
END
ELSE
IF Drilling?
IF Repeats?
TagUp TagInc
StdSub
SeqLabC AbsOrInc Rapid StrtPos EOL
END
SeqLabC ZCP2C EOL
GetCycle
IF FIRO? AND Dwell? {Added FIRO - JHE}
SeqLabC 'G04/' Dwell# EOL
END
IF RigidTap? {Added this check - JHE}
SeqLabC 'M29' EOL
END
SeqLabC Cycle StrtPos ZDepthAbs Peck Retract FeedEnt EOL
IF CallMasterOp?
{SeqLabC} '=#' CallMasterNum# EOL {Removed SeqLabC - JHE}
SkipToLastFeat
ELSE
TrackZNO# FIRST SPZ#
IF MasterOp?
SetFlag('1') {std sep sub Zreps in effect}
NewMasterProg
{SeqLabC} '=#' Program# EOL {Removed SeqLabC - JHE}
StartSub
ToolPath
'$' EOL
CloseSub
SetFlagF('1') {not std sep sub Zreps in effect}
ELSE
ToolPath
END
END
SetDrillEndOpZ
SeqLabC 'G80' EOL
IF RigidTap? {Added this check - JHE}
SeqLabC 'M28' EOL
END
SeqLabC Rapid ZCP3 EOL
IF Repeats?
FinishSubG92
END
END
END
RETURN

NotSameToolWFO:
IF WFOCS?
IF ChangeCS?
DoCSWFOComment
SeqLabC CSWFO EOL
ELSE
SeqLabC 'G' NewWFO# EOL
END
ELSE
IF ChangeCS?
DoCSG97Comment
SeqLabC 'G97X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
ELSE
IF NeedWFO1?
SeqLabC 'G' NewWFO# EOL
END
END
END
ClearCSOffset
RETURN

SameToolWFO:
IF WFOCS?
IF ChangeCS?
DoCSWFOComment
SeqLabC CSWFO EOL
END
ELSE
IF ChangeCS?
DoCSG97Comment
SeqLabC 'G97X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
END
END
ClearCSOffset
RETURN

InitOp:
':' Program# EOL {Changed from ProgID1 - JHE}
IF ToolChangeAtHome?
SetHome
END
SetProgNum('0') {Added this line - JHE}
IF UseComments?
IF ProgramNameComment?
ASCII('39') ' PROGRAM: ' ProgramName$ ' ' ASCII('39') EOL
END
IF ProgramComment?
ASCII('39') ' ' ProgramComment$ ' ' ASCII('39') EOL
END
IF FormatNameComment?
ASCII('39') ' FORMAT: ' FormatName$ ' ' ASCII('39') EOL
END
IF TimeComment?
ASCII('39') ' ' Date$ ' AT ' Time$ ' ' ASCII('39') EOL
END
IF MovesComment?
ASCII('39') ' OUTPUT IN ' MoveType$ ' INCHES ' ASCII('39') EOL
END
IF PartsComment?
ASCII('39') ' PARTS PROGRAMMED: ' Parts# ' ' ASCII('39') EOL
END
IF StartToolComment?
ASCII('39') ' FIRST TOOL NOT IN SPINDLE ' ASCII('39') EOL
END
END
OpenSub
RestoreScale
SeqLab Plane 'G80' AbsValue EOL
RETURN

FirstOp1:
DoOpComments
DoPostScript
SeqLabC Rapid OpToolID ToolChng EOL
RETURN

FirstOp2:
SeqLabC Speed SpinON EOL {Added SpinOn - JHE}
RETURN

FirstOp3:
CheckPass
SeqLabC RapidC GetStartPos CSAngleA CSAngleB EOL {Added CSAngleA CSAngleB - JHE}
SeqLabC ZCP1 CoolOn EOL {Squred the first motion - JHE}
RETURN

FirstOp3a: {can't XY position before WFO}
CheckPass
SeqLabC RapidC ZCP1 CoolOn EOL
RETURN

NewToolOp1:
RETURN

NewToolOp2:
DoEndOpPS
IF LAST ProgStop?
SeqLabC 'M00' EOL
ELSE
SeqLabC ProgStop EOL
END
SeqLabC ToolChng EOL {Added this line - JHE}
RETURN

NewToolOp3: {Start new Operation}
DoOpComments
DoPostScript
SeqLab Rapid PlaneC OpToolID ToolChng EOL
RETURN

NewToolOp4:
SeqLabC Speed SpinOn EOL {Added SpinOn - JHE}
RETURN

NewToolOp5:
CheckPass
SeqLabC RapidC GetStartPos CSAngleA CSAngleB EOL {Added CSAngleA CSAngleB - JHE}
SeqLabC ZCP1 CoolOn EOL {Squred the first motion - JHE}
RETURN

NewToolOp5a:
CheckPass
SeqLabC RapidC ZCP1 CoolOn EOL
RETURN

SameToolOp1:
DoEndOpPS
IF LAST ProgStop? OR ChangeCS? {Added this check - JHE}
SeqLabC 'M25' EOL {Quill home - JHE}
END
IF LAST ProgStop?
SeqLabC 'M00' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqLabC CoolOff EOL
END
END
RETURN

SameToolOp2: {Start new Operation}
DoOpComments
DoPostScript
CheckPass
RETURN

SameToolOp3: {Start new Operation}
IF LAST ProgStop?
SeqLabC Speed SpinOn EOL
IF CoolOff? AND LAST NOT CoolOff?
SeqLabC CoolOff EOL
END
IF ChangeCS? {Removed NewToolOffset? - JHE}
{SeqLabC ToolOfst EOL} {Removed - JHE}
SeqLabC PlaneC AbsOrInc Rapid GetStartPos CSAngleA CSAngleB EOL {Added - JHE}
SeqLabC ZCP1 CoolOn EOL {Squred the first motion - JHE}
ELSE
SeqLabC PlaneC AbsOrInc Rapid GetStartPos EOL
SeqLabC ZCP1 CoolOn EOL {Squred the first motion - JHE}
END
ELSE
SeqLabC SpeedC EOL
IF ChangeCS? {Removed NewToolOffset? - JHE}
{SeqLabC ToolOfst EOL} {Removed - JHE}
SeqLabC PlaneC AbsOrInc Rapid GetStartPos CSAngleA CSAngleB EOL {Added - JHE}
SeqLabC ZCP2 EOL {Squred the motion, changed to ZCP2 - JHE}
ELSE
SeqLabC PlaneC AbsOrInc Rapid GetStartPos EOL
SeqLabC ZCP2 EOL {Squred the motion, changed to ZCP2 - JHE}
END
IF NOT CoolOff? AND LAST CoolOff?
SeqLabC CoolOn EOL
END
END
RETURN

End1:
RETURN

End2:
DoEndOpPS

IF NOT Equal? CSOffsetA# Num#('0') OR NOT Equal? CSOffsetB# Num#('0')
IF AAxisAvail?
SeqLabC CSAngleA
END
IF BAxisAvail?
SeqLabC CSAngleB
END
EOL

SeqLabC 'G92'
IF AAxisAvail?
'A0'
END
IF BAxisAvail?
'B0'
END
EOL
END
{SeqLabC AbsOrInc Rapid} {Removed - JHE}
IF ProgStop?
SeqLabC 'M00' EOL {Added SeqLabC - JHE}
END
SeqLabC ToolChng EOL {Added this line - JHE}
RETURN

End3:
SeqLabC EOP EOL {Added SeqLabC - JHE}
CloseSub
Post2 {organize Subs into one program}
{ASCII('19') EOL} {Removed - JHE}
Close
Retag
IF UseComments?
SetScale('1') {restore scale for comments}
Reopen
IF FileBytesComment?
ASCII('39') ' FILE LENGTH: ' FileBytes# ' CHARACTERS ' ASCII('39') EOL
END
IF FileFeetComment?
ASCII('39') ' FILE LENGTH: ' FileFeet# ' FEET ' ASCII('39') EOL
END
IF FileMetersComment?
ASCII('39') ' FILE LENGTH: ' FileMeters# ' METERS ' ASCII('39') EOL
END
Close
END
RETURN

MPallTools1P: {Multiple Parts, All Tools 1 Part}
EachOp {Start of post processing}
IF FirstOperation?
InitOp
OpenMP
FirstOp1
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
FirstOp2
FirstOp3
ELSE
IF NewTool?
NewToolOp1
NewToolOp2 {to tool change, CS problem}
SubCSMP
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
NewToolOp4
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
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 FirstOperation?
InitOp
FirstOp1
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
FirstOp2
OpenMP
SeqLabC AbsOrInc EOL
FirstOp3
ELSE
IF NewTool?
NewToolOp1
CloseMP
NewToolOp2 {to tool change, CS problem}
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
NewToolOp4
OpenMP
SeqLabC AbsOrInc EOL
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
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}
IF FirstOperation?
InitOp
FirstOp1
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
FirstOp2
FirstOp3a
OpenMP
SeqLabC AbsOrInc Rapid StrtPos EOL
ELSE
IF NewTool?
CloseMP
NewToolOp1
NewToolOp2 {to tool change, CS problem}
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqLabC WFO1 EOL
END
NewToolOp4
NewToolOp5a
OpenMP
SeqLabC Rapid StrtPos EOL
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
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}
IF FirstOperation?
InitOp
FirstOp1
NotSameToolWFO
FirstOp2
FirstOp3
ELSE
IF NewTool?
NewToolOp1
NewToolOp2
NewToolOp3
NotSameToolWFO
NewToolOp4
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SameToolOp2
SameToolWFO
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:
BP DX32 Boss 9 [TO] MV56 89
BP DX32 Boss 9 MX51 89 1
BP DX32 Boss 9 [LB] MV59 89 6
BP DX32 Boss 9 [DX] MW47 89 1
BP DX32 MZ89 89
BP Series 1 Boss 5 M266 79
przeszlosc to dzis 12 rozklad mat kl i cz 2
przeszlosc to dzis 12 broszura 1 1
CAPTAIN TSUBASA (Road to 2002) 12
BP DX32 [AM] MU15 89 11
BP Boss 1 6 M041 89 1
BP Boss 9 M174 89 2
BP Boss 6 M284 89 1
BP Boss 7 2 M102 89m
BP Boss 9 [WP] MY38 89 1
BP Boss 5 Series I GI M822 89
2006 12 Onward to Gpl 2 5
BP Boss 8 M233 89 2

więcej podobnych podstron