Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cbus to Comfort comands HELP
#1
I wonder if someone could direct me to some tuition of the way Cbus commands work with Comfort counters. I have done several in installations and think I can do most things now with comfort, but getting Comfort to monitor the Cbus UCM activity and initiating a response is beyond me.

Do I need to tell Cbus to do a certain thing first and then look for it in Comfort? I can see from looking at the forum, that you have to use a counter within Comfort but I can’t see how. I understand a response will only work if it is told to be done, so what tells it this? I would have thought the Cbus activity would need to be continually monitored for it to be able to be directed to a response, when it sees certain UCM activity?

What I want to do is switch a Comfort output on when a Cbus Din Rail relay is switched on via a wall switch. – So simple that hard wiring the relay to a Comfort input would be far easier - BUT this has got the better of me and I want to learn how to do it within the software!:?

Thanks Graham
Reply
#2
Graham,

Cbus Groups and Comfort Counters are internally linked via the UCM/Cbus. When you set a Group, on Cbus, to ON, the corresponding Counter on Comfort also has a value of 255. From this point onwards you can decide what to do with that value, usually people have a response attached to that Counter that executes something, in your case you can set an output to On if the Counter > 0. For the Off response you could do the opposite, if Counter = 0 then Set Output Off.

I am sure the Comfort guys have lot\'s of better ways to use responses but the above is an easy example of how it works.

Remember that a response only fires if the counter value is set by something \'external\' meaning from Cbus. If you have something that sets the counter internally the the Counter responses won\'t fire - as far as I know anyway. Also, setting a Counter value on Comfort doesn\'t do the opposite back to Cbus, you have to send a proper Cbus command to be able to control anything on that side. EG. When in Night Mode, Switch the Pool Light Off.

Ingo
Reply
#3
An example is given in the attached cclx file to illustrate what Ingo says

Counter 1 is shown in the screenshot which is aasssigned a Response named \"Output 1 On-Off by Cbus\"

The Counter1 Response is activated whenever the Cbus group address 1 is switched on or off

The Response could be Output 1 On which means when Cbus group address 1 is switch on or off, output 1  is switched on

The Response \"Output 1 On-Off by Cbus\" will switch Output 1 ON or OFF depending on the contents of the Group address command, ie if the command is \"OFF\", output 1 is switched off and when the command is \"ON\" ie value is >0, the output is switched on.
Output 1 On-Off by Cbus
If LastUcmCounter = 0 Then
    Do Output1OFF
Else
    Do Output1ON
End If

LastUCMCounter means the value of the counter which was just received from Cbus  to trigger the counter response. which is 0 for off, 255 for on



Attached Files Thumbnail(s)
   
Reply
#4
The simple cclx file which has the Counter Response is attached


Attached Files
.zip   cbusExample.zip (Size: 20.83 KB / Downloads: 12)
Reply
#5
Also the state of the Cbus group address on or off can be monitored in the Control Menu by setting the Feedback Type to Counter and selecting the counter number

This allows the control menu to read the state of the Cbus device via telephone or keypad, On or OFF or a vakue 0 to 254 for a dimmer
Reply
#6
Also the state of the Cbus group address on or off can be monitored in the Control Menu by setting the Feedback Type to Counter and selecting the counter number

This allows the control menu to read the state of the Cbus device via telephone or keypad, On or OFF or a vakue 0 to 254 for a dimmer
Reply
#7
Thanks to you both for your help - It was a lot simpler than I had imagined, I should have asked the question a long time ago!.
On a different note of using counters, has anyone any advice on the best way to count to a 1000 and give an output? I have a water meter which gives a pulse for every litre and have arranged it so if excess water is used within a certain time period then Comfort dials out and gives a warning.
I have done this successfully, but it’s very messy and a lot of seemingly unnecessary instructions to perform a simple task.. I used 4 counters, each counting up to 250, then setting a flag.. For every pulse comfort receives, it increments one of the 4 counter, depending on how many flags are set. It also checks to see if all 4 flags are set, with every pulse;. when they are it dials out.
There must be an easier way to use Comfort to count to more than 254 in one go??
Reply
#8
Why don\'t you try using only two counters.

Counter1 counts from 0-255, as soon as you add another to counter 1 it wraps to 0 and then you set Counter 1 to 1 and you can count again from 0-255 using Counter1. When you get to another 255 then add 1 to Counter 2 etc.

This way you can count to huge numbers. Counter 2 will always show how many times Counter 1 overflowed. For the value 1000 you will have the following:

Counter 1 = 232

Counter 2 = 3

The calculation is then 232 + (3 * 256) = 1000. For 64201 it will be 201 + (250 * 256).

That is if my maths are correct :-) How to implement it in Comfort is another story... I haven\'t done it myself but I am sure it\'s not too difficult.

Ingo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)