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

If/Then Programming example
 Moderated by: admin
New Topic Reply Printer Friendly
 Rate Topic 
AuthorPost
 Posted: Saturday May 5th, 2007 10:12 am
  PMQuoteReply
1st Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 595
Status: 
Offline
This example shows how to do X from 6 AM to 11 PM and do Y at other times

If  Hours < 6 Then
   Do Y [Y]
Else
   If  Hours < 23 Then
         Do X [X]
   Else
       Do Y [Y]
   End If
End If


It needs to be programmed this way because Comfigurator is not able to do the following

IF (condition 1) AND (condition 2) THEN

or

IF (condition 1) OR (condition 2) THEN


Back To Top

 Posted: Monday Mar 31st, 2008 01:30 pm
  PMQuoteReply
2nd Post
BMagalhaes
Comfort Distributors


Joined: Thursday Sep 28th, 2006
Location: Lisbon, Portugal
Posts: 34
Status: 
Offline
Hi,

So does it mean that a response such as follows will not work?

If Flag ILcozinhaFrt <> 0 Then
    If Input SC_LUZ_CZ_FRENTE = 0 Then
        Do ILcozinhaFrt_On []
        Do ILcozinhaFrt_Off [] After 300 Seconds Using IL_COZINHA_Frt
    Else
        Do ILcozinhaFrt_Off [] After 300 Seconds Using IL_COZINHA_Frt
    End If
End If


Tks, Bruno

Back To Top

 Posted: Monday Mar 31st, 2008 01:48 pm
  PMQuoteReply
3rd Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 935
Status: 
Offline
It will work. Any valid programming statement done with Response wizard will work
My point is that the OR statement is not possible current;y, if so it would make things simpler

Back To Top


 Current time is 02:55 am

Top



UltraBB 1.17 Copyright © 2007-2008 Data 1 Systems