Cin Acr 850MC [AG] MY94 15 4


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

{
Format: Fanuc 6M (FW) B001.10
7/27/95
Added G52 style output for too many coordinate systems
Updated to .10 format
TH}

{11/10/95
Initial: Fanuc 6M (FW) B001.10
Created: Fanuc 6M (FW) B001.10.01
Develop: ComPost 4.21.33, Catalyst68K v2.30.14
Comment: Corrections to Processor.
To correct multiple parts output:
Added "OR Flag?('2')" to "IF WFOCS?" in "SubCSMP:".
To Simplify prog subs and correct errors in MP1ToollAllPXcp:
Changed FirstOp3a/NewToolOp5a to FirstOp4/NewToolOp6
Deleted NewToolOp5b sub and changed call to NewToolOp5 (they were identical!)
Deleted OfstOn and Cool On from FirstOp3/NewToolOp5
Added calls to FirstOp4/NewToolOp6 after calls to FirstOp3/NewToolOp5.
Changed StrtPos in MP1ToollAllPXcp to FirstOp3/NewToolOp5.
Corrected format of CSOffsetA# and CSOffsetB#.
Deleted RecallWFO sub. It was not used!
Jim Radcliffe}

{11/15/95
Initial: Fanuc 6M (FW) B001.10.01
Created: Fanuc 6M (FW) B001.10.02
Develop: ComPost 4.21.33, Catalyst68K v2.30.18C
Comment: Corrections to Processor
Modified WFO Handling:
Changes:
Deleted NotSameToolWFO & SameToolWFO subs.
Added WFOStuff sub.
Changed all WFO calls in main loops to WFOStuff.
Results:
Changes do not effect Multiple Parts output.
Correct WFO is output by default at the beginning of each tool.
G52, if used, is output by default at the beginning of each tool.
G52, without WFO, is output at SameTool only if there is a change.
Jim Radcliffe}

{1/4/96
Initial: Fanuc 6M (FW) B001.10.02
Created: Cin Acr 950MC Maxim Cxxx.10.02
ForUser: Nupro Company
Control: Acramatic 950MC
Machine: Cincinnati Milacron Maxim Series (500/630) Horizontal Machining Center
Develop: ComPost 4.21.33, Catalyst68K v2.30.22C
Comment: New Processor from Manual, Sample readout and conversations with Dexter Dave.
* This processor still needs *
1. Custom Block deletes
Every line should be block deleted as follows:
'/' CS#
example:
/1 N0001 G00 G90 Xxxx etc...
BUG!! Regular block deletes with SetLineStrtChr('/') not working with ReTag!
ReTag command causes the block delete to be output 3 times
2. G52 style output not supported
Customer said we could use G92
This was not incorporated at this time for obvious reasons.
Jim Radcliffe}

{2/5/95 - Changed .10 version to .11, MPK}

{
Format: Cin Acr 950MC Maxim D920.11
For: Nupro Company
Converted to D style output by commenting out section that called SetWFOCS and Flag('2')
TH}

