0% found this document useful (0 votes)
1K views13 pages

Programming Fanuc Ot

This document summarizes programming commands for FANUC Series 0 - TC controllers. It includes: 1. G commands for linear interpolation, circular interpolation, timing, turning cycles, threading, and tool radius compensation. 2. M commands for stopping, spindle control, coolant control, and subroutines. 3. Details on programming formats for cycles including positioning, feeds, radii, and other parameters. 4. Explanations of tool radius compensation and its effects on dimensional accuracy for different movement types.

Uploaded by

saminzi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views13 pages

Programming Fanuc Ot

This document summarizes programming commands for FANUC Series 0 - TC controllers. It includes: 1. G commands for linear interpolation, circular interpolation, timing, turning cycles, threading, and tool radius compensation. 2. M commands for stopping, spindle control, coolant control, and subroutines. 3. Details on programming formats for cycles including positioning, feeds, radii, and other parameters. 4. Explanations of tool radius compensation and its effects on dimensional accuracy for different movement types.

Uploaded by

saminzi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

FANUC SERIES 0 - TC PROGRAMMING Programming Gr Program Structure NC programming is used for machine tools according to DIN 66 025.

l NC program c onsists of a sequence of program blocks that are stored in the control unit. Whe n machining workpieces, the computer reads and checks these blocks according to the programmed sequence. Are sent to the machine tool corresponding control sign als. An implementation program consists of: Number Blocks program CN Words Directions Combinations of numbers (if necessary, with signs). A # # 0 # # # # # # # # # BC Command G04 G07.1 G28 G10 G11 G70 G72 G71 G73 G72 G74 G73 G75 G74 G75 G76 G76 G77 G78 G92 Cylindrical Interpolation Function Timing Data selection paired Approximate Sele ction. to pt. Reference Cycle finished roughing cycle. long. contour roughing cy cle, trans. the contour. Further Cycle contour Deep hole drilling / grooving Z C ycle Cycle Cycle X slotted screw fix multiple coordinate system / Rate Limiting Fast Linear interpolation Circular interpolation counterclockwise circular inter polation cycle time roughing longitudinal thread milling cycle Carved front Cycl e Thread constant cutting speed RPM Number Programming Programming absolute incr emental advance in mm / min Feed in mm / revolution Programming Programming in i nches millimeters Cancel cutter radius compensation of cutter radius compensatio n left radius compensation cutting cycle right Cancel Drilling Drilling Cycle Cy cle Cycle Tapping Reaming Return Return to the original plane to plane XY plane withdrawal Selection Selection Selection ZX plane YZ plane Starts Ends polar coo rdinate interpolation interpolation polar coordinate G50 1 Addresses Used ONGX, ZU, WRCI, KFSTMPQ; number 1-9499 main program for part programs and subrou tines. Block number, from 1 to 9999 tour function. Position data in absolute val ues (X also delay) Data incremental position values (U also timing) Radio, as co nical chamfer Parameters parameters arc cycles forward, step threaded spindle sp eed, cutting speed Call tool ( length calculation) logic function, additional fu nction timing, subroutine call, Parameters parameters cycle End of cycle cycles February 3 May 6 G01 G00 G02 G03 G77 G20 G90 G92 G78 G21 G94 G79 G24 G32 G33 G96 G97 G98 X G90 X G91 G94 G95 G20 G99 G70 G21 G71 G40 7 G42 G41 G80 G83 G84 G85 G98 G99 G17 G18 G19 G12.1 10

11 X X 16 21 Command Summary for the Branch functions G Commands A, B, C These instructions describe the subdivision into commands C. If using Version A or B, you must enter the codes for the description of commands. G13.1 ................ Initial State # ................ Active only block by block For version A there are no commands in groups 3 and 11. Incremental programming is done in the version provided with U A and W, withdrawal movements are always made to the initial level. He combined: Julio Alberto Correa Page 1 of 17 FANUC SERIES 0 - TC PROGRAMMING Summary of Functions M Commands M00 ............ M01 ............ M02 ............ M03 ............ M04 ........ .... M05 ............ M08 ............ M09 ............ M20 ............ M21 ... ......... M25 ............ M26 ............ M30 ............ M71 ............ M7 2 ............ M98 ............ M99 ............ Parade scheduled stop scheduled End of program conditional on the right spindle turned to the left spindle turn ed off spindle. Coolant, Coolant connected, disconnected Counterpoint back. Coun terpoint later. Open lanyard. Close lanyard. End program. Blow off Blow connecte d subroutine call. End subroutine, order jump. G01 Linear Interpolation Command Description Features Fast Forward G00 G Format N ... G00 X (U) ... Z (W) ... The cars move at maximum speed to the progr ammed end point (position tool change, for the next starting point shaving). Not es While running G00 delete a programmed feed F. The fast forward speed def ined by the manufacturer of the machine. The advance correction switch "100% is limited to 100%. Must be checked beforehand that there are no obstacles in the p ath of the tool. Format N. .. G01 X (U) ... Z (W) ... F. .. Longitudinal straight motion, turning advancement program. Example: G90 G95 Absolute N ... ................ N20 G01 Z 20.1 X40 F0.1 G91 Incremental (facing, conical) with turning speed N.. F0.1 G95 ........... N20 G01 X10 Z-25.9 Example: Absolute N50 G90 G00 X40 Z56 Incremental N50 G91 G00 X-30 Z-30.5

He combined: Julio Alberto Correa Page 2 of 17 FANUC SERIES 0 - TC PROGRAMMING G02 circular interpolation G03 Circular interpolation Right Left N. format ... G02 X (U ).... Z (W ).... I. ... K. ... F. ... or N. ... G02 X (U ).... Z (W ).... R. ... F. ... X, Z, (U) (W) .... Endpoint of the arc I, K ..... ....... Incremental parameters of the arc. (Distance from the starting point at the center of the arc, I is related to the X axis, Z axis K). R .............. R adio Arc tool moves to the end point along the arc defined programmed in advance F. Notes: If I or K has value 0, the parameter in question should not be introduced . If R is introduced as a positive value, you get an arc <180 , if introduced a s a negative value, the arc is> 180 . According to DIN 66 025, must complete G0 2, G03 always behind the axis of rotation, whether the machining occurs behind o r in front of the axis of rotation. G04 Timing (Sec) (msec) N. format ... G04 X (U )...... or N. ... G04 P. ... G20 Longitudinal Turning Cycle Format N. .. G20 (cylindrical) or N. .. G20 (conical) X (U) ... Z (W) ... F. .. The movement of the tool stops during a time defined by X, U or P - sharp edges - transitions - cleaning the bottom of the slot, exact stop. Note: - Under the d irection P can not use the point - decimal. - Timing begins at the time the spee d of the previous block has reached zero. - T max. = 2000seg., T min. = 0.1 sec. - Input Resolution 100 msec. (0.1 sec.) Example: N75 G04 X2.5 X (U) ... Z (W) ... R. .. F. .. X (U), Z (W )........ Absolute coordinates (incremen.) edge point of the contour K. R (mm) ........ Conical Dimension X-axis incremental direction (+ / -). Note s: This cycle is modal and cancel another function G of the same group. For the fol lowing blocks of the cycle you just have to program the modified coordinates (se e example on next page). The negative taper parameter (-R) defines the cone show n in the drawing next door. (Time = 2.5 sec.) N95 G04 P1000 (time = 1 sec. = 1000 msec.)

