Okuma 2200 LSN10 (CI) L238 82


{Made from L022 TF per Caricof 1/5/89}
{3/29/90, Updated: Okuma OSP 2200 LSN10 L089.54 to .69.3 format, JR}

{7/24/90, Added InitProg globally to posts with this remark, DWB}
{9/17/91, Updated Okuma OSP 2200 LSN10 L089.71 to .82 format, JR}

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

#1 = '0.00'
#2 = '###^#0'
#3 = '###^###0'
#4 = '0'
#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}

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

CheckTurret:
IF ToolOver?('4')
'G14'
ELSE
'G13'
END
RETURN

CheckRPM:
IF NOT SameTool?
TABLE(1,SpeedRPM#,1) GearRange
END
RETURN

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

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

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

AppMove:
ZCP 'S1' GearRange OpToolID ToolOffset# SpinOn CoolOn
RETURN

Approach: { NOT FOR TAILSTOCK, .82 }
IF ApproachOD?
SeqC Rapid CheckTurret XCP AppMove EOL
ODApproachSP
ELSE
IF ApproachID?
SeqC Rapid CheckTurret XOpCD AppMove EOL
IDApproachSP
ELSE {ApproachFace}
SeqC Rapid CheckTurret StockOnNoCan 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 '0' EOL
SeqC OpToolID ToolOffset# EOL
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
OpenSub
StockOff {.71.2}
SetHome
IF Metric? {CAM file is in metric, tools and tool path}
SetScale('.03937007874') { change to English, this is an English post}
END
DoOpComments
DoPostScript

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

Plane
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
SeqC NewHome
IF NewGear?
SpinOff
ELSE
IF ToolOver?('4')
IF LAST NOT ToolOver?('4')
SpinOff
END
ELSE
IF LAST ToolOver?('4')
SpinOff
END
END
END
EOL
IF LAST ProgStop?
SeqC 'M0' EOL
ELSE
SeqC ProgStop EOL
END

{Start new Operation}

DoOpComments
DoPostScript

OpenSub
OpToolID ToolOffset# '-' ToolType$ EOL
CloseSub

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 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 CoolOff EOL
SeqC FirstHome SpinOff 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 2200 LSN10 L089 82
Okuma OSP 500L GTR L290 82 2
Okuma OSP 5000 LC10 L235 82 2
Okuma OSP 5020L [AT] L397 82 3
Okuma 3000 LB20 [MK] L134 82 1
Okuma OSP 3000 LC10 L069 82 1
Okuma 5000 LB15 (CE) L171 82 1
Okuma OSP 5000 LB10 L351 82 2
Okuma OSP 3000 LB20 L067 82
Okuma 5000 LB15 [TCR] L356 82 4
Okuma OSP 2200 LC10 L058 82 1
GE 550 Okuma LS N L059 82 1
Fanuc 0T Okuma [VT] L255 82
Okuma OSP 2200 [CMS] L532 85 1
Okuma OSP3000 LC10 L283 82
Dziękujemy ci zas…a Polsko
Fanuc 2000C Mazak L168 82
Fanuc 10T MS [2 G54] L066 82

więcej podobnych podstron