View single post by slychiu
 Posted: Saturday Jul 25th, 2015 03:22 pm
 Full Topic 
slychiu



Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5495
Status: 
Offline

  back to top

Programming

The Comfort Input connected to the TWS Current sensor is programmed as Switch Normally Open Zone Type (or Zone Type 8). eg see Zone 8 below.



If there is no current to the light, the Zone will be in the OFF state ie open. If there is current to the light, the zone will be in the ON state ie contact closed. Comfort needs to know the state in order to know whether to toggle the relay. The relay is toggled (ie change state) to switch the light to the opposite state from the current On/Off state.

Create 2 Responses, eg Light X On and Light X Off.

Zone ZZ is the zone number, Output NN is the output number.

Response: Light X On
If Input Zone ZZ  = 0 Then
    Toggle Output Output NN
End If

The Response checks the zone state for the current sensor. if the Zone is 0 ie OFF (no current), toggle the Output relay to switch on the light.
If the zone state is already on (ie the light is on), then dont do anything.


Response: Light X Off
If Input Zone ZZ  <> 0 Then
    Toggle Output Output NN
End If

The Response checks the zone state for the current sensor. If the Zone is 1 ie ON (current detected), toggle the Output relay to switch off the light.
If the zone state is already off (ie the light is off), then dont do anything.

If the TWS has already been connected, a good way of testing the programming and connection is to use the Execute Response control as shown in the example below (Execute Response in the right pane)


The execute response directly executes the Response selected. The light should turn on or off depending on which of the 2 responses are selected.



Last edited on Sunday Jul 26th, 2015 11:44 am by slychiu

 Close Window