{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}
#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
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 OpToolID ToolOffset# SpinOn CoolOn
RETURN
Approach: { NOT FOR TAILSTOCK, .82 }
IF ApproachOD?
SeqC Rapid XCP AppMove EOL
ODApproachSP
ELSE
IF ApproachID?
SeqC Rapid XOpCD AppMove EOL
IDApproachSP
ELSE {ApproachFace}
SeqC Rapid 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
IF ProgramComment?
ProgramComment$ EOL
END
'MATERIAL-' EOL
'TOOL LIST-' EOL
OpToolID ToolOffset# '-' ToolType$ EOL
CloseSub
Plane
Seq
IF ToolOver?('4')
'G14'
ELSE
'G13'
END
'S12'
Approach
EOL
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 EOL
IF LAST ProgStop?
SeqC 'M0' EOL
ELSE
SeqC ProgStop EOL
END
{Start new Operation}
DoOpComments
DoPostScript
OpenSub
OpToolID ToolOffset# '-' ToolType$ EOL
CloseSub
SeqC
IF ToolOver?('4')
'G14'
ELSE
'G13'
END
'S12'
Approach EOL
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}
SeqC GearRange EOL
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
ELSE
SeqC 'G33X' FirstMoveEPX# FinZ XTapAtZ ThrdLead EOL
SimpleRough
END
IF AutoFinish?
SeqC XatFinZ EOL
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
IF ProgStop?
'M0' EOL
ELSE
ProgStop EOL
END
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 EOR EOL
Close
Wyszukiwarka
Podobne podstrony:
Okuma OSP 2200 LC10 L058 82 1Okuma OSP 500L GTR L290 82 2Okuma OSP 5000 LC10 L235 82 2Okuma OSP 5020L [AT] L397 82 3Okuma OSP 3000 LC10 L069 82 1Okuma OSP 5000 LB10 L351 82 2Okuma OSP 3000 LB20 L067 82Okuma OSP 2200 [CMS] L532 85 1Okuma 2200 LSN10 (CI) L238 82Okuma OSP 5020L [PB] L604 85 1Okuma OSP 5020M [GSI] M648 87Okuma OSP 500L G L237 85 2Okuma OSP 5020M M374 89 2Okuma OSP 5020L LNC 8C L499 85Okuma OSP 5020M [LC] MY37 89 1Okuma 3000 LB20 [MK] L134 82 1Okuma OSP 700M LH [AT] MV57 12 3Okuma OSP 5020M [CS] MZ21 89więcej podobnych podstron