here is an option:
In your G code set the three possible values in your param/vars like this:
#1=xx.xx
#2=yy.yy
#3=zz.zz
OR you could drop 3 User DROs on your Screen, and put a button next to each one. you would then put the value that you want in the DRO and that would store the value you want into the param/var Lets say you used UserDRO 2000, 2001, and 2002 and had a button next to each one, and when you pushed the button next to the 1st DRO it would load that value into Param/var #1 for, the others would do #2, and #3 respectively.
The code you would put for instance in Button 1 would be:
Paramone = GetUserDRO(2000)
SetVar(1, Paramone)
Then in my macropump I would put this: (I would use Param/Var 4 to be my on the fly varible var from external buttons.)
if IsActive(OEMTRIGGER1) then
Param = GetVar(1)
end if
if IsActive(OEMTRIGGER2) then
Param = GetVar(2)
end if
if IsActive(OEMTRIGGER3) then
Param = GetVar(3)
end if
SetVar(4,Param)
'///////////////////////
Then in your G-Code, I would call param #4 that would contain the value that one of the three external buttons would cause to be loaded.
With Hard coding the Params then you would have to edit your g code to change values 1-3, but with the User Dros, and Buttons, you could change thier value just by puttin in a new value and hitting the "update" button next to it.
scott