Macro loop bugs

Macro loop issues

The manual is unclear about how to program macro loops. I read on another post that the way to program a macro loop is:

You need to put the count after the begin command, not the end command...so:

Macro_Loop_Begin 9 *

(do stuff here)

Macro_Loop_End *

 

The macro

Macro_Loop_Begin 1 [enter] @+10 Macro_Loop_End

behaves as it should, it adds 10% per iteration.

 

Issue 1: The loop sometimes adds an extra iteration. I programmed the following macro:

Macro_Loop_Begin 1 [enter] [next] Macro_Loop_End

I select channel 1 and run the macro and it selects channel 3. Why? I think this is a bug.

 

Issue 2: The macro is supposed to run everything in the (do stuff here) section, the number of times in the loop, right? I programmed a macro: Macro_Loop_Begin 3 [enter] 1 Macro_Loop_End

It should post "111" to the command line, but it just posts Chan 1. When I try to run it with [group][macro]1[enter] it gets rid of "group" and posts "Chan 1" to the command line.

Parents
  • Issue 1: Macro loop 1 will iterate twice. The number describes how many times the loop end command should should be active. So loop 1 will create 2 iterations in total.

    Issue 2: I expect this example to (three times) select channel 1 and then leave a single 1 in an unterminated command line. The reason for this is the Enter after 3. If you delete that from the macro you could get group 1111.
Reply
  • Issue 1: Macro loop 1 will iterate twice. The number describes how many times the loop end command should should be active. So loop 1 will create 2 iterations in total.

    Issue 2: I expect this example to (three times) select channel 1 and then leave a single 1 in an unterminated command line. The reason for this is the Enter after 3. If you delete that from the macro you could get group 1111.
Children
No Data
Related