![]() |
|
add counters - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Software Applications (https://www.comfortforums.com/forum-4.html) +--- Forum: Comfigurator (https://www.comfortforums.com/forum-20.html) +--- Thread: add counters (/thread-4172.html) |
- batman - 04-04-2015 Thus anybody know how to add the values of two counters and load ir on a third counter. My problem is i have a counter temperature and a counter ventilation and i want to add this two counters and the result load on a counter called IRCode. - slychiu - 04-04-2015 There is no direct way to add 2 counters There may be an indirect way because there is an action to subtract counter from last action value Get Counter Counter001 Get Negative Set Counter002 Get Counter Counter003 Subtract Counter002 Set Counter004 This adds counter 3 to counter 1 and saves in counter 4 counter 2 is used to hold the negative value of counter 1 counter 3 - counter 2 should be the same as counter 3 + counter 1 but I am not able to test tihs now - Ingo - 04-04-2015 Chiu, I tested it and it works perfectly. - batman - 04-04-2015 Thanks it works perfectly, perhaps next configurator we have this implementation directly. - slychiu - 04-04-2015 Thanks ingo It is rare for something to work right first time |