![]() |
|
Need help on setting counter value - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Support (https://www.comfortforums.com/forum-2.html) +--- Forum: Problems & Troubleshooting (https://www.comfortforums.com/forum-36.html) +---- Forum: Responses and Actions (https://www.comfortforums.com/forum-74.html) +---- Thread: Need help on setting counter value (/thread-3720.html) |
- evard - 02-28-2014 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. - ident - 02-28-2014 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.html?category_id=107 - evard - 03-03-2014 Hi ident, Thanks for the help and I got it working now. |