GE 2000 Monarch [BK] M928 87 2


{5/24/93
created initial NoSubs Processor to .81 format
FIFO stuff not supported
variables: 1 = tools 1st op; 2 = tools last op; 3 = ncCAMs last op
Jim Radcliffe}

{7/29/93, v.81.1, added FIFO handling, JR}
{8/3/93, v.81.2, SameTool WFO, RapidF#, additional FIFO handling, JR}

{5/24/95
Initial: Fanuc 6M NoSubs M001.81.2
ForUser: Kempsmith Machine Company
Contact: Tom Klismet 414/256-8170
Control: GE 2000MC
Machine: Monarch VMC-150
Develop: ComPost 4.21.26, Catalyst v2.14.40C
Comment: New Processor per sample readouts and manual.
ToolChange (M6) causes full tool retract. With T code causes tool change.
Jim Radcliffe}

{9/16/95
Initial: GE 2000 Monarch M796.81.2
ForUser: BK Precision
Contact: Joe Kuck
Control: GE 2000MC
Machine: Monarch VMC-150
Comment:
Kill safe start at each Op.
Combine ToolChng on same line as Rapid, Speed, SpinOn, etc.
Add literal (P13) after OfstOn
Move ToolChng at end of program to same line as Home move
Move CoolOff to same line as EOP
Changed all OfstOn to ZCP1 and literal ' D(P13)'
Dan Pilone}

{10/16/95
Initial: GE 2000 Monarch M796.81.2
ForUser: BK Precision
Contact: Joe Kuck
Control: GE 2000MC
Machine: Monarch VMC-150
Comment:
Add '=' between Dwell (P3) and dwell duration.
Reversed RLevel and ZLevel positions in drill cycles.
Format Sequence numbers to #000.
Eliminate CRCOffsetC.
Add literal M72 for quill clamp at first Z feed depth
and literal M71 unclamp on line with Z retract.
Dan Pilone}

{11/4/95
Initial: GE 2000 Monarch M796.81.2
ForUser: BK Precision
Contact: Joe Kuck
Control: GE 2000MC
Machine: Monarch VMC-150
Comment:
Replace Program# with name of program in (ID, PROG,___)
Replace all ZCP1 approaches wth ZCP3
Dan Pilone}

{2/6/96
Initial: GE 2000 Monarch M796.81.10 {from Dan Pilone}
Created: GE 2000 Monarch [BK] Mxxx.81.2 {Pete to give proper ID}
ForUser: BK Precision
Control: GE 2000MC
Machine: Monarch VMC-150
Develop: ComPost 4.21.33, Catalyst68K v3.0C with special MDD
Comment: Added additional Drill Cycles. Requires new MDD!
Jim Radcliffe}

{2/12/96, Changed .81 number to .84, no changes necessary, MPK}

{3/22/96, Tested ZOnlyRepAutCycle, Incremented number to .87, MPK}

{3/29/96
Initial: GE 2000 Monarch [BK] M928.87
Created: GE 2000 Monarch [BK] M928.87.1
ForUser: BK Precision
Control: GE 2000MC
Machine: Monarch VMC-150
Develop: ComPost 4.21.34, Catalyst68K v3.02.07C
Comment: Corrected and modified processor per Joe Kuck
Corrected Z positioning.
Reduced redundancy in Z movements and consecutive Z positioning moves.
Deleted Rigid Tapping, it was marked with blue highlighter in the manual as not supported!
Using Flag #2 to trigger OfstOn output
Using Flag #3 to trigger CoolOn output
Using Flag #4 to control quill clamp.
Added TrackZNO# Num#('25') with ToolChng to force output of conditional Z.
Updated per Fanuc 6M NoSubs M001.81.3
Jim Radcliffe}

{4/16/96
Initial: GE 2000 Monarch [BK] M928.87.1
Created: GE 2000 Monarch [BK] M928.87.2
ForUser: BK Precision
Develop: ComPost 4.21.34, Catalyst68K v3.02.13C
Comment: Modified per fax from Joe Kuck
Moved SpinOn to OfstOn line. Using Flag #5 to trigger SpinOn output
Commented out CoolOff commands.
Jim Radcliffe}

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

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

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ToolDiameter#,4)
FORMAT(Peck#,4)
FORMAT(Retract#,4)
FORMAT(ClearancePlane1#,4)
FORMAT(ClearancePlane2#,4)
FORMAT(SUB#,4)
FORMAT(Program#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(NewWFO#,5)
FORMAT(Parts#,5)
FORMAT(Dwell#,6)
FORMAT(RapidF#,7)

{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?
'! ( CYCLE START )' EOL
END
RETURN

DoOpComments:
IF UseComments?
SetScale('1')
IF MultipleParts? AND SubComment?
'! ( PART ' Tag# ' )' EOL
END
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: {reset flags}
NewWFOF
RotateF
OptCyc1F
RETURN

PSStuff: {revised.72}
IF FourthCW?
FORMAT(FourthDegree#,2)
SeqC ' A' FourthDegree# EOL
FourthCWF {reset flag}
END
IF FourthCCW?
FORMAT(FourthDegree#,3)
SeqC ' A' FourthDegree# EOL
FourthCCWF {reset flag}
END
IF FifthCW?
FORMAT(FifthDegree#,2)
SeqC ' B' FifthDegree# EOL
FifthCWF {reset flag}
END
IF FifthCCW?
FORMAT(FifthDegree#,3)
SeqC ' B' FifthDegree# EOL
FifthCCWF {reset flag}
END
RETURN

DoPostScript:
PSInit
EachPS
SeqC PostScript EOL
PSStuff
NextPS
RETURN

DoEndOpPS:
PSInit
EachEOPS
SeqC EndOpPS EOL
PSStuff
NextPS
RETURN

ExitType:
IF FIFO?
FeedC
ELSE
RapidC
END
RETURN

ExitFeed:
IF FIFO?
FeedEntC
END
IF Flag?('4')
' M71'
SetFlagF('4')
END
RETURN

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

StdRapid:
IF LastFeat?
SeqC CRCOffC RapidC MoveXYZC EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqC CRCOnC RapidC MoveXYZC {CRCOffsetC} EOL
END
END
RETURN

StdLine: {enables CRC on first call, .70}
IF LastFeat?
SeqC CRCOffC FeedC MoveXYZC FeedRateC EOL
ELSE
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqC CRCOnC FeedC MoveXYZC FeedRateC {CRCOffsetC} EOL
DecelMove2
END
SeqC CRCOnC FeedC MoveXYZC DecelFeed {CRCOffsetC} EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqC CRCOnC FeedC MoveXYZC FeedRateC {CRCOffsetC} EOL
END
END
END
RETURN

StdArc:
IF LastFeat?
SeqC CRCOffC FormatArc ArcFeedC EOL
ELSE
EACHQuadrant
IF LastQuadrant? AND Decelerate?
IF RoomToDecel?
DecelMove1
SeqC CRCOnC FormatArc ArcFeedC {CRCOffsetC} EOL
DecelMove2
END
SeqC CRCOnC FormatArc DecelFeed {CRCOffsetC} EOL
ELSE
SeqC CRCOnC FormatArc ArcFeedC {CRCOffsetC} EOL
END
NEXTQuadrant
END
RETURN

ToolPath2: {for AutoCycle element moves}
EACHFeat
IF RapidFeat?
StdRapid
ELSE
IF LineFeat?
StdLine
ELSE
IF ArcFeat?
StdArc
END
END
END
NEXTFeat
RETURN

EntryMove:
SeqC
IF FeedEntry?
FeedC ZInC FeedEntC
ELSE
RapidC ZInC
END
IF NOT Flag?('4')
' M72'
SetFlag('4')
END
EOL
RETURN

CutAutoCycle:
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
SetSRXYtoSP
SeqC IncValue EOL
IF Repeats? AND ZshiftOnly?
EachRep
EntryMove
ToolPath2
IF NOT FeedConnect?
SeqC ExitType PRIME ZCP2 ExitFeed EOL
END
NextRep
ELSE
EntryMove
ToolPath2
END
SeqC AbsOrInc ExitType ZCP2 ExitFeed EOL
SetSRSubXY {restore tool position}
SetSRSubMove
ReSetPass2 {restore for positioning moves}
RETURN

ToolPath:
EACHFeat
IF PointFeat?
IF AutoCycle?
IF NOT FirstFeat?
SeqC
IF FIFO?
Rapid
END
MoveSXYC EOL
END
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
CutAutoCycle
ELSE
IF NOT FirstFeat?
IF FIRIFIRO?
SeqC MoveSXYC RLevel ' Z' Retract# EOL
SeqC ' R' Peck# MoveSZ EOL
IF RetractToCP1? {.81}
SeqC ' R' ClearancePlane1# ' Z' ClearancePlane1# EOL
ELSE
SeqC ' R' ClearancePlane2# ' Z' ClearancePlane2# EOL
END
ELSE
SeqC MoveSXYZC EOL {.80.01}
END
END
END
ELSE
IF RapidFeat?
StdRapid
ELSE
IF LineFeat?
StdLine
ELSE
IF ArcFeat?
StdArc
END
END
END
END
NEXTFeat
RETURN

WFOStuff:
IF MultipleParts? AND WorkFixtureOffsets?
IF NOT SameTool?
SeqC SetWFO EOL
END
ELSE
IF NewWFO?
' E' NewWFO#
ELSE
IF NOT SameTool?
IF NeedWFO1?
' E' NewWFO#
END
END
END
END
RETURN

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

DoOfstOn:
IF NOT Flag?('2')
' D(P13)'
SetFlag('2')
END
RETURN

DoCoolOn:
IF NOT Flag?('3')
CoolOn
SetFlag('3')
END
RETURN

DoSpinOn:
IF NOT Flag?('5')
SpinOn
SetFlag('5')
END
RETURN

DoOp:
IF FirstOperation?
IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart?
IF FullUp?
{CoolOff} EOL
SeqC ToolChng EOL
TrackZNO# Num#('25')
ELSE
EOL
END
DoOpComments
CheckPass
SeqC Rapid StrtPos WFOStuff EOL
IF FullUp?
SetFlagF('2') SetFlagF('3')
END
ELSE
DoOpComments
DoPostScript
CheckPass
SeqC Plane AbsOrInc Rapid StrtPos Speed OpToolID ToolChng WFOStuff EOL
TrackZNO# Num#('25')
SetFlagF('2') SetFlagF('3') SetFlagF('5')
END
ELSE
IF NewTool?
IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart?
{only need to set up for tool change on 1st part}
ELSE
{CoolOff} EOL
DoEndOpPS
IF ToolChangeAtHome?
SeqC Rapid Home ToolChng EOL
TrackZNO# Num#('25')
END
IF LAST ProgStop?
SeqC ' M0' EOL
ELSE
SeqC ProgStop EOL
END
END

{Start new Operation}

IF MultipleParts? AND OneToolAllParts? AND NOT FirstPart?
IF FullUp?
{CoolOff} EOL
SeqC ToolChng EOL
TrackZNO# Num#('25')
ELSE
EOL
END
DoOpComments
CheckPass
SeqC Rapid StrtPos WFOStuff EOL
IF FullUp?
SetFlagF('2') SetFlagF('3')
END
ELSE
DoOpComments
DoPostScript
CheckPass
SeqC Plane AbsOrInc Rapid StrtPos Speed OpToolID ToolChng WFOStuff EOL
TrackZNO# Num#('25')
SetFlagF('2') SetFlagF('3') SetFlagF('5')
END
ELSE
IF SameTool?

{Finish off last Operation}

IF LAST ProgStop? OR CoolOff? AND LAST NOT CoolOff?
{CoolOff} EOL
ELSE
EOL
END
DoEndOpPS
IF LAST ProgStop?
SeqC ToolChng EOL
TrackZNO# Num#('25')
SeqC ' M0' EOL
END

{Start new Operation}

DoOpComments
DoPostScript
CheckPass
SeqC PlaneC AbsOrInc Rapid StrtPos SpeedC
IF LAST ProgStop?
SetFlagF('5')
END
WFOStuff EOL
SeqC
IF LAST ProgStop?
SetFlagF('2')
END
IF LAST ProgStop? OR NOT CoolOff? AND LAST CoolOff?
SetFlagF('3')
END
EOL
END
END
END

{ Common Point for All Operations }

ResetCRCNum {call here to reset for each new operation only, call in tool path to reset for each repeat in an operation}
RapidF# {forces the output of a conditional feedrate for each operation}

IF Milling?
SeqC ZCP2C DoOfstOn DoCoolOn DoSpinOn EOL
IF Repeats?
IF ZshiftOnly? AND AutoCycle?
{done in CutAutoCycle called from ToolPath}
ELSE
EACHRep
DoSubComment
IF NOT FirstCycle?
SeqC Connect StrtPos EOL
IF NOT FeedConnect?
SeqC ZCP2C EOL
END
END
END
END
IF NOT AutoCycle?
EntryMove
END
ToolPath
IF Repeats?
IF ZshiftOnly? AND AutoCycle?
{done in CutAutoCycle called from ToolPath}
ELSE
SeqC CRCOffC
IF NOT FeedConnect?
ExitType PRIME ZCP3C
END
ExitFeed EOL
NEXTRep
END
END
IF AutoCycle?
SeqC ZCP3C
ELSE
SeqC CRCOffC ExitType ZCP3C ExitFeed
END
ELSE
IF Drilling?
IF Repeats?
EACHRep
DoSubComment
IF NOT FirstCycle?
SeqC StrtPos EOL
END
END
IF RetractToCP1?
SeqC ZCP1C DoOfstOn DoCoolOn DoSpinOn EOL { be sure we are at ZCP1 from previous operation, repeat, etc! }
ELSE
IF BackBore?
SeqC ZCP2C DoOfstOn DoCoolOn DoSpinOn EOL { this is were the spindle will stop, orient, shift and enter hole from AND return to after completion!!! }
END
END
GetCycle

SeqC
IF FIStopRO? {FI-Stop-RO}
' G86'
ELSE
IF FIStopManOut? {Dead Spindle Retract}
' G86'
ELSE
IF FIRIFIRO? {Case Bore}
' G87'
ELSE
IF FIStopOffWallRO? {Orient Spindle Retract}
' G88'
ELSE
IF BackBore? {Back Bore}
' G89'
ELSE
Cycle
END
END
END
END
END
FromCP { outputs only G78 if retract to 1st clearance plane otherwise retract is to R level except for BackBore which retract allways to last Z position }
IF BackBore?
' R' SUB# CalcZSurf# FluteLen#
ELSE
RLevel
END
IF FIRIFIRO? {Case Drill}
' Z' Retract# {start rapid in Z}
ELSE
IF BackBore?
' Z' SUB# ZDepth# FluteLen#
ELSE
ZDepth
END
END
FeedEnt DoOfstOn
IF Dwell?
' P3=' Dwell#
END
IF Peck?
' P1=' Peck#
IF PeckChipBreaker?
' P4=' Retract#
END
ELSE
IF FIStopOffWallRO?
' P8=0 P9=' Retract#
ELSE
IF BackBore?
' P8=0 P9=' SUB# DIV# ToolDiameter# Num#('2.0') DIV# ShankDiam# Num#('2.0')
END
END
END
DoCoolOn DoSpinOn EOL

IF FIRIFIRO?
SeqC ' R' Peck# ZDepth EOL {R = end rapid in Z}
IF RetractToCP1? {.81}
SeqC ' R' ClearancePlane1# ' Z' ClearancePlane1# EOL
ELSE
SeqC ' R' ClearancePlane2# ' Z' ClearancePlane2# EOL
END
END
TrackZNO# ZDepth# {.81}
ToolPath
IF RetractToCP1? {.81}
TrackZNO# ClearancePlane1#
ELSE
TrackZNO# ClearancePlane2#
END
SeqC DrillOff ZCP3
IF Repeats?
EOL
NEXTRep
SeqC RapidC ZCP3C
END
END
END
RETURN

FinishLastOp:
{CoolOff} EOL
DoEndOpPS
IF FIRST ToolChangeAtHome?
SeqC Rapid FirstHome ToolChng EOL
TrackZNO# Num#('25')
END
IF MultipleParts? AND AllToolsOnePart? AND NOT LastPart? {no tool change after doing last part}
IF ProgStop?
SeqC ' M0' EOL
ELSE
SeqC ProgStop EOL
END
ELSE
SeqC EOP EOL
END
RETURN

DoToolsOps:
EachOp
IF GTEqual? Operation# Recall# Num#('1') AND LTEqual? Operation# Recall# Num#('2')
{Tools1stOp ˛ op ˛ ToolsLastOp}
DoOp
END
NextOp
RETURN

NextTools1stOp:
SetNextToolOp Operation#
RETURN

GetToolsOps:
EachOp
IF Equal? Operation# Recall# Num#('1') {if op = Tools1stOp}
IF GreaterThan? NextTools1stOp Recall# Num#('1') {if NextTools1stOp is greater Tools1stOp}
Save# Num#('2') SUB# NextTools1stOp Num#('1') {ToolsLastOp becomes NextTools1stOp less 1}
ELSE {else}
Save# Num#('2') Recall# Num#('3') {ToolsLastOp becomes ncCAMsLastOp}
END
END
NextOp
RETURN

DoTool:
IF NOT Flag?('1')
GetToolsOps
IF WorkFixtureOffsets?
NewWFO
EachWFO
TagInc
DoToolsOps
IncWFO
NextWFO
ELSE
EachPart
TagInc
DoToolsOps
NextPart
END
IF LessThan? Recall# Num#('2') Recall# Num#('3') {if ToolsLastOp < ncCAMsLastOp}
Save# Num#('1') ADD# Recall# Num#('2') Num#('1') {Tools1stOp becomes NextTools1stOp}
ELSE {else}
SetFlag('1') {set DoneFlag}
END
TagInit
END
RETURN

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

{setup and initializations}
InitProg
TagInit
SetFlagF('1') {done flag}
SetFlagF('2') {OfstOn flag}
SetFlagF('3') {CoolOn flag}
SetFlagF('4') {quill clamp flag}
SetFlagF('5') {SpinOn flag}
ReverseXZArcs
InitWFONum
SetFlood
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
' 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
EachOp {Start of post processing *********************}
IF FirstOperation?
EOR EOL
{'(ID, Prog,' Program# ')' EOL}
'(ID, Prog,' ProgramName$ ')' 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
END
NextOp
IF MultipleParts?
IF AllToolsOnePart?
IF WorkFixtureOffsets?
NewWFO
EachWFO
TagInc
EachOp
DoOp
NextOp
FinishLastOp
IncWFO
NextWFO
ELSE
EachPart
TagInc
EachOp
DoOp
NextOp
FinishLastOp
NextPart
END
ELSE
IF OneToolAllParts?
EachOp
IF FirstOperation?
Save# Num#('1') Operation# {ncCAMs1stOp becomes Tools1stOp}
END
IF LastOp?
Save# Num#('3') Operation# {save ncCAMsLastOp}
END
NextOp
DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool
DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool
DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool
DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool
DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool DoTool
FinishLastOp
END
END
ELSE
EachOp
DoOp
NextOp
FinishLastOp
END
'(END, PROG)' EOL
EOR EOL
CloseSub
Post2
IF UseComments?
SetScale('1')
{IF FileBytesComment?
'FILE LENGTH: ' FileBytes# ' CHARACTERS' EOL
END
IF FileFeetComment?
'FILE LENGTH: ' FileFeet# ' FEET' EOL
END
IF FileMetersComment?
'FILE LENGTH: ' FileMeters# ' METERS' EOL
END}
END
Close


Wyszukiwarka