Hi All, I have the code below as part of my testing setup, its used to turn on the selected gate address, using a dimmer to ramp up to selected level, wait then ramp down to selected level, for the selected amount of times. Mostly it works ok, but if i select 100 as the ramp up rate it will only get to 40%, I'm getting the value from a logic i/o linked to a slider to select from 0 to 100, so it puts 100 in there for the ramp rate, and will only get to 40% of maximum. If i manually put in 100% it will go to 100%. What i have been trying to figure out is how to add the % sign to the value so it see's it as a percentage and not a number. Has anyone out there delved into the logic engine at this level and tried something similar? As usual any help is appreciated. regards Trevor [CODE]Once GetLightingState(83) = On then begin clearscreen; Ramp_Up_To := GetIntSystemIO("Ramp_To_Up"); Ramp_Dn_To := GetIntSystemIO("Ramp_To_Dn"); GA_Rate := GetIntSystemIO("GA Rate"); GA_Delay := GetIntSystemIO("GA Delay"); GA_Count := GetIntSystemIO("GA Count"); GA_Address := GetIntSystemIO("Gate_Address"); repeat GA_Count := GA_Count - 1; SetLightingLevel(GA_Address, Ramp_Up_To, GA_Rate); Delay(Ga_Delay + 5); SetLightingLevel(GA_Address, Ramp_Dn_To, GA_Rate); Delay(Ga_Delay + 5); clearscreen; TextPos(1695, 720); DrawText(GA_Count); until GA_Count < 1; end;[/CODE]