Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

MULTIPLE IF

Solved!
Go to solution

Hello, someone can help me.

How Could you put a number of conditions with multiple values in a single word of Modbus

And that this is run when you press a button given.

 

Example in Modbus connections:

 

Modbus1.48516= If(Pb1,50,Modbus1.48516)     This expression is correct and working. Smiley Very Happy

 

But I want to do this:

 

Modbus1.48516= If(Pb1,50,Modbus1.48516)

 

Modbus1.48516= If(Pb2,60,Modbus1.48516)

 

Modbus1.48516= If(Pb3,70,Modbus1.48516)

 

Thanks and best regards

0 Kudos
Message 1 of 4
(6,295 Views)
Solution
Accepted by topic author ICQ

Modbus1.48516= If(Pb1,50, If(Pb2,60, If(Pb3,70,Modbus1.48516)))

 

That work?

 

Mike

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 2 of 4
(6,287 Views)

OK, works perfect, just what we wanted. Smiley Very Happy

Thank you very much, for everything.

Francisco.

0 Kudos
Message 3 of 4
(6,282 Views)

No problem.

 

Mike

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 4 of 4
(6,274 Views)