Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Make an expression count by tens

Solved!
Go to solution
i have an expression reading a value from a scale indicator...i have scaled the value in my expression (value*35000)/65535...it reads okay but even though i have filtered the value in the plc it's still too jumpy....the indicator counts by tens instead of ones....can anyone tell me how to make my lookout expression count by tens...thanks...randy
0 Kudos
Message 1 of 3
(5,867 Views)
Solution
Accepted by topic author maxofmilions

I don't know the meaning of your expression (value*35000)/65535, but if you want a value be counted by ten in an expression, you can use this formular

 

int(value/10)*10

Ryan Shi
National Instruments
0 Kudos
Message 2 of 3
(5,858 Views)

thanks ryan....sorry the value was the reading from the scale in a vmemory location from the plc...35000 was my span....but what you gave me worked fine...now if i can figure out how to get that expression back into my plc i'll be set....randy

0 Kudos
Message 3 of 3
(5,854 Views)