{Change Comments ***********************************************************}
{6/19/89
Copied & modified: GE 1050 LeBlonde Rgl L033.55
For: Schober's
Machine: LeBlond Universal 12/12 Mark II
Control: GE 1050T P.C.I. Mark Century
JR}
{10/25/89, Updated: GE 1050T LeBlonde L105.59, JR}
{4/6/90, Updated: GE 1050T LeBlonde L105.60, to .69.3 format, JR}
{7/24/90, Added InitProg globally to posts with this remark, DWB}
{9/24/91, Updated GE 1050T LeBlonde L105.70 to .80 format, JR}
{12/12/91
Modified: GE 1050T LeBlonde L105.80
For: Gibbs & Associates
Updated to Version 4.1 per Fanuc 10T MS [-] L001.82 Format.
Rapid is not used, Feed outputs 'G21', CWArc outputs 'G23' and CCWArc outputs 'G22'.
No Canned Cycles supported.
DWB}
{5/8/97
Updated: GE 1050T LeBlonde L105.82
Created: GE 1050T LeBlonde L105.85
For: Gibbs & Associates/General Tool
Versions: Catalyst v3.33C/ComPost2 MSL 68K
Updated for Catalyst v3.25C per Fanuc 10T MS [-] L001.85.02b Format.
DWB}
{12/19/97
Updated: GE 1050T LeBlonde L105.85
Created: GE 1050T LeBlonde L105.85.1
For: Gibbs & Associates/General Tool/General Hone Corporation
Versions: Catalyst v4.21.30(mac)/ComPost2 1.1b3
Updated for Catalyst v3.35C per Fanuc 10T MS [-] L001.85.02e Format.
DWB}
{Prog Numeric Format Definitions *******************************************}
#1 = '#.00'
#2 = '###.####;0.'
#3 = '#######0'
#4 = '###^###0'
#5 = '#.######;0.'
#6 = '0000'
#7 = '0'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(Program#,3) {.72}
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(MUL#,4) { Non-Canned Threading AutoFinish }
FORMAT(ToolOffsetXRadius#,4)
FORMAT(CycleStartX#,4)
FORMAT(Dwell#,4) {.72}
FORMAT(CalcEPRPM#,6)
FORMAT(RapidF#,7)
{Prog Subroutines **********************************************************}
RestoreScale:
IF Metric? {CAM file is in Metric, tools and tool path}
SetScale('.03937007874') { change to English, this is an English post}
END
RETURN
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# ': ' ToolSize$ ' ' ToolType$ ' )' EOL
END
IF ToolComment?
'( ' ToolComment$ ' )' EOL
END
RestoreScale
END
RETURN
PSInit: {reset flags from last Op, .70}
RETURN
PSStuff:
RETURN
DoPostScript:
PSInit
EachPS
SeqC PostScript EOL {literals}
PSStuff {commands}
NextPS
RETURN
DoEndOpPS:
PSInit
EachEOPS
SeqC EndOpPS EOL {literals}
PSStuff {commands}
NextPS
RETURN
CkCoolOn:
IF NOT CoolOff?
IF ToolOver?('20')
'M07'
ELSE
CoolOn
END
END
RETURN
GetCSSR:
'R'
IF FirstOperation? OR NewTool?
ToolOffsetXRadius#
ELSE
CycleStartX#
END
MaxRPM
RETURN
GetCSS:
SeqC CSSOn 'G96' Speed EOL
RETURN
CkSpinOn:
IF ToolOver?('20')
InverseSpinOn
ELSE
SpinOn
END
RETURN
CkInverseSpinOn:
IF ToolOver?('20')
SpinOn
ELSE
InverseSpinOn
END
RETURN
StockOnNoCan:
IF NOT CannedCycle?
StockOn {need stock for SP positioning, if not a canned cycle}
END
RETURN
FeedNoCan:
IF NOT CannedCycle?
FeedC
END
RETURN
FeedRateNoCan:
IF NOT CannedCycle?
FeedRateC
END
RETURN
ApproachSP:
IF ApproachFace?
SeqC StockOnNoCan XSPC EOL
SeqC StockOff ZOpCPC EOL
StockOnNoCan
IF NotEqual? CycleStartZ# ZOpCP#
SeqC FeedNoCan ZSPC FeedRateNoCan EOL
END
ELSE { ODApproach/IDApproach }
SeqC StockOnNoCan ZSPC EOL
SeqC StockOff XOpCDC EOL
StockOnNoCan
IF NotEqual? CycleStartX# XOpCD#
SeqC FeedNoCan XSPC FeedRateNoCan EOL
END
END
RETURN
AppMove:
StockOff ThisOpEntryZCP OpToolID LatheOffset CkCoolOn RapidF
RETURN
Approach: { NOT FOR TAILSTOCK, .82 }
Feed
IF ApproachOD?
SeqC ThisOpEntryXCP AppMove EOL
ELSE
IF ApproachID?
SeqC XOpCD AppMove EOL
ELSE {ApproachFace}
SeqC StockOnNoCan XSP AppMove EOL
END
END
ApproachSP
RETURN
CheckOffset:
DoEndOpPS
IF LAST ProgStop?
SeqC 'M00' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
END
IF NewToolOffset?
IF NewGear?
SeqC LOfstOff '00' SpinOff EOL
SeqC OpToolID LatheOffset GearRange EOL
ELSE
SeqC LOfstOff '00' EOL
SeqC OpToolID LatheOffset EOL
END
ELSE
IF NewGear?
SeqC SpinOff EOL
SeqC GearRange EOL
END
END
CSSOff
IF ConstantSurfaceFeed?
IF LAST ConstantSurfaceFeed?
IF LAST ProgStop? OR NewGear?
CalcRPM1
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
CalcRPM1
END
END
ELSE
CalcRPM1
END
ELSE
IF LAST ConstantSurfaceFeed?
'G97' Speed
ELSE
IF LAST ProgStop? OR NewGear?
'G97' Speed
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
'G97' Speed
END
END
END
END
IF LAST ProgStop?
SeqC {SpeedC} CkSpinOn EOL
SeqC CkCoolOn EOL
ELSE
SeqC {SpeedC}
IF NewGear?
CkSpinOn
END
EOL
IF NOT CoolOff? AND LAST CoolOff?
SeqC CkCoolOn EOL
END
END
DoPostScript
RETURN
FormatArc:
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXC MoveZC ArcIJC
RETURN
CkCRC: { 4.2 }
IF XMove? OR ZMove? { Approach Length Feature and Multiple Pockets }
IF LastFeat?
CRCOffC { Exit Length Feature }
ELSE
CRCOnC { Entry Length Feature }
END
END
RETURN
GetRapidFC:
IF NOT EmptyLine?
RapidFC
END
RETURN
ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqC SpinOff EOL
SeqC 'G04X20000' EOL
SeqC Speed CkInverseSpinOn EOL
ELSE
IF Dwell?
SeqC 'G04X' Dwell# EOL
END
END
END
END
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
IF NOT FirstFeat? AND LAST ThreadFeat?
SeqC Feed MoveXC MoveZC RapidF EOL
SetFlagF('1') { Do not force Feed and RapidF at CheckRapid and CheckRapidF }
ELSE
SeqC FeedC MoveXC MoveZC GetRapidFC EOL
END
ELSE
IF LineFeat?
SeqC CkCRC FeedC MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
EACHQuadrant { Do not use NOT, LAST, FIRST or NEXT modifiers in this loop }
SeqC FormatArc FeedRateC EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqC 'G33' MoveXC MoveZC ThrdLead EOL
SetFlag('1') { Force Feed and RapidF at CheckRapid and CheckRapidF }
END
END
END
END
END
NEXTFeat
RETURN
CheckRapid:
CRCOffC
IF Flag?('1') { LAST Threading }
Feed
ELSE
FeedC
END
RETURN
CheckRapidF:
IF Flag?('1') { LAST Threading }
SetFlagF('1')
RapidF
ELSE
GetRapidFC
END
RETURN
GetTurret:
IF GreaterThan? Tool# Num#('20')
NegSideLathe
ELSE
PosSideLathe
END
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
ReverseXZArcs
XsAreRadii
NoIJKSigns
SetMaxRPM('2500')
SetFlagF('1') { Force Feed and RapidF at CheckRapid and CheckRapidF for Threading }
IF Metric?
SetMaxFeed('12700')
ELSE
SetMaxFeed('500')
END
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: must be all capital letters when typed in.' 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
END
EachOp {Start of post processing *********************}
GetLCycle
IF FirstOperation?
'S' ASCII ('18') EOL
EOR EOL
IF UseComments?
IF ProgramNameComment?
'( PROGRAM: ' ProgramName$ ' )' EOL
END
IF ProgramComment?
'( ' ProgramComment$ ' )' EOL
END
IF FormatNameComment?
'( FORMAT: ' FormatName$ ' )' EOL
END
IF TimeComment?
'( ' Date$ ' AT ' Time$ ' )' EOL
END
IF MovesComment?
'( OUTPUT IN ' MoveType$ ' INCHES )' EOL
END
END
RestoreScale
OpenSub
StockOff {.71.2}
SetHome
GetTurret
DoOpComments
DoPostScript
Plane
Seq AbsOrInc EOL
SeqC 'G70' EOL { Inch Data Input }
IF Threading?
'G94' { Inches Per Minute }
ELSE
'G95' { Inches Per Revolution }
END
SeqC GearRange EOL
SeqC Preset Home
IF ConstantSurfaceFeed?
GetCSSR
END
EOL
SeqC CSSOff 'G97'
IF ConstantSurfaceFeed?
CalcRPM1
ELSE
Speed
END
CkSpinOn EOL
SeqC 'G04X20000' OpToolID '00' EOL
Approach
ELSE
IF NewTool?
{Finish off last Operation}
StockOff {.62}
CheckRapid
IF LAST ApproachOD?
SeqC LAST OpExitXCPC CheckRapidF EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF EOL
END
END
SeqC LAST OpExitZCPC CheckRapidF EOL
DoEndOpPS
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' CalcRPM2 EOL
END
SeqC NewHome EOL
SeqC LOfstOff '00'
IF NewGear?
SpinOff
END
EOL
IF LAST ProgStop?
SeqC 'M00' EOL
ELSE
SeqC ProgStop EOL
END
{Start new Operation}
GetTurret
DoOpComments
DoPostScript
Seq AbsOrInc EOL
SeqC 'G70' EOL { Inch Data Input }
IF Threading?
'G94' { Inches Per Minute }
ELSE
'G95' { Inches Per Revolution }
END
SeqC GearRange EOL
SeqC Preset Home
IF ConstantSurfaceFeed?
GetCSSR
END
EOL
SeqC CSSOff 'G97'
IF ConstantSurfaceFeed?
CalcRPM1
ELSE
Speed
END
CkSpinOn EOL
SeqC 'G04X20000' OpToolID '00' EOL
Approach
ELSE
IF SameTool? {.62}
{Start new Operation}
StockOff
DoOpComments
IF LAST StraightConnect?
CheckOffset
CheckRapid
SeqC StockOnNoCan XSPC ZSPC CheckRapidF EOL
ELSE
CheckRapid
IF ApproachOD?
IF LAST ApproachOD?
SeqC LAST XOpECDC CheckRapidF EOL
ELSE {around}
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF EOL
END
SeqC LAST OpExitZCPC CheckRapidF EOL
SeqC LAST OpExitXCPC CheckRapidF EOL
END
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC CheckRapidF EOL
END
SeqC LAST OpExitZCPC CheckRapidF EOL
SeqC XOpCDC CheckRapidF EOL
END
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqC LAST ZOpECPC CheckRapidF EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC CheckRapidF EOL
ELSE {LAST ApproachID}
SeqC LAST XOpECDC CheckRapidF EOL
END
SeqC LAST OpExitZCPC CheckRapidF EOL
END
END
END
CheckOffset
ApproachSP
END
END
END
END {common point for all operations}
IF ConstantSurfaceFeed?
IF SameTool?
IF LAST ConstantSurfaceFeed?
IF NotEqual? MaxRPM# LAST MaxRPM#
SeqC Preset GetCSSR EOL
END
IF LAST ProgStop?
GetCSS
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
GetCSS
END
END
ELSE
SeqC Preset GetCSSR EOL
GetCSS
END
ELSE
GetCSS
END
END
StockOn
SetPass1
ToolPath
IF AutoFinish? { .82.1c }
StockOff
IF Turning?
IF ApproachFace?
SeqC FeedC ZOpECPC GetRapidFC EOL
ELSE
SeqC FeedC XOpECDC GetRapidFC EOL
END
ApproachSP
SeqC FeedC StockOff StrtPosC GetRapidFC EOL
ToolPath
ELSE
IF Roughing? AND NOT RoughSimple?
SetPass2
SeqC FeedC XSPC ZSPC GetRapidFC EOL
SeqC FeedC StockOff StrtPosC GetRapidFC EOL
ToolPath
SetPass1
ELSE
IF Threading?
SeqC 'X' MUL# Num#('1') ADD# FinishXRadius# Taper# EOL
SeqC 'G33'
IF Taper?
XatFinZ
END
FinZ ThrdLead EOL
SeqC Feed XSP RapidF EOL
SeqC ZSP EOL
SetFlagF('1') { Do not force Feed and RapidF at CheckRapid and CheckRapidF }
END
END
END
END
IF Drilling? AND Tap?
SeqC SpinOff EOL
SeqC 'G04X20000' EOL
SeqC Speed CkSpinOn EOL
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
StockOff
CheckRapid
IF ApproachOD?
SeqC OpExitXCPC CheckRapidF EOL
ELSE
IF ApproachID?
SeqC XOpECDC CheckRapidF EOL
END
END
SeqC OpExitZCPC CheckRapidF EOL
DoEndOpPS
SeqC CoolOff EOL
IF ConstantSurfaceFeed?
SeqC CSSOff 'G97S' CalcEPRPM# EOL
END
SeqC FirstHome EOL
SeqC OpToolID '00' EOL
IF ProgStop?
SeqC 'M00' EOL
END
SeqC EOP EOL
Post
EOR EOL
NullFoot ASCII('4') 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
Wyszukiwarka
Podobne podstrony:
GE 1050T LeBlonde [CM] L249 82GE 1050T W&S 1SC L587 85GE 1050 LeBlonde Rgl L033 85GE 1050T [GT] Baron L591 85GE 1050T LB Kngt [GH] L691 85 2GE 1050T LB Rgl [GH] L690 85 1GE 1050T W&S 242 [HP] L401 85GE 1050T W&S 242 VFR L284 85 1GE 550T LeBlonde L082 82W&S 2SC GE 2000 [BD4] L773 85 1GE 1050T (R&M) L151 82GE 550 LeBlonde [KSW] L219 82 8GE 1050T Monarch L074 82GE 550 L&S [FC] L407 85GE 550 LeBlonde L080 82GE 1050T Farrel L311 82 3GE 1050T Farrel L311 82 3GE 1050 LeBlonde [DEW] L250 82więcej podobnych podstron