In a macro you can pass 3 variables to the macro, BUT BE ADVISED that Param3 does NOT go back to nill at macro end it stays at current value(BUG)
M1234 P# Q# R#
Inside the macro they are known as Param1 Param2 Param3
Dim Val1 ,Val2, Val3
Val1= Param1
Val2= Param2
Val3= Param3
********************************
Passing values to Gcode #var
SetParam(29,999.999) 'It sets #29 to 999.999
IT IS ALL IN THE MANUAL (;-)
(;-) TP