Comfort Automation/ Security System Forums

Full Version: not getting the counter value I am expecting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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!
Please post the response in a code tags. What value do you get and what do you expect?
have them listed in the post (format cooming out all messed up, sorry)


 counter 91 =22

livingstback_tmp=280

livingdelta =65535
sorry ingo, what do you mean code tags ?
When you post you can wrap the text in tags. See one of the options when pressing \'reply\' - NOT \'quick reply\'.
sorry, done now Smile
Should the answer be \'101\'?
[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
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.
thanks Ingo
Pages: 1 2 3