Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Need help on setting counter value
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Friday Feb 28th, 2014 04:43 pm
   PM  Quote  Reply 
1st Post
evard
Member
 

Joined: Monday Sep 2nd, 2013
Location:  
Posts: 23
Status: 
Offline

  back to top

Hello expert,
I want to set KNX control in iphone Application (Switch On/Off light).Can you please give me some guide on this?

I have mapped 3 knx address (1-bit switching) to counter as below:
0/1/0 (Light 1) -> Counter000
0/1/1 (Light 2)  -> Counter001
0/1/2 (Light 3)  -> Counter002

Responses:
========SwitchOff: -----------
If  LastUcmCounter= 0
 Then  Set LastUcmCounter = 255
End If

SwitchOn: -----------
If  LastUcmCounter=255 Then 
  Set LastUcmCounter = 0
End If

Control Menu==========
Control Group 0-
0- Room 1 (Feedback: Counter 000)
   0- Off (Response: SwitchOff)
   1- On (Response: SwitchOn)

1- Room 2 (Feedback: Counter 001)
    0- Off (Response: SwitchOff)
    1- On (Response: SwitchOn)

2- Room 3 (Feedback: Counter 002)
     0- Off (Response: SwitchOff)
     1- On (Response: SwitchOn)

Counters=======
0 Counter000 NullResponse
1 Counter001 NullResponse
2 Counter001 NullResponse

When I try to execute response, I did not get the expected result.

Last edited on Friday Feb 28th, 2014 05:49 pm by



 Posted: Friday Feb 28th, 2014 05:55 pm
   PM  Quote  Reply 
2nd Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

The way you have programmed it, you will not be able to control the KNX lights from your control menu.

"If Last UCM Counter " should be used only in a Counter Response, NOT in a response sending commands to KNX. "If Last UCM Counter" is used for KNX to control Comfort not for Comfort controling KNX


The On Response should be eg

 KNX 0/1/0 On

Off Response should be eg
KNX 0/1/1 Off

Use the Response Wizard to program the KNX Commands

This is explained in detail in the UCM/KNX Manual which canbe downloaded from http://www.cytech.biz/ucmknx_manual.html?category_id=107



 Posted: Monday Mar 3rd, 2014 04:49 am
   PM  Quote  Reply 
3rd Post
evard
Member
 

Joined: Monday Sep 2nd, 2013
Location:  
Posts: 23
Status: 
Offline

  back to top

Hi ident,

Thanks for the help and I got it working now.



 Current time is 08:06 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems