Difference between revisions of "2-2b. CCTV with relay - Event Handler (solution)"
From Zenitel Wiki
(→Relay control. Alternative 2) |
(→Relay control. Alternative 2) |
||
Line 52: | Line 52: | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
− | When | + | When a station in UDP group 1 ends the conversation (or the ringing times out), the station returns to idle mode. The event 04 - Station in Use will go OFF when the station returns to idle: |
− | [[File:2-2b solution11.PNG|left|thumb|450px|Turn off the RCO | + | [[File:2-2b solution11.PNG|left|thumb|450px|Turn off the RCO when station in UPD group 1 returns to idle]] |
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
Revision as of 16:51, 27 February 2013
Contents
Solution
Call buttons:
- Pressing the call button at the Entrance or in the Elevator should generate a call in private ringing mode to the Main Guard.
]]
Relay control. Alternative 1
- A relay output to the CCTV system should be activated when the private ringing starts. There is one relay for each substation. Use the outputs 5 and 6.
- The relay should stay activate until the call is accepted and the conversation is cancelled. (If the call is not answered, the relay must drop when the ringing times out).
When the Main Guard starts ringing (The Private Ringing mode event goes ON), and the caller is station 302, turn on RCO 5:
When the Main Guard starts ringing (The Private Ringing mode event goes ON), and the caller is station 104, turn on RCO 6:
When the Elevator ends the conversation (or the ringing times out), the station returns to idle mode. The event 04 - Station in Use will go OFF when the station returns to idle:
Relay control. Alternative 2
- A relay output to the CCTV system should be activated when the private ringing starts. There is one relay for each substation. Use the outputs 5 and 6.
- The relay should stay activate until the call is accepted and the conversation is cancelled. (If the call is not answered, the relay must drop when the ringing times out).
Instead of "hardcoding" the RCO numbers in the event, as was done in alternative 1, one can make more general rules using the physical number of the substations as index number to the RCO's. In the RCO table you can map the logical RCO to desired physical output. This methode is better especially with a large number of substations, as the number of events will be reduced.
Include all substations (here: Elevator and Entrance) in UDP group 1:
When the Main Guard starts ringing (The Private Ringing mode event goes ON), and the caller is from any station in UDP group 1, turn on the RCO with logical number equal to the physical number of the calling station. E.g. if the call is from the Entrance (directory number 302, physical number 39), the RCO 39 will be triggered:
When a station in UDP group 1 ends the conversation (or the ringing times out), the station returns to idle mode. The event 04 - Station in Use will go OFF when the station returns to idle: