220 likes | 460 Views
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
E N D
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 • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.)
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Techniques with sequence numbers Commonly taught in basic CNC courses: Sequence numbers are not mandatory • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) You don’t have to include them in your programs Applications not always taught in basic courses: We recommend including them… …but if control memory is at a premium… • Eliminating • Special restart blocks • As statement labels …many programmers eliminate them from programs
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
O0008 (Center drill) N1 G54 G90 S1000 M03 T02 G00 X.375 Y.375 G43 H01 Z.1 G81 R.1 Z-.25 F3. Y2.625 X2.5 Y1.5 X4.625 Y2.625 Y.375 G80 G91 G28 Z0 M01 N2 T02 M06 G54 G90 S1100 M03 T03 G00 X.375 Y.375 G43 H02 Z.1 G81 R.1 Z-.65 F2.5 Y2.625 X4.625 Y.375 G80 G91 G28 Z0 M01 N3 T03 M06 G54 G90 S900 M03 T01 G00 X2.5 Y1.5 G43 H03 Z.1 G81 R.1 Z-.65 F4.0 G80 G91 G28 Z0 M01 G91 G28 X0 Y0 T01 M06 M30 Techniques with sequence numbers Tools must be rerun on a regular basis Commonly taught in basic CNC courses: Make it as easy as possible to find the restart block • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) If you eliminate sequence numbers, make your restart block number the tool station number Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels Restart block sequence numbers match tool station number
O0008 (Center drill) N9001 G54 G90 S1000 M03 T02 N005 G00 X.375 Y.375 N010 G43 H01 Z.1 N015 G81 R.1 Z-.25 F3. N020 Y2.625 N025 X2.5 Y1.5 N030 X4.625 Y2.625 N035 Y.375 N040 G80 N045 G91 G28 Z0 N050 M01 N9002 T02 M06 N055 G54 G90 S1100 M03 T03 N060 G00 X.375 Y.375 N065 G43 H02 Z.1 N070 G81 R.1 Z-.65 F2.5 N075 Y2.625 N080 X4.625 N085 Y.375 N090 G80 N095 G91 G28 Z0 N100 M01 N9003 T03 M06 N105 G54 G90 S900 M03 T01 N110 G00 X2.5 Y1.5 N115 G43 H03 Z.1 N120 G81 R.1 Z-.65 F4.0 N125 G80 N130 G91 G28 Z0 N135 M01 N140 G91 G28 X0 Y0 N145 T01 M06 N150 M30 Techniques with sequence numbers Tools must be rerun on a regular basis Commonly taught in basic CNC courses: Make it as easy as possible to find the restart block • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) If you eliminate sequence numbers, make your restart block number the tool station number Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels If you use sequence numbers, pick a special series for restart blocks Restart block sequence numbers are in a special series (9000 in this case)
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Turning center multiple repetitive cycle: N025 G71 P030 Q075 D1250 U0.04 W0.005 F0.01 N030 G00 X-.9 N035 G01 Z0 N040 X1.0 Z-0.05 N045 Z-1.0 N050 X1.875 N060 X2.0 Z-1.0625 N065 Z-2.0 N070 X2.75 N075 X3.0 Z-2.125 End of finish pass definition Start of finish pass definition Statement labels Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: In a main program you can cause the control to jump to a statement label • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) M99 P050 Applications not always taught in basic courses: Go to line N050 • Eliminating • Special restart blocks • As statement labels Also called an unconditional branch command N050 will be the statement label that the control will “go to”
. N255 T04 M06 (2.3750 boring bar) N260 G54 G90 S450 M03 T05 N265 G00 X4.0 Y4.0 N270 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 . Trial boring on a machining center Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: An earlier example: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
. N255 T04 M06 (2.3750 boring bar) N260 G54 G90 S450 M03 T05 N265 G00 X4.0 Y4.0 N270 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 . Four attempts Trial boring on a machining center Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: An earlier example: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
. N255 T04 M06 (2.3750 boring bar) N260 G54 G90 S450 M03 T05 N265 G00 X4.0 Y4.0 N270 G43 H04 Z0.1 M08 N275 F2.5 /N280 M98 P1000 /N285 M99 P280 N290 G86 R0.1 Z-1.0 F2.5 . Unlimited number of attempts Trial boring on a machining center Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: An earlier example: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) As long as the block delete switch is off, the control will continue executing line N280 Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels
Bad process: Better process: 1) Rough turn 2) Finish turn 3) Drill 2” hole 4) Rough bore 5) Finish bore 1) Rough turn 2) Drill 2” hole 3) Rough bore 4) Finish bore 5) Finish turn Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: Changing machining order: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels Rough everything before you finish anything
O0008 (Program with bad process) N005 T0101 M41 (Rough turn) N010 G96 S400 M03 N015 G00 X3.040 Z0.1 N020 G01 Z-1.995 F0.017 N025 X3.25 N030 G00 X6.0 Z5.0 N035 M01 N040 T0202 M42 (Finish turn) N045 G96 S600 M03 N050 G00 X3. Z0.1 N055 G01 Z-2.0 F0.006 N060 X3.25 N065 G00 X6.0 Z5.0 N070 M01 N075 T0303 M41 (2” drill) N080 G97 S300 M03 N085 G00 X0 Z0.1 N090 G01 Z-2.6 F.009 N095 G00 Z0.1 N100 G00 X6.0 Z5.0 N105 M01 N110 T0404 M41 (1.5” rough boring bar) N115 G96 S400 M03 N120 G00 X2.085 Z0.1 N125 G01 Z-1.995 F0.010 N130 X2.0 N135 G00 Z0.1 N140 X6.0 Z5.0 N145 M01 N150 T0505 M42 (1.5” finish boring bar) N155 G96 S600 M03 N160 G00 X1.125 Z0.1 N165 G01 Z-2.0 F0.006 N170 X2.0 N175 G00 Z0.1 N180 G00 X6.0 Z5.0 N185 M30 Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels Program with bad process
O0008 (Program with bad process) N005 T0101 M41 (Rough turn) N010 G96 S400 M03 N015 G00 X3.040 Z0.1 N020 G01 Z-1.995 F0.017 N025 X3.25 N030 G00 X6.0 Z5.0 N035 M01 N040 T0202 M42 (Finish turn) N045 G96 S600 M03 N050 G00 X3. Z0.1 N055 G01 Z-2.0 F0.006 N060 X3.25 N065 G00 X6.0 Z5.0 N070 M01 N075 T0303 M41 (2” drill) N080 G97 S300 M03 N085 G00 X0 Z0.1 N090 G01 Z-2.6 F.009 N095 G00 Z0.1 N100 G00 X6.0 Z5.0 N105 M01 N110 T0404 M41 (1.5” rough boring bar) N115 G96 S400 M03 N120 G00 X2.085 Z0.1 N125 G01 Z-1.995 F0.010 N130 X2.0 N135 G00 Z0.1 N140 X6.0 Z5.0 N145 M01 N150 T0505 M42 (1.5” finish boring bar) N155 G96 S600 M03 N160 G00 X1.125 Z0.1 N165 G01 Z-2.0 F0.006 N170 X2.0 N175 G00 Z0.1 N180 G00 X6.0 Z5.0 N185 M30 Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) N038 M99 P075 Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels Go to line N075
O0008 (Program with bad process) N005 T0101 M41 (Rough turn) N010 G96 S400 M03 N015 G00 X3.040 Z0.1 N020 G01 Z-1.995 F0.017 N025 X3.25 N030 G00 X6.0 Z5.0 N035 M01 N040 T0202 M42 (Finish turn) N045 G96 S600 M03 N050 G00 X3. Z0.1 N055 G01 Z-2.0 F0.006 N060 X3.25 N065 G00 X6.0 Z5.0 N070 M01 N075 T0303 M41 (2” drill) N080 G97 S300 M03 N085 G00 X0 Z0.1 N090 G01 Z-2.6 F.009 N095 G00 Z0.1 N100 G00 X6.0 Z5.0 N105 M01 N110 T0404 M41 (1.5” rough boring bar) N115 G96 S400 M03 N120 G00 X2.085 Z0.1 N125 G01 Z-1.995 F0.010 N130 X2.0 N135 G00 Z0.1 N140 X6.0 Z5.0 N145 M01 N150 T0505 M42 (1.5” finish boring bar) N155 G96 S600 M03 N160 G00 X1.125 Z0.1 N165 G01 Z-2.0 F0.006 N170 X2.0 N175 G00 Z0.1 N180 G00 X6.0 Z5.0 N185 M30 Techniques with sequence numbers A statement label marks a command Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) N038 M99 P075 Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels N183 M99 P040 Go to line N040
O0008 (Program with bad process) N005 T0101 M41 (Rough turn) N010 G96 S400 M03 N015 G00 X3.040 Z0.1 N020 G01 Z-1.995 F0.017 N025 X3.25 N030 G00 X6.0 Z5.0 N035 M01 N040 T0202 M42 (Finish turn) N045 G96 S600 M03 N050 G00 X3. Z0.1 N055 G01 Z-2.0 F0.006 N060 X3.25 N065 G00 X6.0 Z5.0 N070 M01 N075 T0303 M41 (2” drill) N080 G97 S300 M03 N085 G00 X0 Z0.1 N090 G01 Z-2.6 F.009 N095 G00 Z0.1 N100 G00 X6.0 Z5.0 N105 M01 N110 T0404 M41 (1.5” rough boring bar) N115 G96 S400 M03 N120 G00 X2.085 Z0.1 N125 G01 Z-1.995 F0.010 N130 X2.0 N135 G00 Z0.1 N140 X6.0 Z5.0 N145 M01 N150 T0505 M42 (1.5” finish boring bar) N155 G96 S600 M03 N160 G00 X1.125 Z0.1 N165 G01 Z-2.0 F0.006 N170 X2.0 N175 G00 Z0.1 N180 G00 X6.0 Z5.0 N185 M30 Techniques with sequence numbers A statement label marks a command With three simple edits, we’ve quickly changed the machining order for this program… Commonly taught in basic CNC courses: …the machine can begin the production run • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) But this program is hard to follow… N038 M99 P075 …the programmer should eventually change the program (at a text editor) to eliminate the M99s Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels N073 M99 P185 N183 M99 P040 Go to line N185
Techniques with sequence numbers Commonly taught in basic CNC courses: • N words are sequence numbers • Not needed but beginners use them • Use logical order (N5, N10, N15, etc.) Applications not always taught in basic courses: • Eliminating • Special restart blocks • As statement labels