I'm assuming you are asking about the format and loop specifically for the DPRNT macro you referenced in the thumbnail.

The macro, as written in the example, will use #1 as a counter that will do two things, it will keep track of how many iterations are left and what variable we are sending at the time. Variables #4 and #5 are the range that a user will specify during the call - #4 being the lowest numbered variable and #5 being the highest.

for example : if you were to use variables #101 - #199 to store your information, variable #4 would be assigned 101 and variable #5 would be assigned 199. #1 would first be set to zero before the loop. At the start of the loop, so long as #1 is less than 199 - 101, the loop would run.


Next, the program creates 2 more variables - #2 and #3 to keep track of which variable we are on (#3) and what the value of that variable is (#2).
In this case, the value of the variable we are interested in is the 'name' of the variable.

#2 = #[#4 +[#1]] uses the counter to keep track of the name of the variable.

#3 = #4 + #1 keeps track of the order.

The next line deals with output. We are telling the control to output 2 things - the number of the variable referenced at this point in the loop (#3), and the information stored in that variable. The numbers in [] in this line deal with the format used.

Take this line DPRNT (VAR #1[AB]) - the letter 'A' represents the number of spaces before the decimal to display, while 'B' specifies the number after the decimal place. If only 1 number is present in the brackets, then we are only going to show whole numbers.

DPRNT (VAR #3[5] ***DATA #2[57]) - we can be reasonably sure that the number of the variable is going to be a whole number (#3) so only 1 number is listed in brackets. ***DATA indicates that the next variable is stored information, [57] limits the information to 5 places before and 7 places after the decimal.

#1 is then increased by 1 and the loop continues.

The actual line to call the macro would look like this:
G65 P8200 I(#4). J(#5).;

I don't use RS232 so cannot post an example. On my machine, i t is possible to manually send the value of saved variables to a flash card using the List Programs feature. I am not able to do so with a macro, althoutgh some manufacturers may have this option available.