{Change Comments ***********************************************************}
{11/26/90
Copied & modified: Fanuc 6M M001.76.1
For: Ashland Inc.
Add SeqLabC to comment lines except for footer comments.
Modify WFOStuff sub to output WFO1 in first operation only, unless NewWFO is used.
Machine has manual speed control, change SpinOn to a comment line & delete SpeedC.
Change colons to ". " (period space) in comments.
Added ESC character, ASCII('27'), to end of prog after EOR.
Jim Radcliffe}
{4/03/91
Modified: Fagor Nasa M360.76.1
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 6M M001.80 Format.
DWB}
{5/17/95
Initial: Fagor Nasa M360.79
ForUser: Hendrickson
Control: Fagor 8025
Machine: MTS Mega II
Comment: New Processor. Modifications per marked up readout and instructions.
Jim Radcliffe}
{6/1/95
Initial: Fagor 8025 MTS Mega II M792.79
Created: Fagor 8025 MTS Mega II M792.80
Comment: Modified sub calls and identificaton per Ricardo at Fagor.
Using G20 to call, G22 to identify and G24 to end.
Subroutines placed at enf of main program.
Changed to use Retag for consecutive sequnce numbers thru the subroutines.
Jim Radcliffe}
{12/1/95
Initial: Fagor 8025 MTS Mega II M792.80
Created: Fagor 8025 MTS Mega II M792.85
ForUser: Hendrickson Enterprises
Develop: ComPost 4.21.33, Catalyst68K v2.30.18C
Comment: Modified per marked up readout from Marc at Hendrickson.
Updated to .85 format
Added helical interpolation.
Can only loop a sub 99 times:
Created checks for loops over 99
Created CallSubCall that calls sub looped 99 times
Var#1 = desired number of loops
Var#2 = number of times to loop 99 times
Var#3 = number of remaining loops
Jim Radcliffe}
{1/12/96
Initial: Fagor 8025 MTS Mega II M792.80
Created: Fagor 8025 MTS Mega II M792.85.1
ForUser: Hendrickson Enterprises
Comment: Modified per marked up readout from Marc at Hendrickson.
Modified Fform for no negitive K values in
JM}
{1/17/96, Updated .85 to .86 version, MPK}
{3/22/96, Tested ZOnlyRepAutoCycle, Changed version # to .89, MPK}
{3/30/96,
Initial: Fagor 8025 MTS Mega II M792.89
Created: Fagor 8025 MTS Mega II M792.89.1
Added Num Format #8, Changed Helix pitch to Format #8 in order to always output positive K value,
undid change to form that Jeff M. made on 1/12/96, MPK}
{5/6/96
Initial: Fagor 8025 MTS MegaII M792.89.1
Created: Fagor 8025 Burg [FRB] MXXX.89.1
For FRB Machine
Comment: Modified per format instructions from Marc
Added format 9 for Tool# and ToolOffset#
Deleted ProgramName$ from comments and moved it to first line of program; they always want it here.
Changed tool startup and end code to their specifications.
Added M00 after the toolchange if Tapping; they like to stop and check for chips before tapping any holes.
Added logic in Tapping to insert .3 second dwell if spindle RPM is over 130.
Joe Cusimano}
{8/8/96
Inital: Fagor 8025 Burg [FRB] MXXX.89.1
Created: Fagor 8025 Burg [FRB] MZ01.89
For FRB Machine
Added aditonal WFOStuff after G74 (G74 cancels G54-G59)
Added Literal M01 at tool cahnge if not tapping.
JM}
{6/29/98,
Initial : Fagor 8025 Burg [FRB] MZ01.89
Created: Fagor 8025 Burg [FRB] MZ01.89m
Customer: Logic Systems, Dealer in Spain - Salvador Rodriguez
Changes to "Form":
1. Under Default Formats, changed F to ####.#;0. and
IJK QR XYZ to ####.###;0.
2. Under Arcs, changed IJ Max Arc Radius to 2500.000
Changes to "Prog":
1. Changed #4 & #8 FORMAT from 4 to 3 decimal points.
2. Changed RestoreScale sub to metric.
3. Changed SetMaxFeed to 15000.
4. Changed MoveComment from INCHES to MILLIMETERS.
JHE}
{7/8/98,
Initial : Fagor 8025 Burg [FRB] MZ01.89m
Created: Fagor 8010 Burg [UT] MU40.89m
Customer: Utyme, Spain thru Logic Systems - Salvador Rodriguez
Changes to "Form":
1. Under Default Formats, changed F to ####.;0 and G H M T to #0
Also changed all ;0. to ;0
2. Under Subs, changed Sub Call to G 25 and End of All Subs to M 30
Changes to "Prog":
1. Changed all the FORMAT zero option from 0. to 0 and #9 to #0
2. Changed FirstOperation output per customer spec.
3. Changed NewTool output per customer spec.
4. Changed SameTool output per customer spec.
5. Changed End output per customer spec.
6. Under ToolPath LineFeat, added Cutting Mode ON code (G5) to the first Feat
and OFF (G7) to the last Feat.
7. Added FORMAT to TrackZNO#, SPZ#, and Peck#.
8. Under ToolPath PointFeat, added check if the drilling depth changed and if changed,
output the new depth with 'I' Label.
9. Added doPeckCalc sub to calculate the peck depth (I) and number of pecks (J).
10. Changed sub program calls to be the block numbers.
11. Added SetFlagF('4') to check if SubPrograms exist and if true, to output M30
at the end of the file.
JHE}
{Prog Numeric Format Definitions *******************************************}
#1 = '#.00'
#2 = '###.###;0'
#3 = '*###.###;0'
#4 = '####.###;0' {Changed - JHE}
#5 = '#######0'
#6 = '##.##;0'
#7 = '00000'
#8 = '+####.###;0' {Changed - JHE}
#9 = '#0' {Changed from 00 - JHE}
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ToolDiameter#,4)
FORMAT(CalcCP2FmSurf#,4)
FORMAT(Retract#,4)
FORMAT(TrackZNO#,4) {Added - JHE}
FORMAT(SPZ#,4) {Added - JHE}
FORMAT(Peck#,4) {Added - JHE}
FORMAT(Operation#,5)
FORMAT(Tool#,9)
FORMAT(ToolOffset#,9)
FORMAT(NewWFO#,5)
FORMAT(Parts#,5)
FORMAT(SpeedRPM#,5)
FORMAT(Tag#,5)
FORMAT(CallMasterNum#,5)
FORMAT(Repeats#,5)
FORMAT(Recall#,5)
FORMAT(Dwell#,6)
FORMAT(Program#,7)
FORMAT(HelixPitch#,8)
{Prog Subroutines **********************************************************}
RestoreScale:
IF NOT Metric? {CAM file is in English, tools and tool path}
SetScale('25.4') { change to Metric, this is a Metric post}
END
RETURN
doPeckCalc:
{Var#6 = total drilling depth}
Save# Num#('6') ADD# ABS# CalcCP2FmSurf# ABS# CalcZFmSurf#
{Var#7 = original number of pecks}
Save# Num#('7') DIV# Recall# Num#('6') Peck#
FORMAT(Recall#,4)
{if number of pecks is an integer than outpu}
IF Equal? Recall# Num#('7') TRUNC# Recall# Num#('7')
'I-' Peck# 'J' Recall# Num#('7')
ELSE
{Var#8 = modified number of pecks}
{Var#8 = truncated number of pecks + 1}
Save# Num#('8') ADD# TRUNC# Recall# Num#('7') Num#('1')
{Var#9 = modified pecks depth}
{Var#9 = total drilling depth / number of pecks}
Save# Num#('9') DIV# Recall# Num#('6') Recall# Num#('8')
'I-' Recall# Num#('9') 'J' Recall# Num#('8')
END
FORMAT(Recall#,5)
RETURN
DoSubComment:
IF UseComments? AND SubComment?
SeqLabC '( SUB NUMBER. ' Tag# ' )' EOL
END
RETURN
DoOpComments:
IF UseComments?
SetScale('1')
IF OperationIDComment?
SeqLabC '( OPERATION ' Operation# '. ' OperationType$ ' )' EOL
END
IF OperationComment?
SeqLabC '( ' OperationComment$ ' )' EOL
END
IF WorkGroupComment?
SeqLabC '( ' WorkGroupComment$ ' )' EOL
END
IF ToolTypeComment?
SeqLabC '( TOOL ' Tool# '. ' ToolDiameter# ' ' ToolType$ ' )' EOL
END
IF ToolComment?
SeqLabC '( ' ToolComment$ ' )' EOL
END
RestoreScale
END
RETURN
PSInit: {reset flags}
NewWFOF
RotateF
OptCyc1F
MasterOpF
CallMasterOpF
RETURN
PSStuff: {revised.72}
IF FourthCW?
FORMAT(FourthDegree#,2)
SeqLabC 'A' FourthDegree# EOL
FourthCWF {reset flag}
END
IF FourthCCW?
FORMAT(FourthDegree#,3)
SeqLabC 'A' FourthDegree# EOL
FourthCCWF {reset flag}
END
IF FifthCW?
FORMAT(FifthDegree#,2)
SeqLabC 'B' FifthDegree# EOL
FifthCWF {reset flag}
END
IF FifthCCW?
FORMAT(FifthDegree#,3)
SeqLabC 'B' FifthDegree# EOL
FifthCCWF {reset flag}
END
RETURN
DoPostScript:
PSInit
EachPS
SeqLabC PostScript EOL {literals}
PSStuff {commands}
NextPS
RETURN
DoEndOpPS:
PSInit
EachEOPS
SeqLabC EndOpPS EOL {literals}
PSStuff {commands}
NextPS
RETURN
EntryMove:
IF FeedEntry?
SeqLabC Feed ZIn FeedEnt EOL
ELSE
SeqLabC RapidC ZIn EOL
END
RETURN
StartSub:
OpenSub
{SeqLabC 'G22N' Tag# EOL} {Removed - JHE}
DoSubComment
'>' Tag# EOL {Added - JHE}
SetFlag('4') {SubPrograms exist}
RETURN
SubWarning:
IF NOT FeedConnect?
IF AnyZshift?
' ' EOL
SeqLabC '( WARNING Z CLEARANCE WILL CHANGE )' EOL
SeqLabC '( WITH EACH CYCLE OF SUB REPEAT )' EOL
' ' EOL
END
END
RETURN
CallSubCall:
{ integer portion of the desired number of loops devided by 99 }
SAVE# NUM#('2') TRUNC# DIV# Recall# Num#('1') Num#('99')
{ remainder decimal portion multiplied by 99 }
SAVE# NUM#('3') MUL# SUB# DIV# Recall# Num#('1') Num#('99') Recall# NUM#('2') Num#('99')
{ call new sub integer portion number of times }
SeqLabC 'G20N' Tag# '.' Recall# NUM#('2') EOL
{ create new sub that loops desired sub 99 times }
StartSub
TagInc
SeqLabC 'G20N' Tag# '.99' EOL
SeqLabC EndSub EOL
CloseSub
{ call & loop desired sub remainder number of times }
SeqLabC 'G20N' Tag# '.' Recall# NUM#('3') EOL
RETURN
StdSub:
{*** Removed - JHE
IF GreaterThan? Repeats# Num#('99')
Save# Num#('1') Repeats#
CallSubCall
ELSE
SeqLabC 'G20N' Tag# '.' Repeats# EOL
END ***}
'È' Tag# EOL {Added 3 lines - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# '.' RepCycs EOL
{SeqLabC 'FÇ' Tag# 'T' RepsLess1 EOL}
StartSub
RETURN
FinishSub1: {part 1}
SeqLabC CRCOffC
IF NOT FeedConnect?
IF AutoCycle?
ZCP3C
ELSE
IF FIFO? {.81}
FeedC ZCP3C FeedEntC
ELSE
RapidC ZCP3C
END
END
END
EOL
RETURN
FinishSubG92: {part 2}
SeqLabC Preset ShiftRC EOL
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added 2 lines - JHE}
TagDown
CloseSub
SeqLabC Preset UnshftRC EOL
RETURN
OpenMP:
TagUp TagInc {Added TagUp - JHE}
IF WorkFixtureOffsets?
NewWFO
EachWFO
SeqLabC SetWFO EOL
{SeqLabC 'G20N' Tag# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# EOL {Added - JHE}
IncWFO
NextWFO
ELSE
{*** Removed - JHE
IF GreaterThan? Parts# Num#('99')
Save# Num#('1') Parts#
CallSubCall
ELSE
SeqLabC 'G20N' Tag# '.' Parts# EOL
END ***}
'È' Tag# EOL {Added 3 lines - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# '.' Parts EOL
{SeqLabC 'FÇ' Tag# 'T' PartsLess1 EOL}
END
StartSub
RETURN
CloseMP:
IF WorkFixtureOffsets?
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added 2 lines - JHE}
TagDown
CloseSub
SeqLabC WFO1 EOL
ELSE
SeqLabC Preset ShiftPC EOL
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added 2 lines - JHE}
TagDown
CloseSub
SeqLabC 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?
SeqLabC AbsValue EOL
END
RETURN
FormatArc:
DoAbsOrInc
IF ArcCW?
CWArc
ELSE
CCWArc
END
IF XYPlane?
IF ZMove?
MoveX MoveY ArcIJ MoveZ 'K' HelixPitch#
ELSE
MoveX MoveY ArcIJ
END
ELSE
IF XZPlane?
IF YMove?
MoveX MoveZ ArcIJ MoveY 'J' HelixPitch#
ELSE
MoveX MoveZ ArcIJ
END
ELSE
IF XMove?
MoveY MoveZ ArcIJ MoveX 'I' HelixPitch#
ELSE
MoveY MoveZ ArcIJ
END
END
END
RETURN
StdLine: {enables CRC on first call, .70}
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqLabC CRCOnC FeedC MoveXYZC FeedRateC EOL
DecelMove2
END
SeqLabC CRCOnC FeedC MoveXYZC DecelFeed EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqLabC CRCOnC FeedC MoveXYZC FeedRateC EOL
END
END
RETURN
ToolPath:
ResetCRCNum {.72}
EACHFeat
IF PointFeat?
IF AutoCycle?
SeqLabC MoveSXYC EOL
{SeqLabC 'G20N' Tag# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# EOL {Added this line - JHE}
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
IF NOT FirstFeat? {Added this check - JHE}
IF SPZMove?
IF Peck?
SeqLabC DoDrillAbsOrInc MoveSXYC EOL {No Z Output - JHE}
ELSE
SeqLabC DoDrillAbsOrInc MoveSXYC 'I' SPZ# EOL {Added 'I' SPZ# - JHE}
END
ELSE
SeqLabC DoDrillAbsOrInc MoveSXYC EOL {Removed Z-axis output - JHE}
END
END
END
ELSE
IF RapidFeat?
IF LastFeat?
SeqLabC RapidC CRCOffC DoAbsOrInc MoveXYZC EOL
ELSE
IF ZMove? {skip CRCOn until first non-Z move line, skipping ramps}
SeqLabC RapidC DoAbsOrInc MoveXYZC EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqLabC RapidC CRCOnC DoAbsOrInc MoveXYZC EOL
END
END
END
ELSE
IF LineFeat?
IF LastFeat? {Added 'G7' - JHE}
SeqLabC FeedC 'G7' CRCOffC DoAbsOrInc MoveXYZC FeedRateC EOL
ELSE
IF ZMove? {skip CRCOn until first non-Z move line, skipping ramps}
SeqLabC FeedC DoAbsOrInc MoveXYZC FeedRateC EOL
ELSE
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqLabC DoAbsOrInc CRCOnC FeedC MoveXYZC FeedRateC EOL
DecelMove2
END
SeqLabC DoAbsOrInc CRCOnC FeedC MoveXYZC DecelFeed EOL
ELSE
IF XMove? OR YMove? OR ZMove?
IF FirstFeat? {Added this check and 'G5' - JHE}
SeqLabC FeedC 'G5' CRCOnC DoAbsOrInc MoveXYZC FeedRateC EOL
ELSE
SeqLabC FeedC CRCOnC DoAbsOrInc MoveXYZC FeedRateC EOL
END
END
END
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
SeqLabC FormatArc ArcFeedC EOL
DecelMove2
END
SeqLabC FormatArc DecelFeed EOL
ELSE
SeqLabC FormatArc ArcFeedC EOL
END
NEXTQuadrant
END
END
END
END
NEXTFeat
RestoreAbsOrInc
RETURN
WFOStuff:
IF NewWFO?
IF MultipleParts?
'*** WARNING *** DO NOT USE NEWWFO() WITH NCPOST MULTIPLE PARTS' EOL
ELSE
SeqLabC 'G' NewWFO# EOL
END
ELSE
IF FirstOperation?
IF NeedWFO1?
SeqLabC 'G' NewWFO# EOL
END
END
END
RETURN
AutoCycCutSub1: {part 1}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
StartSub
SetSRXYtoSP
SeqLabC IncValue EOL
RETURN
AutoCycCutSub2: {part 2}
ToolPath
SeqLabC AbsOrInc
IF Repeats? AND FeedConnect? AND ZshiftOnly?
{.69 removed RapidC} {.71.2 removed CRCOffC, gets turned off in ToolPath}
ELSE
IF FIFO? {.81}
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
END
EOL
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added this line - JHE}
CloseSub
SetSRSubXY {restore SR to 1st position value}
SetSRSubMove
RETURN
AutoCycPat:
SetPass2 {position pattern}
ToolPath {call after TagInc for correct sub calls}
SetPass1 {reset}
RETURN
Milling:
IF AutoCycle?
TagUp TagInc {Added TagUp - JHE}
AutoCycCutSub1
EntryMove
AutoCycCutSub2
AutoCycPat
TagDown {Added this line - JHE}
ELSE
EntryMove
ToolPath
END
RETURN
G92Sub:
SubWarning
StdSub
SeqLabC AbsOrInc Connect StrtPos EOL
Milling
FinishSub1
FinishSubG92
RETURN
ZonlyRepAutoCycle:
AutoCycPat {write pattern moves and main calls}
StartSub
TagUp TagInc {Added TagUp - JHE}
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 'G20N' Tag# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# EOL {Added this line - JHE}
NextCycle
SetStatusOn
AutoCycCutSub1 {build element sub}
AutoCycCutSub2
{.69, removed FinishSub1}
IF FeedConnect? {there is no Z up in the sub, .69}
IF FIFO? {.81}
SeqLabC Feed ZCP2 FeedEnt EOL {.69}
ELSE
SeqLabC Rapid ZCP2 EOL {.69}
END
END {.69}
{SeqLabC EndSub EOL} {Removed - JHE}
TagDown {Added 2 lines - JHE}
'<' Tag# EOL
CloseSub
{Element shift, not pattern}
TagDown {Added this line - JHE}
RETURN
ZonlyRep:
EachCycle
IF NOT FirstCycle?
SeqLabC Connect StrtPos EOL {.71.2, added Connect}
END
IF FeedConnect?
SeqLabC FeedC ZInPlusInc FeedEnt EOL {.71.2, changed to FeedC}
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqLabC RapidC ZCP2PlusIncC EOL {can't call for cycle =1} {.69 added Rapid, reads better} {.71.2, changed to RapidC, reads better}
END
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC RapidC ZInPlusInc EOL {.69 added Rapid, reads better} {.71.2, changed to RapidC, reads better}
END
END
{SeqLabC 'G20N' Tag# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# EOL {Added this line - JHE}
NextCycle
StartSub
TrackZNO# FIRST SPZ#
ToolPath
FinishSub1
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added 2 lines - JHE}
TagDown
CloseSub
RETURN
CheckPass:
IF AutoCycle? {use the correct StrtPos}
SetPass2
ELSE
SetPass1
END
RETURN
GetStartOfSameTool:
DoOpComments
DoPostScript
WFOStuff
CheckPass
RETURN
GetCoolant:
IF SameTool?
IF LAST ProgStop?
CoolOn
ELSE
IF NOT CoolOff? AND LAST CoolOff?
CoolOn
END
END
ELSE
CoolOn
END
RETURN
SkipToLastFeat:
EachFeat
IF LastFeat?
TrackXNO# SPX#
TrackYNO# SPY#
END
NextFeat
RETURN
SetDrillEndOpZ:
IF RetractToCP1?
TrackZNO# ClearancePlane1#
ELSE
TrackZNO# ClearancePlane2#
END
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
ReverseXZArcs
InitWFONum
SetFlood
UseSeparateSubCalls
SetMaxSeparateSubCalls ('50')
SetMaxRPM('10000')
SetMaxFeed('15000') {Changed from 500 IPM - JHE}
TagInit
SetFlagF('1') { Milling ZShiftOnly SepSubs }
SetFlagF('4') { SubPrograms not exist }
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 Program# EOL
IF ToolChangeAtHome?
SetHome
END
IF UseComments?
IF ProgramComment?
SeqLabC '( ' ProgramComment$ ' )' EOL
END
IF FormatNameComment?
SeqLabC '( FORMAT. ' FormatName$ ' )' EOL
END
IF TimeComment?
SeqLabC '( ' Date$ ' AT ' Time$ ' )' EOL
END
IF MovesComment?
SeqLabC '( OUTPUT IN ' MoveType$ ' MILLIMETERS )' EOL
END
IF PartsComment?
SeqLabC '( PARTS PROGRAMMED. ' Parts# ' )' EOL
END
IF StartToolComment?
SeqLabC '( FIRST TOOL IN SPINDLE )' EOL
END
END
OpenSub
RestoreScale
IF MultipleParts? AND AllToolsOnePart?
OpenMP
END
{*** Removed - JHE
SeqLabC Rapid Plane CRCOff DrillOff 'G90 ( ' ProgramName$ ' )' EOL
SeqLabC SpinOff EOL
SeqLabC 'S100' EOL
SeqLabC 'G04K1.' EOL ***}
WFOStuff {Moved to here - JHE}
SeqLab 'T' Tool# '.' ToolOffset# EOL
DoOpComments
DoPostScript
{*** Removed - JHE
SeqLabC ToolChng EOL
IF Tap?
SeqLabC 'M0' EOL
END
SeqLabC SpinOff EOL
SeqLabC Speed SpinOn EOL
SeqLabC 'G04K1.' EOL ***}
IF MultipleParts? AND OneToolAllParts? AND FullUp?
OpenMP
END
CheckPass
SeqLabC Rapid Plane AbsOrInc StrtPos EOL {Added Plane - JHE}
SeqLabC 'G43' ZCP1 Speed SpinOn EOL {Added Speed SpinOn - JHE}
SeqLabC CoolOn EOL {Moved to here - JHE}
IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
OpenMP
SeqLabC StrtPos EOL
END
ELSE
IF NewTool?
{Finish off last Operation}
IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
CloseMP
END
SeqLabC RapidC 'G44Z150.' CoolOff EOL {Changed - JHE}
IF MultipleParts? AND OneToolAllParts? AND FullUp?
CloseMP
END
IF ToolChangeAtHome?
SeqLabC Home EOL
END
IF LAST ProgStop? {Added this check and output - JHE}
SeqLabC 'M0' EOL
ELSE
SeqLabC ProgStop EOL
END
DoEndOpPS
{Start new Operation, NewTool}
{*** Removed - JHE
SeqLabC Rapid Plane CRCOff DrillOff 'G90' EOL
SeqLabC SpinOff EOL
SeqLabC 'S100' EOL
SeqLabC 'G04K1.' EOL ***}
WFOStuff {Moved to here - JHE}
SeqLab 'T' Tool# '.' ToolOffset# EOL
DoOpComments
DoPostScript
{*** Removed - JHE
SeqLabC ToolChng EOL
IF Tap?
SeqLabC 'M0' EOL
ELSE
SeqLabC 'M1' EOL
END
SeqLabC SpinOff EOL
SeqLabC Speed SpinOn EOL
SeqLabC 'G04K1.' EOL ***}
IF MultipleParts? AND OneToolAllParts? AND FullUp?
OpenMP
END
CheckPass
SeqLabC Rapid PlaneC AbsOrInc StrtPos EOL {Added PlaneC - JHE}
SeqLabC 'G43' ZCP1 Speed SpinOn EOL {Added Speed SpinOn - JHE}
SeqLabC CoolOn EOL {Moved to here - JHE}
IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
OpenMP
SeqLabC StrtPos EOL
END
ELSE
IF SameTool?
DoEndOpPS
IF LAST ProgStop?
SeqLabC RapidC 'G44Z150.' CoolOff EOL {Changed - JHE}
SeqLabC SpinOff EOL
SeqLabC 'M0' EOL
{Start new Operation, SameTool}
SeqLabC 'T' Tool# '.' ToolOffset# EOL
GetStartOfSameTool
SeqLabC Rapid PlaneC AbsOrInc StrtPos EOL
SeqLabC 'G43' ZCP1 Speed SpinOn EOL
SeqLabC CoolOn EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqLabC CoolOff EOL
END
IF NewToolOffset?
SeqLabC RapidC 'G44Z150.' EOL
{Start new Operation, SameTool}
SeqLabC 'T' Tool# '.' ToolOffset# EOL
GetStartOfSameTool
SeqLabC RapidC PlaneC StrtPos EOL
SeqLabC 'G43' ZCP1 SpeedC CoolOn EOL
ELSE
{Start new Operation, SameTool}
GetStartOfSameTool
SeqLabC RapidC PlaneC StrtPos EOL
END
END
END
END
END {common point for all operations}
IF Milling?
SeqLabC ZCP2C EOL
IF Repeats?
TagUp TagInc {Added TagUp - JHE}
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?
SeqLabC ZCP3C EOL {Removed CoolOff - JHE}
ELSE
IF FIFO? {.81}
SeqLabC FeedC CRCOffC ZCP3C FeedEntC EOL {Removed CoolOff - JHE}
ELSE
SeqLabC RapidC CRCOffC ZCP3C EOL {Removed CoolOff - JHE}
END
END
ELSE
IF Drilling?
IF Repeats?
TagUp TagInc {Added TagUp - JHE}
StdSub
SeqLabC AbsOrInc Rapid StrtPos EOL
SeqLabC ZCP1 EOL
END
GetCycle
SeqLabC FromCP
IF FIFO? AND Dwell?
'G89'
ELSE
Cycle
END
StrtPos RLevel
IF Peck? {Added this check - JHE}
doPeckCalc
ELSE
ZDepth
END
IF Tap?
IF GreaterThan? SpeedRPM# NUM#('130')
'K.3'
END
ELSE
Dwell
END
FeedEnt EOL
IF CallMasterOp?
{SeqLabC 'G20N' CallMasterNum# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' CallMasterNum# '.²' CallMasterNum# EOL {Added - JHE}
SkipToLastFeat
ELSE
TrackZNO# FIRST SPZ#
IF MasterOp?
SetFlag('1') {std sep sub Zreps in effect}
TagUp {Added this line - JHE}
NewMasterTag
{SeqLabC 'G20N' Tag# '.1' EOL} {Removed - JHE}
SeqLabC SubCall 'NÅ‚' Tag# '.²' Tag# EOL {Added this line - JHE}
StartSub
ToolPath
{SeqLabC EndSub EOL} {Removed - JHE}
'<' Tag# EOL {Added 2 lines - JHE}
TagDown
CloseSub
SetFlagF('1') {not std sep sub Zreps in effect}
ELSE
ToolPath
END
END
SetDrillEndOpZ
SeqLabC Rapid DrillOff ZCP3 EOL {Added Rapid - JHE}
IF Repeats?
FinishSubG92
END
SeqLabC RapidC ZCP3C EOL {Removed CoolOff - JHE}
END
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
CloseMP
END
SeqLabC RapidC ZCP3C EOL {Removed CoolOff - JHE}
IF MultipleParts? AND OneToolAllParts? AND FullUp?
CloseMP
END
DoEndOpPS
SeqLabC 'G44Z150.' CoolOff EOL {Changed - JHE}
IF FIRST ToolChangeAtHome?
SeqLabC Home EOL
END
IF ProgStop?
SeqLabC 'M0' EOL
END
IF MultipleParts? AND AllToolsOnePart?
CloseMP
END
SeqLabC EOP EOL
CloseSub
Post2 {organize Subs into one program}
IF Flag?('4') {If true, SubPrograms exist}
SeqLabC EOP EOL {output M30 at end of all subs}
END
ASCII('27') EOL
Close
Retag
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:
Fagor 8025 Burg [FRB] MZ01 89mFagor 8025 Burg [FRB] MZ01 89Fagor 8050 [MDR] MX28 89mFadal 2 LH [WSM] MX32 89mGE 2000 Burg [SI] MY73 89Fagor 8025 TG L342 85mHeid TNC 425 [NPP] MX02 89mutFagor 8025T [VS ] L654 85 2Siemens 810M M114 89mSinumeric 8M HMC 600 M793 89mBP Boss 7 2 M102 89mTWI UT part 4Fadal Format 2 [R] MU27 89mYasnac MX2 Matsuura M017 89mutHeid 145C BP M215 89mFagor 800 TGi [CHC] L841 85mwięcej podobnych podstron