Say you’re nesting 30 plus sheets with each sheet a different operation. How can I set up the machine to bring up and start the next operation simply by activating the cycle start button? Where can I learn to write macros?
From contributor E:
Our KOMO which has a Fanuc controller has a program called DNC Barcode which lets you batch multiple programs. I'm not sure if that's a KOMO program or part of the Fanuc controller?
There is another way if you are using CV or CW or Alpha Cam, though it has its own problems too. You can output your nested runs as one large file running over DNC with a pause between each sheet. This can work pretty well, but if you have an error or an issue that needs attention on sheet 7 of a 30 sheet run, you have a problem picking that up in the middle again. The Macro solution may present this issue in a different way, depending on how you write it.
1.) Transfer all nest programs to the control memory.
2.) Edit the last line of each program from M30 or M02 to M99. This is the M command which tells the control this program is functioning as a sub program so after it has executed, the control must jump back to the main program.
3.) Create a main program. Use the standard preperatory blocks you would normally (you can get this by looking at the lines of your current programs prior to movements). After you have inserted these lines create a line that looks like so: N30 M98 P0001 then repeat this process for every program number of the nests.
4.) You can place man readable comments between () and specify what each program is for to make it easier to find.
5.) Your main program would be 30 or so lines long, jumping in and out of each of the nested programs in whatever sequence you specified.
6.) At the end of the main program - place an M02 or M30 (whichever you use). You can actually create a spread sheet to do this for you once you are familiar enough with the syntax.
I know it’s not the preferred option for many, but if you’re on a budget it works pretty well. It does take some studying of the way you code your machine - which I recommend to most people anyway. If you do not understand the code, it is very difficult to troubleshoot anything. It is worth the investment to understand how your control interprets code!