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

Announce zone name when triggered during day.
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Monday Oct 28th, 2019 01:53 pm
   PM  Quote  Reply 
1st Post
sinky100
Member
 

Joined: Thursday Mar 8th, 2012
Location:  
Posts: 45
Status: 
Offline

  back to top

Hi,
Have a little problem working out to configure announcing my drive way alert when this zone's sensor is triggered during the day only.I had this selected to announce on the zone itself, but the with the number of triggered announcements by animals through the night it has  become a pain.During the day though, the announcements are welcome so as to determine when someone has entered the drive when the gates are open.I am trying to have a zone announcement during a specific time period, but having written to the system it hasn't worked. I haven't done any programming on the system for some time, so my approach and programming are a little rusty:
I have set up the following:
-TimeProgram09 to execute response 127 at 0700hrs
-Response 127:     Set Flag Flag004     If input DrvWayPer <>0 Then        Do Response 126     End If
- Response 126:     Say ZoneName
-TimeProgram10 to execute response 128 at 2230hrs
-Response 128:     Clear Flag Flag004
If this isn't the correct approach, I would be thankful for any assistant given.
Regards,Iain



 Posted: Tuesday Oct 29th, 2019 05:13 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


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

  back to top

Your program is below

TimeProgram09 to execute response 127 at 0700hrs
Response 127:    

Set Flag Flag004    
If input DrvWayPer <>0 Then  Do Response 126    
End If

Response 126:    
Say ZoneName

This response at 7:00 am checks input DrvWayPer. If the zone happens to be on at that specific time,  it announces the zone name once. It does not annnounce the zone whenevr it is triggered during day (or night), which is what you want



TimeProgram10 to execute response 128 at 2230hrs
Response 128:    
Clear Flag Flag004

Clear Flag Flog004 does not do anything because Flag 4 is not a condition for anything

You need to create a zone ON response which announces the zone between certain times;
eg 
Zone Response 
If Flag Flag004 <>0 then 
Say ZoneName  
Endif

Time Program 9 Response 127
Set Flag Flag004    

Time Program 10 Response 128 
Clear Flag Flag004

I hope this example explains the logic that is needed

Last edited on Tuesday Oct 29th, 2019 05:57 am by slychiu



 Posted: Tuesday Oct 29th, 2019 10:05 pm
   PM  Quote  Reply 
3rd Post
sinky100
Member
 

Joined: Thursday Mar 8th, 2012
Location:  
Posts: 45
Status: 
Offline

  back to top

Slychiu,
Yup, seems I am very rusty and approached it from the complete wrong angle. I'll adjust as per your suggestion.
Again, many thanks for your continued support.
Rgds,Iain



 Current time is 02:14 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems