Okuma OSP 2200 LC10 L058 82 1


{changed stock left in rough od to radius TF. per Caricof 1/5/88}
{7/24/90, Added InitProg globally to posts with this remark, DWB}
{9/17/91, Updated Okuma OSP 2200 LC10 L058.55 to .82 format, JR}

{9/18/91
Copied & modified: Okuma OSP 2200 LC10 L058.82
For: Caricof
On site modifications with Phil.
Modified Speed output.
Misc other minor changes.
Jim Radcliffe}

{Prog Numeric Format Definitions *******************************************}

#1 = '0.00'
#2 = '###^#0'
#3 = '###^###0'
#4 = '00'
#5 = '########;0'

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(Dwell#,2)
FORMAT(FirstMoveEPX#,3)
FORMAT(DiaDistanceToThread#,3)
FORMAT(ToolOffset#,4)
FORMAT(Program#,5) {.72}
FORMAT(Operation#,5) {.72}
FORMAT(Tool#,5) {.72}

{Prog Subroutines **********************************************************}

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
IF Metric? {CAM file is in metric, tools and tool path}
SetScale('.03937007874') { change to English, this is an English post}
END
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
END
RETURN

CheckFeed:
IF NOT Threading?
Feed
END
RETURN

CheckFeedRate:
IF NOT Threading?
FeedRate
END
RETURN


ODApproachSP:
SeqC StockOnNoCan ZSPC EOL
SeqC StockOff XOpCDC EOL
SeqC CheckFeed StockOnNoCan XSPC CheckFeedRate EOL
RETURN

IDApproachSP:
SeqC StockOnNoCan ZSPC EOL
SeqC StockOff XOpCDC EOL { for SameTool ApproachID }
SeqC CheckFeed StockOnNoCan XSPC CheckFeedRate EOL
RETURN

FaceApproachSP:
SeqC StockOnNoCan XSPC EOL { for SameTool ApproachFace }
SeqC StockOff ZOpCPC EOL
SeqC CheckFeed StockOnNoCan ZSPC CheckFeedRate EOL
RETURN

AppMove:
ZCP
IF ConstantSurfaceFeed?
CalcRPM1
ELSE
Speed
END
OpToolID ToolOffset# SpinOn CoolOn
RETURN

Approach: { NOT FOR TAILSTOCK, .82 }
IF ApproachOD?
SeqC Rapid CSSOff 'G97' XCP AppMove EOL
ODApproachSP
ELSE
IF ApproachID?
SeqC Rapid CSSOff 'G97' XOpCD AppMove EOL
IDApproachSP
ELSE {ApproachFace}
SeqC Rapid StockOnNoCan CSSOff 'G97' XSP StockOff AppMove EOL
FaceApproachSP
END
END
RETURN

CheckOffset:
DoEndOpPS
IF LAST ProgStop?
SeqC 'M0' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
END
IF NewToolOffset?
SeqC LOfstOff '00' EOL
SeqC OpToolID ToolOffset# EOL
END
IF ConstantSurfaceFeed?
IF LAST ConstantSurfaceFeed?
SeqC SpeedC EOL
ELSE
SeqC Preset MaxRPM EOL
SeqC CSSOn 'G96' Speed EOL
END
ELSE
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' Speed EOL
ELSE
SeqC SpeedC EOL
END
END
IF LAST ProgStop?
SeqC SpinOn EOL
SeqC CoolOn EOL
ELSE
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EOL
END
END
DoPostScript
RETURN

FormatArc:
IF ArcCW?
CWArcC
ELSE
CCWArcC
END
MoveXC MoveZC
IF ArcIJFormat?
ArcIJC
ELSE
ArcRC
END
RETURN

ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqC SpinOff EOL
SeqC 'G4F2000' EOL
SeqC Speed InverseSpinOn EOL
ELSE
IF Dwell?
SeqC 'G4F' Dwell# EOL
END
END
END
END
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqC RapidC MoveXC MoveZC EOL
ELSE
IF LineFeat?
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 'G32' MoveXC MoveZC ThrdLead EOL
Rapid
END
END
END
END
END
NEXTFeat
RETURN

CheckRapid:
IF LAST CannedCycle?
Rapid
ELSE
RapidC
END
RETURN

{Start of executable Prog **************************************************}

{setup and initializations}
InitProg
SetAbs
PosSideLathe
SetMaxRPM('10000') {?}
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
IF Metric? {CAM file is in metric, tools and tool path}
SetScale('.03937007874') { change to English, this is an English post}
END
OpenSub
StockOff {.71.2}
SetHome
DoOpComments
DoPostScript

OpenSub
ProgramComment$ EOL
'MATERIAL-' EOL
'TOOL LIST-' EOL
OpToolID ToolOffset# '-' ToolType$ EOL
CloseSub

Plane
IF ConstantSurfaceFeed?
SeqC Preset MaxRPM EOL
END
Approach
ELSE
IF NewTool?

{Finish off last Operation}

StockOff {.62}
CheckRapid
IF LAST ApproachOD?
SeqC XCPC EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
END
SeqC ZCPC EOL
DoEndOpPS
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' CalcRPM2 EOL
END
SeqC NewHome EOL
IF LAST ProgStop?
SeqC 'M0' EOL
ELSE
SeqC ProgStop EOL
END

{Start new Operation}

DoOpComments
DoPostScript

OpenSub
OpToolID ToolOffset# '-' ToolType$ EOL
CloseSub

IF ConstantSurfaceFeed?
SeqC Preset MaxRPM EOL
END
Approach
ELSE
IF SameTool? {.62}

{Start new Operation}

DoOpComments
StockOff
IF LAST StraightConnect?
CheckOffset
CheckRapid
SeqC StockOnNoCan XSPC ZSPC EOL
ELSE
CheckRapid
IF ApproachOD?
IF LAST ApproachOD?
SeqC LAST XOpECDC EOL
ELSE {around}
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
SeqC ZCPC EOL
SeqC XCPC EOL
END
CheckOffset
ODApproachSP
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC XCPC EOL
END
SeqC ZCPC EOL
SeqC XOpCDC EOL
END
CheckOffset
IDApproachSP
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqC LAST ZOpECPC EOL
ELSE
IF LAST ApproachOD? {around}
SeqC XCPC EOL
ELSE {LAST ApproachID}
SeqC LAST XOpECDC EOL
END
SeqC ZCPC EOL
END
CheckOffset
FaceApproachSP
END
END
END
END
END
END {common point for all operations}
IF ConstantSurfaceFeed? AND NOT SameTool?
SeqC CSSOn 'G96' Speed EOL
END
IF CannedCycle?
StockOff
IF Roughing?
IF RoughContour?
SetPass2
SeqC 'G85' EOL
IF ApproachFace?
SeqC 'G82' EOL
END
SeqC StepMove CutDepth
IF ApproachFace?
ZStkLeft
ELSE
XStkLeft
END
EOL
SeqC StrtPos EOL
ToolPath
SeqC 'G80' EOL
ELSE
IF RoughPatternShift?
SetPass2
SeqC 'G86' EOL
IF ApproachFace?
SeqC 'G82' EOL
END
SeqC Rapid
IF ApproachFace?
ZminusW
ZStkLeft
ELSE
XminusU
XStkLeft
END
EOL
SeqC StrtPos EOL
ToolPath
SeqC 'G80' EOL
END
END
ELSE
IF Threading?
IF Chamfer?
SeqC 'M23' EOL
END
IF ConstantVolumeCut?
SeqC 'G86' EOL
SeqC CutDepth 'E' DiaDistanceToThread# EOL
SeqC 'G33' XatFinZ FinZ XTapAtZ ThrdLead EOL
SeqC 'G80' EOL
IF AutoFinish?
SeqC XatFinZ FinZ XTapAtZ EOL
END
ELSE
SeqC 'G33X' FirstMoveEPX# FinZ XTapAtZ ThrdLead EOL
SimpleRough
IF AutoFinish?
SeqC XatFinZ EOL
END
END
IF Chamfer?
SeqC 'M22' EOL
END
ELSE
IF Drilling?
SeqC 'G83' EOL
SeqC 'G82' EOL
SeqC Peck 'E0' EOL
SeqC Feed ZDepth FeedRateC EOL
SeqC 'G80' EOL
IF AutoFinish?
SeqC Feed ZDepth EOL
SeqC Rapid RLevel EOL
END
ELSE
IF Grooving?
StockOn
SetPass1
SeqC StrtPos EOL
ToolPath
END
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish?
IF NOT Drilling? AND NOT Grooving?
StockOff
IF Turning?
SetPass1
ELSE
SetPass2
END
SeqC RapidC StrtPos EOL
ToolPath
END
END
END
IF Drilling? AND Tap?
SeqC SpinOff EOL
SeqC 'G4P2000' EOL
SeqC Speed SpinOn EOL
END
NextOp {loops back to EachOP until last Operation}

{End of program ************************************************************}

{finish last operation}
StockOff
IF CannedCycle?
Rapid
ELSE
RapidC
END
IF ApproachOD?
SeqC XCPC EOL
ELSE
IF ApproachID?
SeqC XOpECDC EOL
END
END
SeqC ZCPC EOL
DoEndOpPS
SeqC FirstHome SpinOff CoolOff EOL
SeqC EOP EOL
EOR EOR EOL
Post
Close
Reopen
'JAWS-' EOL
IF UseComments?
SetScale('1')
IF FileBytesComment?
'( FILE LENGTH: ' FileBytes# ' CHARACTERS )' EOL
END
IF FileFeetComment?
'( FILE LENGTH: ' FileFeet# ' FEET )' EOL
END
IF FileMetersComment?
'( FILE LENGTH: ' FileMeters# ' METERS )' EOL
END
END
EOR EOR EOL
'^^&' EOL
Close



Wyszukiwarka

Podobne podstrony:
Okuma OSP 5000 LC10 L235 82 2
Okuma OSP 2200 LSN10 L089 82
Okuma OSP 3000 LC10 L069 82 1
Okuma OSP 500L GTR L290 82 2
Okuma OSP 5020L [AT] L397 82 3
Okuma OSP 5000 LB10 L351 82 2
Okuma OSP 3000 LB20 L067 82
Okuma OSP 2200 [CMS] L532 85 1
Okuma OSP 5000 LC10 L235 85 1
Okuma OSP3000 LC10 L283 82
Okuma OSP 5020L [PB] L604 85 1
Okuma OSP 5020M [GSI] M648 87
Okuma OSP 500L G L237 85 2
Okuma OSP 5020M M374 89 2
Okuma OSP 5020L LNC 8C L499 85
Okuma OSP 5020M [LC] MY37 89 1
Okuma 3000 LB20 [MK] L134 82 1
Okuma OSP 700M LH [AT] MV57 12 3

więcej podobnych podstron