eulaersi
27.07.06, 22:16
I've just installed a mini-function module, and I could use some help :-)
I want to send a telegram to all actors with value 0 when somebody leaves the house.
"Leaving the house" is defined in the mini function module as:
- The alarm is set on (read from binary input), AND
- One of the doors is open (read from binary input), AND
- The alarm doesn't sound off because someone enters the house (read from binary input)
Based on this logic I receive a value 1 (when all conditions are met), or value 0 (when one of the conditions are not met) through the mini-function module.
I can use an INV-block to invert the value of 1 to 0. But then when one of the conditions are not met, I receive a value 1 (so all lights are put on).
My question is which function block should I use so that only a value is sent when all of the above conditions are met. When one of the conditions are not met, I don't want to sent a telegram on the bus.
Thanks for your help
Ivan
I want to send a telegram to all actors with value 0 when somebody leaves the house.
"Leaving the house" is defined in the mini function module as:
- The alarm is set on (read from binary input), AND
- One of the doors is open (read from binary input), AND
- The alarm doesn't sound off because someone enters the house (read from binary input)
Based on this logic I receive a value 1 (when all conditions are met), or value 0 (when one of the conditions are not met) through the mini-function module.
I can use an INV-block to invert the value of 1 to 0. But then when one of the conditions are not met, I receive a value 1 (so all lights are put on).
My question is which function block should I use so that only a value is sent when all of the above conditions are met. When one of the conditions are not met, I don't want to sent a telegram on the bus.
Thanks for your help
Ivan