programming fanuc ot

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

Upload: saminzi

Post on 12-Nov-2014

147 views

Category:

Documents


3 download

DESCRIPTION

hjfjgk

TRANSCRIPT

Page 1: Programming Fanuc Ot

FANUC SERIES 0 - TC

PROGRAMMING

ProgrammingGr

Program StructureNC programming is used for machine tools according to DIN 66 025. l NC program consists of a sequence of program blocks that are stored in the control unit. When machining workpieces, the computer reads and checks these blocks according to the programmed sequence. Are sent to the machine tool corresponding control signals. 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 Selection. to pt. Reference Cycle finished roughing cycle. long. contour roughing cycle, trans. the contour. Further Cycle contour Deep hole drilling / grooving Z Cycle Cycle Cycle X slotted screw fix multiple coordinate system / Rate Limiting Fast Linear interpolation Circular interpolation counterclockwise circular interpolation cycle time roughing longitudinal thread milling cycle Carved front Cycle Thread constant cutting speed RPM Number Programming Programming absolute incremental advance in mm / min Feed in mm / revolution Programming Programming in inches millimeters Cancel cutter radius compensation of cutter radius compensation left radius compensation cutting cycle right Cancel Drilling Drilling Cycle Cycle Cycle Tapping Reaming Return Return to the original plane to plane XY plane withdrawal Selection Selection Selection ZX plane YZ plane Starts Ends polar coordinate interpolation interpolation polar coordinate

G50

1

Addresses UsedONGX, ZU, WRCI, KFSTMPQ; number 1-9499 main program for part programs and subroutines. Block number, from 1 to 9999 tour function. Position data in absolute values (X also delay) Data incremental position values (U also timing) Radio, as conical chamfer Parameters parameters arc cycles forward, step threaded spindle speed, cutting speed Call tool ( length calculation) logic function, additional function 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

Page 2: Programming Fanuc Ot

11

X X

16

21

Command Summary for the Branch functions G Commands A, B, CThese 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 blockFor 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 CommandsM00 ............ M01 ............ M02 ............ M03 ............ M04 ............ M05 ............ M08 ............ M09 ............ M20 ............ M21 ............ M25 ............ M26 ............ M30 ............ M71 ............ M72 ............ M98 ............ M99 ............ Parade scheduled stop scheduled End of program conditional on the right spindle turned to the left spindle turned off spindle. Coolant, Coolant connected, disconnected Counterpoint back. Counterpoint later. Open lanyard. Close lanyard. End program. Blow off Blow connected subroutine call. End subroutine, order jump.

G01

Linear Interpolation

Command Description Features Fast Forward G00 GFormat N ... G00 X (U) ... Z (W) ... The cars move at maximum speed to the programmed end point (position tool change, for the next starting point shaving). Notes• • • • While running G00 delete a programmed feed F. The fast forward speed defined 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 path of the tool.

Format N. .. G01 X (U) ... Z (W) ... F. .. Longitudinal straight motion, turning advancement program. Example: G90 G95 Absolute N ... ................ N20 G01 Z20.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

Page 3: Programming Fanuc Ot

He combined: Julio Alberto Correa

Page 2 of 17

FANUC SERIES 0 - TC

PROGRAMMING

G02 circular interpolation G03 Circular interpolation Right LeftN. 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 .............. Radio 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 as a negative value, the arc is> 180 º. According to DIN 66 025, must complete G02, G03 always behind the axis of rotation, whether the machining occurs behind or in front of the axis of rotation.

G04

Timing(Sec) (msec)

N. format ... G04 X (U )...... or N. ... G04 P. ...

G20 Longitudinal Turning CycleFormat 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 direction P can not use the point - decimal. - Timing begins at the time the speed 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 (+ / -). Notes:This cycle is modal and cancel another function G of the same group. For the following blocks of the cycle you just have to program the modified coordinates (see example on next page). The negative taper parameter (-R) defines the cone shown in the drawing next door.

