Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
not getting the counter value I am expecting
#1
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!
Reply
#2
Please post the response in a code tags. What value do you get and what do you expect?
Reply
#3
have them listed in the post (format cooming out all messed up, sorry)


 counter 91 =22

livingstback_tmp=280

livingdelta =65535
Reply
#4
sorry ingo, what do you mean code tags ?
Reply
#5
When you post you can wrap the text in tags. See one of the options when pressing \'reply\' - NOT \'quick reply\'.
Reply
#6
sorry, done now Smile
Reply
#7
Should the answer be \'101\'?
Reply
#8
[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
Reply
#9
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.
Reply
#10
thanks Ingo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)