arefor32
Member
Hello All,
My customer has 4 sensors which I am reading via a SCL500 1746-NI4. Each sensor outputs 4-20mA. I scale each value to 0-100 and move them to N7:1 thru N7:4.
I would like to compare the values and move the largest value to another integer file N7:10. Can someone tell me the best way to attack the problem? Typically I like to scratch out my logic on paper first but I can not seem to get it right.
For example, if I had only 2 sensors…
Sensors A & B
----A>=B-------- MOV A-----
----B > A-------- MOV B-----
Thanks is advance for your help!
My customer has 4 sensors which I am reading via a SCL500 1746-NI4. Each sensor outputs 4-20mA. I scale each value to 0-100 and move them to N7:1 thru N7:4.
I would like to compare the values and move the largest value to another integer file N7:10. Can someone tell me the best way to attack the problem? Typically I like to scratch out my logic on paper first but I can not seem to get it right.
For example, if I had only 2 sensors…
Sensors A & B
----A>=B-------- MOV A-----
----B > A-------- MOV B-----
Thanks is advance for your help!