He combined: Julio Alberto Correa Page 3 of 17 FANUC SERIES 0 - TC PROGRAMMING G21 thread milling cycle Format N. .. G21 X (U) ... Z (W) ... F. .. (Cylindrical). or N. .. G21 X (U) ... Z (W) ... R. .. F. .. (Cone). F. ...... Thread pitch (mm). Other addresses and notes: as in G20. Since there is no automatic return to the starting point, is mainly used multipl e threading cycle G78. It can also be machined as the knurled knurled or diagona l. Notes - In the taper, you must define the screw threads with the highest valu e of X or Z axis - Is it possible to cut continuous thread (multiple threads). Facing G24 Cycle N. format .... G28 X (U )..... Z (W )..... or N. .. G24 X (U) ... Z (W) ... R. . . F. .. (Cylindrical) (cone) R ...... Incremental value of measurement of the cone in the Z axis Other addres ses and notes: See G20 cycle without measure facing conical R. The negative para meter defines the cone, as shown in the figure below. G28 Reference point approach. N. format .... G28 X (U) Z (W )..... X, Z .... Absolute coordinates of the middl e position. U, W. .... Incremental Coordinates the middle position. The G28 comm and is used to approximate the reference point through an intermediate position (X (U), Z (W)). First withdrawal occurs X (U) or Z (W), then the approach to the benchmark. Both movements are done with G00. G92 offset is canceled. Tool radius compensation. For measuring tools, the cutting plate is measured only at two points (tangents to the axes X and Z). Measuring tool only describes therefore a theoretical poin t of the insert. This point is moved in the paths programmed workpiece. For move ments in the directions of the axes (longitudinal turning or facing) is working with the tangential points of the cutting plate. Therefore there are no dimensio nal errors in the workpiece. For simultaneous two-way movement of axles (cones, radios), the position of cutting theoretical point no longer coincides with the actual point of cutting plate tool. In the workpiece dimensional errors occur. M aximum error contours without radius compensation tool in movements of 45 degree s. Cutting radius 0.4 mm 0.16 mm, distance from path 0.24 mm in X and Z. If you use the tool radius correction,control automatically calculates and compens ates for these dimensional errors. G33 Thread Cutting of N. format .... G33 X (U )..... Z (W )..... F. .... F .......... Thread pitch (mm ) thread can be carved cylindrical, conical and the side facing. He combined: Julio Alberto Correa Page 4 of 17 FANUC SERIES 0 - TC PROGRAMMING G40 is usually defined in the block of withdrawal for the tool change point.

G41 Tool radius compensation left. If the tool (seen in the forward direction) is on the left of the material to be machined, G41 must be programmed. Notes - Do not switch directly between G41 an d G42 (G40 cancel first.) - It is essential to define the cutting radius R and T jackknife position (type of tool). - Selection is required in connection with G 00 or G01. - Unable to change to correct tool if cutter radius compensation sele cted. Radio theoretical edge and tip of the insert. Cutting movements parallel to the axis and oblique. In arches the approximation is always made to the tangent of the starting point / finish arch. The approach and withdrawal boundary should be higher than the cutting radius R, otherwise th e program stops with alarm. If contour elements are smaller than the cutter radi us, can damage the edge. The software calculates ahead 3 blocks to detect and st op potential problems in this case the program with an alarm. G42 radius compensation right. If the tool set (seen in the forward direction) is on the right of the contour t o be machined, G42 must be programmed. Note: See G41! G40 Cancel cutter radius compensation. The cutter radius compensation is canceled with G40. Cancellation is allowed onl y with a linear path command (G00, G01). G40 can be programmed in the same block as G00 or G01 or in the previous block. He combined: Julio Alberto Correa Page 5 of 17 FANUC SERIES 0 - TC PROGRAMMING G70 Format N5 G70 Measures in Inches Advance F (inches / min., Inches / rev) values offset (zero point, geometry and wear: inches) Displacement. (Inches) Viewing the current position. (Inches) Cutt ing speed. (Feet / minute) Notes: For clarity, G70 must be defined in the first block of the program. The last sch eduled measurement system remains active, even after disconnecting / connecting the main switch. To return to the original measurement system, it is preferable to use the MDI mode (eg. MDI G70 Cycle Start) first block U ... (mm) Cutting depth incremental, unsigned, represented in the p lane as UR ... (mm) Height of abating. sec. Block P. .. number of the first bloc k to describe the contour. Q. .. Number of the last block to describe the contou r. U ... (mm.) sobremetal finishing in X direction (with sign). G71 Measured in millimeters.

