{Change Comments ***********************************************************}
{9/30/90
Copied & modified: GE550 HNC L003.52
For: Geneva Steel
Machine: Lodge & Shippley
Control: General Electric Mark Century 550 TX Optimizer II.
WFG}
{10/2/90
Modified: GE 550 L&S L184.52
Added polarity to all current X and Z output in the prog and form.
Moved 'G94' at all SpeedGE commands to preceeding line.
Added 'G97' at all SpeedGE commands.
DWB}
{10/19/90
Modified: GE 550 L&S L184.52.1
Modified ThreadLead format to ^#####0 in the form.
Modified ArcIJC format to ##^###0 in the form.
Modified so that 'G94' and 'G95' are on a line by themselves.
DWB}
{10/24/90
Modified: GE 550 L&S L184.52.2
Added ReverseXZArcs - lathe is similar to Allen Bradley 7360 [ Sheldon ].
DWB}
{11/20/90
Modified: GE 550 L&S L184.52.3
Updated to Version 3.2 per Fanuc 10T MS [-] L001.71.4 Format.
Modified ArcIJC format to 0^#### in the form.
Modified ThreadLead format to 0^#### in the form.
Added GearRange.
NOTE: Will need GE commands for InverseSpinOn, CalcRPM1, CalcRPM2 and CalcEPRPM#.
DWB}
{7/15/91
Modified: GE 550 L&S L184.71.4
For: Geneva Steel
Updated to Version 4.0 per Fanuc 10T MS [-] L001.80 Format.
Made modifications per Dan Baxter at Geneva Steel.
Rapid outputs 'G94' to set control into ipm, Feed outputs 'G95' to set control
into ipr. 'G01' is only output on line before Approach sub call in FirstOperation and
NewTool, and to cancel 'G02/G03', Thread Cycle and Canned Drill Cycles.
Only Canned Cycles supported are Threading and Tapping.
Added Logic to output InverseSpinOn to SpinOnGE equivalents.
Following modifications made per Dan Baxter at Geneva Steel:
Added 'G97S0100' on line following OpToolID LatheOffset at FirstOperation and NewTool.
Moved CSSOn output to FirstOperation and NewTool.
Changed FeedRate to 'F005' in Approach sub.
Changed FORMAT for I & K Arc Center addresses from '0^####;0' to '0##^####;0' in Form.
DWB}
{9/25/91
Modified: GE 550 L&S L184.80
For: Gibbs & Associates
Updated to Version 4.1 per Fanuc 10T MS [-] L001.82 Format.
DWB}
{4/23/92
Modified: GE 550 L&S L184.82
For: Geneva Steel
Changes made per Dan Baxter.
Changed remaining SeqLabC to SeqC leftover from last UpDate.
Changed CWArcC/CCWArcC to CWArc/CCWArc for unconditionality.
Added literal Dwell 'G04X002' to OpToolID LatheOffset at FirstOperation and NewTool.
Moved SpinOnGE from the OpToolID LatheOffset line to G96 line.
Added Speed to G96 line.
KLM}
{5/26/92
Modified: GE 550 L&S L184.82.1
For: Geneva Steel
Changes made per Dan Baxter.
Moved CoolOn from SpinOnGE line.
Can't have two M-codes on the same line.
Deleted AbsOrInc from OpToolID LatheOffset at FirstOperation and NewTool.
KLM}
{10/15/92
Modified: GE 550 L&S L184.82.2
For: Geneva Steel
Changes made per Dan Baxter.
Moved literal Dwell 'G04X002' in front of OpToolID LatheOffset at FirstOperation.
NewTool already had this.
DWB}
{2/25/94
Modified: GE 550 L&S L184.82.3
For Geneva Steel per Dan Baxter
CSS operations were missing the SpinOnGE command, added it.
Deleted the M44 & M43 command usage. Using InverseSpinOn only.
Added 40 spaces in front of all comments to place in center of page.
Modified GearRange speed values, M11 = 0->500; M12 = 501->850; M13 = 851->1500
Changed SetMaxRPM from 1200 to 1500.
Changed literal approach feed from F005 to F019.
Misc update stuff.
Jim Radcliffe}
{12/5/95
Modified: GE 550 L&S L184.82.4
For Geneva Steel per Dan Baxter
Added M11 (chuck orient) before M20 at end of program.
Added M11 (chuck orient) and M20 before M00 at IF ProgStop?
Changed SpinOnGE to SpinOn (all occurances)
Modified GearRange speed values, M11 = 0->245; M12 = 246->570; M13 = 571->1190
Changed SetMaxRPM from 1500 to 1190.
Added CalcGearRange sub to calculate spindle range as follows:
If Constant Surface Feed -
If roughing - set to medium range (M12)
If turning - set to medium range (M12)
If grooving - set to high range (M13)
Else
use table as set in GearRange
End
Joe Cusimano}
{Prog Numeric Format Definitions *******************************************}
#1 = '#.00'
#2 = 'ą0##^####;0'
#3 = '########;0'
#4 = '#####^##0'
#5 = '^0'
#6 = '0^####;0'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ADD#,2)
FORMAT(HomeX#,2)
FORMAT(CycleStartX#,2)
FORMAT(FinishXRadius#,2)
FORMAT(Program#,3) {.72}
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(Dwell#,4) {.72}
FORMAT(RapidF#,5)
FORMAT(FeedIPR#,6)
{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
StockOnNoCan:
IF NOT CannedCycle?
StockOn {need stock for SP positioning, if not a canned cycle}
END
RETURN
ODApproachSP:
SeqC StockOnNoCan ZSPC EOL
SeqC StockOff XOpCDC EOL
SeqC Feed EOL
SeqC StockOnNoCan XSPC 'F019' EOL
RETURN
IDApproachSP:
SeqC StockOnNoCan ZSPC EOL
SeqC StockOff XOpCDC EOL { for SameTool ApproachID }
SeqC Feed EOL
SeqC StockOnNoCan XSPC 'F019' EOL
RETURN
FaceApproachSP:
SeqC StockOnNoCan XSPC EOL { for SameTool ApproachFace }
SeqC StockOff ZOpCPC EOL
SeqC Feed EOL
SeqC StockOnNoCan ZSPC 'F019' EOL
RETURN
Approach: { NOT FOR TAILSTOCK, .82 }
IF ApproachOD?
SeqC XCP ZCP EOL
ODApproachSP
ELSE
IF ApproachID?
SeqC XOpCD ZCP EOL
IDApproachSP
ELSE {ApproachFace}
SeqC StockOnNoCan XSP StockOff ZCP EOL
FaceApproachSP
END
END
RETURN
CalcGearRange:
IF ConstantSurfaceFeed?
IF Roughing?
'M12' { set to medium range (M12) }
END
IF Turning?
'M12' { set to medium range (M12) }
END
IF Grooving?
'M13' { set to high range (M13) }
END
ELSE
GearRange
END
RETURN
CheckOffset:
DoEndOpPS
IF LAST ProgStop?
SeqC 'M11' EOL
SeqC 'M20' EOL
SeqC 'M00' EOL
ELSE
IF NewGear?
SeqC SpinOff EOL
END
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
END
IF NewToolOffset?
SeqC LOfstOff '00' EOL
SeqC OpToolID LatheOffset EOL
END
IF NewGear?
SeqC CalcGearRange EOL
END
IF ConstantSurfaceFeed?
IF LAST ConstantSurfaceFeed?
IF NotEqual? MaxRPM# LAST MaxRPM#
SeqC 'G98' MaxRPM EOL
END
SeqC SpeedC
ELSE
SeqC 'G98' MaxRPM EOL
SeqC CSSOn 'G96' 'R' CycleStartX# Speed
END
ELSE
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' Speed
END
SeqC SpeedC
END
END
IF LAST ProgStop?
SpinOn EOL
SeqC CoolOn EOL
ELSE
IF NewGear?
SpinOn EOL
ELSE
EOL
END
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EOL
END
END
DoPostScript
RETURN
FormatArc:
IF ArcCW?
CWArc
ELSE
CCWArc
END
MoveXC MoveZC ArcIJC
RETURN
ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqC SpinOff EOL
SeqC 'G04X2000' EOL
SeqC Speed InverseSpinOn EOL
ELSE
IF Dwell?
SeqC 'G04X' Dwell# EOL
END
END
END
END
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
IF NOT Rapid?
SeqC RapidC EOL
IF NOT FirstFeat?
IF LAST ArcFeat? OR LAST ThreadFeat?
'G01'
ELSE
IF LastFeat? AND Drilling?
IF Dwell?
'G01'
END
END
END
END
SeqC MoveXC MoveZC RapidF EOL
ELSE
IF NOT FirstFeat?
IF LAST ArcFeat?
'G01'
ELSE
IF LastFeat? AND Drilling?
IF Dwell?
'G01'
END
END
END
END
SeqC MoveXC MoveZC RapidFC EOL
END
ELSE
IF LineFeat?
IF Rapid?
SeqC FeedC EOL
END
IF NOT FirstFeat?
IF LAST ArcFeat?
'G01'
ELSE
IF LastFeat? AND Drilling?
IF Tap? OR Dwell?
'G01'
END
END
END
END
SeqC MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
IF Rapid?
SeqC FeedC EOL
END
EACHQuadrant { Do not use NOT, LAST, FIRST or NEXT modifiers in this loop }
SeqC FormatArc FeedRateC EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqC FeedC EOL
SeqC 'G33' MoveXC MoveZC ThrdLead EOL
END
END
END
END
END
NEXTFeat
RETURN
CheckRapid1:
IF LAST NOT CannedCycle?
SeqC RapidC EOL
END
RETURN
CheckRapid2:
IF NOT CannedCycle?
SeqC RapidC EOL
END
RETURN
CheckRapidF1:
IF LAST NOT CannedCycle?
RapidFC
END
RETURN
CheckRapidF2:
IF NOT CannedCycle?
RapidFC
END
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
SetAbs
PosSideLathe
ReverseXZArcs
XsAreRadii
NoIJKSigns
SetMaxRPM('1190')
SetMaxFeed('500')
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?
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 ABSOLUTE INCHES )' EOL
END
END
RestoreScale
OpenSub
StockOff {.71.2}
SetHome
DoOpComments
DoPostScript
Plane
':' EOL
Seq AbsValue EOL
SeqC Preset Home CalcGearRange EOL
':' EOL
SeqC 'G04X002' OpToolID LatheOffset EOL
SeqC 'G97S0100' EOL
SeqC Rapid EOL
IF ConstantSurfaceFeed?
SeqC 'G98' MaxRPM EOL
SeqC CSSOn 'G96' 'R' HomeX# Speed SpinOn EOL
ELSE
SeqC CSSOff 'G97' Speed SpinOn EOL
END
SeqC CoolOn EOL
SeqC 'G01' Home RapidF EOL
Approach
ELSE
IF NewTool?
{Finish off last Operation}
StockOff {.62}
CheckRapid1
IF LAST ApproachOD?
SeqC XCPC CheckRapidF1 EOL
SeqC ZCPC EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF1 EOL
SeqC ZCPC EOL
ELSE {LAST ApproachFace}
SeqC ZCPC CheckRapidF1 EOL
END
END
DoEndOpPS
SeqC NewHome EOL
SeqC OfstOff
IF LAST ProgStop?
'M11' EOL
SeqC 'M20' EOL
SeqC 'M00'
ELSE
ProgStop
END
EOL
SeqC 'G01' NewHome EOL
{Start new Operation}
DoOpComments
DoPostScript
':' EOL
Seq AbsValue EOL
SeqC Preset Home CalcGearRange EOL
':' EOL
SeqC 'G04X002' OpToolID LatheOffset EOL
SeqC 'G97S0100' EOL
SeqC Rapid EOL
IF ConstantSurfaceFeed?
SeqC 'G98' MaxRPM EOL
SeqC CSSOn 'G96' 'R' HomeX# Speed SpinOn EOL
ELSE
SeqC CSSOff 'G97' Speed SpinOn EOL
END
SeqC CoolOn EOL
SeqC 'G01' Home RapidF EOL
Approach
ELSE
IF SameTool? {.62}
{Start new Operation}
DoOpComments
StockOff
IF LAST StraightConnect?
CheckOffset
CheckRapid1
SeqC StockOnNoCan XSPC ZSPC CheckRapidF1 EOL
ELSE
CheckRapid1
IF ApproachOD?
IF LAST ApproachOD?
SeqC LAST XOpECDC CheckRapidF1 EOL
ELSE {around}
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF1 EOL
SeqC ZCPC EOL
ELSE {LAST ApproachFace}
SeqC ZCPC CheckRapidF1 EOL
END
SeqC XCPC EOL
END
CheckOffset
ODApproachSP
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqC LAST XOpECDC CheckRapidF1 EOL
ELSE
IF LAST ApproachOD? {around}
SeqC XCPC CheckRapidF1 EOL
SeqC ZCPC EOL
ELSE {LAST ApproachFace}
SeqC ZCPC CheckRapidF1 EOL
END
SeqC XOpCDC EOL
END
CheckOffset
IDApproachSP
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqC LAST ZOpECPC CheckRapidF1 EOL
ELSE
IF LAST ApproachOD? {around}
SeqC XCPC CheckRapidF1 EOL
ELSE {LAST ApproachID}
SeqC LAST XOpECDC CheckRapidF1 EOL
END
SeqC ZCPC EOL
END
CheckOffset
FaceApproachSP
END
END
END
END
END
END {common point for all operations}
IF CannedCycle?
IF Threading?
StockOn
SetPass1
ToolPath
IF AutoFinish?
IF Taper?
SeqC
'X' ADD# FinishXRadius# MUL# Taper# NumSc#('1')
EOL
SeqC Feed EOL
SeqC LCycle 'X' FinishXRadius# FinZ ThrdLead EOL
ELSE
SeqC 'X' FinishXRadius# EOL
SeqC Feed EOL
SeqC LCycle FinZ ThrdLead EOL
END
SeqC Rapid EOL
SeqC 'G01' XCSP RapidF EOL
SeqC ZCSP EOL
END
ELSE
IF Drilling?
IF Tap?
SeqC LCycle ZDepth 'K' FeedIPR# EOL
SeqC SpinOff EOL
SeqC 'G04X2000' EOL
SeqC Speed InverseSpinOn EOL
SeqC 'G01' EOL
SeqC LCycle ZSP 'K' FeedIPR# EOL
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish?
IF NOT Drilling? AND NOT Grooving?
StockOff
IF Turning?
SetPass1
ELSE
SetPass2
END
SeqC RapidC EOL
SeqC StrtPos RapidFC EOL
ToolPath
END
END
END
IF Drilling? AND Tap?
SeqC SpinOff EOL
SeqC 'G04X2000' EOL
SeqC Speed SpinOn EOL
SeqC Rapid EOL
SeqC 'G01' ZCPC RapidF EOL
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
StockOff
CheckRapid2
IF ApproachOD?
SeqC XCPC CheckRapidF2 EOL
SeqC ZCPC EOL
ELSE
IF ApproachID?
SeqC XOpECDC CheckRapidF2 EOL
SeqC ZCPC EOL
ELSE {ApproachFace}
SeqC ZCPC CheckRapidF2 EOL
END
END
DoEndOpPS
SeqC CoolOff EOL
SeqC FirstHome SpinOff EOL
SeqC OfstOff EOL
SeqC UnTool '00' EOL
SeqC 'M11' EOL
SeqC 'M20' EOL
IF ProgStop?
SeqC 'M00' EOL
END
SeqC EOP EOL
Post
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
Wyszukiwarka
Podobne podstrony:
GE 550 L&S [GV] L293 82 3GE 550 LeBlonde [KSW] L219 82 8GE 550 LeBlonde L080 82GE 550 Okuma LS N L059 82 1GE 550 LeBlonde (CCD) L178 82GE 550 HNC [AMC] L246 82GE 550 LeBlond (HAC) L115 82GE 1050T (R&M) L151 82GE 550 DeVlieg 4K M908 89GE 550 M087 87GE 550 MC [SN] NMU25 87 1GE 550 L&S [FC] L407 85GE 1050 L&S L191 82GE 550 HNC L003 85GE 550 Monarch 75 L223 85 2GE 550 Wells Indexer M206 79GE 550 HNC [GT] L346 85 1GE 550 Cinc M909 89więcej podobnych podstron