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.
@@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.
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.
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 ?
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
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
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?
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.
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
@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