{Change Comments ***********************************************************}
{1/10/90
Copied & modified: Allen Bradley Hard L019.53
For: Bio-Rad
Machine: Sheldon 1710
Control: Allen Bradley
Front turret consists of tools 1-4 and 9-12.
Front turret situation will have ReverseXZArcs, PosSideLathe, SpinFor and Positive Home.
Rear turret consists of tools 5-8.
Rear turret situation will have StandardXZArcs, NegSideLathe, SpinRev and Negative Home.
NOTE: We need a command to output current 'X' position for use with 'G96' CSSOn.
Control requires block to be 'G96R' CurrXPos# when activating CSS.
DWB}
{2/23/90
Modified: AB Sheldon [-] L141.53
For: Gibbs & Associates
Reversed G02 and G03 in Mach Spec per Joe C.
Updated to Version 3.2 per Fanuc 10T MS [-] L001.69.3 Format.
JR}
{6/1/90
Modified: AB Sheldon [-] L141.69.3
For: Gibbs & Associates
Added CycleStartXRadius# per NOTE of 1/10/90.
DWB}
{6/11/91
Modified: AB Sheldon [-] L141.70
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 10T MS [-] L001.80 Format.
Changed CycleStartXRadius# to CycleStartX#.
Changed SpinFor and SpinRev to SpinOn as this is handled in 4.0.
Only Canned Cycles supported are Threading and Tapping.
DWB}
{01/14/92
Modified: AB Sheldon [-] L141.80
For: Gibbs & Associates
Updated to Version 4.1 per Fanuc 10T MS [-] L001.82.1 Format.
Kim Michelman}
{9/7/95, Updated AB Sheldon [-] L141.82.1 to .85 format per Fanuc 10T MS [-] L001.85.01.01, JR}
{4/18/97
Initial: AB Sheldon [-] L141.85
Created: AB 8400 Monarch L000.85
ForUser: Braden Engineering / Los Alamos National Labs
Control: Allen Bradley 8400 LP Firmware version A2002
Machine: Monarch
Develop: ComPost2 68K 1.0b11, CatalystPPC v3.33C
Comment: New processor per marked up readout from Steve Rivera
One G code per line.
Single turret.
Added RapidF# to force output of FeedRateC after every Rapid commad.
Absolute arc centers.
Jim Radcliffe}
{Prog Numeric Format Definitions *******************************************}
#1 = '#.00'
#2 = '###.####;0'
#3 = '#######0'
#4 = '###.##;0'
#5 = '##.#####;0'
#6 = '###0'
#7 = '00'
#8 = '#'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ADD#,2)
FORMAT(CycleStartX#,2)
FORMAT(CycleStartZ#,2)
FORMAT(FinishXRadius#,2)
FORMAT(FinishZ#,2)
FORMAT(Program#,3) {.72}
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(Dwell#,4) {.72}
FORMAT(FeedIPR#,5)
FORMAT(CalcEPRPM#,6)
FORMAT(ToolOffset#,7)
FORMAT(RapidF#,8)
{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
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
RETURN
Approach: { NOT FOR TAILSTOCK, .82 }
Rapid RapidF# { RapidF# Forces FeedRate }
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 'M0' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
END
DoOpComments
DoPostScript
IF NewToolOffset?
SeqC OpToolID ToolOffset# EOL
END
IF ConstantSurfaceFeed?
IF LAST ConstantSurfaceFeed?
IF NotEqual? MaxRPM# LAST MaxRPM#
SeqC Preset MaxRPM EOL
END
IF NotEqual? SpeedRPM# LAST SpeedRPM#
SeqC Speed EOL
END
ELSE
SeqC Preset MaxRPM EOL
SeqC CSSOn 'G96' Speed EOL
END
ELSE
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' Speed EOL
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
SeqC Speed EOL
END
END
END
IF LAST ProgStop?
SeqC SpinOn EOL
SeqC CoolOn EOL
ELSE
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EOL
END
END
RETURN
FormatArc:
IF ArcCW?
CWArc
ELSE
CCWArc
END
MoveXC MoveZC ArcIJC
RETURN
CkCRC: { 4.2 }
IF XMove? OR ZMove? { Approach Length Feature and Multiple Pockets }
IF NOT LastFeat?
CRCOnC
END
END
IF LastFeat? AND EmptyLine? { Exit Length Feature }
CRCOffC
END
RETURN
ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqC SpinOff EOL
SeqC 'G94G4F2.' EOL
SeqC 'G95' Speed InverseSpinOn EOL
SeqC Feed MoveXC MoveZC FeedRate EOL
ELSE
IF Dwell?
SeqC 'G94G4F' Dwell# EOL
IF RapidFeat?
SeqC 'G95' Rapid MoveXC MoveZC EOL
ELSE
SeqC 'G95' Feed MoveXC MoveZC FeedRate EOL
END
END
END
END
END
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqC
IF LAST ThreadFeat?
Rapid
ELSE
RapidC
END
MoveXC MoveZC RapidF# EOL
ELSE
IF LineFeat?
SeqC CkCRC EOL
SeqC 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 FeedRateC EOL
END
END
END
END
END
NEXTFeat
RETURN
CheckRapid1:
SeqC CRCOffC EOL
IF LAST CannedCycle?
IF LAST Threading?
IF LAST NOT AutoFinish?
Rapid
END
ELSE
IF LAST Drilling? AND LAST Tap?
Rapid
END
END
ELSE
RapidC
END
RapidF#
RETURN
CheckRapid2:
SeqC CRCOffC EOL
IF CannedCycle?
IF Threading?
IF NOT AutoFinish?
Rapid
END
ELSE
IF Drilling? AND Tap?
Rapid
END
END
ELSE
RapidC
END
RapidF#
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
PosSideLathe
StandardXZArcs
XsAreRadii
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
'(TN,' Program# ')' EOL
IF UseComments?
IF ProgramNameComment?
'( ' 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
Plane
DoOpComments
DoPostScript
Seq 'G21' EOL { radius programming }
SeqC OpToolID ToolOffset# EOL
SeqC 'G70' EOL { inch }
SeqC 'G95' EOL { IPR }
SeqC Preset Home EOL
SeqC CoolOn EOL
IF ConstantSurfaceFeed?
SeqC Preset MaxRPM EOL
SeqC CSSOn 'G96' Speed EOL
ELSE
SeqC CSSOff 'G97' Speed EOL
END
SeqC AbsOrInc EOL
SeqC SpinOn EOL
Approach
ELSE
IF NewTool?
{Finish off last Operation}
StockOff {.62}
CheckRapid1
IF LAST ApproachOD?
SeqC LAST OpExitXCPC EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
END
SeqC LAST OpExitZCPC EOL
DoEndOpPS
SeqC NewHome EOL
SeqC Preset 'X0Z0T0000'
IF LAST ProgStop?
'M0'
ELSE
ProgStop
END
EOL
{Start new Operation}
DoOpComments
DoPostScript
Seq 'G21' EOL { radius programming }
SeqC OpToolID ToolOffset# EOL
SeqC 'G70' EOL { inch }
SeqC 'G95' EOL { IPR }
SeqC Preset Home EOL
SeqC CoolOn EOL
IF ConstantSurfaceFeed?
SeqC Preset MaxRPM EOL
SeqC CSSOn 'G96' Speed EOL
ELSE
SeqC CSSOff 'G97' Speed EOL
END
SeqC AbsOrInc EOL
SeqC SpinOn EOL
Approach
ELSE
IF SameTool? {.62}
{Start new Operation}
StockOff
IF LAST StraightConnect?
CheckOffset
CheckRapid1
SeqC StockOnNoCan XSPC ZSPC EOL
ELSE
CheckRapid1
IF ApproachOD?
IF LAST ApproachOD?
SeqC LAST XOpECDC EOL
ELSE {around}
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
SeqC LAST OpExitZCPC EOL
SeqC LAST OpExitXCPC EOL
END
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC EOL
END
SeqC LAST OpExitZCPC EOL
SeqC XOpCDC EOL
END
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqC LAST ZOpECPC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC LAST OpExitXCPC EOL
ELSE {LAST ApproachID}
SeqC LAST XOpECDC EOL
END
SeqC LAST OpExitZCPC EOL
END
END
END
CheckOffset
ApproachSP
END
END
END
END {common point for all operations}
IF CannedCycle?
StockOff
IF Threading?
StockOn
SetPass1
ToolPath
IF AutoFinish?
IF Taper?
SeqC 'X' ADD# FinishXRadius# MUL# Taper# NumSc#('1') EOL
SeqC LCycle 'X' FinishXRadius# 'Z' FinishZ# FeedRateC EOL
ELSE
SeqC 'X' FinishXRadius# EOL
SeqC LCycle 'Z' FinishZ# FeedRateC EOL
END
SeqC Rapid 'X' CycleStartX# EOL
SeqC 'Z' CycleStartZ# EOL
END
ELSE
IF Drilling?
IF Tap?
SeqC LCycle ZDepth FeedRateC EOL
SeqC SpinOff EOL
SeqC 'G94G4F2.' EOL
SeqC 'G95' Speed InverseSpinOn EOL
SeqC LCycle ZSP FeedRate EOL
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish? { .82.1c }
StockOff
IF Turning?
IF ApproachFace?
SeqC RapidC ZOpECPC RapidF# EOL
ELSE
SeqC RapidC XOpECDC RapidF# EOL
END
ApproachSP
SeqC StockOff StrtPosC EOL
ToolPath
ELSE
IF Roughing? AND NOT RoughSimple?
SetPass2
SeqC RapidC XSPC ZSPC RapidF# EOL
SeqC StockOff StrtPosC EOL
ToolPath
SetPass1
ELSE
IF Threading?
SeqC 'X' ADD# FinishXRadius# MUL# Taper# NumSc#('1') EOL
SeqC 'G33'
IF Taper?
'X' FinishXRadius#
END
'Z' FinishZ# FeedRateC EOL
SeqC Rapid XSP RapidF# EOL
SeqC ZSP EOL
END
END
END
END
END
IF Drilling? AND Tap?
SeqC SpinOff EOL
SeqC 'G94G4F2.' EOL
SeqC 'G95' Speed SpinOn EOL
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
StockOff
CheckRapid2
IF ApproachOD?
SeqC OpExitXCPC EOL
ELSE
IF ApproachID?
SeqC XOpECDC EOL
END
END
SeqC OpExitZCPC EOL
DoEndOpPS
SeqC FirstHome EOL
SeqC Preset 'X0Z0T0000' EOP EOL
Post
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:
AB CNC 8400 LP L623 85AB 8400 Moore JG M422 80 4AB 7360 Hardinge L167 85AB 8400 [AQL] M609 89 2AB 8600 J&S Grinder L524 85AB 7365 [HP] L413 85W&S 2SC AB 7360 [BD4] L705 85 3AB 7360 [SH] L609 85AB 7300 J&L 4515B L625 85 1AB 8400 Rev F [Gin] M417 82 1AB 8400 Cincinnati M292 87W&S 2SC AB 7360 [SN] L829 85AB 8400 Rev E M581 87W & S 1SC AB 7360 KOL L460 85 1AB 8600 W&S 2SCL L627 85AB Series 9 240 L218 85AB 8400 Rev F [CAS] M876 89 2W & S 2SC AB 7360 JD L380 85 1mW & S 2SC AB 7360 JD L380 85 1mwięcej podobnych podstron