22
ates to machining and turning cent

Techiques with sequence numbers

  • Upload
    rod

  • View
    52

  • Download
    1

Embed Size (px)

DESCRIPTION

Techiques with sequence numbers. Relates to machining and turning centers. Example:. O0001 N005 T01 M06 N010 G54 G90 S500 M03 T02 N015 G00 X3.0 Y2.0. Techniques with sequence numbers. Commonly taught in basic CNC courses:. N words are sequence numbers - PowerPoint PPT Presentation

Citation preview

Page 1: Techiques with sequence numbers

Relates to machining and turning centers

Page 2: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

O0001N005 T01 M06N010 G54 G90 S500 M03 T02N015 G00 X3.0 Y2.0

Example:

Page 3: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 4: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 5: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Sequence numbers are not mandatory

You don’t have to include them in your programs

We recommend including them…

…but if control memory is at a premium…

…many programmers eliminate them from programs

Page 6: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 7: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 8: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Tools must be rerun on a regular basis

Make it as easy as possible to find the restart block

If you eliminate sequence numbers, make your restart block number the tool station number

O0008 (Center drill)N1 G54 G90 S1000 M03 T02 G00 X.375 Y.375G43 H01 Z.1 G81 R.1 Z-.25 F3.Y2.625X2.5 Y1.5X4.625 Y2.625 Y.375G80G91 G28 Z0M01 N2 T02 M06G54 G90 S1100 M03 T03G00 X.375 Y.375G43 H02 Z.1G81 R.1 Z-.65 F2.5

Y2.625X4.625Y.375G80G91 G28 Z0M01 N3 T03 M06G54 G90 S900 M03 T01G00 X2.5 Y1.5G43 H03 Z.1 G81 R.1 Z-.65 F4.0G80G91 G28 Z0 M01G91 G28 X0 Y0 T01 M06M30

Restart block sequence numbers match tool station number

Page 9: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Tools must be rerun on a regular basis

Make it as easy as possible to find the restart block

If you eliminate sequence numbers, make your restart block number the tool station number

If you use sequence numbers, pick a special series for restart blocks

O0008 (Center drill)N9001 G54 G90 S1000 M03 T02 N005 G00 X.375 Y.375N010 G43 H01 Z.1 N015 G81 R.1 Z-.25 F3.N020 Y2.625N025 X2.5 Y1.5N030 X4.625 Y2.625 N035 Y.375N040 G80N045 G91 G28 Z0N050 M01 N9002 T02 M06N055 G54 G90 S1100 M03 T03N060 G00 X.375 Y.375N065 G43 H02 Z.1N070 G81 R.1 Z-.65 F2.5

N075 Y2.625N080 X4.625N085 Y.375N090 G80N095 G91 G28 Z0N100 M01 N9003 T03 M06N105 G54 G90 S900 M03 T01N110 G00 X2.5 Y1.5N115 G43 H03 Z.1 N120 G81 R.1 Z-.65 F4.0N125 G80N130 G91 G28 Z0 N135 M01N140 G91 G28 X0 Y0 N145 T01 M06N150 M30

Restart block sequence numbers are in a special series (9000 in this case)

Page 10: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 11: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

Page 12: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a command

N025 G71 P030 Q075 D1250 U0.04 W0.005 F0.01N030 G00 X-.9N035 G01 Z0N040 X1.0 Z-0.05N045 Z-1.0N050 X1.875N060 X2.0 Z-1.0625N065 Z-2.0N070 X2.75N075 X3.0 Z-2.125

Turning center multiple repetitive cycle:

Start of finish pass definition

End of finish pass definition

Statement labels

Page 13: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a command

In a main program you can cause the control to jump to a statement label

M99 P050

Go to line N050

Also called an unconditional branch

commandN050 will be the statement label that the control will “go to”

Page 14: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a command

Trial boring on a machining center

.N255 T04 M06 (2.3750 boring bar)N260 G54 G90 S450 M03 T05N265 G00 X4.0 Y4.0N270 G43 H04 Z0.1 M08 N275 F2.5/N280 M98 P1000/N285 M98 P1000/N290 M98 P1000 /N295 M98 P1000 N300 G86 R0.1 Z-1.0 F2.5.

An earlier example:

Page 15: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a command

Trial boring on a machining center

.N255 T04 M06 (2.3750 boring bar)N260 G54 G90 S450 M03 T05N265 G00 X4.0 Y4.0N270 G43 H04 Z0.1 M08 N275 F2.5/N280 M98 P1000/N285 M98 P1000/N290 M98 P1000 /N295 M98 P1000 N300 G86 R0.1 Z-1.0 F2.5.

An earlier example:

Four attempts

Page 16: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a command

Trial boring on a machining center

.N255 T04 M06 (2.3750 boring bar)N260 G54 G90 S450 M03 T05N265 G00 X4.0 Y4.0N270 G43 H04 Z0.1 M08 N275 F2.5/N280 M98 P1000/N285 M99 P280N290 G86 R0.1 Z-1.0 F2.5.

An earlier example:

Unlimited number of attempts

As long as the block delete switch is off, the control will continue executing line N280

Page 17: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a commandChanging machining order:

1) Rough turn2) Finish turn3) Drill 2” hole4) Rough bore5) Finish bore

Bad process:

Rough everything before you finish anything

1) Rough turn2) Drill 2” hole3) Rough bore4) Finish bore5) Finish turn

Better process:

