Swedturn 10 CNC 220 L433 85 2m


{Change Comments ***********************************************************}

{4/17/90, New from Fanuc 10T MS [-] L001.69.3, WFG}
{7/24/90, Added InitProg globally to posts with this remark, DWB}

{12/19/90
Modified: Swedturn 6 CNC 300 L154.71m
For: Gibbs & Associates
Machine: Swedturn 6
Control: CNC 300
Updated to Version 3.2 per Fanuc 10T MS [-] L001.71.4m Format.
Turret #1 consists of Tools 1-20, and uses literal 'M22' to turn on the Coolant.
Turret #2 consists of Tools greater than 20, and uses normal CoolOn 'M8' command.
This Post Processor outputs Absolute values only.
DWB}

{4/4/91
Modified: Swedturn 6 CNC 300 L154.74.1m
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 10T MS [-] L001.80 Format.
Only Canned Cycles supported are RoughContour, Threading and Tapping.
DWB}

{8/7/91
Updated: Swedturn 6 CNC 300 L154.80m
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 6M M001.82 Format.
Kim Michelman}

{3/8/96
Copied: Swedturn 6 CNC 300 L154.82m
Created: Swedturn 10 CNC 220 L433.82m
For: Fructus/KHK Mekaniska
Machine: Swedturn SMT 10
Control: CNC 220
Versions: ncCad 4.33.02/ncCAM 4.33.01/ncPost 4.33.09/Catalyst v3.02.02/Compost 4.21.34.1/1.0a
Changes made per Mikael Bagge of Fructus, POST_SMT.VNC and SMT220.NCF files
Updated for Catalyst v2.20 per Fanuc 10T MS [-] L001.85 Format.
Deleted literal G81 block at FirstOperation.
Moved literal G95 block to be StartCode at FirstOperation.
Added GearRange support.
GearRange which is either 1 or 2 is output with SpinOn where needed.
M31 Low = CWSpindle 0-1000 RPM
M32 High = CWSpindle 1001+ RPM
M41 Low = CCWSpindle 0-1000 RPM
M42 High = CCWSpindle 1001+ RPM
Deleted literal M24 block at CheckFeedRate sub.
Changed Canned Thread Cycle from G36 to G34 in Mach Spec Threading dialog.
Deleted SpinOff at end of Prog.
Added condtion to output EOP or M0 to ReturnToTurretXZ block at end of prog.
Deleted CutMethod at CannedCycle Threading block.
Deleted ThrdHeight at CannedCycle Threading block.
Deleted CutDepth at CannedCycle Threading block.
Deleted Speed at CannedCycle Threading block.
Deleted ToolAngle at CannedCycle Threading block.
Added TrackXNO# to FORMAT#2 at Prog Numeric Format Definitions.
Added FirstMoveEPX# to FORMAT#2 at Prog Numeric Format Definitions.
Changed XatFinZ to 'X' FirstMoveEPX# at CannedCycle Threading block.
Modified to support unconditional Rapid, Feed, CWArc, and CCWArc.
Added G5, Look Ahead Code, at all transitions from Rapid block to Non-Rapid block.
DWB}

{10/25/96
Initial: Swedturn 10 CNC 220 L433.82m
Created: Swedturn 10 CNC 220 L433.85m
ForUser: Fructus/KHK Mekaniska
Develop: ComPost2 68k v1.0b3, Catalyst68K v3.04.10.C
Comment: Modified per marked up readout from Fructus.
Machine has 2 turrets, front/OD and rear/ID.
ID turret is NegSideLathe ReverseXZArcs
OD turret is PosSideLathe StandardXZArcs
Deleted coolant decrimination for ToolOver?('20')
Jim Radcliffe}

{12/3/96
Modified: Swedturn 10 CNC 220 L433.85m
Created: Swedturn 10 CNC 220 L433.85.1m
For: Fructus/KHK Mekaniska
Versions: Catalyst v3.20C/Compost 4.21.37/v1.0b1
Changes made per Mikael Bagge of Fructus.
Customer requested support of RearTurret.
Rear Turret consists of Tools 5-8.
Requires NegSideLathe and ReverseXZArcs.
G92 blocks not to be affected.
Added ckTurret sub.
Sets NegSideLathe and ReverseXZArcs for Tools 5-8.
Called at FirstOperation and NewTool.
Added ResetTurret sub.
Restores Post to PosSideLathe and StandardXZArcs to preserve G92 blocks.
Called at NewTool and end of Prog.
Deleted condition for setting PosSideLathe/NegSideLathe and StandardXZArcs/ReverseXZArcs at
FirstOperation and NewTool.
Changes made on 10/25/95 tested for ApproachID to determine Front and Rear Turrets.
This did not account for cases where the user wants to Drill with the Rear Turret.
Drilling is always a Face Approach, forcing the user to only Drill from the Front Turret.
The test also did not account for a NewTool ApproachFace Operation followed by a SameTool
ApproachID Operation.
Condition also affected G92 blocks contrary to customer request.
Updated for Catalyst v3.09C per Fanuc 10T MS [-] L001.85 Format.
Increased SetMaxFeed from 500 to 2540 at setup and initializations.
Added SetMaxFeed(100) condition for English Files at setup and initializations.
DWB}

{1/16/97
Modified: Swedturn 10 CNC 220 L433.85.1m
Created: Swedturn 10 CNC 220 L433.85.2m
For: Fructus/KHK Mekaniska
Versions: Catalyst v3.25C/Compost 4.21.37/v1.0b4
Changes made per Mikael Bagge of Fructus.
Customer requested that all G02 and G03 codes be exchanged.
Changed Clockwise Arc from G03 to G02 in Compost2 Arcs Dialog.
Changed Counter-Clockwise Arc from G02 to G03 in Compost2 Arcs Dialog.
DWB}

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

#1 = '#.00'
#2 = '####^#0'
#3 = '#######0'
#6 = '###0'

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(MUL#,2) { Non-Canned Threading AutoFinish }
FORMAT(TrackXNO#,2)
FORMAT(ToolOffsetXRadius#,2)
FORMAT(ToolOffsetZ#,2)
FORMAT(TurretX#,2)
FORMAT(TurretZ#,2)
FORMAT(FirstMoveEPX#,2)
FORMAT(FirstMoveEPZ#,2)
FORMAT(Dwell#,2) {.72}
FORMAT(FeedIPR#,2)
FORMAT(Program#,3) {.72}
FORMAT(Operation#,3) {.72}
FORMAT(Tool#,3) {.72}
FORMAT(CalcEPRPM#,6)

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

RestoreScale:
IF NOT Metric? {CAM file is in English, tools and tool path}
SetScale('25.4') { change to Metric, this is a Metric post}
END
RETURN

DoSubComment:
NewProg
IF UseComments? AND SubComment?
'( SUB NUMBER: ' Program# ' )' EOL
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
SeqLabC PostScript EOL {literals}
PSStuff {commands}
NextPS
RETURN

DoEndOpPS:
PSInit
EachEOPS
SeqLabC EndOpPS EOL {literals}
PSStuff {commands}
NextPS
RETURN

ckTurret:
IF GTEqual? Tool# Num#('5')
IF LTEqual? Tool# Num#('8')
NegSideLathe
ReverseXZArcs
END
END
RETURN

ResetTurret:
PosSideLathe
StandardXZArcs
RETURN

StockOnNoCan:
IF NOT CannedCycle?
StockOn {need stock for SP positioning, if not a canned cycle}
END
RETURN

FeedNoCan:
IF CannedCycle?
Rapid
ELSE
'G5' EOL { LookAhead Code }
SeqLabC Feed
END
RETURN

FeedRateNoCan:
IF NOT CannedCycle?
FeedRateC
END
RETURN

ApproachSP:
IF ApproachFace?
SeqLabC Rapid StockOnNoCan XSPC EOL
SeqLabC Rapid StockOff ZOpCPC EOL
StockOnNoCan
IF NotEqual? CycleStartZ# ZOpCP#
SeqLabC FeedNoCan ZSPC FeedRateNoCan EOL
END
ELSE { ODApproach/IDApproach }
SeqLabC Rapid StockOnNoCan ZSPC EOL
SeqLabC Rapid StockOff XOpCDC EOL
StockOnNoCan
IF NotEqual? CycleStartX# XOpCD#
SeqLabC FeedNoCan XSPC FeedRateNoCan EOL
END
END
RETURN

AppMove:
StockOff ThisOpEntryZCP CoolOn
RETURN

Approach: { NOT FOR TAILSTOCK, .82 }
Rapid
IF ApproachOD?
SeqLabC ThisOpEntryXCP AppMove EOL
ELSE
IF ApproachID?
SeqLabC XOpCD AppMove EOL
ELSE {ApproachFace}
SeqLabC StockOnNoCan XSP AppMove EOL
END
END
ApproachSP
RETURN

CheckOffset:
DoEndOpPS
IF LAST ProgStop?
SeqLabC 'M0' EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqLabC CoolOff EOL
END
IF NewGear?
SeqLabC SpinOff EOL
END
END
CSSOff
IF ConstantSurfaceFeed?
IF LAST ConstantSurfaceFeed?
IF NotEqual? MaxRPM# LAST MaxRPM#
SeqLabC CSSOn 'G96' MaxRPM EOL
END
IF LAST ProgStop? OR NewGear?
CSSOn 'G96' Speed
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
CSSOn 'G96' Speed
END
END
ELSE
SeqLabC CSSOn 'G96' MaxRPM EOL
Speed
END
ELSE
IF LAST ConstantSurfaceFeed?
'G97' Speed
ELSE
IF LAST ProgStop? OR NewGear?
'G97' Speed
ELSE
IF NotEqual? SpeedRPM# LAST SpeedRPM#
'G97' Speed
END
END
END
END
IF NewToolOffset?
OpToolID LatheOffset
END
IF LAST ProgStop?
SeqLabC {SpeedC} SpinOn GearRange EOL
SeqLabC CoolOn EOL
ELSE
IF NewGear?
SeqLabC {SpeedC} SpinOn GearRange EOL
END
IF NOT CoolOff? AND LAST CoolOff?
SeqLabC CoolOn EOL
END
END
DoPostScript
RETURN

FormatArc:
IF ArcCW?
CWArc
ELSE
CCWArc
END
MoveX MoveZ
IF ArcIJFormat?
ArcIJ
ELSE
ArcR
END
RETURN

CkCRC: { 4.2 }
IF XMove? OR ZMove? { Approach Length Feature and Multiple Pockets }
IF LastFeat?
CRCOffC { Exit Length Feature }
ELSE
CRCOnC { Entry Length Feature }
END
END
RETURN

ToolPath:
EACHFeat
GetToolTip
IF LastFeat?
IF Drilling?
IF Tap?
SeqLabC SpinOff EOL
SeqLabC CoolOn EOL
SeqLabC 'G4I2.' EOL
SeqLabC Speed InverseSpinOn GearRange EOL
ELSE
IF Dwell?
SeqLabC 'G4I' Dwell# EOL
END
END
ELSE
IF CannedCycle?
SeqLab
END
END
END
IF PointFeat?
SeqLabC MoveSXYC EOL
ELSE
IF RapidFeat?
SeqLabC Rapid MoveXC MoveZC EOL
ELSE
IF LineFeat?
IF Rapid?
SeqLabC 'G5' EOL { LookAhead Code }
END
SeqLabC CkCRC Feed MoveXC MoveZC FeedRateC EOL
ELSE
IF ArcFeat?
IF Rapid?
SeqLabC 'G5' EOL { LookAhead Code }
END
EACHQuadrant { Do not use NOT, LAST, FIRST or NEXT modifiers in this loop }
SeqLabC FormatArc FeedRateC EOL
NEXTQuadrant
ELSE
IF ThreadFeat?
SeqLabC 'G33' MoveXC MoveZC XTapAtZ ThrdLead EOL
END
END
END
END
END
NEXTFeat
RETURN

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

{setup and initializations}
InitProg
SetAbs
XsAreRadii
PosSideLathe
StandardXZArcs
SetMaxRPM('3000')
IF Metric?
SetMaxFeed('2540')
ELSE
SetMaxFeed('100')
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?
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
RestoreScale
OpenSub
StockOff {.71.2}
SetHome
DoOpComments
DoPostScript
Plane
SeqLab 'G95' EOL { StartCode }
IF ConstantSurfaceFeed?
SeqLabC CSSOn 'G96' MaxRPM EOL
ELSE
SeqLabC CSSOff 'G97' EOL
END
SeqLabC
Preset 'X' ToolOffsetXRadius# 'Z' ToolOffsetZ# 'I0K0'
FeedRate Speed OpToolID LatheOffset SpinOn GearRange
EOL
ckTurret
Approach
ELSE
IF NewTool?

{Finish off last Operation}

StockOff {.62}
CRCOffC
IF LAST ApproachOD?
SeqLabC Rapid LAST OpExitXCPC EOL
ELSE
IF LAST ApproachID?
SeqLabC Rapid LAST XOpECDC EOL
END
END
SeqLabC Rapid LAST OpExitZCPC EOL
ResetTurret
SeqLabC Rapid 'X' TurretX# 'Z' TurretZ#
IF LAST ProgStop?
'M0'
ELSE
ProgStop
END
EOL

{Start new Operation}

DoOpComments
DoPostScript
SeqLab
IF ConstantSurfaceFeed?
IF LAST NOT ConstantSurfaceFeed?
SeqLabC CSSOn 'G96' MaxRPM EOL
END
ELSE
IF LAST ConstantSurfaceFeed?
SeqLabC CSSOff 'G97' EOL
END
END
SeqLabC
Preset 'X' ToolOffsetXRadius# 'Z' ToolOffsetZ# 'I0K0'
FeedRate Speed OpToolID LatheOffset SpinOn GearRange
EOL
ckTurret
Approach
ELSE
IF SameTool? {.62}

{Start new Operation}

StockOff
DoOpComments
IF LAST StraightConnect?
CheckOffset
CRCOffC
SeqLabC Rapid StockOnNoCan XSPC ZSPC EOL
ELSE
CRCOffC
IF ApproachOD?
IF LAST ApproachOD?
SeqLabC Rapid LAST XOpECDC EOL
ELSE {around}
IF LAST ApproachID?
SeqLabC Rapid LAST XOpECDC EOL
END
SeqLabC Rapid LAST OpExitZCPC EOL
SeqLabC Rapid LAST OpExitXCPC EOL
END
ELSE
IF ApproachID?
IF LAST ApproachID?
SeqLabC Rapid LAST XOpECDC EOL
ELSE
IF LAST ApproachOD? {around}
SeqLabC Rapid LAST OpExitXCPC EOL
END
SeqLabC Rapid LAST OpExitZCPC EOL
SeqLabC Rapid XOpCDC EOL
END
ELSE {ApproachFace}
IF LAST ApproachFace?
SeqLabC Rapid LAST ZOpECPC EOL
ELSE
IF LAST ApproachOD? {around}
SeqLabC Rapid LAST OpExitXCPC EOL
ELSE {LAST ApproachID}
SeqLabC Rapid LAST XOpECDC EOL
END
SeqLabC Rapid LAST OpExitZCPC EOL
END
END
END
CheckOffset
ApproachSP
END
END
END
END {common point for all operations}
IF CannedCycle?
StockOff
IF Roughing?
IF RoughContour?
TagInc
SetPass2
SeqLabC LCycle
IF ApproachFace?
'Xł' Tag# CutDepth
ELSE
CutDepth 'Zł' Tag#
END
XStkLeft ZStkLeft EOL
OpenSub
DoSubComment
'>' Tag# EOL
SeqLab 'G50' EOL
SeqLabC StepMove StrtPos EOL
ToolPath
SeqLabC 'G51' EOL
CloseSub
IF AutoFinish?
IF ApproachFace?
SeqLabC LCycle 'Xł' Tag# EOL
ELSE
SeqLabC LCycle 'Zł' Tag# EOL
END
END
END
ELSE
IF Threading?
SetPass1
SeqLabC LCycle 'X' FirstMoveEPX# FinZ XTapAtZ ThrdLead EOL
EachFeat
IF ThreadFeat?
TrackXNO# FirstMoveEPX#
SeqLabC MoveSXC EOL
END
NextFeat
ELSE
IF Drilling?
IF Tap?
SeqLabC LCycle ZDepth 'I0K' FeedIPR# EOL
SeqLabC SpinOff EOL
SeqLabC CoolOn EOL
SeqLabC 'G4I2.' EOL {Dwell is G4 with letter 'I' address, not G41}
SeqLabC Speed InverseSpinOn GearRange EOL
SeqLabC LCycle ZSP 'I0K' FeedIPR# EOL
END
END
END
END
ELSE
StockOn
SetPass1
ToolPath
IF AutoFinish? { .82.1c }
StockOff
IF Turning?
IF ApproachFace?
SeqLabC Rapid ZOpECPC EOL
ELSE
SeqLabC Rapid XOpECDC EOL
END
ApproachSP
SeqLabC Rapid StockOff StrtPosC EOL
ToolPath
ELSE
IF Roughing? AND NOT RoughSimple?
SetPass2
SeqLabC Rapid XSPC ZSPC EOL
SeqLabC Rapid StockOff StrtPosC EOL
ToolPath
SetPass1
ELSE
IF Threading?
IF Metric?
SeqLabC 'X' MUL# Num#('1') ADD# FinishXRadius# Taper# EOL
ELSE
SetScale('1')
SeqLabC 'X' MUL# Num#('25.4') ADD# FinishXRadius# Taper# EOL
RestoreScale
END
SeqLabC 'G33'
IF Taper?
XatFinZ
END
FinZ XTapAtZ ThrdLead EOL
SeqLabC Rapid XSP EOL
SeqLabC Rapid ZSP EOL
END
END
END
END
END
IF Drilling? AND Tap?
SeqLabC SpinOff EOL
SeqLabC CoolOn EOL
SeqLabC 'G4I2.' EOL {Dwell is G4 with letter 'I' address, not G41}
SeqLabC Speed SpinOn GearRange EOL
END
NextOp {loops back to EachOP until last Operation}

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

{finish last operation}
StockOff
CRCOffC
IF ApproachOD?
SeqLabC Rapid OpExitXCPC EOL
ELSE
IF ApproachID?
SeqLabC Rapid XOpECDC EOL
END
END
SeqLabC Rapid OpExitZCPC EOL
DoEndOpPS
SeqLabC CoolOff EOL
ResetTurret
SeqLabC Rapid 'X' FIRST TurretX# 'Z' FIRST TurretZ#
IF ProgStop?
'M0' EOL
SeqLabC
END
EOP EOL
CloseSub
Post2 {organize Subs into one program}
Close
Retag
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:
Swedturn 10 CNC 220 L433 82m
Swedturn 10 CNC 220 [SM] L727 85
Swedturn 10 CNC 220 L153 82 1m
Swed 10 CNC 220 [LE] L337 82 1
Okuma OSP5020L [SMP] L451 85 2m
Fagor 8050T [VS] L622 85 2m
Haas [EE] L512 85 2m
Cincom L16 L20 [CIT] L711 85 2m
Dynapath 10T Lagun L132 85 2m
GE 7542 Monarch 220 L396 85
Cin Acr CNC TC [12] L273 85 1
03 10 09 (85)
AB CNC 8400 LP L623 85
Swedturn 6 CNC 300[LE] L222 82
Cin Acr 850 SX [STM] L437 85 10

więcej podobnych podstron