Thanks for you help
i am work on this at the moment
but not sure its going to work out right
would test tomorrow
regards
Isaac
datax var word
pressure var word
goto main
Get_Pressure:
if (datax <= 325) then pressure =0
if (datax <= 328) and (datax > 325) then pressure = 25
if (datax <= 331) and (datax > 328) then pressure = 50
if (datax <= 336) and (datax > 331) then pressure = 75
if (datax <= 339) and (datax > 336) then pressure = 100
if (datax <= 342) and (datax > 339) then pressure = 120
if (datax <= 346) and (datax > 342) then pressure = 140
if (datax <= 351) and (datax > 346) then pressure = 160
if (datax <= 355) and (datax > 351) then pressure = 180
if (datax <= 360) and (datax > 355) then pressure = 200
if (datax <= 364) and (datax > 360) then pressure = 220
if (datax <= 370) and (datax > 364) then pressure = 240
if (datax <= 375) and (datax > 370) then pressure = 260
if (datax <= 379) and (datax > 375) then pressure = 280
if (datax <= 387) and (datax > 379) then pressure = 300
if (datax < 323) or (datax > 389) then pressure = 999
return
Bookmarks