What is the difference between subprograms and macros and how to use them? I have found only a brief info on subprograms in CNC 432 Programming Manual from Heidenhain website and nothing on macros.
Does a subprogram have to be a part of main program body?
I have written two test programs that have separate numbers in prog mem. When I try to run one of them from the body of the other (eg. N2 G22 N9002), an error of subprogram not found appears.
The main reason why I was going to use subprogram is to increase manageability, to test a subprogram separately, to declare points once in the main program and read edit programs more efficiently.
Perhaps macros have been invented with this in mind. I'm puzzled.
Maybe it's time to connect to a PC. Editing all of these without possibility of copying, reusing and basic functionality of a text editor is quite cumbersome.