Passing Parameters
A macro may be executed from the command line and pass parameters to it. In the macro, a parameter is denoted as %n, where n is the parameter number starting with 1.
Example: Macro 1
- Startchan = %1
- Maxcount = %2
- Startlevel = %3
- Checkchan = Startchan
- Level = Startlevel
- loop Maxcount
- Checkchan @ Level
- sleep 1
- @ 0
- loop end
- rel all
In this example, the macro is expecting 3 parameters to be passed to it, so the command macro 1 1 10 50 would execute macro 1 setting Startchan to 1, Maxcount to 10 and Startlevel to 50. The action of this macro would be to step through channels 1 through 10 setting each in turn to level 50 for 1 second.