Hand Programming with M98 and M97 sub programming routines

  Рет қаралды 5,819

Aaron Runk

Aaron Runk

2 жыл бұрын

This video will go over how to use M97 and M98 sub programming and how to format the routines. I will cover Fanuc Formatting as well.

Пікірлер: 24
@chckcpr21
@chckcpr21 Жыл бұрын
Very well explained. I've been trying to figure this out for a while.
@aaronrunk4209
@aaronrunk4209 Жыл бұрын
You're welcome. It's such a great feature to programming but it has to be just right or the machine's get picky fast. Thank you for watching
@akman1947
@akman1947 4 ай бұрын
I’ve used subs alot in the past on fanuc and just recently discovered m97, local sub routine, and I wanna incorporate these on a mazak lathe so I can program a broach operation in g code that I can edit the geometry of and call it up when needed then call back to the next unit in mazatrol. Was going to loop in incremental and change the typical variables based on prints. My coworker was showing me his broaching job and had 135 lines of manual program in his mazatrol, and I’m thinking I can do that in 15 lines in g code.
@aaronrunk4209
@aaronrunk4209 4 ай бұрын
That's very cool and a good use of the code. That loop function is the game changer for me. Thanks for watching
@akman1947
@akman1947 4 ай бұрын
@@aaronrunk4209 i just have no Idea how to do it in mazatrol
@aaronrunk4209
@aaronrunk4209 4 ай бұрын
@akman1947 Oh, I understand now. We have an older mazak lathe in the shop, but unfortunately, I only have limited experience on it, so I do apologize for not being much help.
@tasdau
@tasdau 9 ай бұрын
Is there a way to use M98 and have the machine go to a specific line # in the sub? I have an older Haas VF1.
@aaronrunk4209
@aaronrunk4209 9 ай бұрын
Hi and thank you for watching the video. Good news is yes you can have a program search for a specific starting point. If you noticed in the video I have the command GOTO2 this goes to N2 if it was GOTO4 it would skip to N4 and only run the last hole. However, if you are wanting to skip to a specific line in the Sub program you would need to open the sub program so that you can edit it and you would put a GOTO in the actual sub program. This would stay active until you edited back to it original form, but it will skip to the "N" point in the sub program that you are needing to start at. Good Luck and I hope this helps.
@tasdau
@tasdau 9 ай бұрын
@@aaronrunk4209 Thanks for the quick reply. That may not work for my situation, but I'll give it a try. I was hoping to find a solution where I didn't have to edit the sub.
@dirtkickersandarrowheadlic9317
@dirtkickersandarrowheadlic9317 Жыл бұрын
best explanation out there. and ive just watched dozens. question. where does one save the subprogram? say one has a 30 year old machine that takes floppies and youre trying to make multiple parts but only enough memory for one parts code? if i have my sub on the floppy will it look to the floppy drive with the P command?
@aaronrunk4209
@aaronrunk4209 Жыл бұрын
So I don't believe it will be able to read from the floppy. However, if there is a way to remove items from your post on the program such as N lines like N10 this will help with the size. The subprogram must be inside the program using m97 or a has to be in the machines directory that uses m98. Some machines can not use m97, so M98, maybe your only option. I'm glad you like the video I hope you get this working.
@dirtkickersandarrowheadlic9317
@dirtkickersandarrowheadlic9317 Жыл бұрын
Thanks@@aaronrunk4209 Ok so I tried it just for fun and it worked...kind of. I have a miltronics vm17 with centurion 6 control. using a compact disc reader. I put both my main program on the compact disk and my sub program and loaded them into my control. using G54 X0Y0 M98 P2000 for part one it looped to the sub program and then G55 X0Y0 M98 P2000 for part two looped to the sub program. everything feeds through just fine but im stuck looping the the second part over and over. should i delete my end code and just throw an M30 in there? heres the code
@aaronrunk4209
@aaronrunk4209 Жыл бұрын
@DirtKickersandArrowheadLickers well I am glad to hear that it is reading from the compact discs however if you remove the m99 and put the m30 on there it will only reset to the top of your program and you will have to hit cycle start again. If you have a first and second program, you will need to rename the second program with a different P. Example op1 G54 X0Y0 P1000 and op2 G55 X0Y0 P2000. Be sure your op1 is named O1000, and op2 is O2000. It sounds like you're heading down the right path machines are finicky and finding out exactly what they like is half the battle
@jimburnsjr.
@jimburnsjr. 8 ай бұрын
did that say ZL at the end of your sub program? if so can you explain?
@aaronrunk4209
@aaronrunk4209 8 ай бұрын
The end of the sub program will be an M99 that will then resume the original program. The L at the end of the M97 or M98 line will be the number of times you want the sub program to repeat. I hope I answered this correctly, but if not, let me know, and I can post the code in the comments. Thank you for watching
@ryanb1874
@ryanb1874 2 жыл бұрын
I have a qurstion, running parts, most of program is in G99, (No face g IE CS and spindle lock, no G50), but later in the program they are using G 97, so I'm confused wgy, im sure there is no G 96 and the parts don't have radically different I'd profiles to just fit G96, so yea ?
@aaronrunk4209
@aaronrunk4209 2 жыл бұрын
Good news is a G99 works close to what a G96 does except just like on a manual lathe you can set your FPR and it will work even if you have different sizes in OD or ID. However, is your part has a call out for a specific surface finish the program would need adjusting either in the spindle speed or Feed rate itself. It's a different way of running the machine but if it works! Thank you again for watching
@techreibert8139
@techreibert8139 8 ай бұрын
what's up Toretto?
@user-ui4yx2kq1d
@user-ui4yx2kq1d 4 ай бұрын
❤do you use macro???😊
@aaronrunk4209
@aaronrunk4209 4 ай бұрын
I did use macros when I worked on a CNC 5 axis in Industry however the only time I show students how to use macros is when I pull up the program I used to use and show them how to adjust it while it's running.
@AfsalAbbaAbba
@AfsalAbbaAbba 2 жыл бұрын
Macro program not work haas tm1?? Pls explan haas macro?
@aaronrunk4209
@aaronrunk4209 2 жыл бұрын
I don't know enough about macro programming to lecture on it. I do apologize but you'll have to keep looking
@charleslyons6203
@charleslyons6203 2 ай бұрын
I cant see the notes for m97 like m98. your in front of it
@aaronrunk4209
@aaronrunk4209 2 ай бұрын
Hello, and thank you for watching. Below is the code I use in the video. Hope this helps. % O0454 M01 (.750 ENDMILL .750 LOC 1.0 LFH) (CRC = D02) N40 G00 G17 G20 G40 N45 T2 M06 N50 G54 G90 X-0.5 Y0 S5000 M03 N55 G43 H02 Z1. M08 N60 Z-0.1 M97 P123 L30 G00 G91 Z0 M30 N123 G91 G01 X1. F100. G03 X-1. R0.5 G01 Y0.05 M99 %
How To Calculate Speeds and Feeds (Inch Version) - Haas Automation Tip of the Day
14:26
Using Subroutines with G70
5:22
Practical Machinist
Рет қаралды 1,2 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 60 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
G & M Code - Titan Teaches Manual Programming on a CNC Machine.
26:32
TITANS of CNC MACHINING
Рет қаралды 1,5 МЛН
Don't Waste Cycle Time; Peck Drilling Essentials - Haas Automation Tip of the Day
9:30
WHILE DO LOOP IN A CNC MILL PROGRAM
10:27
Tom Stikkelman
Рет қаралды 66 М.
How Canned Cycles Work with G98 & G99 - Haas Automation Tip of the Day
7:50
Haas Automation, Inc.
Рет қаралды 206 М.
HOW TO USE AN M98 TO CALL SUB PROGRAMS ON A CNC MILL
6:55
Tom Stikkelman
Рет қаралды 37 М.
CNC macro programming - Conditional statements
7:57
Practical Machinist
Рет қаралды 7 М.
basics of CODING in 10 minutes
15:34
The StudyTube Project
Рет қаралды 1,5 МЛН
Explanation Of Cutter Compensation
22:40
Edge Precision
Рет қаралды 15 М.