Page 18: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a commandO0008 (Program with bad process)N005 T0101 M41 (Rough turn)N010 G96 S400 M03N015 G00 X3.040 Z0.1N020 G01 Z-1.995 F0.017N025 X3.25 N030 G00 X6.0 Z5.0N035 M01  N040 T0202 M42 (Finish turn)N045 G96 S600 M03N050 G00 X3. Z0.1N055 G01 Z-2.0 F0.006N060 X3.25N065 G00 X6.0 Z5.0N070 M01 N075 T0303 M41 (2” drill)N080 G97 S300 M03N085 G00 X0 Z0.1N090 G01 Z-2.6 F.009

N095 G00 Z0.1N100 G00 X6.0 Z5.0N105 M01 N110 T0404 M41 (1.5” rough boring bar)N115 G96 S400 M03N120 G00 X2.085 Z0.1N125 G01 Z-1.995 F0.010N130 X2.0N135 G00 Z0.1N140 X6.0 Z5.0N145 M01 N150 T0505 M42 (1.5” finish boring bar)N155 G96 S600 M03 N160 G00 X1.125 Z0.1N165 G01 Z-2.0 F0.006N170 X2.0N175 G00 Z0.1N180 G00 X6.0 Z5.0 N185 M30

Program with bad process

Page 19: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a commandO0008 (Program with bad process)N005 T0101 M41 (Rough turn)N010 G96 S400 M03N015 G00 X3.040 Z0.1N020 G01 Z-1.995 F0.017N025 X3.25 N030 G00 X6.0 Z5.0N035 M01  N040 T0202 M42 (Finish turn)N045 G96 S600 M03N050 G00 X3. Z0.1N055 G01 Z-2.0 F0.006N060 X3.25N065 G00 X6.0 Z5.0N070 M01 N075 T0303 M41 (2” drill)N080 G97 S300 M03N085 G00 X0 Z0.1N090 G01 Z-2.6 F.009

N095 G00 Z0.1N100 G00 X6.0 Z5.0N105 M01 N110 T0404 M41 (1.5” rough boring bar)N115 G96 S400 M03N120 G00 X2.085 Z0.1N125 G01 Z-1.995 F0.010N130 X2.0N135 G00 Z0.1N140 X6.0 Z5.0N145 M01 N150 T0505 M42 (1.5” finish boring bar)N155 G96 S600 M03 N160 G00 X1.125 Z0.1N165 G01 Z-2.0 F0.006N170 X2.0N175 G00 Z0.1N180 G00 X6.0 Z5.0 N185 M30

N038 M99 P075

Go to line N075

Page 20: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a commandO0008 (Program with bad process)N005 T0101 M41 (Rough turn)N010 G96 S400 M03N015 G00 X3.040 Z0.1N020 G01 Z-1.995 F0.017N025 X3.25 N030 G00 X6.0 Z5.0N035 M01  N040 T0202 M42 (Finish turn)N045 G96 S600 M03N050 G00 X3. Z0.1N055 G01 Z-2.0 F0.006N060 X3.25N065 G00 X6.0 Z5.0N070 M01 N075 T0303 M41 (2” drill)N080 G97 S300 M03N085 G00 X0 Z0.1N090 G01 Z-2.6 F.009

N095 G00 Z0.1N100 G00 X6.0 Z5.0N105 M01 N110 T0404 M41 (1.5” rough boring bar)N115 G96 S400 M03N120 G00 X2.085 Z0.1N125 G01 Z-1.995 F0.010N130 X2.0N135 G00 Z0.1N140 X6.0 Z5.0N145 M01 N150 T0505 M42 (1.5” finish boring bar)N155 G96 S600 M03 N160 G00 X1.125 Z0.1N165 G01 Z-2.0 F0.006N170 X2.0N175 G00 Z0.1N180 G00 X6.0 Z5.0

N185 M30

N038 M99 P075

N183 M99 P040

Go to line N040

Page 21: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses:

A statement label marks a commandO0008 (Program with bad process)N005 T0101 M41 (Rough turn)N010 G96 S400 M03N015 G00 X3.040 Z0.1N020 G01 Z-1.995 F0.017N025 X3.25 N030 G00 X6.0 Z5.0N035 M01  N040 T0202 M42 (Finish turn)N045 G96 S600 M03N050 G00 X3. Z0.1N055 G01 Z-2.0 F0.006N060 X3.25N065 G00 X6.0 Z5.0N070 M01 N075 T0303 M41 (2” drill)N080 G97 S300 M03N085 G00 X0 Z0.1N090 G01 Z-2.6 F.009

N095 G00 Z0.1N100 G00 X6.0 Z5.0N105 M01 N110 T0404 M41 (1.5” rough boring bar)N115 G96 S400 M03N120 G00 X2.085 Z0.1N125 G01 Z-1.995 F0.010N130 X2.0N135 G00 Z0.1N140 X6.0 Z5.0N145 M01 N150 T0505 M42 (1.5” finish boring bar)N155 G96 S600 M03 N160 G00 X1.125 Z0.1N165 G01 Z-2.0 F0.006N170 X2.0N175 G00 Z0.1N180 G00 X6.0 Z5.0

N185 M30

N038 M99 P075

N183 M99 P040

N073 M99 P185

Go to line N185

With three simple edits, we’ve quickly changed the machining order for this program…

…the machine can begin the production run

But this program is hard to follow…

…the programmer should eventually change the program (at a text editor) to eliminate the M99s

Page 22: Techiques with sequence numbers

Commonly taught in basic CNC courses:

Techniques with sequence numbers

N words are sequence numbersNot needed but beginners use themUse logical order (N5, N10, N15, etc.)

EliminatingSpecial restart blocksAs statement labels

Applications not always taught in basic courses: