0
Answered

Trigger button with multiple feedbacks

'Wouter van der Post' 3 months ago • updated by Mikhail Tolmachev 1 month ago 13

I've created a trigger button with the following properties:


I've linked multiple feedbacks (that each return a value between 0 and 100) to it's value:


When all 4 feedbacks have a value 100, the button is in the "On" state (which is good).

However when 1 of the 4 feedbacks goes to 0, the button goes to the "Off" state. But there are still 3 feedbacks that return a value of 100. Why does this happen?

Under review

Hello.

The Item takes the value of feedback. If you receive values from several feedbacks and you want to track them all, then make a group of triggers - one item per feedback. You can make a separate trigger that enables/disables this group. Ie sends 4 commands, but without feedbacks.

I do not understand what you mean.

Can you create a screen recording of how to set this up?

+1

Simple, you need create 4 trigger with off state trasparent and connect only 1 feedback for each. Next set all item on same position.

On bottom item set the off state with your graphic.


Is not a best solution, but it's a simple.

I get it, you're right.. it not the most elegant solution.

Would rather like iRidium to change the functionality (or limit the relations to 1 if they are not planning to support multiple relations).

Hello.

Francesco Zangara right. His proposal deserves attention.


Multiple feedbacks per graphic element are not forbidden to drag, but the reaction will be to change any feedback, the values of the others are ignored.

Answered?

I don't think this work-around is an answer. Are you going to look at how this functionality is implemented now and change it to make it more logical? So support multiple relations, or limit it to 1.....

I'll try to clarify ...

The current logic is used by some installers, so it will be wrong to change something.
For your task there is a clear solution that will work well without the use of JS.
The question is answered precisely because I do not see what we could change, so that the logic does not break down existing objects? And again - because your question has a solution, why do not you want to use it?

Most installers have common knowledge about PLC systems and understand the "OR", "AND", "NOR", etc. logic very well. The current behavior is none of these and also strange in the context of a button. Who would want "the last state change of several feedbacks" reflected on a button? :s I honestly can't think of a scenario in which that would make sense.

Making it work like an "OR" or "AND" would make much more sense and would also be easier to explain. So if you don't want to change the functionality of the current trigger button, add another type of button "Logic button" that allows you to choose between OR/AND and that can work with multiple relations.


At this moment I've solved this by building a scheme with an OR construction for all the relations/feedbacks that is being written to a tag (see screenshot below). I've had to create more than 10 of these schemes in my project now.


Why not use the other solution?

Our projects are being worked on by multiple people, it's not easy to carry over a project (not only iRidium, but any project) that has 'dirty hacks' (because that's what I call it) in it to accomplish something. Layering buttons on top of each other is not elegant, not in any way. I want my projects to be self explanatory so that people can continue working with it, make changes and add functionality even when I'm not available to explain strange constructions that have been used. Using a scheme is also not the best solution in terms of self explanatory because you can't trace back the project tag to the scheme.

 


Good solution for buttons, switches and others!

OR, AND, NOT items can be used only for Boolean variables. But it is difficult to do something like this for several items that control one dimmer (for example). There are non-Boolean variables: "multiple relations" give an elegant solution to a task of controlling from several places.

OR, AND, NOT items can be used only for Boolean variables

That is not true, in the scheme above the "From Tag" items are linked to feedbacks that return a value between 0 and 100. And that works fine because everything other than 0 in a boolean world is true. So in the scheme if any of the Tag feedbacks return a value >0, the end result "To Tag" is true. If all return 0, the To Tag is false.

Ok. 0/100 values are logical levels of "boolean" signals again.

I have keep in mind the controlling the brightness (0-100%) of one lamp from several places simultaneously.

>> However when 1 of the 4 feedbacks goes to 0, the button goes to the "Off" state. But there are still 3 feedbacks that return a value of 100. Why does this happen?

Multiple relations behavior is easy to understand: a value is set by the last relation which tag is changed.


Why multiple relations are not recommended: there may be a problem -  if many relation tags change often, quickly and simultaneously, it may not be clear to end-users as it may seem to be uncontrolled changes. In addition an end-user may not understand why a relation that is interesting for him at the moment does not work (as you thought about those three relations with "100" values).


But multiple relations may be used successfully if you think properly how to organize them.