{3/25/96, Tested ZOnlyRepAutoCycle, Changed version # to .12, MPK}

{
Format: Cin Acr 950MC Maxim C920.12.1
Removed all G52 info.
Replaced SeqC's in ToolPath with SeqLabC's
TH}

{5/2/96
Modified: Cin Acr 950MC Maxim C920.12.1
Created: Cin Acr 950MC Maxim C920.12.2
For: Nupro Concord
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04C/Compost 4.21.34.1/1.0a
Changes made per Pete Jackson and Steve Buco.
Customer reported RLevel value was off -.1 for Canned Drilling Cycles.
Changed:

'R' SUB# ADD# ClearancePlane2# NumSc#('-.1') NumSc#('0')

to

RLevel

at IF Drilling.
DWB}

{5/7/96
Modified: Cin Acr 950MC Maxim C920.12.2
Created: Cin Acr 950MC Maxim C920.12.3
For: Nupro Concord
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04C/Compost 4.21.34.1/1.0a
Changes made per Pete Jackson and Steve Buco.
Customer reported ZDepth value was off -.1 for Canned Drilling Cycles.
Changed:

'Z' SUB# ADD# ZDepth# NumSc#('.1') NumSc#('0')

to

'Z' SUB# ADD# ZDepth# NumSc#('0') NumSc#('0')

at IF Drilling.
Corrected bad OR Boolean Condition at EndProgram2.
DWB}

{5/22/96,
Initial: Cin Acr 950MC Maxim C920.12.3
Created: Cin Acr 950MC Maxim C920.12.4
For: Nupro
Moved G80 at the end of drilling cycles onto a line by itself before rapid moved to ZCP3, control
cannot have two Gcodes on one line, MPK}

{5/13/97,
Initial: Cin Acr 950MC Maxim C920.12.4
Created: Cin Acr A2100 [AG] Mxxx.15
For: Amarillo Gear
Stripped out all rotary move stuff, this is a three axis post,
updated per Fanuc 6M M001.15
made numerous changes including:
added G95 to FirstOp and NewTool milling ops and all drilling ops except tapping, user will enter IPR feedrates,
post no longer supports retract to CP1 for drilling. W word handles retract amount, this is outputs TCZ# so
that user can explicitly set retract amount,
added variable before drill cycle to set W amount,
added call to W variable in pointfeat when drilling,
changed subs per A2100 format,
restructred saftey start blocks in FirstOp and NewTool,
WFOStuff will only output if NewWFO? is true,
added empty lines between tools and programs,
added warning comment to program beginning,
arcs are set to R format,
eliminated labels and numbers for plane command in form,
drill depths are now an unsigned value, MPK}

{5/13/97,
Initial: Cin Acr 950MC Maxim C920.12.4
Created: Cin 850 [AG] Mxxx.15
For: Amarillo Gear
Changed subs to 850 standard,
changed drilling variable to G10 type,
Changed program end to M30, deleted literal M30 at program end,
deleted literal 'G98X0' in NewToolOp2 and 'X0Y9.' in End1,
added literal 'X0Y10.Z10.' to End2,
drill depths are signed again,
MPK}

{5/16/97,
Initial: Cin Acr 850MC [AG] MY94.15
Created: Cin Acr 850MC [AG] MY94.15.1
Reformatted 'F' in default formats to 4 decimal places for IPR feedrates,
Put output of G95/G94 just after Cycle call in drilling,
Put Rapid before AbsOrInc in various StrtPos block,
Deleted output of 'K' FeedTapIPR#('1') for Rigidtapping, no just uses FeedEnt,
Took spaces out of variable definition in FirstOp2, NewTool4, and SameTool3,
TCZ is initialized now in PSInit,
MPK}

{6/11/97
Initial: Cin Acr 850MC [AG] MY94.15.1
Created: Cin Acr 850MC [AG] MY94.15.2
Develop: ComPost2 68K 1.0b11, CatalystPPC v3.33C
Comment: Modified per fax and conversation with James Baker
Deleted SpinOn command except from DoCoolOn sub.
Changed SetTCZ('.375') to SetTCZ('.1')
Added format for ZDepth#
Added sequence number to sub definition lines.
Changed EOP from M30 to M02.
Added PreTool to G94/G95 block.
Added M42 for tapping operations.
Jim Radcliffe}

{3/26/98
Initial: Cin Acr 850MC [AG] MY94.15.2
Created: Cin Acr 850MC [AG] MY94.15.3
Develop: ComPost2 1.1b3, Virtual Gibbs 4.24
Comment: Modified per marked up readout from James Baker.
Deleted space from end of comments.
Suppressed output of tool comments for SameTool operations.
Suppressed output of PreTool on SameTool and LastTool.
Changed SetTCZ('.375') to SetTCZ('.1').
Removed Space at beginning of comment at beginning of program.
Moved G95 to first feed move for milling operations.
Created ckG95 sub with Flag#3 to control output and called on Feed/FeedC lines at beginning of operations.
Jim Radcliffe}

{3/27/98
Initial: Cin Acr 850MC [AG] MY94.15.3
Created: Cin Acr 850MC [AG] MY94.15.4
Comment: No changes. Recompiled only. There was another .15.3 version.
Jim Radcliffe}

{Prog Numeric Format Definitions ****}

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

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ToolDiameter#,4)
FORMAT(TrackZNO#,4)
FORMAT(TCZ#,4)
FORMAT(FeedTapIPR#,4)
FORMAT(HelixPitch#,4)
FORMAT(ZDepth#,4)
FORMAT(TrackZ#,4)
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(Recall#,5)
FORMAT(Dwell#,6)

{Prog Subroutines ****}

DoCoolOn:
IF NOT CoolOff?
IF CWSpindle?
'M13'
ELSE
'M14'
END
ELSE
SpinOn
END
IF Tap?
'M42'
END
RETURN

ckG95:
IF NOT Flag?('3')
'G95'
SetFlag('3')
END
RETURN

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:
'G' NewWFO#
RETURN

WFOStuff:
IF NewWFO?
IF MultipleParts? AND WorkFixtureOffsets?
EOL
'*** WARNING *** DO NOT USE NEWWFO() WITH MULTIPLE PARTS AND WORK FIXTURE OFFSETS' EOL
ELSE
WFONum
END
ELSE
RETURN

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

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

PSInit:
NewWFOF
RotateF
OptCyc1F
MasterOpF
CallMasterOpF
SetTCZ('.1')
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
SeqLabC PostScript EOL
PSStuff
NextPS
RETURN

DoEndOpPS:
PSInit
EachEOPS
SeqLabC EndOpPS EOL
PSStuff
NextPS
RETURN

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

StartSub:
OpenSub
' ' EOL
SeqLabC '(DFS,L' Program# ')' EOL
DoSubComment
RETURN

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

StdSub:
SeqLabC '(CLS,L' Program# ',' RepCycs ')' EOL
StartSub
RETURN

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

FinishSubG92: {part 2}
SeqLabC Preset ShiftRC EOL
SeqLabC '(ENS)' EOL
CloseSub
SeqLabC Preset UnshftRC EOL
RETURN

OpenMP:
NewProg
IF WorkFixtureOffsets?
NewWFO
EachWFO {simple eachPart}
SeqLabC SetWFO EOL
SeqLabC '(CLS,L' Program# ')' EOL
IncWFO
NextWFO {simple NextPart}
ELSE
SeqLabC '(CLS,L' Program# ',' Parts# ')' EOL
IF OneToolAllParts? AND ExitClearancePlane?
SetFlag('2') { WFOStuff }
END
END
StartSub
RETURN

CloseMP:
IF WorkFixtureOffsets?
SeqLabC '(ENS)' EOL
CloseSub
SeqLabC WFO1 EOL
ELSE
SeqLabC Preset ShiftPC EOL
SeqLabC '(ENS)' EOL
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:
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
DoAbsOrInc ckG95
IF XYPlane?
IF ZMove?
MoveXYZ ArcIJ 'K' HelixPitch#
ELSE
MoveXY
IF ArcIJFormat?
ArcIJ
ELSE
ArcR
END
END
ELSE
IF XZPlane?
IF YMove?
MoveXYZ ArcIJ 'J' HelixPitch#
ELSE
MoveX MoveZ
IF ArcIJFormat?
ArcIJ
ELSE
ArcR
END
END
ELSE { YZPlane }
IF XMove?
MoveXYZ ArcIJ 'I' HelixPitch#
ELSE
MoveY MoveZ
IF ArcIJFormat?
ArcIJ
ELSE
ArcR
END
END
END
END
RETURN

ckCRC:
IF LastFeat?
CRCOffC
ELSE
IF NOT ZMove?
CRCOnC
END
END
RETURN

ckCRCNum:
RETURN

ToolPath:
EACHFeat
IF PointFeat?
IF AutoCycle?
SeqLabC MoveSXYC EOL
SeqLabC '(CLS,L' Program# ')' EOL
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
SeqLabC DoDrillAbsOrInc MoveSXYZC
IF NOT FirstFeat?
'W[T1]'
END
EOL
END
ELSE
IF RapidFeat?
IF XMove? OR YMove? OR ZMove?
SeqLabC RapidC ckCRC DoAbsOrInc MoveXYZC ckCRCNum EOL
END
ELSE
IF LineFeat?
IF XMove? OR YMove? OR ZMove?
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqLabC FeedC ckCRC DoAbsOrInc ckG95 MoveXYZC FeedRateC ckCRCNum EOL
DecelMove2
END
SeqLabC FeedC ckCRC DoAbsOrInc ckG95 MoveXYZC DecelFeed ckCRCNum EOL
ELSE
SeqLabC FeedC ckCRC DoAbsOrInc ckG95 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
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
SeqLab IncValue EOL
RETURN

AutoCycCutSub2: {part 2}
ToolPath
SeqLabC AbsOrInc
IF Repeats? AND FeedConnect? AND ZshiftOnly?
ELSE
IF FIFO?
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
END
EOL
SeqLabC '(ENS)' 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
END
RETURN

G92Sub:
SubWarning
StdSub
SeqLabC Connect AbsOrInc StrtPos EOL
Milling
FinishSub1
FinishSubG92
RETURN

ZonlyRepAutoCycle:
AutoCycPat {write pattern moves and main calls}
StartSub
NewProg
EachCycle
SetSRXYtoEP
IF FeedConnect?
Feed ckG95
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqLabC IncValue StrtPosC EOL
AbsOrInc
END
END
SeqLabC ZInPlusInc FeedEnt EOL
ELSE
IF NOT FirstCycle?
Rapid
IF SPXMove? OR SPYMove?
SeqLabC IncValue StrtPosC EOL
AbsOrInc
END
IF FeedEntry?
SeqLabC ZCP2PlusInc EOL
END
END
IF FeedEntry?
SeqLabC Feed ckG95 ZInPlusInc FeedEnt EOL
ELSE
IF FirstCycle?
Rapid
END
SeqLabC RapidC ZInPlusInc EOL
END
END
IF FirstCycle?
SetStatusOff {protect Z position for incremental sub}
END
SeqLabC '(CLS,L' Program# ')' EOL
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
SeqLabC '(ENS)' EOL
CloseSub
{Element shift, not pattern}
RETURN

ZonlyRep:
EachCycle
IF NOT FirstCycle?
SeqLabC Connect StrtPos EOL
END
IF FeedConnect?
SeqLabC FeedC ckG95 ZInPlusInc FeedEnt EOL
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqLabC RapidC ZCP2PlusIncC EOL
END
SeqLabC Feed ckG95 ZInPlusInc FeedEnt EOL
ELSE
SeqLabC RapidC ZInPlusInc EOL
END
END
SeqLabC '(CLS,L' Program# ')' EOL
NextCycle
StartSub
TrackZNO# FIRST SPZ#
ToolPath
FinishSub1
SeqLabC '(ENS)' 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

OpGuts:
IF Milling?
SeqLabC ZCP2C
IF NOT LastTool? AND NOT SameTool?
PreTool
END
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?
SeqLabC ZCP3C EOL
ELSE
IF FIFO?
SeqLabC FeedC CRCOffC ZCP3C FeedEntC EOL
ELSE
SeqLabC RapidC CRCOffC ZCP3C EOL
END
END
ELSE
IF Drilling?
IF Repeats?
NewProg
StdSub
SeqLabC Rapid AbsOrInc StrtPos EOL
END
GetCycle
SeqLabC
IF FIFO? AND Dwell?
'G89'
ELSE
Cycle
END
IF Tap?
'G94' {Feed in IPM}
ELSE
'G95' {Feed in IPR}
END
'Z' ZDepth# RLevel
Peck
IF Peck?
IF PeckChipBreaker?
'J0'
ELSE
'J1'
END
END
FeedEnt PreTool
'W[T1]' EOL
IF CallMasterOp?
SeqLabC '(CLS,L' CallMasterNum# ')' EOL
SkipToLastFeat
ELSE
TrackZNO# FIRST SPZ#
IF MasterOp?
SetFlag('1') {std sep sub Zreps in effect}
NewMasterProg
SeqLabC '(CLS,L' Program# ')' EOL
StartSub
ToolPath
SeqLabC '(ENS)' EOL
CloseSub
SetFlagF('1') {not std sep sub Zreps in effect}
ELSE
ToolPath
END
END
SetDrillEndOpZ
SeqLabC 'G80' EOL
SeqLabC Rapid ZCP3 EOL
IF Repeats?
FinishSubG92
END
END
END
RETURN

ProgStart:
InitProg
ReverseXZArcs
InitWFONum
SetFlood
UseSeparateSubCalls
SetProgNum('0')
SetMaxSeparateSubCalls('50')
SetMaxRPM('10000')
SetTCZ('.1')
IF Metric?
SetMaxFeed('12700')
ELSE
SetMaxFeed('500')
END
SetFlagF('1') { Milling ZShiftOnly SepSubs }
SetFlagF('2') { WFOStuff }
SetFlagF('5') { Suppress Redundant WFO for MP-OTAP-ECP }
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
RETURN

InitOp:
'(' ProgramName$ ' *** FIRST TIME PRG. / PROVE OUT COMPLETELY ***' EOL
IF ToolChangeAtHome?
SetHome
END
IF UseComments?
IF ProgramNameComment?
'(MSG, PROGRAM NAME: ' ProgramName$ ')' EOL
END
IF ProgramComment?
'(MSG, ' ProgramComment$ ')' EOL
END
IF FormatNameComment?
'(MSG, FORMAT: ' FormatName$ ')' EOL
END
IF TimeComment?
'(MSG, ' Date$ ' AT ' Time$ ')' EOL
END
IF MovesComment?
'(MSG, OUTPUT IN ' MoveType$ ' INCHES)' EOL
END
IF PartsComment?
'(MSG, PARTS PROGRAMMED: ' Parts# ')' EOL
END
IF StartToolComment?
'(MSG, FIRST TOOL NOT IN SPINDLE)' EOL
END
END
OpenSub
RestoreScale
RETURN

FirstOp1:
' ' EOL
':?' ToolChng OpToolID EOL
DoOpComments
DoPostScript
SetFlagF('3')
RETURN

FirstOp2:
CheckPass
IF Drilling?
SeqLabC 'G10=[T1]V' TCZ# EOL
END
SeqLabC Rapid AbsOrInc Plane StrtPos ZCP1 WFOStuff Speed DoCoolOn EOL
RETURN

FirstOp3:
RETURN

NewToolOp1:
IF MultipleParts? AND OneToolAllParts? AND FullUp?
SeqLabC 'M26' EOL {Sends Z axis full up}
END
RETURN

NewToolOp2:
DoEndOpPS
IF LAST ProgStop?
SeqLabC 'M00' EOL
ELSE
SeqLabC ProgStop EOL
END
RETURN

NewToolOp3: {Start new Operation}
' ' EOL
':?' ToolChng OpToolID EOL
DoOpComments
DoPostScript
SetFlagF('3')
RETURN

NewToolOp4:
CheckPass
IF Drilling?
SeqLabC 'G10=[T1]V' TCZ# EOL
END
SeqLabC Rapid AbsOrInc Plane StrtPos ZCP1 WFOStuff Speed DoCoolOn EOL
RETURN

NewToolOp5:
RETURN

SameToolOp1:
DoEndOpPS
IF LAST ProgStop?
SeqLabC CoolOff EOL
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}
SeqLabC WFOStuff EOL
IF Drilling?
SeqLabC 'G10=[T1]V' TCZ# EOL
END
IF LAST ProgStop?
SeqLabC Rapid AbsOrInc PlaneC StrtPos ZCP1 WFOStuff SpeedC DoCoolOn EOL
ELSE
SeqLabC Rapid AbsOrInc PlaneC StrtPos SpeedC
IF NOT CoolOff? AND LAST CoolOff?
DoCoolOn
END
EOL
END
RETURN

End1:
IF MultipleParts? AND OneToolAllParts? AND FullUp?
SeqLabC 'M26' EOL {Sends Z axis full up}
END
RETURN

End2:
DoEndOpPS
SeqLabC 'X0Y10.Z10.' EOL
IF ProgStop?
SeqLabC 'M0' EOL
END
RETURN

End3:
SeqLabC EOP EOL
CloseSub
Post2 {organize Subs into one program}
IF UseComments?
SetScale('1') {restore scale for comments}
IF FileBytesComment?
SeqLabC '( FILE LENGTH: ' FileBytes# ' CHARACTERS)' EOL
END
IF FileFeetComment?
SeqLabC '( FILE LENGTH: ' FileFeet# ' FEET)' EOL
END
IF FileMetersComment?
SeqLabC '( FILE LENGTH: ' FileMeters# ' METERS)' EOL
END
END
Close
ReTag
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
FirstOp2
OpenMP
FirstOp3
ELSE
IF NewTool?
NewToolOp1
CloseMP
NewToolOp2 {to tool change, CS problem}
NewToolOp3
NewToolOp4
OpenMP
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:
Cin Acr 850MC [VTF] M328 15 1
Cin Acr 850MC [RI] C664 15
Cin Acr 850MC [RI] D664 15
Cin Acr 850MC [VTF] B328 15
Cin Acr 950HMC [T40] CW32 15
Cin Acr 850MC M196 89
Cin Acr 850MC [SJ] M494 87m
Cin Acr 850MC [RI] M664 87
Cin Acr 850MC (FN) M541 81 2m
Cin Acr 850MC [EM] M359 81
Cin Acr 850MC [SJ] M494 87
Cin Acr A2100 [REN] CY33 15 5m
Cin Acr 850MC (AMP) M692 89
Cin Acr 950HMC [T40] DW32 15 6
Cin Acr 850MC M196 89m
Cin Acr 850MC [EM] M359 81m

więcej podobnych podstron