Hello
Im trying to call a subprogram written within the main program but when it tries to call it, it pops an alarm (Ilegal program called). I can call a subprogram stored in the memory but I dont want to have 2 separate programs.
Program example:
O20(Program number)
...
...
...
G72$21(Call subprogram 21)(Written after main program end)
...
...
M30
$21(Subprogram)
...
...
...
M02(Return to main program)
Any ideas?
Im trying to call a subprogram written within the main program but when it tries to call it, it pops an alarm (Ilegal program called). I can call a subprogram stored in the memory but I dont want to have 2 separate programs.
Program example:
O20(Program number)
...
...
...
G72$21(Call subprogram 21)(Written after main program end)
...
...
M30
$21(Subprogram)
...
...
...
M02(Return to main program)
Any ideas?