What's new
What's new

Tosnuc 600 Sub programming

Surtv

Plastic
Joined
Dec 15, 2020
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?:scratchchin:
 
Usually there is a different code to call an internal sub vs. an external sub.
I'd look for an alternate to the G72 call.
 
Usually there is a different code to call an internal sub vs. an external sub.
I'd look for an alternate to the G72 call.

To add to this, could it also be a different symbol than $?

On a Mits you call M98H1000 for an internal subprogram named 1000, you call M98P1000 for a program named 1000 contained in the internal memory, and (I THINK) it's M198P1000 to call a subprogram from a memory card. Haven't had to use that one yet.
 








 
Back
Top