Yasnac 3000B Mat M479 79


Subject: Yasnac 3000B Mat M???.79PROG
{7/24/90, Added InitProg globally to posts with this remark, DWB}
{11/20/90, Updated: Yasnac 3000G Mat M016.55 to .76.1 format, JR}

{4/03/91
Modified: Yasnac 3000G Mat M016.76.1
For: Gibbs & Associates
Updated to Version 4.0 per Fanuc 6M M001.80 Format.
DWB}

{10/23/91
Modified: Yasnac 3000G Mat M016.76.1
For: Advanced Mfg. Concepts, Yasnac 3000B Matsuura.
Hardcoded customers Header and Footer info.
Changed Tool change position, new tool starts w/G92.
The OEM trained him to use G92's and Z touch off of 2 inches, Why???
Changed subs to stay in main body with tool.***** NOT YET CORRECT
Added spacing between codes
Added OP and Toll Comment to SubComment.
Disabled Multiple Parts- Customer use available "D" words
Took Tool Length Offset On out of Form
changed drill cycle to G82
changed dwell FORMAT#
Tom Jimcosky, Jimco Services 201 761 0204}

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

#1 = '#.00'
#2 = '###^##0'
#3 = '*###^##0'
#4 = '####.####;0.'
#5 = '########;0'
#6 = '##^#0;'

FORMAT(FileFeet#,1)
FORMAT(FileMeters#,1)
FORMAT(ToolDiameter#,4) {.72}
FORMAT(Tag#,5)
FORMAT(Operation#,5) {.72}
FORMAT(Tool#,5) {.72}
FORMAT(Parts#,5) {.72}
FORMAT(Dwell#,6) {.72}


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

DoSubComment:
IF UseComments? AND SubComment?
'( SUB NUMBER: ' Tag# ' )' EOL
'( TOOL ' Tool# ': ' ToolDiameter# ' ' ToolType$ ' )' EOL
'( OPERATION ' Operation# ': ' OperationType$ ' )' EOL
END
RETURN

DoOpComments:
IF UseComments?
SetScale('1')
IF OperationIDComment?
'( OPERAION ' Operation# ': ' OperationType$ ' )' EOL
END
IF OperationCommet?
'( ' OperationComment$ ' )' EOL
END
IF WorkGroupComment?
' ' WorkGroupComment$ ' )' EOL
END
IF ToolTypeComment?
'( TOOL ' ool# ': ' ToolDiameter# ' ' ToolType$ ' )' EOL
END
IF ToolComment?
'( ' ToolComment$ ' )' EOL
END
IF Metric? {CAM file is in metric,tools and tool path}
SetScale('.03937007874') { change to English, tis is an English post}
END
END
RETURN

PSInit: {reset flags}
Rotate
RETURN

PSStuff: {revised.72}
IF FourthCW?
FORMAT(FourthDegree#,2)
SeqLabC 'A' FourthDegree# EOL
FourthCWF {reset flag}
END
IF FourthCW?
FORMAT(FourthDegree#,3)
SeqLabC 'A' FourthDegree# EOL
FourthCWF {reset flag}
END
IF FifthCW?
FORMAT(FifthDegree#,2)
SeqLabC 'B FifthDegree# EOL
FifthCWF {reset flag}
END
IF FifthCCW?
FORMAT(FhDegree#,3)
SeqLabC 'B' FifthDegree# EOL
FifthCCWF {reset flag}
ENRETURN

DoPostScript:
PSInit
EachPS
SeqLabC PostScript EOL {literal}
PSStuff {commands}
NextPS
RETURN

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

Entryove:
IF FeedEntry?
SeqLabC Feed ZIn FeedEnt EOL
ELSE
SeqLabC RapiC ZIn EOL
END
RETURN

StartSub:
OpenSub
DoSubComment
'>' Tag# EOL
eqLab {drop unconditional for proper tagging}
RETURN

SubWarning:
IF NT FeedConnect?
IF AnyZshift?
' ' EOL
'( WARNING Z CLEARANCE WLL CHANGE WITH EACH CYCLE OF SUB REPEAT )' EOL
' ' EOL
END
END
REURN

StdSub:
SeqLabC SubCall CallLabB '3' Tag# RepLab RepCycs EOL
StatSub
RETURN

FinishSub1: {part 1}
UnSkipZ
SeqLabC CRCOffC
IF NOT FeeConnect?
RapidC ZCP3C
END
EOL
RETURN

FinishSubG92: {part 2}
SeqLaC Preset ShiftRC EOL
SeqLabC EndSub EOL
CloseSub
SeqLabC Preset UnshtRC EOL
RETURN

OpenMP:
IF EquallySpacedOffsets?
TagInc
SeqLabC Suall CallLabB '3' Tag# RepLab Parts EOL
StartSub
END
RETURN

CloseMP: IF EquallySpacedOffsets?
SeqLabC Preset ShiftPC EOL
SeqLabC EndSubEOL
CloseSub
SeqLabC Preset UnshftPC EOL
END
RETURN

FormatArc:
I ArcCW?
CWArc
ELSE
CCWArc
END
MoveXYZ
IF ArcIJFormat?
ArcIJ
LSE
ArcR
END
RETURN

StdLine: {enables CRC on first call, .70}
IF Dcelerate?
IF RoomToDecel?
DecelMove1
SeqLabC CRCOnC FeedC MoveXZC FeedRateC CRCOffsetC EOL
DecelMove2
END
SeqLabC CRCOnC FeedC oveXYZC DecelFeed CRCOffsetC EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqLabC CRCOnC FeedC MoveXYZC FeedRateC CRCOffsetC EOL
END
END
RETRN

ToolPath:
EACHFeat
IF PointFeat?
SeqLabC MoveSXYC EOL
IF AtoCycle?
SeqLabC SubCall CallLabB '3' Tag# EOL
CalcACSRXY {calctool position after sub call, CalcAutoCycleStatusRecordXY}
END
ELS
IF RapidFeat?
IF LastFeat? AND AutoCycle? {.70}
SeqLabC CROffC RapidC MoveXYZC EOL
ELSE
IF XMove? OR YMove? OR ZMove?
SeqLabC RapidC MoveXYZC EOL
END
END
ELSE
IF LineFeat
IF AutoCycle? {.70}
IF LastFeat?
SeqLabC CRCOffC FeeC MoveXYZC FeedRateC EOL
ELSE
IF ZMove? {skip CRCOn until irst non-Z move line, skipping ramps}
SeqLabC FeedC MoveXYZC FedRateC EOL
ELSE
StdLine {enables CRC on first call}
END
END
ELSE
StdLine
END
ELSE
IF ArcFet?
EACHQuadrant { Do not use NOT, FIRST, LAST or NEXT modifiers i this loop }
IF LastQuadrant? AND Decelerate?
IF RoomToDcel?
DecelMove1
SeqLabC FormatArc ArcFeedC EOL
DecelMove2
END
SeqLabC FormatArc DecelFeed EOL
ELSE
SeqLabC FormatArc ArcFeedC EOL
END
NEXTQuadra
END
END
END
END
NEXTFeat
RETURN

AutoCycCutSub1: {part
SaveSubStatus {save tool position}
SetPass1 {element cut moves}
StatSub
SetSRXYtoSP
SeqLabC IncValue EOL
RETURN

AutoCycCutSub2: {part 2
ToolPath
IF Repeats? AND FeedConnect? AND ZshiftOnly?
SeqLabC AbsOInc EOL {.69 removed RapidC} {.71.2 removed CRCOffC, gets turned off inToolPath}
ELSE
SeqLabC AbsOrInc RapidC ZCP2 EOL {.71.2 removed CRCOfC, gets turned off in ToolPath}
END
SeqLabC EndSub EOL
CloseSub
SetRSubXY {restore SR to 1st position value}
SetSRSubMove
RETURN

AutoCycat:
SetPass2 {position pattern}
ToolPath {call after TagInc for corret sub calls}
SetPass1 {reset}
RETURN

Milling:
IF AutoCycle?
TagInc AutoCycCutSub1
EntryMove
AutoCycCutSub2
AutoCycPat
ELSE
EntrMove
ToolPath
END
RETURN

G92Sub:
SubWarning
StdSub
SeqLabC AbsOrc Connect StrtPos EOL
Milling
FinishSub1
FinishSubG92
RETURN

ZonlyRpAutoCycle:
AutoCycPat {write pattern moves and main calls}
StartSub
TagInc
EachCycle
IF FeedConnect?
SeqLabC Feed ZInPlusInc FeedEnt OL
ELSE
IF FeedEntry?
IF NOT FirstCycle?
SeqLabC Rapid ZC2PlusInc EOL {.69 added Rapid, reads better}
{can't call for cycle= 1, .69 changed to ZCP2PlusInc}
END
SeqLabC Feed ZInPlusInc FedEnt EOL
ELSE
SeqLabC Rapid ZInPlusInc EOL {.69 added Rapid, reas better}
END
END
IF FirstCycle?
SetStatusOff {protect Z posiion for incremental sub}
END
SeqLabC SubCall CallLabB '3' Tag# EOL
NextCycle
SetStatusOn
AutoCycCutSub1 {build element sub}
AutoCycCutSub2
{.69, removed FinishSub1}
IF FeedConnect? {there is no Z up in th sub, .69}
SeqLabC Rapid ZCP2 EOL {.69}
END {.69}
SeqLabC EndSub EOL
CloseSub
{Element shift, not pattern}
RETURN

ZonlyRep:
EachCycle
IF NOT FirstCycle?
SeqLabC Connect StrtPos EOL {.71.2, added Connect}
END
IF FeedConnect?
SeqLabC FeedC ZInPlusInc FeedEnt EOL {.71.2, changed to FeedC}
ELSE {Entry/Exit Connect}
IF FeedEntry?
IF NOT FirstCycle?
SeqLabC RapidC ZCP2PlusIncC EOL {can't call forcycle =1} {.69 added Rapid, reads better} {.71.2, changed to RapidC, res better}
END
SeqLabC Feed ZInPlusInc FeedEnt EOL
ELSE
SeqLabC RapidC ZInPlusInc EOL {.69 added Rapid, reads better} {.71.2, chnged to RapidC, reads better}
END
END
SeqLabC SubCall CallLabB '3' Tag# EOL
NextCycle
StartSub
SkipZ
ToolPath
FinishSub1
SeqLabC EndSub EOL
CloseSub
RETURN

CheckPass:
IF AutoCycle? {use the correct StrtPos}
SetPass2
ELSE
SetPass1
END
RETURN

GetStartOfSameTool:
DoOpComments
DoPostScript
CheckPass
RETURN


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

{setup and initializations}
InitProg
ReverseXZArcs
SetFlood
UseSeparateSubCalls
SetMaxeparateSubCalls ('50') {?}
SetMaxRPM('6000') {?}
SetMaxFeed('200') {?}
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: may be capital and/or lower case letters. Separate commands with a space.' 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 aft an ENDOP command will appear' EOL
' at the end of the operation. ' EOL
' 4thAxisCW(12.5), 4ACW(12.5) -' EOL
' generates a + Amove of the value you specify' EOL
' 4thAxisCCW(22.5), 4ACCW(22.5) -' EOL
' generates a - A move of the value you specify' EOL
' 5thAxisCW(30), 5ACW(30) -' EOL
' generates a + B move of the value you specify' EOL
' 5thAxisCCW(22.5), 5ACCW(22.5) -' EOL
' generates a - B move of the value you specify' EOL
END
EachOp {Start ofpost processing *********************}
IF FirstOperation?
EOR EOL
IF ToolChangeAtHome?
SetHome
END
IF UseComments?
IF ProgramNameComment?
'( PROGRAM: ' ProgramName$ ' )' EOL
END
IF ProgramComment?
'( ' ProgramComment$ ' )' EOL
END
IF FormatNameCommet?
'( FORMAT: ' FormatName$ ' )' EOL
END
IF TimeComment?
'( ' Date$ ' AT ' Time$ ' )' EOL
END
IF MovesComment?
'( OUTPUT IN ' MoveType$ ' )' EOL
END
IF PartsComment?
'( PARTS PROGAMMED: ' Parts# ' )' EOL
END
IF StartToolComment?
'( FIRST TOOL NOT IN SPINDLE )' EOL
END
END
OpenSub
IF Metric? {CAM file is in metric, tools and tool path}
SetScale('.03937007874') { change to English, this is an English post}
END
{IF MultipleParts? AND AllToolsOnePart?
OpenMP
END}
DoOpComments
SeqLabC Plane DrillOff CRCOff EOL
SeqLab OpToolID ToolChng EOL
SeqLabC ' G91 G0 Y-10000 M S1000' EOL
SeqLabC ' G04 P50 M03' EOL
SeqLabC ' G91 G0 G50 Y0 D30' EOL
SeqLabC ' G40 G92 Y0' EOL
DoPostScript

SeqLabC ProgStop EOL

SeqLab OpToolID ToolChng EOL
SeqLabC IncValue SpinOn OfstOn Speed EOL
{IF MultipleParts? AND OneToolAllParts? AND FullUp?
OpenMP
END}
CheckPass
SeqLabC ' G90' Preset ' X0 Y0 Z20000' CoolOn EOL {*** Change to ZCP1**}
SeqLabC Rapid AbsOrInc StrtPos EOL

IF NOT RetractToCP1?
SeqLabC Feed ZCP2 ' F4000' EOL
ELSE
SeqLabC Feed ZCP1 ' F4000' EOL
END

{IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
OpenMP
SeqLabC StrtPos EOL
END}
ELSE
IF NewTool?
{IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
CloseMP
END}
{IF MultipleParts? AND OneToolAllParts? AND FulUp?
CloseMP
END}
DoEndOpPS
IF ToolChangeAtHome? { IN THIS LOOP ADD FOR NOHOME }
SeqLabC AbsValue Rapid ' Z20000' CoolOff EOL {*** Change to ZCP2**}
SeqLabC ' X0 Y0' EOL
SeqLabC IncValue OfstOff SpinOff EOL
{SeqLabC AbsOrInc Rapid Home SpinOff EOL}
ELSE
SeqLabC AbsValue Rapid ' Z20000' CoolOff EOL {*** Change to ZCP2**}
SeqLabC ' X0 Y0' EOL
SeqLabC IncValue OfstOff SpinOff EOL
END
IF LAST ProgStop?
SeqLabC 'M00' EOL
ELSE
SeqLabC ProStop EOL
END

{Start new Operation}

SeqLab OpToolID ToolChng EOL
DoOpComments
SeqLabC Plane DrillOff CRCOff EOL
DoPostScript
SeqLabC IncValue SpinOn OfstOn Speed EOL
{IF MultipleParts? AND OneToolAllParts? AND FullUp?
OpenMP
END}
CheckPass
SeqLabC ' G90' Preset ' X0 Y0 Z20000' CoolOn EOL {*** Change to ZCP1**}
SeqLabC Rapid AbsOrInc StrtPos EOL
IF NOT RetractToCP1?
SeqLabC Feed ZCP2 ' F4000' EOL
ELSE
SeqLabC Feed ZCP1 ' F4000' EOL
END
ELSE
IF SameTool?
DoEndOpPS
IF LAST ProgStop?
SeqLabC CoolOff EOL
SeqLabC IncValue OfstOff EOL
SeqLabC SpinOff EOL
eqLabC 'M00' EOL

{Start new Operation}

GetStartOfSameTool
SeqLabC PlaneC AbsOrInc Rapid StrtPos SpeedC SpinOn EOL
SeqLabC OfstOn EOL
SeqLabC CoolOn EOL
ELSE
IF CoolOff? AND LAST NOT CoolOff?
SeqC CoolOff EOL
END
IF NewToolOffset?
SeqLabC IncValue OfstOff EOL

{Start new Operation}

GetStartOfSameTool
SeqLabC PlaneC AbsOrInc Rapid StrtPos SpeedC EOL
SeqLabC OfstOn EOL
ELSE

{Start new Operation}

GetStartOfSameTool
SeqLabC PlaneC AbsOrInc Rapid StrtPos SpeedC EOL
END
IF NOT CoolOff? AND LAST CoolOff?
SeqC CoolOn EL
END
END
END
END
END {common point for all operations}
IF Milling?
SeqLabC ZCP2C EOL
IF Repeats?
TagInc
IF ZshiftOnly?
IF AutoCycle? {incremental Autocycle sub can have Z moves}
ZonlyRepAutoCycle
ELSE {Z shift only, NOT Auto Cycle}
IF UseSparateSubCalls? AND CyclesLessThanMaxSubCalls?
FindAnyZMoves {for normal abs subroutine}
IF NoZMoves?
ZonlyRep
ELSE
G92Sub {pattern shift, not element}
END
ELSE {no sep subs desired}
G92Sub
END
END {end Auto Cycle IF}
ELSE {not Z only}
G92Sub
END {end Z only IF}
ELSE {no repeat OPs}
Milling
END
SeqLabC RapidC CRCOffC ZCP3C EOL
ELSE
IF Drilling?
IF Repeats?
TagInc
StdSub
SeqLabC AbsOrInc Rapid StrtPosEOL
END
SeqLabC DrillCP EOL
GetCycle
SeqLabC Cycle FromCP StrtPos ZDepth RLevel Dwell Peck Retract FeedEnt EOL
ToolPath
SeqLabC DrillOff EOL
IF Repeats?
FinishSubG92
END
IF NOT RetractToCP1?
SeqLabC Feed ZCP3C ' F4000' EOL
ELSE
SeqLabC Feed ZCP1 ' F4000' EOL
END
END
END
NextOp
{IF MultipleParts? AND OneToolAllParts? AND ExitClearancePlane?
CloseMP}
END
SeqLabC CoolOff EOL
SeqLabC IncValue OfstOff SpinOff EOL {set spndl off here}
{IF MultiplePrts? AND OneToolAllParts? AND FullUp?
CloseMP
END}
IF FIRST ToolChangeAtHome? {.71.2 added FIRST modifier}
SeqLabC AbsValue Rapid ' X0' EOL X TO ZERO}
SeqLabC IncValue Rapid ' G28 Y0' EOL {took out spndl off here, added G28}
{added inc value}
ELSE
SeqLabC IncValue Rapid ' G28 Y0' EOL
END
SeqLabC UnTool ToolChng EOL
IF ProgStop?
SeqC 'M00' EOL
END
{IF MultipleParts? AND AllToolsOnePart?
CloseMP
END}
SeqLabC EOP EOL
Post
Close
ReTag
Reopen
'N990 G91 G0 G40' EOL
'N991 G52 X0 D40' EOL
'N992 G92 X0' EOL
'N993 G50 Y0 D39' EOL
'N994 G92 Y0' EOL
'N995' EOP EOL
EOR EOL
IF UseComments?
SetScale('1')
IF FileBytesComment?
'( FILE ENGTH: ' FileBytes# ' CHARACTERS )' EOL
END
IF FileFeetComment?
'( FILE LENGTH: ' FileFeet# ' FEET )' EOL
END
IF FileMetersComment?
'( ILE LENGTH: ' FileMeters# ' METERS )' EOL
END
Close
END





Wyszukiwarka

Podobne podstrony:
Yasnac 3000B Mat [RT] M559 89
Yasnac 3000B Mat [CC] M680 89
Yasnac MX3 Mat [PP] CU03 13
Yasnac J300 Mat NMT93 12m
Yasnac MX3 Mat [MM] C553 13
Yasnac MX3 Mat 1000 M265 89
Yasnac I80 Mat [ATT] CY59 12 1
Yasnac I80 Mat 510VF M797 89 1m
Yasnac M5G Mat [BM] M485 87
Yasnac MX1 Mat [f] M038 80
Yasnac MX3 Mat (EE) M310 89m
Yasnac MX2 Mat [LT] M512 81 1
Yasnac MX3 Mat [WBS] MT86 15m
Yasnac MX3 Mat (EE) M310 89
Yasnac MX3 Mat [NI] M376 89
Yasnac MX3 Mat [NI] M376 89
Yasnac MX3 Mat [MM] M553 87
Yasnac 3000G Mat ATT MX27 89 1

więcej podobnych podstron