
Variable Numeric MaxMM = 1800
Variable Numeric MinMM = 0

Label Loop
	v1 = Slot(99)
	v2 = (MaxMM - v1) / (MaxMM - MinMM)
	v2 = v2 * 1000
	v2 = Max(v2, 0)
	v2 = Min(v2, 1000)
	Slot(1) = v2
	Wait Seconds 0.005
	Print Int(v1) + "  " + Int(v2)
Goto Loop


'WATCH SewTo_Speed
'EXEC Button 5 Text Button5
