{Change Comments ***********************************************************}
{9/14/95, M630.81.2m, Updated for Catalyst v2.20 per Fanuc 6M M001.85 Format, DWB}
{9/14/95
Copied: Mazatrol M2 Mzk [ST] M630.85m
Created: Mazatrol M2 Mzk [MGI] M849.85m
For: Fructus/MG Instrument
Versions: ncCad 4.33.01/ncCAM 4.33.01/ncPost 4.33.06/Catalyst v2.22/Compost 4.21.32/1.0a
Changes made per Mikael Bagge of Fructus.
Added Spaces to all Addresses except O and N in Form and Prog.
Commented out all Comments except for ToolComment.
Added EOR EOL at beginning of FirstOperation.
Changed to First Tool Not in Spindle at FirstOperation.
Added AbsOrInc ' G98' to SafeStart at FirstOperation.
Deleted GearRange at FirstOperation and NewTool.
Moved OpToolID to block by itself following WFOStuff call and added ToolChng at FirstOperation and
NewTool.
Deleted ' T' LAST Tool# at NewTool.
Deleted all other occurances of OpToolID at NewTool, SameTool and end of Prog.
Deleted UnTool block at end of Prog.
Deleted Preset 'Z0.' block at end of Prog.
DWB}
{1/17/96, Updated .85 to .86 version, MPK}
{3/25/96, Tested ZOnlyRepAutoCycle, Changed version # to .89, MPK}
{10/1/96
Copied: Mazatrol M2 Mzk [MGI] M849.89m
Created: Mandelli CNM Plasma MZ44.89m
For: Fructus/Stribi
Machine: Mandelli 5
Control: Mandelli CNM-Plasma
Versions: Catalyst v3.06C/Compost 4.21.37/v1.0b1
Changes made per Mikael Bagge of Fructus.
Updated to Version 4.2 per LongHand M001.89 Format.
Changed Address G from #0 to 00 in Compost2 Default Formats Dialog.
Changed Address M from #0 to 00 in Compost2 Default Formats Dialog.
Changed Address N from 000 to ###0 in Compost2 Default Formats Dialog.
Changed First Work Fixture Offset from G54 to O100 in Compost2 Origins and Values Dialog.
Changed Last Work Fixture Offset from G59 to O999 in Compost2 Origins and Values Dialog.
Deleted Spaces from all Addresses in Form and Prog.
Set Use Absolute Arc Centers to TRUE in Compost2 Arcs Dialog.
Changed Coolant On from M08 to M07 in Compost2 Spindle and Coolant Dialog.
Changed Peck - Partial Retract from G73 to G83 in Compost2 Drill Cycles Dialog.
Changed FORMAT#6 from ####^##0 to ####.#;0. at Prog Numeric Format Definitions.
Added TrackZNO# to FORMAT#4 at Prog Numeric Format Definitions.
Added StartPosX# to FORMAT#4 at Prog Numeric Format Definitions.
Added StartPosY# to FORMAT#4 at Prog Numeric Format Definitions.
Added ClearancePlane2# to FORMAT#4 at Prog Numeric Format Definitions.
Added ClearancePlane3# to FORMAT#4 at Prog Numeric Format Definitions.
Added SPX# to FORMAT#4 at Prog Numeric Format Definitions.
Added SPY# to FORMAT#4 at Prog Numeric Format Definitions.
Added SPZ# to FORMAT#4 at Prog Numeric Format Definitions.
Added Peck# to FORMAT#4 at Prog Numeric Format Definitions.
Added FeedEntry# to FORMAT#6 at Prog Numeric Format Definitions.
Uncommented Comments at DoSubComment, DoOpComments, FirstOperation and end of Prog.
Modified WFO blocks at OpenMP, CloseMP and WFOStuff.
Deleted CRCOffsetC at ckCRCNum.
Deleted Flag(2) at ckCRC, ckCRCNum and setup and initializations.
Deleted ResetCRCNum at ToolPath.
Changed MoveSXYZC to Drilling Parameters at ToolPath PointFeat.
Added paranthesis around ProgID1 at FirstOperation.
Modified SafeStart block at FirstOperation, NewTool and end of Prog just prior to EOP block.
Moved Speed SpinOn to StrtPos block at FirstOperation, NewTool and SameTool.
Added FeedEnt to StrtPos block at FirstOperation, NewTool and SameTool.
Moved CoolOff to StrtPos block at FirstOperation, NewTool and SameTool.
Modified Canned Drill Cycles at IF Drilling.
Control processes parameter type output.
Deleted 'G80' CRCOff at end if IF Drilling.
Deleted CoolOff at EndPartSub.
Deleted IncValue 'G28X0.Y0.Z0.' at EndPartSub.
Deleted EOR at end of Prog.
DWB}
{5/12/97
Updated & Modified: Mandelli CNM Plasma MZ44.89m
Created: Mandelli CNM Plasma MZ44.89.1m
For: Fructus/Stribi
Versions: Catalyst v3.33C/ComPost2 MSL 68K
Changes made per Mikael Bagge of Fructus.
Customer requested unconditional EndPoints in ArcFeatures.
Changed MoveXYZC to MoveXY MoveZC at FormatArc.
Changed ArcIJC to ArcIJ MoveZC at FormatArc.
Changed ArcRC to ArcR MoveZC at FormatArc.
Customer requested modification to RRR parameter of Tapping Drill Cycles.
Customer wants RRR parameter to equal RR parameter.
Changed '
' to '' at DrillStuff sub.
Updated for Catalyst v3.33C per LongHand M001.89c Format.
Added .14 Additions:
Changed FORMAT#2 from ###.###;0. to #####.###;0. at Prog Numeric Format Definitions.
Changed FORMAT#3 from *###.###;0. to *#####.###;0. at Prog Numeric Format Definitions.
Moved contents of FormatLine back to ToolPath LineFeat.
Deleted version comments.
Simplified ExitMove sub.
Simplified EndPartSub sub.
Modified WorkFixtureOffset logic.
Added Flag(1) for WFOStuff at setup and initializations.
Added WFONum sub.
Rewrote logic at WFOStuff sub.
Added EOL to NewWFO MP WFOStuff sub Warning.
Deleted SeqC and EOL at WFOStuff sub.
Added Flag(1) logic at start of EachOp/NextOp Loop.
Moved WFOStuff after MP-OTAP-FU condition at FirstOperation and NewTool.
Added WFOStuff for MP-OTAP-ECP condition at FirstOperation and NewTool.
Added AbsOrInc Rapid to StrtPos block for MP-OTAP-ECP condition at FirstOperation and NewTool.
Added SeqC and EOL at WFOStuff calls at GetStartOfSameTool, FirstOperation and NewTool.
Moved Speed SpinOn after MP-OTAP-FU condition at FirstOperation and NewTool.
Added Speed SpinOn for MP-OTAP-ECP condition at FirstOperation and NewTool.
Added SetMaxFeed(100) condition for English Files at setup and initializations.
Deleted all occurances of TagInit, TagInc and Tag#.
Replaced with PartNum# for better WFO handling.
DWB}
{Prog Numeric Format Definitions ****}
#1 = '#.00'
#2 = '#####.###;0.'
#3 = '*#####.###;0.'
#4 = '#####.###;0.'
#5 = '#######0'
#6 = '####.#;0.'
#7 = '#'
#8 = 'Ä…#bbbb.bbbb#'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(Recall#,4)
FORMAT(ADD#,4)
FORMAT(ToolDiameter#,4)
FORMAT(TrackXNO#,4)
FORMAT(TrackYNO#,4)
FORMAT(TrackZNO#,4)
FORMAT(StartPosX#,4)
FORMAT(StartPosY#,4)
FORMAT(ClearancePlane2#,4)
FORMAT(ClearancePlane3#,4)
FORMAT(SPX#,4)
FORMAT(SPY#,4)
FORMAT(SPZ#,4)
FORMAT(Peck#,4)
FORMAT(Tag#,5)
FORMAT(PartNum#,5)
FORMAT(Program#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(NewWFO#,5)
FORMAT(Parts#,5)
FORMAT(Dwell#,6)
FORMAT(FeedEntry#,6)
FORMAT(RapidF#,7)
FORMAT(PartShiftX#,8)
FORMAT(PartShiftY#,8)
FORMAT(PartShiftZ#,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
WFO:
FORMAT(ADD#,5)
'O' ADD# PartNum# Num#('99') 'XYZB' Rapid 'B0'
FORMAT(ADD#,4)
RETURN
WFONum:
'O' NewWFO# 'XYZB' Rapid 'B0'
RETURN
WFOStuff:
IF NewWFO?
IF MultipleParts?
EOL
'*** WARNING *** DO NOT USE NEWWFO() WITH MULTIPLE PARTS AND WORK FIXTURE OFFSETS' EOL
IF WorkFixtureOffsets? AND NOT SameTool?
WFO
END
ELSE
WFONum
END
ELSE
IF Flag?('1')
IF NOT SameTool?
IF MultipleParts?
IF WorkFixtureOffsets?
WFO
ELSE
WFONum
END
ELSE
WFONum
END
END
END
END
SetFlagF('1')
RETURN
ResetWFO:
SeqC WFO1 'XYZB' Rapid 'B0' EOL
RETURN
DoPartCycleComment:
IF MultipleParts? AND UseComments? AND SubComment?
'( PART NO. ' PartNum# ' )' EOL
END
RETURN
DoCycleComment:
IF UseComments? AND SubComment?
'( CYCLE START )' 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
BadMPWFOReport:
SetStatusOff
' ' EOL
'Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„' EOL
'Ä„ NOTE: Even though you have elected to Ä„' EOL
'Ä„ process this file using Multiple Ä„' EOL
'Ä„ Parts with Work Fixtures, there exist Ä„' EOL
'Ä„ non-zero values in the invisible, Ä„' EOL
'Ä„ Equally SpacedÉ fields, as follows: Ä„' EOL
'Ä„ Ä„' EOL
'*****************************************' EOL
IF NotEqual? PartShiftX# Num#('0')
' X axis shift = ' PartShiftX# EOL
END
IF NotEqual? PartShiftY# Num#('0')
' Y axis shift = ' PartShiftY# EOL
END
IF NotEqual? PartShiftZ# Num#('0')
' Z axis shift = ' PartShiftZ# EOL
END
'*****************************************' EOL
'Ä„ Ä„' EOL
'Ä„ Please reset these values to zero as Ä„' EOL
'Ä„ they affect the coordinate values Ä„' EOL
'Ä„ output, starting with Part# 2. Ä„' EOL
'Ä„ Thank You. Ä„' EOL
'Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„Ä„' EOL
' ' EOL
SetStatusOn
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 ZInC FeedEntC EOL
ELSE
SeqC RapidC ZInC EOL
END
RETURN
ExitMove:
SeqC
IF FeedConnect?
IF NOT AutoCycle?
IF NOT NoZMoves?
FeedC ZInC FeedEntC
END
END
ELSE
CRCOffC
IF FIFO?
FeedC PRIME ZCP2C FeedEntC
ELSE
RapidC PRIME ZCP2C
END
END
EOL
RETURN
ExitMove2:
IF FIFO?
FeedC ZCP3C FeedEntC
ELSE
RapidC ZCP3C
END
RETURN
CycleWarning:
{ NOTE: This Post Processor takes care of Z Clearance. }
RETURN
FormatArc:
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXY MoveZC
IF ArcIJFormat?
ArcIJ
ELSE
ArcR
END
RETURN
ckCRC:
IF LastFeat?
CRCOffC
ELSE
IF NOT ZMove?
CRCOnC
END
END
RETURN
ckCRCNum:
{ CRCOffsetC not supported }
RETURN
ToolPath:
EACHFeat
IF PointFeat? { Drilling Only }
IF SPXMove? OR SPYMove? OR SPZMove?
SeqC
IF SPXMove?
''
END
IF SPYMove?
''
END
IF SPZMove? {.80.01}
''
END
EOL
END
ELSE
IF RapidFeat?
IF XMove? OR YMove? OR ZMove?
SeqC ckCRC RapidC MoveXYZC ckCRCNum EOL
END
ELSE
IF LineFeat?
IF XMove? OR YMove? OR ZMove?
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqC ckCRC FeedC MoveXYZC FeedRateC ckCRCNum EOL
DecelMove2
END
SeqC ckCRC FeedC MoveXYZC DecelFeed ckCRCNum EOL
ELSE
SeqC 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 FormatArc ArcFeedC EOL
DecelMove2
END
SeqC FormatArc DecelFeed EOL
ELSE
SeqC FormatArc ArcFeedC EOL
END
NEXTQuadrant
END
END
END
IF AutoCycle?
SetAbs
Save# Num#('6') SUB# EPX# CurOriginPosX#
Save# Num#('7') SUB# EPY# CurOriginPosY#
SetInc
END
END
NEXTFeat
RETURN
AutoCycCutSub1: {part 1}
CalcACSRXY {calc tool position, CalcAutoCycleStatusRecordXY}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
SetSRXYtoSP
IF Repeats? AND ZShiftOnly?
EntryMove
END
SeqC IncValue EOL
RETURN
AutoCycCutSub2: {part 2}
SeqC AbsOrInc
IF FIFO?
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
EOL
SetSRSubXY {restore SR to 1st position value}
ReSetPass2 {restore for positioning moves}
RETURN
Milling:
EntryMove
ToolPath
RETURN
XYZRep:
CycleWarning
FindAnyZMoves
EachRep
DoCycleComment
IF FirstCycle?
EntryMove
ELSE
CRCOffC
IF FeedConnect?
IF SPXMove? OR SPYMove?
SeqC FeedC MoveSXYC FeedEntC EOL
END
IF ZShiftOnly?
EntryMove
END
ELSE
IF SPXMove? OR SPYMove?
SeqC RapidC MoveSXYC EOL
END
IF FeedEntry?
SeqC ZCP2C EOL
END
EntryMove
END
END
ToolPath
ExitMove
NextRep
RETURN
NoRepAutoCycle:
EACHFeat
DoCycleComment
IF SPXMove? OR SPYMove?
SeqC RapidC MoveSXYC EOL
END
AutoCycCutSub1
Milling
AutoCycCutSub2
NEXTFeat
RETURN
XYZRepAutoCycle:
CycleWarning
EachRep
EACHFeat
DoCycleComment
IF SPXMove? OR SPYMove?
SeqC RapidC MoveSXYC EOL
END
SetAbs
Save# Num#('4') SPX#
Save# Num#('5') SPY#
SetInc
AutoCycCutSub1
Milling
AutoCycCutSub2
SetAbs
TrackXNO# ADD# Recall# Num#('4') Recall# Num#('6')
TrackYNO# ADD# Recall# Num#('5') Recall# Num#('7')
SetAbsOrInc
NEXTFeat
NextRep
RETURN
ZonlyRepAutoCycle:
EACHFeat
DoCycleComment
IF SPXMove? OR SPYMove?
SeqC RapidC MoveSXYC EOL
END
AutoCycCutSub1
EachRep
IF NOT FirstCycle?
IF FeedConnect?
SeqC AbsOrInc EOL
DoCycleComment
IF SPXMove? OR SPYMove?
SeqC IncValue MoveSXYC EOL
AbsOrInc
END
ELSE
AbsOrInc
ExitMove
DoCycleComment
IF SPXMove? OR SPYMove?
SeqC IncValue MoveSXYC EOL
AbsOrInc
END
IF FeedEntry? AND NOT FIFO?
SeqC ZCP2 EOL
END
END
EntryMove
SeqC IncValue EOL
END
EntryMove
ToolPath
NextRep
AutoCycCutSub2
NEXTFeat
RETURN
DrillStuff:
SeqC DrillCP EOL
GetCycle
SeqC Cycle
''
''
'