{Change Comments ***********************************************************}
{
10/24/94 [cwh]
B001.81.4 ( from B001.81.3 )
Made changes to ZOnlyRep and FinishSub1 subs to properly handle
Feed connects and clearance moves.
}
{11/8/94
Modified: Fanuc 6M (FW) B001.81.4
For: Gibbs & Associates
Versions: Catalyst v2.14.12C/Compost 4.21.23
Changes made per Pete Jackson
Charles reported a problem involving operations that do not change coordinate systems from
previous operations.
Added ClearCSOffset at NotSameToolWFO and SameToolWFO subs.
DWB}
{
12/01/94
B001.81.6
Changed FirstOp3 to call out A0B0 to move to the first CS.
When possible, this should be changed to check the MDD and only call out the axes that
make sense.
Added RecallWFO sub-routine to NotSameToolWFO and SameToolWFO to ouput the current fixture offset
and A0B0. Added for easier restarts at the machine. Both are only called from NoMPs.
When possible, this should be changed to check the MDD and only call out the axes that
make sense.
}
{
12/02/94
Changed version number to .00 from .81
TH}
{
Format: Fanuc 6M (FW) B001.00.01
12/08/94
Added AAxisAvail? and BAxisAvail? checks to CSAngleA and CSAngleB subs
Added WFO1 and A0B0 if AxisAvail to End2:
TH}
{
Format: Fanuc 6M (FW) B001.00.01
12/09/94
Fixed RecalWFO to check AAxisAvail? and BAxisAvail?
Cleaned up FirstOp3 to use new checks placed in CSAngleA and CSAngleB
TH}
{
Format: Fanuc 6M (FW) B001.00.03
12/19/94
Added ClearCSOffset to OpenMP: CloseMP: and SubCSMP:
Added if AChange? OR BChange? to home postition call-out in SameToolOp1
Started using Flag('3') to determine toggle between incrementing through MPs and decrementing through MPs
Changed CloseMP to check Flag('3'). If true, the WFOs will increment from first to last. If false, the WFOs will
decrement from last to first.
Example:
TRUE for 4 parts: G54P1, G54P2, G54P3, G54P4
FALSE for 4 parts: G54P4, G54P3, G54P2, G54P1
This is most useful for tombstone machining on rotary tables. With this method, the code will machine part1, rotate, part2,
rotate, part3, rotate, part4, tool change, part4, part3, part2, part1, toolchange, etc. It minimizes the rotation and also
stops the machine from "winding up".
To do this a new sub was created called ToggleIncDecWFO. The flag is set to true in ProgStart and toggled inside CloseMP
after running through the parts
Replaced SetZRepInc and RestoreAbsOrInc with one sub called DoAbsOrInc. Any line with SetZRepInc now
has DoAbsOrInc as the first command after the SeqC.
TH}
{
Format: Fanuc 6M (FW) B001.00.04
1/10/95
NewToolOp3 now has an AbsOrInc on the line that calls out the Plane 'G80' CRCOff
NewToolOp5 no longer has the AbsOrInc command
NewToolOp5b has been created and has the AbsOrInc command
Changed MP1ToollAllPfu to call NewToolOp5b
Added AbsOrInc and Rapid to the FirstOperation? section of MP1ToollAllPXcp
Added Rapid to the NewTool? section of MP1ToollAllPXcp
Started using Flag ('4') to turn on Inc/Dec WFO's (See above). True means use Inc/Dec WFO's.
MP1ToollAllPXcp, MP1ToollAllPFU, and MPallTools1P now output WFO if NOT WorkFixtureOffsets?
TH}
{
Format: Fanuc 6M (FW) B001.00.05
1/13/95
Replaced TrackZNO# ZDepth# with TrackZNO# FIRST SPZ# in the drilling section
Formatted TrackZNO# to #4
}
{
Format: Fanuc 6M (FW) B001.00.06
2/15/95
Fixed RecallWFO: to output correct WFO# if WFOCS
TH}
{ Added ClearCSOffset to SubCSMP TH}
{
Format: Fanuc 6M (FW) B001.10
7/27/95
Added G52 style output for too many coordinate systems
Updated to .10 format
TH}
{1/17/96, Updated .10 to .11 version, MPK}
{3/29/96
Copied: Fanuc 6M (FW) B001.11
Created: Meldas 500M 0KK B970.11
For: Armstrong Blum
Machine: Mitsubishi CNC
Control: Meldas 500M 0KK Series
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.02.07/Compost 4.21.34.1/1.0a
Changes made per Jeff Kaiser and Lee Hench of Armstrong Blum.
Mach Spec changes:
Change Sub Call Label from P to L in Strings 2 Dialog.
Change Sub Repate Label from L to P in Strings 2 Dialog.
Change Program ID Label from O to L in Strings 2 Dialog.
Changed Call Sub from M98 to G22 in Commands 3 Dialog.
Changed Return From Sub from M99 to G23 in Commands 3 Dialog.
Changed End Program from M30 to M2 in Commands 4 Dialog.
Changed Optional End Program from M2 to M30 in Commands 4 Dialog.
Changed First Work Fixture Offset from G54 to G1 in Commands 5 Dialog.
Changed Last Work Fixture Offset from G59 to G48 in Commands 5 Dialog.
Changed Format for Address D, from #0 to ##0 in Default Formats Dialog.
Changed Format for Address F, from ###.#0;0. to ####.###;0. in Default Formats Dialog.
Changed Format for Address H, from #0 to ##0 in Default Formats Dialog.
Changed Format for Address L, from ###0 to #######0 in Default Formats Dialog.
Changed Format for Address N, from ###0 to ####0 in Default Formats Dialog.
Changed Format for Address O, from ###0 to #######0 in Default Formats Dialog.
Changed Format for Address S, from ###0 to ####0 in Default Formats Dialog.
Added Format for Address U, V and W, ####.####;0. in Default Formats Dialog.
Prog Changes:
Corrected problem with NotSameToolWFO sub.
The problem concerned ToolChanges where WFOCS? = TRUE but ChangeCS? = FALSE.
Post was outputting 'G' NewWFO# which equals FIRST WFO.
Post should have called CSWFO instead.
M001 forces WFO for FirstOperation and NewTool, even if it remains the same.
NOTE: This is probably a global bug with most, if not all, Advanced Mill Posts.
Changed NumOfCS from 6 to 48 two places at ProgStart.
Post supports G54.1 P1 to P48 WorkFixtureOffsets.
Changed literal 'G' to 'G54.1P' at CSWFO sub.
Changed literal 'G' to 'G54.1P' at CalcCSWFO sub.
Changed literal 'G' to 'G54.1P' two places at NotSameToolWFO sub.
Moved call to InitOp sub outside of EachOp/NextOp loop at MPallTools1P, MP1ToollAllPfu,
MP1ToollAllPXcp and NoMPs.
Added StartUpStuff sub, called at end of InitOp.
Added EachOp/NextOp loop at StartUpStuff sub.
This loop outputs G10 blocks that load CSOffset values into controls WorkFixtureOffset Table.
The post stores the initial CS# value to Var(1) prior to the loop.
During the loop, CS# is compared to Var(1).
When C# is GreaterThan Var(1), a new G10 block is output, and the new CS# value is stored in Var(1).
This ensures that a CS# is not output a second time.
This can happen when a user does a OneToolAllCSGroups type of output.
Customer has been instructed to introduce the CS# values in incrementing order if they want all
WorkFixtureOffsets to be loaded.
Moved SafeStart block from FirstOp1 to StartUpStuff sub.
Changed Seq to SeqC in SafeStart block at StartUpStuff sub.
Added Rapid to SafeStart block at StartUpStuff sub.
Added IncValue 'G28X0Y0Z0' block at StartUpStuff sub.
Added 'G28B0' block at StartUpStuff sub.
G28 returns the tool and/or table to the first reference position (origin (zero)).
Moved output of WFO1 prior to call of FirstOp1 at MPallTools1P, MP1ToollAllPfu and MP1ToollAllPXcp.
Added call to CSWFO prior to call of FirstOp1 at NoMPs.
Added 'G30Y0.Z0.' at FirstOp1.
G30 returns the tool and or table to the second reference position (origin (zero)).
Added ProgStop at FirstOp1.
Added Seq ' ' EOL block at FirstOp1, NewToolOp3 and SameToolOp1.
Once before DoOpComments, and once after.
Moved Speed SpinOn from FirstOp2 to FirstOp3 and FirstOp3a.
Moved Speed SpinOn from NewToolOp4 to NewToolOp5 and NewToolOp5a.
Follows OfstOn block.
Added PreTool to StrtPos block at FirstOp3 and NewToolOp5.
Added PreTool block at FirstOp3a and NewToolOp5a.
Added DIV# to FORMAT#4 at Prog Numeric Format Definitions.
Added CRCOffset# to FORMAT#5 at Prog Numeric Format Definitions.
Added CkCRCLoad sub.
Sub outputs 'G10L12P' CRCOffset# 'R' DIV# ToolDiameter# Num#('2').
This block loads compensation value into CRCOffset Table when CutterRadiusCompensation = TRUE.
G10 = Tool Compensation Offset input via program.
L10 = Column 10, Cutter Diameter, of Offset Table.
L11 = Column 11, Length Wear, of Offset Table.
L12 = Column 12, Cutter Radius, of Offset Table.
L13 = Column 13, Radius Wear, of Offset Table.
P#0 = CRCOffset#
R####.####;0. = Cutter Radius
Sub is called following OfstOn block at FirstOp3, FirstOp3a, NewToolOp5, NewToolOp5a and
NewToolOp5b.
Flag('5') controls when to output.
SetFlagF(5) occurs at FirstOp3, FirstOp3a, NewToolOp5, NewToolOp5a and NewToolOp5b.
Flag?(5) is tested two places at SameToolOp3.
IF TRUE, CkCRCLoad sub is called.
Moved SpinOff from NewToolOp2 to NewToolOp1.
Changed OfstOff blocks to 'G30Y0.Z0.' at NewToolOp1 and End1.
Changed OfstOff blocks to 'G30Z0.' two places at SameToolOp1.
Deleted IncValue/AbsValue control at NewToolOp1, two places at SameToolOp1 and at End1.
Deleted ToolChangeAtHome condition at NewToolOp2 and End2.
Moved ToolChng block from NewToolOp3 to NewToolOp2.
Changed Plane to PlaneC at NewToolOp3.
Deleted 'G80' CRCOffC at NewToolOp3.
Deleted OpToolID at NewToolOp3.
Added ToolChng 'T0' block at End2.
Deleted condition to unwind A and B axis.
Post now simply outputs 'G28' for each axis.
Changed 'P' CallMasterNum# to 'L' CallMasterNum# for CallMasterOp at IF Drilling.
Added support of Reverse Tap Canned Drilling Cycle.
IF Tap? AND NOT CWSpindle? will output 'G74' instead of Cycle.
Added GetCoolOn sub for support of M58, ThruSpindleCoolant.
PostScript Comments include SetFlood, FloodCoolant, SetThruSpindle and ThruSpindleCoolant.
Flag(6) controls when to call GetCoolOn for normal SameTool Operations.
Added support for non-Canned LongHand Web Drill Cycle at IF Drilling of OpGuts.
Operation must pass IF FIFO? AND OptCyc1? AND FourthCW?
Using FourthDegree# and CalcZSurf# for additional ZPositions.
ZRapidStart position is supported through FourthDegree# PostScript command.
ZRapidEnd position is supported through CalcZSurf# from Process Dialog.
NOTE: Wayne is currently creating an MDD that supports this.
When this is working, replace following:
Replace IF FIFO? AND OptCyc1? AND FourthCW? with FIRIFIRO?.
Replace FourthDegree# with Peck#.
Replace CalcZSurf# with Retract#.
Added necessary PostScript comments.
Added ModCSOffsetB sub.
This sub calculates and outputs a positive B-axis index position from 0Ą to 360Ą.
Uses Var(2).
DWB}
{4/11/96
Modified: Meldas 500M 0KK B970.11
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.02.11/Compost 4.21.34.1/1.0a
Versions: ncCad 4.33.02/ncEDM 4.33.01/ncPost 4.33.09/Compost 4.21.34.1/1.0a
Versions: ncCad 4.33.02/ncMAT 4.21.19/ncPost 4.33.09/Compost 4.21.34.1/1.0a
Changes made per Jeff Kaiser of Armstrong Blum.
Deleted CkCRCLoad sub, see 3/29/96.
Deleted NewToolOp5b sub.
Changed NewToolOp5b to NewToolOp5 at MP1ToollAllPfu.
Added logic to output T0 instead of PreTool for LastTool at NewToolOp5 and NewToolOp5a.
Deleted literal 'T0' from ToolChng block at End2.
Added SpinOff block for Web Drill Cycle at OpGuts.
Added SpinOn block for Web Drill Cycle at OpGuts.
When Tool reaches the bottom, spindle must be stopped prior to Retract.
Deleted EOR EOL block at end of all Subs.
Occurred at FinishSubG92, CloseMP (3x), SubCSMP, AutoCycCutSub2, ZonlyRepAutoCycle and ZonlyRep.
Changed order of IF WFOCS? OR Flag?('2') boolean to IF Flag?('2') OR WFOCS? at OpenMP and CloseMP.
Argument of Flag was being output at SubID for OpenMP and at EndSub for CloseMP.
Added support for G76 FI-FO Canned Drilling Fine Boring Cycle at IF Drilling.
G85 FI-D-FO is still supported.
Added M19G91G1Y-.005 spindle orientation block at FirstOp3, FirstOp3a, NewToolOp5 and
NewToolOp5a.
Added G53G92X0Y0Z0B0, Safe ReStart Block at end of StartUpStuff.
Made numerous other minor clean up changes.
DWB}
{4/18/96
Modified: Meldas 500M 0KK B970.12.1
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.02.13/Compost 4.21.34.1/1.0a
Changes made per Jeff Kaiser of Armstrong Blum.
Addec ToolComment for MultipleParts, OneToolAllParts and NOT SameTool at DoSubComment.
Changed Var(2) to Var(50) at ModCSOffsetB.
See 3/29/96.
Needed to free up Vars(1-48) for G10Blocks.
Added G10Block sub.
Called from StartUpStuff.
Outputs correct format for loading WFOs into control table.
Added VarInit sub.
Called from StartUpStuff.
Saves zero to Vars(1-48).
Rewrote StartUpStuff sub.
Necessary to correctly support MultipleParts.
Deleted IncValue 'G28X0Y0Z0' block.
Deleted call to CSWFO.
Deleted 'G53G92X0Y0Z0B0' Safe ReStart Block.
Added GetOfstOff sub.
Called from NewToolOp1, SameToolOp1 (2x) and End1.
Outputs literal 'G30Z0.' unless user processes MultipleParts, OneToolAllParts, ExitClearancePlane
in which case post will output Rapid ZCP1 instead.
Modified Web Drill Cycle at IF Drilling.
Changed FeedEntC to FeedEnt.
Added FeedEnt to second Feed Block.
Added literal 'M19', Spindle Orient Command, at bottom of second hole.
Added IncValue Feed 'Y-.005' following M19 block.
Deleted condition at FirstOp3.
Added AbsOrInc following IncValue block.
Changed G76 Canned Boring Cycle literal 'I.005J.005' to 'J-.005' at IF Drilling.
Modified G84 Tap FeedRate to be 'E' ThreadsPerInch#.
Using DIV# Num#('1') FeedTapIPR#('1') Formula.
Moved Speed SpinOn and GetCoolOn to StrtPos block at FirstOp3, FirstOp3a, NewToolOp5 and
NewToolOp5a.
Moved literal 'G30Y0.Z0.' from NewToolOp1 to NewToolOp2.
Deleted Seq ' ' EOL block at SameToolOp1.
Deleted IncValue OfstOff at End1.
Deleted IncValue 'G28X0.Y0.' at End1.
Added literal 'T0' block at End1.
Moved literal 'G30Y0.Z0.' from End1 to End2.
Moved call to OpenMP prior to calls to FirstOp3 and NewToolOp5 at MP1ToollAllPXcp.
Moved call to CloseMP following calls to NewToolOp1 and End1 at MP1ToollAllPXcp.
Customer wanted ExitClearancePlane output identicle to FullUp output with the exception of the
GetOfstOff sub stuff.
DWB}
{5/24/96
Modified: Meldas 500M 0KK B970.12.2
Created: Meldas 500M 0KK B970.12.3
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04.05C/Compost 4.21.37/1.0a
Changes made per Jeff Myers of Gibbs & Associates.
Customer requested method of outputting true G10XYZ coordinate values.
Jeff instructed them to use machine coordinates in stock size dialogue and not use CS#1.
Added restriction of G10 Block for CS#1 at StartUpStuff sub.
Added CS#1 Warning at DoOpComments.
DWB}
{5/30/96
Modified: Meldas 500M 0KK B970.12.3
Created: Meldas 500M 0KK B970.12.4
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.04.05C/Compost 4.21.37/1.0a
Changes made per Lee Hensch of Armstrong Blum.
Customer reported that some Operations were not outputting a FeedRate.
This was caused by a Pocketing Operation with Rapid Entry whose FeedRate was identicle to
previous Operation.
Added FORMAT#9 at Prog Numeric Format Definitions.
Added RapidF# to FORMAT#9 at Prog Numeric Format Definitions.
Added RapidF# at start of OpGuts sub.
DWB}
{6/26/96
Updated: Meldas 500M 0KK B970.12.4
Modified: Meldas 500M 0KK B970.12.5
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.05C/Compost 4.21.37/1.0a
Changes made per Lee Hensch of Armstrong Blum.
Customer reported problem of outputting true G10XYZ coordinate values, see 5/24/96.
Not sure, but I think it has to do with creating the CSOrigins in machine coordinates.
Distance from Machine Home to Center of Table Rotation is always the same.
Instructed user to us normal dimensions from center of table rotation.
Added SUB# to FORMAT#4 at Prog Numeric Format Definitions.
Subtracting 14.1732 from CSOffsetX# and 31.1023 from CSOffsetZ# at DoCSWFOComment and G10Block.
Deleted changes made on 5/24/96.
Deleted condition to output warning when CS#1 is current at DoOpComments.
Deleted NotEqual CS#1 condition at StartUpStuff.
Customer reported bad CSOffsetB# values.
Changed CSOffsetB# from FORMAT#7 to FORMAT#8 at Prog Numeric Format Definitions.
Modified formulas at ModCSOffsetB.
Post was not calculating negative angles correctly.
Customer requested that Tapping Cycles output Speed and SpinOn at Cycle block, not StrtPos block.
Added GetSpeedOn sub to suppress from StrtPos block of Tapping Cycles.
GetSpeedOn sub is called from FirstOp3, FirstOp3a, NewToolOp5, NewToolOp5a and two places at
SameToolOp3
Added output of Speed SpinOn to Cycle block at OpGuts IF Drilling.
DWB}
{7/2/96
Modified: Meldas 500M 0KK B970.12.5
Created: Meldas 500M 0KK B970.12.6
For: Armstrong Blum
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.05C/Compost 4.21.37/1.0a
Changes made per Lee Hensch of Armstrong Blum.
Added call to GetCoolOn for ChangeCS at SameToolOp3.
Indexing B-Axis causes CoolOff.
Calling sub allows to turn CoolOn back on.
DWB}
{Prog Numeric Format Definitions ****}
#1 = '#.00'
#2 = '###.###;0.'
#3 = '*###.###;0.'
#4 = '####.####;0.'
#5 = '#######0'
#6 = '##^##0'
#7 = '#####.##;0.'
#8 = '*#####.##;0.'
#9 = '#'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(FourthDegree#,4) { Web Drill ZRapidStart OptCyc1 FIFO }
FORMAT(SUB#,4)
FORMAT(CalcZSurf#,4) { Web Drill ZRapidEnd OptCyc1 FIFO }
FORMAT(CSOffsetX#,4)
FORMAT(CSOffsetY#,4)
FORMAT(CSOffsetZ#,4)
FORMAT(DIV#,4)
FORMAT(TrackZNO#,4)
FORMAT(ToolDiameter#,4)
FORMAT(CallMasterNum#,5)
FORMAT(ADD#,5)
FORMAT(CS#,5)
FORMAT(Program#,5)
FORMAT(Operation#,5)
FORMAT(Tool#,5)
FORMAT(NewWFO#,5)
FORMAT(Parts#,5)
FORMAT(Dwell#,6)
FORMAT(Recall#,7)
FORMAT(CSOffsetA#,7)
FORMAT(CSOffsetB#,8)
FORMAT(RapidF#,9)
{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?
'( SUB NUMBER: ' Program# ' )' EOL
IF MultipleParts? AND OneToolAllParts? NOT SameTool?
'( TOOL ' Tool# ': ' ToolDiameter# ' ' ToolType$ ' )' EOL
END
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
CSWFO:
'G54.1P' ADD# CS# SUB# NewWFO# Num#('1')
RETURN
CalcCSWFO: {(iPart-1)*NumOfCS#)}
'G54.1P' ADD# MUL# NumOfCS# SUB# PartNum# Num#('1') ADD# CS# SUB# NewWFO# Num#('1')
RETURN
RecallWFO: {Should be expanded later to handle multiple parts}
IF WFOCS?
CSWFO
ELSE
SeqC 'G' NewWFO#
END
IF AAxisAvail?
'A0'
END
IF BAxisAvail?
'B0'
END
EOL
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
DoCSG52Comment:
'( CS#' CS# ' - ' CSComment$ ' )' EOL
RETURN
PSInit:
NewWFOF
FourthCWF
FourthCCWF
FifthCWF
FifthCCWF
RotateF
OptCyc1F
MasterOpF
CallMasterOpF
ResetCool
RETURN
PSStuff:
RETURN
DoPostScript:
PSInit
EachPS
SeqC PostScript EOL
PSStuff
NextPS
RETURN
DoEndOpPS:
PSInit
EachEOPS
SeqC EndOpPS EOL
PSStuff
NextPS
RETURN
EntryMove:
IF FeedEntry?
SeqC Feed ZIn FeedEnt EOL
ELSE
SeqC RapidC ZIn EOL
END
RETURN
StartSub:
OpenSub
SubID EOL
DoSubComment
RETURN
SubWarning:
IF NOT FeedConnect?
IF AnyZshift?
' ' EOL
'( WARNING Z CLEARANCE WILL CHANGE WITH EACH CYCLE OF SUB REPEAT )' EOL
' ' EOL
END
END
RETURN
StdSub:
SeqC SubCall CallLab RepLab RepCycs EOL
StartSub
RETURN
FinishSub1: {part 1}
SeqC CRCOffC
IF NOT FeedConnect?
IF AutoCycle?
ZCP3C
ELSE
IF FIFO?
FeedC ZCP3C FeedEntC
ELSE
RapidC ZCP3C
END
END
END
EOL
RETURN
FinishSubG92: {part 2}
SeqC Preset ShiftRC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftRC EOL
RETURN
ToggleIncDecWFO:
IF Flag?('3')
SetFlagF('3')
ELSE
SetFlag('3')
END
RETURN
OpenMP:
NewProg
IF Flag?('2') OR WFOCS?
StartSub
SaveCSProg
SaveCSOpStart
ClearCSOffset
ELSE
IF WorkFixtureOffsets?
NewWFO
EachWFO {simple eachPart}
SeqC SetWFO EOL
SeqC SubCall CallLab RepLab OnePart EOL
IncWFO
NextWFO {simple NextPart}
ELSE
SeqC SubCall CallLab RepLab Parts EOL
END
StartSub
END
RETURN
CloseMP:
IF Flag?('2') OR WFOCS?
SeqC EndSub EOL
CloseSub
IF Flag?('3')
NewWFO
EachWFO {simple eachPart}
IF Flag?('2')
SeqC SetWFO EOL
EachCSOp
DoCSG52Comment
ClearCSOffset
SeqC 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
SeqC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
ELSE
EachCSOp
DoCSWFOComment
ClearCSOffset
SeqC CalcCSWFO EOL
SeqC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
END
ClearCSOffset
IncWFO
NextWFO {simple NextPart}
ELSE
LastWFO
EachWFO {simple eachPart}
IF Flag?('2')
SeqC SetWFO EOL
EachCSOp
DoCSG52Comment
ClearCSOffset
SeqC 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
SeqC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
ELSE
EachCSOp
DoCSWFOComment
ClearCSOffset
SeqC CalcCSWFO EOL
SeqC SubCall CallLabB CSSubID# RepLab OnePart EOL
NextCSOp
END
ClearCSOffset
DecWFO
NextPrevWFO {simple NextPart}
END
IF Flag?('4')
ToggleIncDecWFO
END
ELSE
IF WorkFixtureOffsets?
SeqC EndSub EOL
CloseSub
SeqC 'G54.1P1' EOL { WFO1 }
ELSE
SeqC Preset ShiftPC EOL
SeqC EndSub EOL
CloseSub
SeqC Preset UnshftPC EOL
END
END
RETURN
SubCSMP:
IF WFOCS?
IF ChangeCS?
SeqC 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?
SeqC AbsValue EOL
END
RETURN
FormatArc:
DoAbsOrInc
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXYZC
IF ArcIJFormat?
ArcIJC
ELSE
ArcRC
END
RETURN
ckCRC:
IF LastFeat?
CRCOffC
ELSE
IF NOT ZMove?
SetFlag('5') { CRCOffsetC }
CRCOnC
END
END
RETURN
FormatLine:
DoAbsOrInc ckCRC FeedC MoveXYZC
RETURN
ckCRCNum:
IF Flag?('5')
SetFlagF('5')
CRCOffsetC
END
RETURN
ToolPath:
ResetCRCNum
EACHFeat
IF PointFeat?
IF AutoCycle?
SeqC MoveSXYC EOL
SeqC SubCall CallLab EOL
CalcACSRXY {calc tool position after sub call, CalcAutoCycleStatusRecordXY}
ELSE
SeqC DoDrillAbsOrInc MoveSXYZC EOL
END
ELSE
IF RapidFeat?
IF XMove? OR YMove? OR ZMove?
SeqC DoAbsOrInc ckCRC RapidC MoveXYZC ckCRCNum EOL
END
ELSE
IF LineFeat?
IF XMove? OR YMove? OR ZMove?
IF Decelerate?
IF RoomToDecel?
DecelMove1
SeqC FormatLine FeedRateC ckCRCNum EOL
DecelMove2
END
SeqC FormatLine DecelFeed ckCRCNum EOL
ELSE
SeqC FormatLine 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
END
NEXTFeat
RestoreAbsOrInc
RETURN
AutoCycCutSub1: {part 1}
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
StartSub
SetSRXYtoSP
Seq IncValue EOL
RETURN
AutoCycCutSub2: {part 2}
ToolPath
SeqC AbsOrInc
IF Repeats? AND FeedConnect? AND ZshiftOnly?
{removed RapidC}
{removed CRCOffC, gets turned off in ToolPath}
ELSE
IF FIFO?
FeedC ZCP2 FeedEntC
ELSE
RapidC ZCP2
END
END
EOL
SeqC EndSub 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
SeqC AbsOrInc Connect StrtPos EOL
Milling
FinishSub1
FinishSubG92
RETURN
ZonlyRepAutoCycle:
AutoCycPat {write pattern moves and main calls}
StartSub
NewProg
EachCycle
SetSRXYtoEP
IF FeedConnect?
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqC Feed IncValue StrtPosC EOL
SeqC AbsOrInc
ELSE
SeqC Feed
END
ELSE
SeqC Feed
END
ZInPlusInc FeedEnt EOL
ELSE
IF NOT FirstCycle?
IF SPXMove? OR SPYMove?
SeqC Rapid IncValue StrtPosC EOL
IF FeedEntry?
SeqC AbsOrInc ZCP2PlusInc EOL
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqC AbsOrInc ZInPlusInc EOL
END
ELSE
IF FeedEntry?
SeqC Rapid ZCP2PlusInc EOL
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqC Rapid ZInPlusInc EOL
END
END
ELSE
IF FeedEntry?
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqC Rapid ZInPlusInc EOL
END
END
END
IF FirstCycle?
SetStatusOff {protect Z position for incremental sub}
END
SeqC SubCall CallLab EOL
NextCycle
SetStatusOn
AutoCycCutSub1 {build element sub}
AutoCycCutSub2
IF FeedConnect? {there is no Z up in the sub}
IF FIFO?
SeqC Feed ZCP2 FeedEnt EOL
ELSE
SeqC Rapid ZCP2 EOL
END
END
SeqC EndSub EOL
CloseSub
{Element shift, not pattern}
RETURN
ZonlyRep:
EachCycle
IF NOT FirstCycle?
SeqC Connect StrtPos EOL {added Connect}
END
IF FeedConnect?
SeqC FeedC ZInPlusInc FeedEnt EOL {changed to FeedC}
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqC RapidC ZCP2PlusIncC EOL {can't call for cycle =1} {added Rapid, reads better} {.71.2, changed to RapidC, reads better}
END
SeqC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqC RapidC ZInPlusInc EOL {added Rapid, reads better} {changed to RapidC, reads better}
END
END
SeqC SubCall CallLab EOL
NextCycle
StartSub
TrackZNO# FIRST SPZ#
ToolPath
FinishSub1
SeqC EndSub EOL
CloseSub
RETURN
CheckPass:
IF AutoCycle? {use the correct StrtPos}
SetPass2
ELSE
SetPass1
END
RETURN
StartUpStuff:
SeqC Rapid Plane DrillOff CRCOff EOL
IF WFOCS?
IF MultipleParts?
EachPart
END
IF MultipleParts?
NextPart
END
END
SeqC 'G28B0' EOL
SeqC 'G54.1P1' EOL
RETURN
GetCoolOn:
IF NOT CoolOff?
IF ThruSpin?
'M58'
SetFlag('6') { For SameTool }
ELSE
CoolOn
SetFlagF('6') { For SameTool }
END
END
RETURN
{
GetOfstOff:
IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
Rapid ZCP1 {OfstOff}
ELSE
'G30Z0.' {OfstOff}
END
RETURN
}
ProgStart:
InitProg
ReverseXZArcs
InitWFONum
SetFlood
UseSeparateSubCalls
SetMaxSeparateSubCalls('50')
SetMaxRPM('10000')
SetMaxFeed('500')
SetFlagF('1') { Milling ZShiftOnly SepSubs }
SetFlagF('2') { use WFO for CS changes }
SetFlag('3') {True = incrementing WFO numbers for MP. False = decrementing WFO numebrs for MP}
SetFlag('4') {True = toggle between incrementing/decrementing WFO's }
SetFlagF('5') { CRCOffsetC }
SetFlagF('6') { SameTool GetCoolOn }
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
' SetFlood, SF' EOL
' This is a modal command affecting all operations.' EOL
' Outputs flood coolant, M8, for all following operations.' EOL
' This is the default setting.' EOL
' FloodCoolant, FCool' EOL
' This is a non-modal command affecting the current operation only.' EOL
' Outputs flood coolant, M8, for the current operation.' EOL
' SetThruSpindle, STS' EOL
' This is a modal command affecting all operations.' EOL
' Outputs thru-the-spindle coolant, M58, for all following operations.' EOL
' ThruSpindleCoolant, TSCool' EOL
' This is a non-modal command affecting the current operation only.' EOL
' Outputs thru-the-spindle coolant, M58, for the current operation.' EOL
' OptionalCycle1, OptCyc1' EOL
' This command, combined with now-obsolete 4thAxisCW(n) command will cause Post' EOL
' to output a non-Canned LongHand Web Drilling Cycle.' EOL
' 4thAxisCW(-1.25), 4ACW(-1.25) -' EOL
' This command, combined with OptionalCycle1 command will cause the Post Processor to' EOL
' output a non-Canned LongHand Web Drilling Cycle. Argument should contain ZRapidStart' EOL
' value. For this example, ZRapidStart value is equal to Z-1.25. In addition to this,' EOL
' Post Processor uses the the ZSurface Edit Field for ZRapidEnd position.' EOL
END
IF MultipleParts?
IF WorkFixtureOffsets?
IF LTEqual? MUL# Parts# NumOfCS# Num#('48')
SetWFOCS { use WFO for CS changes }
ELSE
SetFlag('2')
IF UseComments?
'( Not enough Work Fixture Offsets to handle this part. )' EOL
'( Number of parts [ ' Parts# ' ] times CSs [ ' NumOfCS# ' ] )' EOL
'( exceeds the machine limit. Switching to G52 style output. )' EOL
END
END
END
ELSE
IF LTEqual? NumOfCS# Num#('48') {****}
SetWFOCS { use WFO for CS changes }
ELSE
IF UseComments?
'( Not enough Work Fixture Offsets to handle this part. )' EOL
'( Number of CSs [ ' NumOfCS# ' ] exceeds the machine limit. )' EOL
'( Switching to G52 style output. )' EOL
END
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:
RapidF# { No Output }
IF Milling?
SeqC ZCP2C 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?
SeqC ZCP3C EOL
ELSE
IF FIFO?
SeqC FeedC CRCOffC ZCP3C FeedEntC EOL
ELSE
SeqC RapidC CRCOffC ZCP3C EOL
END
END
ELSE
IF Drilling?
IF Repeats?
NewProg
StdSub
SeqC AbsOrInc Rapid StrtPos EOL
END
SeqC DrillCP EOL
GetCycle
IF FIFO? AND OptCyc1? AND FourthCW? { Web Drill Cycle }
EachFeat
IF NOT FirstFeat?
SeqC RapidC MoveSXYC EOL
SeqC RapidC ZCP2C EOL
END
SeqC FeedC 'Z' FourthDegree# FeedEnt EOL
SeqC RapidC 'Z' CalcZSurf# EOL
SeqC FeedC ZDepth FeedEnt EOL
SeqC SpinOff EOL
SeqC 'M19' EOL
SeqC IncValue Feed 'Y-.005' EOL
SeqC AbsOrInc EOL
IF RetractToCP1?
SeqC RapidC ZCP1 EOL
ELSE
SeqC RapidC ZCP2 EOL
END
SeqC SpinOn EOL
NextFeat
ELSE
IF Tap? AND NOT CWSpindle?
'G74'
ELSE
IF FIFO? AND NOT Dwell?
'G76'
ELSE
Cycle
END
END
SeqC FromCP StrtPos ZDepth RLevel Dwell Peck Retract
IF FIFO? AND NOT Dwell?
'J-.005' { Shift away from wall }
END
IF Tap?
'E' DIV# Num#('1') FeedTapIPR#('1') { # of Threads per Inch }
ELSE
FeedEnt
END
EOL
IF CallMasterOp?
SeqC SubCall 'L' CallMasterNum# EOL
SkipToLastFeat
ELSE
TrackZNO# FIRST SPZ#
IF MasterOp?
SetFlag('1') {std sep sub Zreps in effect}
NewMasterProg
SeqC SubCall CallLab EOL
StartSub
ToolPath
SeqC EndSub EOL
CloseSub
SetFlagF('1') {not std sep sub Zreps in effect}
ELSE
ToolPath
END
END
SetDrillEndOpZ
SeqC Rapid 'G80' ZCP3 EOL
IF Repeats?
FinishSubG92
END
END
END
END
RETURN
NotSameToolWFO:
IF WFOCS?
DoCSWFOComment
SeqC CSWFO EOL
ELSE
IF ChangeCS?
DoCSG52Comment
SeqC 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
ELSE
IF NeedWFO1?
SeqC 'G54.1P' NewWFO# EOL
END
END
END
ClearCSOffset
RETURN
SameToolWFO:
IF WFOCS?
IF ChangeCS?
DoCSWFOComment
SeqC CSWFO EOL
END
ELSE
IF ChangeCS?
DoCSG52Comment
SeqC 'G52X' CSOffsetX# 'Y' CSOffsetY# 'Z' CSOffsetZ# EOL
END
END
ClearCSOffset
RETURN
InitOp:
EOR EOL
ProgID1
IF UseComments? AND ProgramNameComment?
'( PROGRAM: ' ProgramName$ ' )'
END
EOL
IF ToolChangeAtHome?
SetHome
END
IF UseComments?
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
StartUpStuff
RETURN
FirstOp1:
SeqC OpToolID EOL
SeqC 'G30X0.Y0.Z0.' EOL
IF AChange? OR BChange?
SeqC Rapid CSAngleAC CSAngleBC EOL
END
SeqC ToolChng EOL
SeqC ProgStop EOL
Seq ' ' EOL
DoOpComments
DoPostScript
RETURN
FirstOp2:
{ Speed SpinOn moved to FirstOp3 and FirstOp3a }
RETURN
FirstOp3:
CheckPass
SeqC Rapid AbsOrInc StrtPos Speed SpinOn EOL
SeqC OfstOn PreTool GetCoolOn EOL
RETURN
FirstOp3a: {can't XY position before WFO}
CheckPass
SeqC Speed SpinOn EOL
SeqC OfstOn PreTool GetCoolOn EOL
RETURN
NewToolOp1:
SeqC CoolOff EOL
{ SeqC SpinOff EOL}
{ SeqC GetOfstOff EOL}
RETURN
NewToolOp2:
DoEndOpPS
SeqC 'G30X0.Y0.Z0.' SpinOff EOL
IF AChange? OR BChange?
SeqC Rapid CSAngleAC CSAngleBC EOL
END
SeqC ToolChng EOL
IF LAST ProgStop?
SeqC 'M0' EOL
ELSE
SeqC ProgStop EOL
END
RETURN
NewToolOp3: {Start new Operation}
Seq ' ' EOL
SeqC PlaneC EOL
DoOpComments
DoPostScript
RETURN
NewToolOp4:
{ Speed SpinOn moved to NewToolOp5 and NewToolOp5a }
RETURN
NewToolOp5:
CheckPass
SeqC Rapid AbsOrInc StrtPos Speed SpinOn EOL
SeqC OfstOn PreTool GetCoolOn EOL
RETURN
NewToolOp5a:
CheckPass
SeqC Speed SpinOn EOL
SeqC OfstOn PreTool GetCoolOn EOL
RETURN
SameToolOp1:
DoEndOpPS
IF LAST ProgStop?
SeqC CoolOff EOL
SeqC 'G30X0.Y0.Z0.' SpinOff EOL
IF AChange? OR BChange?
SeqC Rapid CSAngleAC CSAngleBC EOL
END
SeqC 'M0' EOL
ELSE
IF NewToolOffset? OR ChangeCS?
SeqC CoolOff EOL
SeqC SpinOff EOL
SeqC 'G30X0.Y0.Z0.' SpinOff EOL
IF AChange? OR BChange?
SeqC Rapid CSAngleAC CSAngleBC EOL
END
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
END
END
RETURN
SameToolOp2: {Start new Operation}
DoOpComments
DoPostScript
CheckPass
RETURN
SameToolOp3: {Start new Operation}
IF LAST ProgStop?
SeqC PlaneC AbsOrInc Rapid StrtPos Speed SpinOn GetCoolOn EOL
SeqC OfstOn EOL
ELSE
SeqC PlaneC AbsOrInc Rapid StrtPos
IF ChangeCS?
Speed SpinOn GetCoolOn
ELSE
IF Drilling?
GetCycle
IF NOT Tap?
SpeedC
END
END
IF NOT CoolOff? AND LAST CoolOff?
GetCoolOn
ELSE
IF ThruSpin? AND NOT Flag?('6')
GetCoolOn
ELSE
IF NOT ThruSpin? AND Flag?('6')
GetCoolOn
END
END
END
END
EOL
IF NewToolOffset? OR ChangeCS?
SeqC OfstOn EOL
END
END
RETURN
End1:
SeqC CoolOff EOL
SeqC 'G30X0.Y0.Z0.' SpinOff EOL
RETURN
End2:
DoEndOpPS
IF AAxisAvail?
SeqC 'G28' CSAngleA EOL
END
IF BAxisAvail?
SeqC 'G28' CSAngleB EOL
END
SeqC 'M60' EOL { Change Pallets }
IF ProgStop?
SeqC 'M0' EOL
END
RETURN
End3:
SeqC EOP EOL
CloseSub
Post2 {organize Subs into one program}
EOR EOL
Close
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
RETURN
MPallTools1P: {Multiple Parts, All Tools 1 Part}
InitOp
EachOp {Start of post processing}
IF FirstOperation?
IF ToolChangeAtHome?
SetHome
END
OpenMP
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
FirstOp1
FirstOp2
FirstOp3
ELSE
IF NewTool?
NewToolOp1
NewToolOp2 {to tool change, CS problem}
SubCSMP
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
NewToolOp4
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
SameToolOp2
SameToolOp3
END
END
OpGuts
NextOp
End1
End2
CloseMP
End3
RETURN
MP1ToollAllPfu: {Multiple Parts, 1 Tool all Parts, full up}
InitOp
EachOp
IF FirstOperation?
IF ToolChangeAtHome?
SetHome
END
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
FirstOp1
FirstOp2
OpenMP
FirstOp3
ELSE
IF NewTool?
NewToolOp1
CloseMP
NewToolOp2 {to tool change, CS problem}
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
NewToolOp4
OpenMP
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
SameToolOp2
SameToolOp3
END
END
OpGuts
NextOp
End1
CloseMP
End2
End3
RETURN
MP1ToollAllPXcp: {Multiple Parts, 1 Tool all Parts, exit Clearance plane}
InitOp
EachOp
IF FirstOperation?
IF ToolChangeAtHome?
SetHome
END
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
FirstOp1
FirstOp2
OpenMP
FirstOp3
ELSE
IF NewTool?
NewToolOp1
CloseMP
NewToolOp2 {to tool change, CS problem}
NewToolOp3
IF NOT WorkFixtureOffsets?
SeqC 'G54.1P1' EOL { WFO1 }
END
NewToolOp4
OpenMP
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SubCSMP
SameToolOp2
SameToolOp3
END
END
OpGuts
NextOp
End1
CloseMP
End2
End3
RETURN
NoMPs: {no multiple parts}
InitOp
EachOp
IF FirstOperation?
IF ToolChangeAtHome?
SetHome
END
FirstOp1
NotSameToolWFO
FirstOp2
FirstOp3
ELSE
IF NewTool?
NewToolOp1
NewToolOp2
NewToolOp3
NotSameToolWFO
NewToolOp4
NewToolOp5
ELSE {implied SameTool?}
SameToolOp1
SameToolOp2
SameToolWFO
SameToolOp3
END
END
OpGuts
NextOp
End1
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:
Meldas 500M 0KK B970 16 1Meldas 500 Mit [EE] CU06 12 1Meldas 500 Mit [SMP] CX73 12 1Etiuda Nr 12 c moll Op 10 (Rewolucyjna) Allegro Fr Chopin248 12Biuletyn 01 12 201412 control statementsRzym 5 w 12,14 CZY WIERZYSZ EWOLUCJI12 2krlwięcej podobnych podstron