Comment Form N5 G71 and notes: As in G70 G72 Finishing Cycle Format N. .. G72 P ... Q. .. P. .... Number of the first cutting block scheduled to finish the outline. Q. .... Number of the last block set to finish the outli ne. court After grinding with G73, G74 or G75, the G72 command allows final finish dimensi on. The court scheduled with P and Q which is also used for roughing, will be re peated division of oversize cutting and finishing without previously defined. No tes - The functions F, S, T and G41 or G42, which are scheduled between P and Q, are only effective for G72. - The cycle can only be programmed after G72 cycles G73, G74 or G75. Example: turning the contour pictured above, U1, R, U2 and W (N100 and N110) sel ected, highly magnified for better representation. A: X = 102, Z = 0 A ': X = 10 0, Z = 0 B: X = 100, Z = -50 Program: Page 6 of 17 G73 Longitudinal Turning Cycle as contour N. format .... G73 U. .. R. .. N. .... G73 P. .. Q. .. U +/-... W +/-... F. .. S . .. T. .. He combined: Julio Alberto Correa FANUC SERIES 0 - TC PROGRAMMING ....... N70 ....... ....... N110 N100 N120 N130 N140 N150 N160 N170 N180 N190 N2 00 N210 ....... G00 Z0 x102 (Point A) G73 P120 Q190 U8 U10 R2 W5 G73 G0 X20 (Point A ') G1 Z-15 X40 X70 Z-30 Z-40 Z-50 X80 X90 X100 (Point B) S.. F.. T.. (Select Tools. Finish) G72 P120 Q190 (Cycle finish) G74 Cycle of fronts as boundary Format: N. ... G74 W. .. R. .. N. ... G74 P. .. Q. .. U +/-... W +/-... F. .. S. .. T. .. First block W. .. depth of cut in Z height setback R. .. P. .. Second block number of the first block of Q. .. No. contour of the last block of the U shape ... [mm] ... sobremetal of finished in the direction of the axis X represe nted as U + W ... [mm] ... sobremetal finishing in the direction of axis X repre sented as W + Before machining, the tool must be the starting point,which will return when cycle ends Follow contour G75 Are made parallel to the final contour machining, using semi-finished parts (for gings and castings) Format N. .. G75 U +/-... W +/-... R. .. N. .. G75 P. .. Q. .. U. .. W. .. F. .. S. .. T. .. First block U ... [mm] ... initial point of the cycle in the X-axis (incremental on the radio, signed). In the drawing represen ted as U. W. .. starting point of the cycle in the Z axis (incremental, with sig n) as shown in the drawing W. R. .. Number of repetitions (equal to the number o f cuts. Second P. .. block No. contour of the first block No. Q. .. the last blo ck of the U shape ... [mm] ... sobremetal finishing in the direction X axis repr esented as U + W ... [mm] ... sobremetal finishing in the direction of axis X re presented as W +

Notes: The outline should be scheduled on a decreasing, ie reducing the diameter. The s tarting point should be located outside the contour, ie must be on the right end point. The first set of contour should be programmed with G00 or G01, only allo wed a shift of Z axis (G00 Z. ..) and must be programmed in absolute coordinates . The functions F, S and T are ignored within the outline. Do not call subroutin es between P and Q. He combined: Julio Alberto Correa Page 7 of 17 FANUC SERIES 0 - TC PROGRAMMING - - In the cutting cycle, the last P must be less than the width of the tool. In the first cut will not be made recess at the end point Z. The rebate measure must a lways have a positive value. G77 Cycle longitudinal (X axis) Format R ... N ... N ... G77 G77 X (U) ... Z (W) ... P ... Q ... R ... F ... R . .. First block (mm) height for recoil-cutting, in incremental unsigned. (In fig. R1) Sec Block X (U), Z (W) coordinates of point K boundary corner. P ... (mm) d epth of cut in direction X, the positive development will be less than the width of the tool. Q ... (mm) incremental progress in the direction Z. R ... recess a t the end point X (in Fig. R2) F ... progress. G76 Deep hole drilling / cutting cycle facing (Z axis) Format R ... N ... N ... G76 G76 X (U) ... Z (W) ... P ... Q ... R ... F ... R . .. First block (mm) height of withdrawal for removing chips, in incremental unsi gned. (In fig. R1) Sec Block X (U), Z (W) coordinates of the boundary corner K o r Z (W) end of drilling. P ... (mm) incremental progress toward X, unsigned, (P <width tool.) Q ... (mm) cutting depth Z. R ... far recess (in Fig. R2) F ... pr ogress. Notes - - - - Progress Q must be less than the width of the tool. In this cycle does n ot take into account the width of the tool. In the first cut will not be made re cess. The rebate measure must always have a positive value. Notes - If you omit the X (U) and P, can be used as G76 drilling cycle. Page 8 of 17 He combined: Julio Alberto Correa FANUC SERIES 0 - TC PROGRAMMING Multiple threading cycle G78. Format G78 N ... P ... Q ... R ... N ... G78 X (U) ... Z (W) ... R ... P ... Q .

.. F ... ... ... First block P is a parameter of three pairs of digits are: PXXx xxx, number finishing cuts. PxxXXxx (mm), the value of the bevel (see fig.). Pxx xxXX, flank angle (80, 60, 55, 30, 29, 0.) Q ... (mm) minimum depth of cut incrementally. R ... (mm) Sobrematerial incremen ta.l finishing second block X (U), Z (W), end point coordinates of the thread (i n Fig. K). R ... (mm) difference in radios in threaded cone. In straight thread zero. P ... (mm) Thread depth. Q ... (mm) incremental depth of cut. F ... (mm) p itch of the thread. first He combined: Julio Alberto Correa Page 9 of 17 FANUC SERIES 0 - TC PROGRAMMING Cancel G80 drilling cycle. Format N ... G80 drilling cycles are modal. Hence it has to be canceled with G80 or another command in group 1 (G00, G01, ...). Development of the movement: 1. The tool moves fast forward from the starting po sition (S) to the plane defined by R. 2. Drilling is performed until the final d epth E. 3. The withdrawal is made from G98 to G99 to S or R. Return to the original level G98/G99 withdrawal. With G98, after reaching the depth of drilling, the tool back to the initial lev el. With G99, the tool withdrawal back to the plane defined by the parameter R. R defines the position of the level of return with reference to the last Z posit ion (starting position for the drilling cycle.) If the value of R is negative, t he level of return is below the starting position. Otherwise, this top of it. He combined: Julio Alberto Correa Page 10 of 17 FANUC SERIES 0 - TC PROGRAMMING G83 Drilling Cycle Format N ... G98 (G99) G83 X0 Z (W) ... (R ...) Q ... P ... F ... M ... G98 (G99 ), return to the initial level. X0,position on the axis of the workpiece X. Z . .. (W), depth of drilling. R ... (mm), incremental value measured on the disenga gement plan Z. Q ... (mm), increased feed per cut. P ... (ms), timer at the bott om of the hole. F ... progress. M ..., M3 or M4. Notes - - - If programmed G99 (withdrawn to the level of recall), specify the paramete r R. With G98 you can omit R. No need to program X0 if the tool has been the cen ter of rotation previously. Q If not specified, no division is made of cut, ie, drilling is done in one movement to the end point Z. G84 Tapping cycle. Format N ... G98 (G99) G84 X0 Z (W) ... (R ...) P ... F ... F ... F ..., X0 thre ad pitch, position in the center of the piece. Z (W) ... drilling depth. R ... ( mm), the return value with respect to the starting point in Z. P ... (ms), time spent at the bottom of the hole. M ..., or M04 M03. Warnings: - - If programmed G99 (back to the level of return), it should also define the direction R (with R

G98 can be eliminated). Start the cycle with the corresponding M function. In t he end, the spindle rotation direction changes automatically to reverse. He combined: Julio Alberto Correa Page 11 of 17 FANUC SERIES 0 - TC PROGRAMMING G85 Boring cycle. Format N ... G98 (G99) G85 X0 Z (W) ... (R ...) P ... F ... M ... X0, located in the heart of the piece. Z (W) ... drilling depth. R ... (mm), the return value with respect to the starting point in Z. P ... (ms), time spent at the bottom of the hole. F ... progress. M ..., M03 or M04. Note: - If programmed G99 (back to the level of return), it should also define the direction R (with R G98 can be eliminated). - Begin the series with the corresponding M function. In the end, t he spindle rotation direction changes automatically to reverse. - The setback to the starting point is done at twice the speed. Programming G90 absolute value. N. format ... G90 addresses must be programmed as follows: X .......... Diameter . Z - / + ..... Absolute (relative to the zero point of the workpiece) Notes: We do not allow direct switching between G90 and G91 in a block. G90 (and G91) can also be programmed with other functions G. (N. ... X. ... Z. G00 G90 ...). Incremental Programming G91 value. N. format ... G91 addresses must be programmed as follows: X .......... Radius o f the workpiece. Z + / - .... Incremental Displacement (real) with sign. Notes: As in G90. G92 Coordinate System Setting (Offset displacement of the origin or source) You can move the origin only once during the program. This change from ground ze ro mode is activated, and not canceled or the M30 or RESET. Therefore, before en ding the program, allow the source enabled that was active at the beginning of i t. Example: Suppose you want to change the zero of a piece of 30 mm from the fr ont surface up to 150 mm on the left, toward the plate. N. .. .................. G90 ................................ .................. .............. N180 G0 X35, N185 Z-150, N190 G92 Z0; ........................... ..... ................................ ................................ N300 G0 X35; He combined: Julio Alberto Correa Program in absolute value. Machining .... .................... ............................................. Recoil in dia meter. I move to the left. Fixed new source on Z. Machining continued ........ . ............................................ ................................... .......... Recoil in diameter. Page 12 of 17 FANUC SERIES 0 - TC Z150 N305, N310 G92 Z0; ................................ ... ............................. N. .. M30, I move to the right. Part Zero back to the right. ............................................. I end the program. PROGRAMMING G92 Limitation of Revolutions. If the speed is too high for the intended purposes (eg. Platter speed limited, u nbalanced workpieces ....), G92 must be programmed. Format: N. ... S. G92 ... (R PM) With G92 you can determine the maximum speed (rev / min.) Spindle for a prog ram of pieces (only active with G96). Enter the desired value in the direction S

. This command is used with constant speed cutting. G94 Feed per minute. With the G94 command, all the values programmed in "F" (forward) are values in m m / min. (Inches / min.). G95 Feed per revolution. With the G95 command, all the values programmed in "F" (forward) are the values in mm / rev. (Inches / rev.). G96 Constant Cutting Speed Unit: m / min., Ft / min. The control continuously calculates the speed of the spindle corresponding to ea ch actual diameter.With diameters decrease to 0, the speed increase to infinity . Actually increases to maximum speed of the machine in question and the program runs without alarm. The advance is automatically set to G95 (mm / rev.) G97 Constant speed. Unit: rpm. (RPM) G96 is deselected and the spindle speed is maintained with the latest theoretical value. Then S is set to rev / min. He combined: Julio Alberto Correa Page 13 of 17 FANUC SERIES 0 - TC PROGRAMMING Description of the Commands M M commands are in logic or complementary function, and can be activated in a pro gram block alone or together with other commands. Commands from the same group c ancel each other, ie, the last scheduled command cancels the previous M M comman d the same group. Note: that a command is executed depends on the type of machin e and accessories used. M05 Head off The motor stops electrically. At the end of the program, the head engine stops a utomatically without having to call it. M08 Coolant connected Connect the coolant pump. M09 M00 Coolant off scheduled stop unconditional Disconnect the coolant pump. This command stops the execution of a program of pieces. The main spindle, progr ess and coolant are disconnected. The chip shield door can be opened without tri ggering the alarm. The program execution can continue with "Starting Program" M20 back Counterpoint

Back counterpoint (in counterpoint automatic lathes as accessory). with Counterpoint M21 forward The counterpoint is progressing (in automatic lathes tailstock as accessory). Conditional M01 scheduled stop Opera as M00, but only if the stop function is operated from INFLUENCING PROGRAM IS SCHEDULED. M25 Open lanyard On lathes with automatic lanyard, it opens. M26 Close lanyard On lathes with automatic lanyard, it closes. M02 End of main program With M02 disconnect all motors and control returns to the beginning of the progr am. In addition, the counter increases by "1." M30 Main Program End M30 acts similarly to M02. Blowing M71 M03 Main spindle connected connected to the right (counterclockwise rotation) The spindle is activated whenever there is a programmed number of revolutions or a cutting speed, the chip shield door is closed and has a workpiece properly ti ed. Used for cutting tools or tools right reversed, if the tool is behind the ax is of rotation. Only blowing lathes with automatic attachment. The device connec ts to the head start. Blowing off M72 Only around with automatic attachment. The device is disconnected. blowing M04 Main spindle connected to the left (direction of rotation schedule) As in M03 function. He combined: Julio Alberto Correa Page 14 of 17 FANUC SERIES 0 - TC PROGRAMMING Call a subroutine M98 In some cases, may resort to making sub for repeated operations in the piece, fo r example for the repetition of similar grooves on a shaft. N. format ... M98 P ... P ..., the first four digits to the right define the number of sub-program, following the number of repetitions. Notes - M98 can also be designated in relation to shift instructions (eg. G01 M98 X25 P1235001). When no number of repetitions, the applet will run only once. When th ere is the number of sub-set, an alarm is triggered. It allowed a double nesting level. - - M99 End of sub / order jump. Format N ... M99 P ... M99 in the main program: No address jump Jump ball to beg

in the program with the jump address Pxxxx Salto block No xxxx M99 in the applet : No address jump jump to the calling program at block follows the named block ( see fig.) with the jump address Pxxxx Jump to the calling program, the block num ber xxxx Notes - M99 should be the last command in the subprogram. The control automatically re turns to the main program. He combined: Julio Alberto Correa Page 15 of 17 FANUC SERIES 0 - TC PROGRAMMING PROGRAMMING EXAMPLE Cutting data Raw Diameter: 25.4 mm Length of material: 61 mm roughing and finishing tool: T02 02 Rough Cut-off: 220 m / min cutting speed in finish: Report on the roughing 2 50m/minuto: 0.08 mm / rev Feed finishing: 0.06 mm / rev Depth of passing, finish ing Sobrematerial 0.4mm in X and Z: 0.05 mm threading tool: T0404 Thread depth: 0.6 mm internal diameter screw: 12.8 mm threaded RPM Number: 300 He combined: Julio Alberto Correa Page 16 of 17 FANUC SERIES 0 - TC PROGRAMMING T0202 N5 N10 N15 G96 S260 M3 F.08 G N20 G73 X25.4 U.4 R.5 Z5 G73 P30 Q80 N25 N30 W.05 U.05 N35 G1 X10 XZ N40 G42 X14 Z-2 Z-8.15 N45 N50 X11 0.7 Z-18 Z-20 N60 N5 5 N65 X16 X18 Z-21 Z-35.28 N70 N75 G3 X24 Z-43.21 G1 X25.4 G40 R12 N80 N85 N90 G 72 G96 S275 F.06 G P30 Q80 N95 N100 T0404 N105 G97 Z40 G S300 N110 N115 G78 X14 Z5 R.02 P020560 Q50 N120 G78 X12.8 Z-18 R0 P600 G Q30 Z40 F1.25 N125 T0202 N132 N135 N130 M G X26 Z-26.57 Z n145 N140 G92 G96 S260 N150 F.08 G Z7 N155 G73 X25.4 U.4 R.5 N160 G73 P165 Q185 U.05 Z6 W.05 X N165 G42 G1 Z N175 N170 G3 X24 Z-12 R 12 N180 G1 Z-14 N185 G96 S275 N190 G40 X25.4 F N195 G72 P165 Q185 06 G N200 G92 X26 Z Z26.57 N205 N215 N210 G M30 Z50 Cargo tool. I put cutting speed, feed and head rotation. Approximate diameter cr ude tool. Roughing cycle. Depth and return. Start and end of the outline. Sobrem aterial. Cutter radius correction. Saco cutter radius correction. Cutting speed and feed for finishing. Finishing c ycle. Cargo threading tool. Constant rotation speed. Tapping cycle. Finish. Cham fer value. Ang. flank. Prof. Min. cutting. Sobremat. Cone. Prof. thread. 1 Prof. court. Paso. Scheduled stop unconditionally. Zero offset. Zero offset. End of program. This point was excerpted from FANUC 0TC Emco manual. He combined: Julio Alberto Correa

Page 17 of 17

You might also like