Comfort Automation/ Security System Forums
not getting the counter value I am expecting - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Support (https://www.comfortforums.com/forum-2.html)
+--- Forum: Problems & Troubleshooting (https://www.comfortforums.com/forum-36.html)
+---- Forum: Responses and Actions (https://www.comfortforums.com/forum-74.html)
+---- Thread: not getting the counter value I am expecting (/thread-4551.html)

Pages: 1 2 3


- wexfordman - 10-28-2016

Hi,
Still sruggling with getting my heating working corretly, and I think the problem is down to counters and adding etc.
Here is my response
Code:
Get counter 91
Code:
get negative
add living_stback_tmp
set living_stback_tmp
Get counter living_dset_temp
add living_stback_tmp
Set living_stback_temp
get counter heat_hyst
Get negative
add living_stback_tmp
Set heat_livingdelta
Do heat living allign
Before I execute, my counter value are as follows

Code:
counter 91 = 22
living_stback_tmp =100
living_dset_temp=25
heat_hyst= 2
After running, my values are
Code:
counter 91 = 2
living_stback_tmp =280
living_dset_temp=25
heat_hyst = 2
livingdelta = 65535

Can anyone explain this, as these are not the results I would expect at all!


- Ingo - 10-28-2016

Please post the response in a code tags. What value do you get and what do you expect?


- wexfordman - 10-28-2016

have them listed in the post (format cooming out all messed up, sorry)


 counter 91 =22

livingstback_tmp=280

livingdelta =65535


- wexfordman - 10-28-2016

sorry ingo, what do you mean code tags ?


- Ingo - 10-28-2016

When you post you can wrap the text in tags. See one of the options when pressing \'reply\' - NOT \'quick reply\'.


- wexfordman - 10-28-2016

sorry, done now Smile


- Ingo - 10-28-2016

Should the answer be \'101\'?


- wexfordman - 10-28-2016

[user=436]Ingo[/user] wrote:
Quote:Should the answer be \'101\'?

living_stback_temp should b 103, but is 280

living_delta should be 101 but is 95535


- Ingo - 10-28-2016

I\'ll let Cytech take a look. I think it has to do with High|Low bytes especially the very first -22 which is returned in two steps. First one by LastActionValue and next by using Action Code 38.


- wexfordman - 10-28-2016

thanks Ingo