Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help on setting counter value
#1
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.
Reply
#2
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 https://www.cytech.biz/ucmknx_manual.htm...ory_id=107
Reply
#3
Hi ident,

Thanks for the help and I got it working now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)