The following two Blocks are wrong and I would have thought they would generate an error, for there is no Variable that is defined with just the #.
IF[#LT0]GOTO102
IF[#GE360.]GOTO103
As I mentioned in my previous Post, 2# would very likely be the correct variable, as the Variable in the two Conditional Blocks are checking to see that the Variable is within the range of 0 to 360. Logically, these values would be degrees as a "B" argument is being passed (passed to Local Variable #2 in the Macro) and if the Conditional Statement tests True, an Error Message is displayed that relates to the "B" axis. Accordingly, everything points to the Variable number being #2.
#100 in the following Block is not defined anywhere in the Macro. It could be that it should be a four digit number specifying an I/O. As it is, if its being set in another program and the set value is "1", your Macro Program will read the Variable because #100 is a Common Variable and branch past the Indexing Code of your program. If its not being set in another program, its value will always be Null and therefore, superfluous in the Macro Program.
My guess is that it should have another digit and define a Variable in the range #1000 to #1015 to be read as a signal bit by your Macro Program. That would make the most sense.
IF[#100EQ1.]GOTO008
Your best approach will be to step through the program in Single Block and look up the value of the Variables used in the Conditional Blocks before they are executed, This way you will see exactly what the program is doing and why no index.
Regards,
Bill