Turning a program on and off under program control

Dear sir,
My idea is to use the program “PRG1” to change the status of other programs between “on” and “off”. Is it possible to do something like this?
for Examle:
10 PRG2 OFF
20 PRG3 ON
or something similar

I had to ask around becuase I thought we did have something like this… turns out we don’t, sorry about that.

I will suggest as a better practice in general though, is to use a single program rather than jump around. Your program will act one way or the other depending on your variables & flags. You can edit and debug the logic from a single page.

If things are getting long & complex to manage in a single program you can break it up into sections: all outputs in the main program, alarms in another, timers, flags and modes in another.

1 Like

You could use variable to store whether a program should “Run” or not and then use a conditional statement in the program.

Example -

Variable EXPRG1 - set to 1 to execute program.

Program Slot 1 -

10 REM PROGRAM NUMBER 1
20 IF EXPRG1 = 0 THEN END
30 …

We dont currently have this feature but I can see that there is interest in turning a program on and off from within a program itself. If there is good suport for that task we can add it to the list.