(Time = 2.5 sec.)

-

N95 G04 P1000 (time = 1 sec. = 1000 msec.)

Page 4: Programming Fanuc Ot

He combined: Julio Alberto Correa

Page 3 of 17

FANUC SERIES 0 - TC

PROGRAMMING

G21 thread milling cycleFormat 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 multiple threading cycle G78. It can also be machined as the knurled knurled or diagonal. Notes - In the taper, you must define the screw threads with the highest value of X or Z axis - Is it possible to cut continuous thread (multiple threads).

Facing G24 CycleN. 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 addresses and notes: See G20 cycle without measure facing conical R. The negative parameter 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 middle position. U, W. .... Incremental Coordinates the middle position. The G28 command 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 point of the insert. This point is moved in the paths programmed workpiece. For movements in the directions of the axes (longitudinal turning or facing) is working with the tangential points of the cutting plate. Therefore there are no dimensional 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. Maximum error contours without radius compensation tool in movements of 45 degrees. 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 compensates for these dimensional errors.

G33 Thread Cutting ofN. 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.

Page 5: Programming Fanuc Ot

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 and 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 G00 or G01. - Unable to change to correct tool if cutter radius compensation selected.

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 the program stops with alarm. If contour elements are smaller than the cutter radius, can damage the edge. The software calculates ahead 3 blocks to detect and stop 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 to 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 only 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

G70Format 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) Cutting speed. (Feet / minute)

Notes:For clarity, G70 must be defined in the first block of the program. The last scheduled 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 plane as UR ... (mm) Height of abating. sec. Block P. .. number of the first block to describe the contour. Q. .. Number of the last block to describe the contour. U ... (mm.) sobremetal finishing in X direction (with sign).

-

G71

Measured in millimeters.

Page 6: Programming Fanuc Ot

Comment Form N5 G71 and notes: As in G70

G72 Finishing CycleFormat 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 outline. court

After grinding with G73, G74 or G75, the G72 command allows final finish dimension. The court scheduled with P and Q which is also used for roughing, will be repeated division of oversize cutting and finishing without previously defined. Notes - 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) selected, highly magnified for better representation. A: X = 102, Z = 0 A ': X = 100, Z = 0 B: X = 100, Z = -50 Program:Page 6 of 17

G73 Longitudinal Turning Cycle as contourN. 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 N200 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 boundaryFormat: 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 represented as U + W ... [mm] ... sobremetal finishing in the direction of axis X represented as W + Before machining, the tool must be the starting point,�which will return when cycle ends

Follow contour G75Are made parallel to the final contour machining, using semi-finished parts (forgings 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 represented as U. W. .. starting point of the cycle in the Z axis (incremental, with sign) as shown in the drawing W. R. .. Number of repetitions (equal to the number of cuts. Second P. .. block No. contour of the first block No. Q. .. the last block of the U shape ... [mm] ... sobremetal finishing in the direction X axis represented as U + W ... [mm] ... sobremetal finishing in the direction of axis X represented as W +

Page 7: Programming Fanuc Ot

Notes:The outline should be scheduled on a decreasing, ie reducing the diameter. The starting 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 allowed 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 subroutines 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 always 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) depth 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 at 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 unsigned. (In fig. R1) Sec Block X (U), Z (W) coordinates of the boundary corner K or 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 ... progress.

Notes- - - - Progress Q must be less than the width of the tool. In this cycle does not take into account the width of the tool. In the first cut will not be made recess. 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 .

Page 8: Programming Fanuc Ot

.. F ... ... ... First block P is a parameter of three pairs of digits are: PXXxxxx, number finishing cuts. PxxXXxx (mm), the value of the bevel (see fig.). PxxxxXX, flank angle (80, 60, 55, 30, 29, 0.)

Q ... (mm) minimum depth of cut incrementally. R ... (mm) Sobrematerial incrementa.l finishing second block X (U), Z (W), end point coordinates of the thread (in 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) pitch 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 position (S) to the plane defined by R. 2. Drilling is performed until the final depth 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 level. 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 position (starting position for the drilling cycle.) If the value of R is negative, the 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 CycleFormat 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 disengagement plan Z. Q ... (mm), increased feed per cut. P ... (ms), timer at the bottom of the hole. F ... progress. M ..., M3 or M4.

Notes- - - If programmed G99 (withdrawn to the level of recall), specify the parameter R. With G98 you can omit R. No need to program X0 if the tool has been the center 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 thread 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

Page 9: Programming Fanuc Ot

G98 can be eliminated). Start the cycle with the corresponding M function. In the 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, the 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 of 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 zero mode is activated, and not canceled or the M30 or RESET. Therefore, before ending the program, allow the source enabled that was active at the beginning of it. Example: Suppose you want to change the zero of a piece of Ø30 mm from the front 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 diameter. 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, unbalanced workpieces ....), G92 must be programmed. Format: N. ... S. G92 ... (RPM) With G92 you can determine the maximum speed (rev / min.) Spindle for a program of pieces (only active with G96). Enter the desired value in the direction S

Page 10: Programming Fanuc Ot

. 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 mm / 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 SpeedUnit: m / min., Ft / min.The control continuously calculates the speed of the spindle corresponding to each 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 MM commands are in logic or complementary function, and can be activated in a program block alone or together with other commands. Commands from the same group cancel each other, ie, the last scheduled command cancels the previous M M command the same group. Note: that a command is executed depends on the type of machine and accessories used.

M05

Head off

The motor stops electrically. At the end of the program, the head engine stops automatically without having to call it.

M08 Coolant connectedConnect the coolant pump.

M09 M00 Coolant off scheduled stop unconditionalDisconnect the coolant pump.

This command stops the execution of a program of pieces. The main spindle, progress and coolant are disconnected. The chip shield door can be opened without triggering the alarm. The program execution can continue with "Starting Program"

M20 back Counterpoint

Page 11: Programming Fanuc Ot

Back counterpoint (in counterpoint automatic lathes as accessory). with

Counterpoint M21 forwardThe counterpoint is progressing (in automatic lathes tailstock as accessory).

Conditional M01 scheduled stopOpera as M00, but only if the stop function is operated from INFLUENCING PROGRAM IS SCHEDULED.

M25 Open lanyardOn lathes with automatic lanyard, it opens.

M26 Close lanyardOn lathes with automatic lanyard, it closes.

M02 End of main programWith M02 disconnect all motors and control returns to the beginning of the program. In addition, the counter increases by "1."

M30 Main Program EndM30 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 tied. Used for cutting tools or tools right reversed, if the tool is behind the axis of rotation. Only blowing lathes with automatic attachment. The device connects to the head start.

Blowing off M72Only 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 M98In some cases, may resort to making sub for repeated operations in the piece, for 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 there 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

Page 12: Programming Fanuc Ot

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 number xxxx

Notes- M99 should be the last command in the subprogram. The control automatically returns to the main program.

He combined: Julio Alberto Correa

Page 15 of 17

FANUC SERIES 0 - TC

PROGRAMMING

PROGRAMMING EXAMPLE

Cutting dataRaw 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 250m/minuto: 0.08 mm / rev Feed finishing: 0.06 mm / rev Depth of passing, finishing 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 N55 N65 X16 X18 Z-21 Z-35.28 N70 N75 G3 X24 Z-43.21 G1 X25.4 G40 R12 N80 N85 N90 G72 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 R12 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 crude tool. Roughing cycle. Depth and return. Start and end of the outline. Sobrematerial. Cutter radius correction.

Saco cutter radius correction. Cutting speed and feed for finishing. Finishing cycle. Cargo threading tool. Constant rotation speed. Tapping cycle. Finish. Chamfer 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 13: Programming Fanuc Ot

Page 17 of 17