Posted: Friday Oct 28th, 2016 10:07 pm |
|
1st Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
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
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
counter 91 = 22
living_stback_tmp =100
living_dset_temp=25
heat_hyst= 2 |
After running, my values are
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!Last edited on Friday Oct 28th, 2016 10:33 pm by wexfordman
|
Posted: Friday Oct 28th, 2016 10:17 pm |
|
2nd Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
Please post the response in a code tags. What value do you get and what do you expect? Last edited on Friday Oct 28th, 2016 10:19 pm by Ingo
|
Posted: Friday Oct 28th, 2016 10:20 pm |
|
3rd Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
have them listed in the post (format cooming out all messed up, sorry)
counter 91 =22
livingstback_tmp=280
livingdelta =65535Last edited on Friday Oct 28th, 2016 10:22 pm by wexfordman
|
Posted: Friday Oct 28th, 2016 10:21 pm |
|
4th Post |
Posted: Friday Oct 28th, 2016 10:24 pm |
|
5th Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
When you post you can wrap the text in tags. See one of the options when pressing 'reply' - NOT 'quick reply'.
|
Posted: Friday Oct 28th, 2016 10:34 pm |
|
6th Post |
Posted: Friday Oct 28th, 2016 11:08 pm |
|
7th Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
Should the answer be '101'?
|
Posted: Friday Oct 28th, 2016 11:16 pm |
|
8th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
Ingo wrote: Should the answer be '101'?
living_stback_temp should b 103, but is 280
living_delta should be 101 but is 95535Last edited on Friday Oct 28th, 2016 11:17 pm by wexfordman
|
Posted: Friday Oct 28th, 2016 11:30 pm |
|
9th Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
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.
|
Posted: Friday Oct 28th, 2016 11:43 pm |
|
10th Post |
Posted: Saturday Oct 29th, 2016 05:06 pm |
|
11th Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
I did a quick test on your code and found that at the point shown below the results do not appear to be correct as per the documentation. Perhaps I am missing something but adding immediate '78' works but adding a counter with value '78' doesn't.
get counter 91
get negative
add living_stback_tmp
set living_stback_tmp
Get counter living_dset_temp
add living_stback_tmp <-- Here the result is not as expected.
Set living_stback_temp
get counter heat_hyst
Get negativeadd living_stback_tmp
Set heat_livingdelta
Do heat living allign |
|
Posted: Sunday Oct 30th, 2016 12:13 am |
|
12th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
Thanks again ingo,
Cytech, can you help with this one?
|
Posted: Sunday Oct 30th, 2016 06:06 am |
|
13th Post |
tech07
Administrator
Joined: | Thursday Jan 29th, 2009 |
Location: | Singapore |
Posts: | 106 |
Status: |
Offline
|
back to top
|
Is this what you expect and not getting?
get counter 91 (= 22)
get negative ( -22)
add living_stback_tmp (+ 100 = 78)
set living_stback_tmp ( 78)
Get counter living_dset_temp (25 )
add living_stback_tmp (+78 = 103)
Set living_stback_temp (103)
get counter heat_hyst (2)
Get negative (-2)
add living_stback_tmp (+103 = 101)
Set heat_livingdelta (101)
counter 91 is not changed by the code but you say it becomes 2 so there may be other responses changing it
For testing can you send the cclx file to support@cytech.biz as it will be easier to simulate with the actual codeLast edited on Monday Oct 31st, 2016 01:15 pm by slychiu
|
Posted: Sunday Oct 30th, 2016 03:23 pm |
|
14th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
tech07 wrote: Is this what you expect and not getting?
get counter 91 (= 22)
get negative ( -22)
add living_stback_tmp (+ 100 = 78)
set living_stback_tmp ( 78)
Get counter living_dset_temp (25 )add living_stback_tmp (+78 = 103)Set living_stback_temp (103)get counter heat_hyst (2)Get negative (-2)add living_stback_tmp (+103 = 101)Set heat_livingdelta (101)
counter 91 is not changed by the code but you say it becomes 2 so there may be other responses changing it
For testing can you send the cclx file to support@cytech.biz as it will be easier to simulate with the actual code
Hi,
Thats the problem alright, I am not getting the correct value in either living_stbck_temp or in heat_livingdelta
I have emailed my file, thanks.
Regards,Eamon
|
Posted: Monday Oct 31st, 2016 05:52 pm |
|
15th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5495 |
Status: |
Offline
|
back to top
|
There seems to be something wrong. we are investigating
|
Posted: Monday Oct 31st, 2016 05:54 pm |
|
16th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
slychiu wrote: There seems to be something wrong. we are investigating
Thanks slychiu, been doingng my head in the last few weeks, was convinced I had it wrong.
|
Posted: Tuesday Nov 1st, 2016 08:41 am |
|
17th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5495 |
Status: |
Offline
|
back to top
|
We have found a bug with add counter and add sensor actions and will get a new version with the fix soon
Thanks for the information
|
Posted: Tuesday Nov 1st, 2016 01:22 pm |
|
18th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
Brilliant thats slychiu.
How long do you think before a fix ? Winter encroaches, and I need this to get my scs thermostat controlled heating working
Regards,EamonLast edited on Tuesday Nov 1st, 2016 01:23 pm by wexfordman
|
Posted: Wednesday Nov 2nd, 2016 04:46 pm |
|
19th Post |
Posted: Wednesday Nov 2nd, 2016 05:13 pm |
|
20th Post |
wexfordman
UCM Pi Users
Joined: | Monday Jan 1st, 2007 |
Location: | Cork, Ireland |
Posts: | 546 |
Status: |
Offline
|
back to top
|
Thanks slychiu, I will have a look this evening after work, thanks for quick response
|
Current time is 02:52 am | Page: 1 2 |
|