{3/7/89
Copied & modified; Fanuc 10T-MS [-] L001.57, for Angelus Can.
Machine is a Warner & Swasey 2SC with Alan Bradley 7360 control
Jim Radcliffe}
{3/10/89
Deleted 'StockOnNoCan:' subroutine which sets post to 'StockOn' if
'CannedCycle?' is false. Changed 'StockOnNoCan' subcall to 'StockOn'
Altough this machine has no canned cycles, and ncPOST should always
be directed to 'StockOn', I left the canned cycle
info in the Mach Spec and am using the 'CannedCycle?' boolean
to control the rapid feed around the part if
'Prefered Canned Cycles' was selected in ncCAM.
Jim Radcliffe}
{9/27/89, updated & added PostScript to W & S 2SC AB 7360 L096.55, JR}
{7/24/90, Added InitProg globally to posts with this remark, DWB}
{8/9/90, Updated: W & S 2SC AB 7360 L096.62 to .71 format, JR}
{8/13/92
Updated: W & S 2SC AB 7360 L096.71
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 6M M001.82 Format.
Converted file to metric.
Kim Michelman}
{03/30/98, Updated for Catalyst v2.20 per Fanuc 10T MS [-] L001.85 Format, CDH}
{04/01/98,
Initial: W & S 2SC AB 7360 L096.85m
Created: W & S 2SC AB 7360 [JD] Lxxx.85m
For: John Deere
Changes to Form:
1) Default Formats: Changed formats of I, J, K, R, X, Y, and Z to 000^###.
2) Arcs: Changed G2 to G22. Changed G3 to G23.
3) Movement: Changed Line Feed to G21. Changed Rapid to G21.
Changes to Prog:
1) Added FORMAT for RapidF#.
2) Added literals to NewTool.
3) Moved CoolOn from after LatheOffset to after MaxRPM in FirstOp and NewTool.
CDH}
{04/07/98,
Initial: W & S 2SC AB 7360 [JD] L380.85m
Created: W & S 2SC AB 7360 [JD] L380.85.1m
For: John Deere
Changes to Prog:
1) FirstOp: Added literals.
2) Format Def: Changed format for RapidF#. Added format for StartPosX#.
CDH}
{Prog Numeric Format Definitions *******************************************}
#1 = '0.00'
#2 = '0#^####'
#3 = '########;0'
#4 = '###0'
#5 = '####.###;0'
#6 = '000^###'
FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(Dwell#,2)
FORMAT(FirstMoveEPX#,2)
FORMAT(FirstMoveEPZ#,2)
FORMAT(Program#,3) {.70}
FORMAT(Operation#,3) {.70}
FORMAT(Tool#,3) {.70}
FORMAT(CalcEPRPM#,4)
FORMAT(FeedIPR#,5)
FORMAT(RapidF#,5)
FORMAT(StartPosX#,6)
{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 NOT Metric? {CAM file is in English, tools and tool path}
SetScale('25.4') { change to Metric, this is a Metric 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
ODApproachSP:
SeqC StockOn ZSPC EOL
SeqC StockOff XOpCDC EOL
SeqC StockOn XSPC EOL
RETURN
IDApproachSP:
SeqC StockOn ZSPC EOL
SeqC XSPC EOL
RETURN
FaceApproachSP:
SeqC StockOff ZOpCPC EOL
SeqC StockOn ZSPC EOL
RETURN
AppMove:
ThisOpEntryZCP RapidF
RETURN
Approach: { NOT FOR TAILSTOCK, .82 }
IF ApproachOD?
SeqC Rapid ThisOpEntryXCP AppMove EOL
ODApproachSP
ELSE
IF ApproachID?
SeqC Rapid XOpCD AppMove EOL
IDApproachSP
ELSE {ApproachFace}
SeqC Rapid 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 LatheOffset EOL
END
IF ConstantSurfaceFeed?
IF LAST NOT ConstantSurfaceFeed?
SeqC Preset MaxRPM EOL
END
SeqC CSSOff 'G97' CalcRPM1 EOL
ELSE
SeqC CSSOff 'G97' Speed 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?
ArcJC ArcIC
ELSE
ArcRC
END
RETURN
CheckFeed:
IF RapidFeat?
IF CannedCycle?
IF NOT LAST RapidFeat?
'F01' {optional slower rapid feed}
END
ELSE
RapidFC
END
ELSE
IF CannedCycle? AND LAST RapidFeat?
FeedRate {reset from literal feedrate}
ELSE
FeedRateC
END
END
RETURN
ThreadPath: {straight thread along Z axis no single edge or chamfer}
EACHFeat
IF ThreadFeat?
SeqC LCycle MoveZC ThrdLead EOL
ELSE
IF RapidFeat?
IF LAST ThreadFeat?
SeqC Rapid MoveXC CheckFeed EOL
ELSE
SeqC MoveXC MoveZC EOL
END
END
END
NEXTFeat
RETURN
CkCRC: { 4.2 }
IF XMove? OR ZMove? { Approach Length Feature and Multiple Pockets }
CRCOnC
END
IF LastFeat? AND EmptyLine? { Exit Length Feature }
CRCOffC
END
RETURN
ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqC SpinOff EOL
SeqC 'G4P2000' EOL
SeqC Speed InverseSpinOn EOL
ELSE
IF Dwell?
SeqC 'G04X' Dwell# EOL
END
END
END
END
IF PointFeat?
SeqC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqC RapidC MoveXC MoveZC CheckFeed EOL
ELSE
IF LineFeat?
SeqC CkCRC FeedC MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
EACHQuadrant
SeqC FormatArc CheckFeed EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqC LCycle MoveXC MoveZC XTapAtZ ThrdLead EOL
END
END
END
END
END
NEXTFeat
RETURN
CheckRapid:
CRCOffC
IF LAST CannedCycle?
Rapid
ELSE
RapidC
END
RETURN
{Start of executable Prog **************************************************}
{setup and initializations}
InitProg
SetAbs
PosSideLathe
XsAreRadii
NoIJKSigns
SetMaxRPM('10000')
IF Metric?
SetMaxFeed('12700')
ELSE
SetMaxFeed('500')
END
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?
'( ' 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 MILLIMETERS )' EOL
END
END
IF NOT Metric? {CAM file is in English, tools and tool path}
SetScale('25.4') { change to Metric, this is a Metric post}
END
OpenSub
StockOff {.71.2}
SetHome
Plane
SeqC 'G95' EOL
SeqC 'G71' EOL
SeqC 'G94' EOL
SeqC 'G99' EOL
DoOpComments
DoPostScript
SeqC Rapid 'X0Z0' RapidF EOL
SeqC Preset Home MaxRPM CoolOn EOL
SeqC CSSOff 'G97'
IF ConstantSurfaceFeed?
CalcRPM1 SpinOn EOL
ELSE
Speed SpinOn EOL
END
SeqC OpToolID LatheOffset EOL
Approach
ELSE
IF NewTool?
{Finish off last Operation}
StockOff {.62}
CheckRapid
IF LAST ApproachOD?
SeqC LAST OpExitXCPC RapidFC EOL
SeqC LAST OpExitZCPC RapidFC EOL
ELSE
IF LAST ApproachID?
SeqC LAST XOpECDC EOL
END
END
SeqC LAST OpExitZCPC RapidFC EOL
DoEndOpPS
IF LAST ConstantSurfaceFeed?
SeqC CSSOff 'G97' CalcRPM2 EOL
END
SeqC NewHome EOL
SeqC LOfstOff '00' EOL
IF LAST ProgStop?
SeqC 'M00' EOL
ELSE
SeqC ProgStop EOL
END
{Start new Operation}
SeqC 'G95' EOL
SeqC 'G71' EOL
SeqC 'G94' EOL
SeqC 'G99' EOL
DoOpComments
DoPostScript
SeqC Rapid 'X0Z0' RapidF EOL
SeqC Preset Home MaxRPM CoolOn EOL
SeqC CSSOff 'G97'
IF ConstantSurfaceFeed?
CalcRPM1 SpinOn EOL
ELSE
Speed SpinOn EOL
END
SeqC OpToolID LatheOffset EOL
Approach
ELSE
IF SameTool? {.62}
{Start new Operation}
DoOpComments
StockOff
IF LAST StraightConnect?
CheckOffset
CheckRapid
SeqC StockOn LAST OpExitXCPC ZSPC RapidFC EOL
ELSE
CheckRapid
IF ApproachOD?
IF LAST NOT ApproachOD?
SeqC LAST OpExitZCPC RapidFC EOL
END
SeqC LAST OpExitXCPC RapidFC EOL
CheckOffset
ELSE
IF LAST ApproachOD?
SeqC LAST OpExitXCPC RapidFC EOL {around}
END
IF ApproachID?
IF LAST NOT ApproachID?
SeqC LAST OpExitZCPC RapidFC EOL
END
CheckOffset
SeqC XOpCDC EOL
ELSE {ApproachFace}
SeqC LAST OpExitZCPC RapidFC EOL
CheckOffset
SeqC LAST OpExitXCPC EOL
END
END
END
END
END
END {common point for all operations}
IF ConstantSurfaceFeed?
SeqC CSSOn 'G96R' StartPosX# Speed EOL
END
StockOn
SetPass1
IF Threading?
ThreadPath
ELSE
ToolPath
END
IF AutoFinish? AND NOT Drilling?
StockOff
IF Turning?
SetPass1
ELSE
SetPass2
END
SeqC RapidC StrtPos RapidFC EOL
IF Threading?
ThreadPath
ELSE
ToolPath
END
END
NextOp {loops back to EachOP until last Operation}
{End of program ************************************************************}
{finish last operation}
StockOff
CRCOffC
SeqC RapidC
IF ApproachOD?
OpExitXCPC RapidFC EOL
SeqC OpExitZCPC RapidFC EOL
ELSE
IF ApproachID?
XOpECDC EOL
SeqC ZOpECPC EOL
END
END
OpExitZCPC RapidFC EOL
DoEndOpPS
SeqC CoolOff EOL
IF ConstantSurfaceFeed?
SeqC CSSOff 'G97S' CalcEPRPM# EOL
END
SeqC RapidC FirstHome RapidFC EOL
SeqC OpToolID '00' EOL
IF ProgStop?
SeqC 'M0' EOL
END
SeqC EOP EOL
Post
EOR EOL
Close
IF UseComments?
SetScale('1')
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:
W&S 2SC AB 7360 [BD4] L705 85 3W&S 2SC AB 7360 [SN] L829 85AB 7360 Hardinge L167 85W & S 2SC AB 7360 L096 82 1AB 7360 [SH] L609 85W & S 1SC AB 7360 KOL L460 85 1W & S 2SC AB 7360 L096 82mAB 7360 Hardinge [SP] L822 85W & S 1SC AB 7360 L581 85 3AB 7360 Hardinge [IN] L444 85W & S 1SC AB 7360 L327 85 1W&S 2SC GE 2000 [BD4] L773 85 1W & S 2SC AB [CE] L186 82 1Seiki Multi [IM] L435 85 1mAB 8600 J&S Grinder L524 85Okuma OSP7000L [H] L601 85 1mwięcej podobnych podstron