Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Too many RS485 messages from PIRs
#1
I use the alarm PIR sensors to trigger devices external to Comfort via RS485 messages.
As the PIRs can retrigger multiple times when moving through a zone it means a lot of RS485 messages sent. This can mean that some triggers are delayed due to the amount of data.
What is the easiest method to reduce the number of repeat messages, is it a matter of adding a \"wait\" after a \'Universal SendCommand UCM02\' instruction?
Reply
#2
some pirs have a dial to set a delay before retrigerring. If so that would be the easiest ay to prevent the messages.
I assume you are using zone on and off responses to send the Rs485 extermal mssages.You can use the wait for timer like this
If Timer Timer01 = 0 Then
    Do (response to send rs485)
    Wait 2 Seconds Using Timer01
End If

the 1st time, the response to send rs485 will be activated.This starts a 2 secs timerIf the PIR is trggered again within 2 seconds, the timer will be running so the message is not sent
If you use the off response you may need to do the same thing
You will have to ue difrent timers for different zones
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)