I worked on a milltronics for about 3 years. Used subprograms all the time.
this was a mill not a lathe. the sub has to have a name. the sub can't have any
thing but moves in it. Also, it has to be called from the main program, then return to the main program. I think you can nest them 7 deep. |