Need help with a subroutine formulae... | | Hi Guys,
I haven't been here in a while, just a quickie regarding subroutines.
Currently I write a few different types, Fanuc, Fagor, Camsoft.
I'm wondering if it's possible to have a subroutine at the end of the normal program, which is what our Fagor lathe is like, it would be entered M98 P4110 so it would jump to LINE 110 and run it 4 times.
With the Fanuc I'm using M98 P0110 L2 and it will OPEN program number O0110 and run it 4 times.
I just really like all of the program together, in the one file, rather than opening another program (subroutine).
Did that make any sense? |