Vous êtes sur la page 1sur 15

EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

LatheCode
EmcKnowledgeBase|RecentChanges|PageIndex |Preferences|
LinuxCNC.org

Search:

LatheSpecificAdditions
Co ntents
1.Introduction
2.LatheGcodes
2.1.DesktopCNC
2.2.HaasLatheCodes
2.3.OKUMAOSP2200('80vintage)
3.Threading
3.1.MitsubishiG33
3.2.SIEMENS840D,EMCOVariant
3.3.OKUMAOSP2200('80vintage)
3.4.AddotherversionsofG33
4.MultipassThreadCuttingCannedCycle
4.1.Thisisfanucstylecannedcycle
4.2.MacroCannedCycle
5.ConstantSurfaceSpeed
6.SampleThreadingPrograms
6.1.Synergy1/420threadprogram
6.2.RoltekSampleThreadingProgram
7.MastercamThreadingParametersPages

1.Introduction
CNClatheoperationhasbeenatopicofdiscussionaslongasrayhandprobably
mshaverhavebeenhangingaroundthissoftware.Thispageisdesignedtoprovide
acomprehensivesetofspecificationsforthisessentialability.

2.LatheGcodes
Thereareanumberofdifferentsetsofcodesusedbycncmakerstohandlelathe
specificoperations.Includedarethosefromacoupleofsources.Thesearenot
meanttobeoverwhelming.Theyareintendedtoshowtherangeofoperations
possibleoncommoncommerciallathes.Aswebegintobuildinlathefunctionality,
weneedtodoitinawaythatpermitstheexpansionoffunctionalitywithouttheneed
torewriteearlierabilities.

2.1.DesktopCNC?

1de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

Thisisfromalistathttp://www.desktopcnc.com/g_code_lathe.htm

G32isusedforPlainThreadingCycle
G33Threadcutting,constantlead
G34Threadcutting,increasinglead
G35Threadcutting,decreasinglead

G46isusedforTurningCannedCycle
G47isusedforFacingCannedCycle
G66isusedforStockRemovalRoughing
G67isusedforStockRemovalFinishing
G76isusedforCannedCycle,ThreadCuttingCycle

G70isusedforCannedCycle,FinishingCycle
G71isusedforCannedCycle,ODRoughingCycle
G72isusedforCannedCycle,FaceRoughingCycle
G73isusedforCannedCycle,ProfilingCycle
G74isusedforCannedCycle,FaceGroovingCycle
G75isusedforCannedCycle,ODGroovingCycle
G90isusedforCuttingCycleA
G92isusedforThreadCuttingCycle
G94isusedforCuttingCycleB

M10Clamp
M11Unclamp
M12SynchronizationCode
M19OrientedSpindleStop

2.2.HaasLatheCodes

G00*RAPIDPOSITIONINGMOTION(X,Z,U,W,B)(SETTING10,101)
G01LINEARINTERPOLATIONMOTION(X,Z,U,W,B,F)
G01CHAMFERINGANDCORNERROUNDING(X,Z,U,W,B,I,K,R,A,F)
G02CWCIRCULARINTERPOLATIONMOTION(X,Z,U,W,I,K,R,F)
G03CCWCIRCULARINTERPOLATIONMOTION(X,Z,U,W,I,K,R,F)
G04DWELL(P)(P=seconds.milliseconds)
G05**FINESPINDLECONTROLMOTION(X,Z,U,W,R,F)(LIVETOOLING)
G09EXACTSTOP,NONMODAL
G10PROGRAMMABLEOFFSETSETTING(X,Z,U,W,L,P,Q,R)
G14**MAINSPINDLESHIFTTOSUBSPINDLE
G15**MAINSPINDLESHIFTTOSUBSPINDLECANCEL
G17**CIRCULARMOTIONXYPLANESELECTION(G02,G03)(LIVETOOLING)
G18*CIRCULARMOTIONZXPLANESELECTION(G02,G03)(SETTING56)
G19**CIRCULARMOTIONYZPLANESELECTION(G02,G03)(LIVETOOLING)
G20*VERIFYINCHCOORDINATEPOSITIONING(SETTING9needstobeINCH)
G21VERIFYMETRICCOORDINATEPOSITIONING(SETTING9needstobe
METRIC)
G28MACHINEZERORETURNTHRUREF.POINT(X,Z,U,W,B)(Fanuc)
G29MOVETOLOCATIONTHROUGHG29REF.POINT(X,Z)(Fanuc)
G31**FEEDUNTILSKIPFUNCTION(X,Z,U,W,F)
G32THREADCUTTINGPATH,MODAL(X,Z,U,W,F)
G40*TOOLNOSECOMPENSATIONCANCELG41/G42(X,Z,U,W,I,K)(SETTING
56)
G41TOOLNOSECOMPENSATION,LEFT(X,Z,U,W)(SETTING43,44,58)
G42TOOLNOSECOMPENSATION,RIGHT(X,Z,U,W)(SETTING43,44,58)

2de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

G50SPINDLESPEEDMAXIMUMRPMLIMIT(S)
G51RETURNTOMACHINEZERO,CANCELOFFSET(Yasnac)
G52WORKOFFSETCOORDINATEPOSITIONING(Yasnac)
G52GLOBALWORKCOORDINATESYSTEMSHIFT(Fanuc)
G53MACHINECOORDINATEPOSITIONING,NONMODAL(X,Z,B)
G54*WORKOFFSETCOORDINATEPOSITIONING#1(SETTING56)
G55WORKOFFSETCOORDINATEPOSITIONING#2
G56WORKOFFSETCOORDINATEPOSITIONING#3
G57WORKOFFSETCOORDINATEPOSITIONING#4
G58WORKOFFSETCOORDINATEPOSITIONING#5
G59WORKOFFSETCOORDINATEPOSITIONING#6
G61EXACTSTOP,MODAL(X,Z)
G64*EXACTSTOPG61CANCEL(SETTING56)
G65**MACROSUBROUTINECALL
G70FINISHINGCYCLE(P,Q)
G71O.D./I.D.STOCKREMOVALCYCLE(P,Q,U,W,I,K,D,S,T,R1,F)(SETTING
72,73)
G72ENDFACESTOCKREMOVALCYCLE(P,Q,U,W,I,K,D,S,T,R1,F)(SETTING
72,73)
G73IRREGULARPATHSTOCKREMOVALCYCLE(P,Q,U,W,I,K,D,S,T,F)
G74FACEGROOVING,orHIGHSPEEDPECKDRILLCYCLE(X,Z,U,W,I,K,D,F)
(SETTING22)
G75O.D./I.D.PECKGROOVINGCYCLE,(X,Z,U,W,I,K,D,F)(SETTING22)
G76THREADCUTTINGCYCLE,MULTIPLEPASS(X,Z,U,W,I,K,A,D,F)(SETTING
86,95,96,99)
G77**FLATTINGCYCLE(I,J,L,R,S,K)(LIVETOOLING)
G80*CANCELCANNEDCYCLE(SETTING56)
G81DRILLCANNEDCYCLE(X,Z,W,R,F)
G82SPOTDRILL/COUNTERBORECANNEDCYCLE(X,Z,W,P,R,F)
G83PECKDRILLINGCANNEDCYCLE(X,Z,W,I,J,K,Q,P,R,F)(SETTING22,52)
G84TAPPINGCANNEDCYCLE(X,Z,W,R,F)
G85BOREIN,BOREOUTCANNEDCYCLE(X,Z,U,W,R,L,F)
G86BOREIN,STOP,RAPIDOUTCANNEDCYCLE(X,Z,U,W,R,L,F)
G87BOREIN,STOP,MANUALRETRACTCANNEDCYCLE(X,Z,U,W,R,L,F)
G88BOREIN,DWELL,MANUALRETRACTCANNEDCYCLE(X,Z,U,W,P,R,L,F)
G89BOREIN,DWELL,BOREOUTCANNEDCYCLE(X,Z,U,W,P,R,L,F)
G90O.D./I.D.TURNINGCYCLE,MODAL(X,Z,U,W,I,F)
G92THREADINGCYCLE,MODAL(X,Z,U,W,I,F)(SETTING95,96)
G94ENDFACINGCYCLE,MODAL(X,Z,U,W,K,F)
G95**ENDFACELIVETOOLINGRIGIDTAP(X,Z,W,R,F)
G96CONSTANTSURFACESPEED,CSSON(S)
G97*CONSTANTNONVARYINGSPINDLESPEED,CSSOFF(S)(SETTING56)
G98FEEDPERMINUTE(F)
G99*FEEDPERREVOLUTION(F)(SETTING56)
G100MIRRORIMAGECANCELG101
G101MIRRORIMAGE(X,Z)(SETTING45,47)
G102PROGRAMMABLEOUTPUTTORS232(X,Z)
G103LIMITBLOCKLOOKAHEAD(P0P15max.fornumbercontrollooksahead)
G105SERVOBARCOMMAND
G110G111WORKOFFSETCOORDINATEPOSITIONING#7#8
G112**CARTESIANTOPOLARTRANSFORMATION
G113**CARTESIANTOPOLARTRANSFORMATIONCANCEL
G114G129WORKOFFSETCOORDINATEPOSITIONING#9#24
G159**BACKGROUNDPICKUP/PARTRETURN

3de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

G160**APLAXISCOMMANDMODEON
G161**APLAXISCOMMANDMODEOFF
G184REVERSETAPPINGCANNEDCYCLE(X,Z,W,R,F)(SETTING130)
G187ACCURACYCONTROLFORHIGHSPEEDMACHINING(E)(SETTING85)
G194SUBSPINDLE/TAPPINGCANNEDCYCLE
G195LIVETOOLINGVECTORTAPPING(X,F)
G196LIVETOOLINGVECTORTAPPINGREVERSE(X,F)
G200INDEXONTHEFLY(X,Z,U,W,T)

M00PROGRAMSTOP(SETTING42,101)
M01OPTIONALPROGRAMSTOP(SETTING17)
M02PROGRAMEND
M03SPINDLEONFORWARD(S)(SETTING144)
M04SPINDLEONREVERSE(S)(SETTING144)
M05SPINDLESTOP
M08COOLANTON(SETTING32)
M09COOLANTOFF
M10CHUCKCLAMP(SETTING92)
M11CHUCKUNCLAMP(SETTING92)
M12**AUTOAIRJETON(P)
M13**AUTOAIRJETOFF
M14**MAINSPINDLECLAMP
M15**MAINSPINDLEUNCLAMP
M17ROTATETURRETFORWARD(T)(SETTING97)
M18ROTATETURRETREVERSE(T)(SETTING97)
M19**ORIENTSPINDLE(P,R)
M21**TAILSTOCKADVANCE(SETTING93,94,106,107,121,145)
M22**TAILSTOCKRETRACT(SETTING105)
M23ANGLEOUTOFTHREADON(SETTING95,96)
M24ANGLEOUTOFTHREADOFF
M30PROGRAMENDANDRESET(SETTING2,39,56,83)
M31CHIPAUGERFORWARD(SETTING114,115)
M32CHIPAUGERREVERSE(SETTING114,115)
M33CHIPAUGERSTOP
M36**PARTSCATCHERON
M37**PARTSCATCHEROFF
M41SPINDLELOWGEAROVERRIDE
M42SPINDLEHIGHGEAROVERRIDE
M43TURRETUNLOCK(FORSERVICEUSEONLY)
M44TURRETLOCK(FORSERVICEUSEONLY)
M51M58OPTIONALUSERMCODESET
M59OUTPUTRELAYSET(N)
M61M68OPTIONALUSERMCODECLEAR
M69OUTPUTRELAYCLEAR(N)
M76PROGRAMDISPLAYSINACTIVE
M77PROGRAMDISPLAYSACTIVE
M78ALARMIFSKIPSIGNALFOUND
M79ALARMIFSKIPSIGNALNOTFOUND
M85**AUTOMATICDOOROPEN(SETTING51,131)
M86**AUTOMATICDOORCLOSE(SETTING51,131)
M88**HIGHPRESSURECOOLANTON(SETTING32)
M89**HIGHPRESSURECOOLANTOFF
M93**AXISPOSITIONCAPTURESTART(P,Q)
M94**AXISPOSITIONCAPTURESTOP
M95SLEEPMODE(hh:mm)

4de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

M96JUMPIFNOSIGNAL(P,Q)
M97LOCALSUBROUTINECALL(P,L)
M98SUBPROGRAMCALL(P,L)
M99SUBPROGRAM/ROUTINERETURNORLOOP(P)(SETTING118)
M109**INTERACTIVEUSERINPUT(P)
M110**TAILSTOCKCHUCKCLAMP(SETTING122)
M111**TAILSTOCKCHUCKUNCLAMP(SETTING122)
M119**SUBSPINDLEORIENT(P,R)
M121M128OPTIONALUSERMCODEINTERFACEWITHMFINSIGNAL
M133**LIVETOOLDRIVEFORWARD(P)
M134**LIVETOOLDRIVEREVERSE(P)
M135**LIVETOOLDRIVESTOP
M143**SUBSPINDLEFORWARD(P)
M144**SUBSPINDLEREVERSE(P)
M145**SUBSPINDLESTOP
M154**CAXISENGAGE(SETTING102)
M155**CAXISDISENGAGE
M164**ROTATEAPLGRIPPERSTO"n"POSITION(Pn)
M165**OPENAPLGRIPPER1(RAWMATERIAL)
M166**CLOSEAPLGRIPPER1(RAWMATERIAL)
M167**OPENAPLGRIPPER2(FINISHEDMATERIAL)
M168**CLOSEAPLGRIPPER2(FINISHEDMATERIAL)

2.3.OKUMAOSP2200('80v intage)

G0rapid
G1feed
G2clockwisecircle
G3anticlockwisecircle
G4dwellf1000is10seconds
G13fronttoolturretmirrorimage(changescountdirectionofXaxisand
changedoffsetsanscompensationdirection)
G14backturretmirrorimage(sameasabove)
G2528chuckbarrierdefinitions
G3335Threading
G40cancelcompensation
G41compensationleft
G42compensaionright
G50origionshiftandmaxrpm
G80cancelautoprogrammodeandusedforlinejumping
G81apmodelongitudalcutting
G82apmodefacecutting
G83apmodegrooving
G85apmodebarturning
G86apmodecopyturning
G87apmodefinishingcycle
G90absolutepositionmode
G91incrementalmode(XandZ)
G92incrementalmodeX
G93incrementalmodeZ
G94feetperminutemode
G95inchesperrevolutionmode
G96constantcuttingspeedmode
G97contantrpmmode

5de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

M22/23threadchamferon/off
M24/25chuckbarrieron/off

T010201=toolpositionnumber02=tooloffsetnumberlatersystemsuseda
thirdnumbertodesignatecompensationnumber

3.Th reading
3.1.MitsubishiG33

MitsubishilistsG33forboththreadcuttingandtapping

G33Z#Q#E#(F#)
Zisthreadlength
Qistheshaftangleforthestart
Eisthethreadlead

Theyselecteithertpiorleadusingaparameterelsewhere.

3.2.SIEMENS840D,EMCOVariant

EMCOlistsG33forboththreadcuttingandtapping

G33X#Z#I/K#
XisendpositioninXforthread
ZisendpositioninZforthread
I/Kisthreadpitch

3.3.OKUMAOSP2200('80v intage)

G33X#Z#I#K#F#
Xisstartpositionofthread(depth)
Zisendpositionofthread
Iisamountoftaperinradius
Kischangeinleadperrevolution(variblepitchthread)
Fislead
G22/23turnschamferingonandoff
youwouldsetastartingpointwithaG0awayfromthreadthenG33would
rapidinXtostartpoint,feedtoprogrammedZpoint,feedoutinXthenrapid
backtotheG0programmedpoint

3.4.Addotherv ersionsofG33

please

4.MultipassTh readCuttin gCannedCycle


Singlepasslathethreadingislimitedincuttingabilityandrequiresaratherlarge
diameterbarinordertocutwithoutseriousdeflection.Mostmachinetoolmakers
usecannedcyclesormacrosinordertoimplementthreadingthatcutsmanytimes
acrossthethreadinordertoproducethefinalthreads.Belowareseveralexamples
ofwaystoachievemultipassthreading

6de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

4.1.Thisisfanucstylecannedcycle

G76P(m)(r)(a)Q(dmin)R(d)
G76X_Z_R(i)P(k)Q(dd)F(l)

m=Numberoffinishingcutsr=Chamferingamounta=Angleoftooltipdmin=
Minimumcuttingdepth(specifiedinradiusvalue)d=Finishingallowance(inradius
value)

X=XaxisdestinationZ=Zaxisdestinationi=Tapervalue(inradiusvalue)k=
Heightofthread(inradiusvalue)dd=Depthoffirstcut(inradiusvalue)l=Leadof
thread

Example:G76P010060Q100R200G76X60.64Z25.P3680Q1800F6.

Cutsathreadwithonefinishingcut,nochamferontheexitofthetool,withatooltip
angleof60deg.Itwillhaveaminimimdepthofcutof.1mmandwillhaveafinishing
allowanceof.2mm.Theminordiameterofthethreadis60.64mmanditwillcuta
thread25mmlongintheZminusdirection.Theheightofthethreadis3.68mmand
thedepthofthefirstcutis1.8mmandthethreadhasaleadof6mm.Thisthreadisa
straightthreadwithnotaper.

(qandaborrowedfromcad_cam_edm_drogroupabout2002)

AreQ,R,I,andthesecondPalwaysintheimplieddecimalformat?SinceZ,X,and
Faredecimalized,itseemskindofstrangetomixthetwointhesamecodedoubly
sosinceretrofitshaveallkindsofdifferentresolutions.

YesforsomereasonQ,R,Iandthe2ndPareasIputintheexample,Idon'tknow
whybutasIsaidallthreeFanucmachinesthatIhaveusethesameformat.Possibly
thiscouldbechangesintheparametersofthemachine.

I'mabituncleartheeffectofthechamferingamountinthesecondtwocharsofthe
Pword.IsthethreadchamferedwiththethreadingtoolexplicitlybytheG76cycle?
Seemslikeonewouldwanttotothiswithanothertool,butIguessitcouldbepretty
convenientthoughaspartofthethreadingaction.Oristhisjust"stayout"
informationsothecyclecanbeoptimized?

Thechamferingamountisontheretractionofthetoolattheendofthethread.Ifyou
leavethisamountat00thethreadwillendinagroove(nochamfer)butifyouuse
05thiswillchamferthethreadouttothemajordiameterofthethreadforadistance
of5mm.

4.2.MacroCannedCycle

Thefollowingspecificationisfromacompanythatwishestoremainnamelesshere.
I'mtoldthatthisistheSwissArmyKnifeofthreadcuttingsystems.Itusedacommon
g33callbutrepeatedforthenumberofpassesneededtocutandspringthethreads
tonearperfect.

GxxxLATHETHREADCYCLE<OD/ID/TAPER/MULTIPLESTART/VARIABLE
LEAD>

Inch/Metric?
AbsoluteG90ModeOnly
WithTheExceptionofM3/M4NoOtherMorGCodesAllowed

7de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

NOTE:CYCLEISDEVELOPEDFORDIAMETERCOMPENSATION,G41/G42AND
ENDSING40MODE.
CYCLEWILLPOSITIONZAXIS(1)PITCH+.11INCH,2.76MM
BEFOREG33ISACTIVATED.

GxxxFORMAT:
REQUIRED:GxxxB..E..J..O..R..U..V..W..Z..
OPTIONAL:N..GxxxA..B..C..D..E..F..H..I..J..K..M..O..Q..R..S..U..V..
W..X..Z..

NOTE:Becauseof80characterlinelimitation,itmaybenecessaryto
passinletteraddressvalues,inTwoorMoreLines.Seebelow:

FORMAT:
N10GxxxA..B..C..D..E..F..H..I..J..K..Firstlineupto80characters

N20M..O..Q..R..S..U..V..W..X..Z..Secondlineupto80characters

NOTE:CYCLEWILLNOTEXECUTEAXISMOTIONUNTILZVALUEISPASSEDIN.
ALWAYSPASSINZVALUEINLASTLINE.

LETTERADDRESSASSIGNMENTS:

A=InfeedAngle.<10Deg.Default>
B=NumberOfRoughPasses.
C=NumberOfSpringPasses.<0Default>
D=VariableLead,FinalLeadValueAtEndOfThread.<DefaultEValue>
E=InitialLeadValueAtBeginningOfThread.<Pitch>
F=PositioningFeedrate.<DefaultModalRate>
H=NumberOfThreadStarts(1StartDefault)
I=FirstPassIncrementalDepth.<DefaultCycleCalculatedDepth>
NOTE:IF"I"ISPASSEDIN,THENALLSUCCESSIVEROUGHCUTDEPTHSWILLBETH
<TOTALDEPTH1STDEPTH/NUMBEROFRGH.CUTS1.=SUCCESSIVEDEPTHS>
E.G.(.0625.02/10.2.)=.0047FOREACHSUCCESSIVEPASSES.
IF"I"ISNOTPASSEDIN,THENALLROUGHCUTDEPTHSWILLBECALCULATE
BYCYCLE.<TOTALDEPTH/SQUAREROOTOFNUMBEROFCUTS=1STDEPTH>
<SQUAREROOTOFLASTCUT+1.*1STDEPTH=SUCCESSIVEDEPTH>
E.G.(.0625/SQRT(10.)=.0198)1STDEPTH
SQRT(2)*.0198=.0280.0198=.00802NDDEPTH
SQRT(3)*.0198=.0343.0280=.00633RDDEPTH,ETC.
J=FinishPassIncrementalDepth.
K=PlusOrMinusTaperPerInch/Millimeter?.PlusTaper=+ZDIA.<ZDI
ExampleofPlusTaper.75/ft=K,.75/12.orK.0625
ExampleofMinusTaper.75/ft=K,.75/12.orK.0625
<0TaperDefault>
NOTE:CYCLEWILLCONVERTDIAMETERTAPERINTORADIUSTAPER,<L811/2.>
M=SpindleOn,M3CW/M4CCW.
O=ToolOrientation.1,1,2,or2.
O=1.ODThreadToolTip+XDirection
O=1.IDThreadToolTip+XDirection
O=2.ODThreadToolTipXDirection
O=2.IDThreadToolTipXDirection
Q=PullOutAtEndofThread.<DefaultXRetractAndOneRev.Feedrate>
Q=1.XZRetractAt45DegreesAndThreadLeadFeedrate.
NOTE:45DEGREERETRACT,WILLPOSITIONZAXISPASTTHEZFINALPOSITIO
EQUALTOTHEDEPTHOFTHREAD,PLUSL842VALUE.

8de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

R=XaxisIncrementalStart/Retract?ClearanceDistanceFromStartingDia
S=SpindleSpeed.
U=MinorDiameter.<SmallestStartingDia.>
V=MajorDiameter.<LargestStartingDia.>
W=ZaxisAbsoluteStartThreadPosition.<ThreadFace>
X=XaxisAbsoluteCenterPositionofThread.<X0Default>
Z=ZaxisFinalAbsoluteThreadPosition.

EXAMPLESOFCALLTOFOLLOW:

#1)Turnastraight,singleleadoutsidediameterthread,whichhasamajo
dia.of5.0"andminordia.of4.5".Threadsperinchequals10.Xaxi
clearanceequals.1".A45deg.XZretractisrequired.10deg.infee
8roughpasses,and3springpasses.Firstpassdepthequals.05".
Finishpassdepthequals.01.ThetooltippointsinaplusXdirectio
TheabsolutepositionofthreaddepthisZ1.5.Theabsoluteposition
threadstartisZ0.

CALLLINE:

GxxxB8.C3.E,1./10.,I.05J.01O1.Q1.R.1U4.5V5.W0Z1.5

NOTE:"I"firstpassdepthwaspassedinequalto.05,thereforeall
successivepasseswillbeofequaldepth.

#2)Sameexampleas#1,butmakethisthreadaminus.75taperperfoot.
Createa(2)linecall.

CALLLINE:

GxxxB8.C3.E,1./10.,I.05J.01K,.75/12.,O1.Q1.R.1U4.5V5.
W0Z1.5

#3)Sameexampleas#1,butadd100RPMspindlespeed,CWdirection,and
makemultiplestartthreadsequalto4starts.Createa(2)linecall.

CALLLINE:

GxxxB8.C3.E,1./10.,I.05J.01O1.H4.Q1.R.1S100M3
U4.5V5.W0Z1.5

PARAMETERASSIGNMENTS:
Lx27=RoughPassCounter
Lx28=SpringPassCounter
Lx29=IncremetalClearanceZRampon<InitL831+.01inch>
Lx30=ZAxisStartG41/G42Rampon
Lx31=IncrementalClearanceFinalZRamponPosition<Init1Pitch+.1in.
Lx32=ZAxisStartAfterRampon
Lx33=AverageDepthOfSuccessiveRoughPasses
Lx34=Start/End?TaperRadiusFactor
Lx35=G00/G01ModeWhenCycleIsCalled
Lx36=XAxisClearancePositionAtStart
Lx37=XAxisCutPositionAtStart
Lx38=XAxisCutPositionAtEnd
Lx39=XAxisPositionAtEndOf45degOutfeed
Lx40=ZAxisPositionAtEndOf45degOutfeed
Lx41=XRetractPositionAtEndPoint
Lx42=IncrementalClearanceXAxisAtEndOf45degOutfeed<Init.01>
Lx43=XAxisPositionAtRampon
Lx44=ZAxisPositionOfEndPointRelativeToInfeedAngle
Lx45=IncrementalMultipleStartSpindleAngle

9de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

Lx46=MultipleThreadStartCounter
Lx47=SpindleAngleSynchronization
Lx48=TangentFunctionOfInfeedAngle
Lx49=XDirectionalSign
Lx50=ZDirectionalSign
Lx51=CutterLeft/Right?G41/G42<WhileCutting>
Lx52=CutterLeft/Right?G41/G42<RetractingCut>
Lx53=EWordValueFor1SpindleRev.,OnRetractFromThread
Lx54=EWordValueAtStartOfG33
L854=SQRT(SQ(initiallead)2.*L831*L855)
Lx55=DWordValueAtStartOfG33
L855=(SQ(finallead)SQ(initiallead))/(2.*threadlength)
Lx56=CalculatedDepthCounter
Lx57=AccumulatedTotalCalculatedIncrementalDepth

5.ConstantSurfaceSpeed
Constantsurfacespeedisanessentialtoolforthelatheprogrammer.Itisusedto
improvesurfacefinishwhenfacingorwhenturning.Thereisaveryquickbut
comprehensivepdfthatintroducestheuseofithere.[CSS]

G50MaximumSpindleRPM
G96ConstantSurfaceSpeed
G97ConstantSurfaceSpeedCancel

6.Sam pleThreadingProgram s
6.1.Synergy1/420threadprogram

Param eters

Classname:AmericanStandardThreadClass2External
Classidnumber:11114
Name:0.2520_AS
Type:External
Tpi:20
Majordiameter:0.25
Pitchdiameter:0.2175
Minordiameter:0.1959
Angleofthread:60
Initialdepth:0.02
cleanuppasses:2

SynergyHow to

Toactuallycreatethethreaddothese4stepsafterstartingSynergy:

1)HittheTurntab

2)Tools>Read:ReadinanodthreadingtoolTools>ReadTool(thisisal

3)Macros>Threading:pickthetool,thethreadtypeandthe0.2520_ASfi
SpecifythestartpositioninZ(.1?),EndposZ(1?),itwillaskDi
buttheanswersareignored(Iknow,whyask,butitusesthestdpointi

4)Execute>DefaultLathe:Giveitprog.name(prog)andID#(1234),H

10de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

Edit>CNCOutput:Givesyou..

GcodeProgram

%1234

(****PROGRAM****)

(***T0101***odthd.60deg_Q1***)
N1G50X5.Z5.S1500
N2G00T0101M38
N3G96S410M08
N4M03
N5G0X.35Z3.8986
N6X.21
N7G33Z1.0031F.05
N8G0X.35
N9Z3.8942
N10X.1984
N11G33Z1.F.05
N12G0X.35
N13Z3.8942
N14X.196
N15G33Z1.F.05
N16G0X.35
N17Z3.8942
N18X.196
N19G33Z1.F.05
N20G0X.35
N21Z5.
N22X20.
N23G00T0100
N24M09
N25M30

Credit

BobSchuppel*bobs@webersys.com*(262)7820181*
WeberSystems*W134N5514CampbellDr.*MenomoneeFalls,WI53051

6.2.RoltekSampleThreadingProgram

Thisprogramshowssomemodificationofa1/420thread.

FanucpostGcodeprogram

(****PROGRAM****)
(***T0101***odthd.60deg_Q1***)
%
(1/420THREAD)
N0010T0100(INDEXINGTURRETTOTOOL)
G50S2000
G96S410M3
M8
G0X.35Z.1T0101(CALLINGTOOLOFFSETON1STRAPIDMOVE)
X.2231
G32Z1.F.05

11de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

G0X.35
Z.1
X.2079
G32Z1.F.05
G0X.35
Z.1
X.1959
G32Z1.F.05
G0X.35
Z.1
(2SPRINGPASSESAFTERFINALDEPTH)
X.1959
G32Z1.F.05
G0X.35
Z.1
X.1959
G32Z1.F.05
G0X.35
G0X5.0Z.1
M30
%

Credit

Roltek

7.Mastercam ThreadingParam etersPages

12de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

13de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

14de15 27/01/201014:20
EMCDocumentationWiki:Lath... http://wiki.linuxcnc.org/cgibin/...

EmcKnowledgeBase | RecentChanges| PageIndex | Preferences| LinuxCNC.org


Thispageisreadonly.Followthe BasicStepstoeditpages.| Viewotherrevisions
LasteditedAugust25,20065:46pmby ChrisMorley (diff)PublishedunderaCreativeCommonsLicense

15de15 27/01/201014:20

Vous aimerez peut-être aussi