Actions

Difference between revisions of "2-2b. CCTV with relay - Event Handler (solution)"

From Zenitel Wiki

(Call buttons:)
(Related articles)
 
(12 intermediate revisions by one other user not shown)
Line 19: Line 19:
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
====Relay control. Alternative 1====
+
====Relay control ====
 
* ''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.''
 
* ''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).''
 
* ''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).''
Line 32: Line 32:
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
When the Entrance ends the conversation (or the ringing times out), the station returns to idle mode. The event "4 - Station in Use" will go OFF when the station returns to idle:
+
When the conversation with the Entrance ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:
 
[[File:2-2b solution7.PNG|left|thumb|500px|Turn off the RCO 5 when the Entrance station 107 returns to idle]]
 
[[File:2-2b solution7.PNG|left|thumb|500px|Turn off the RCO 5 when the Entrance station 107 returns to idle]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
 +
When the conversation with the SOS Point ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:
 
[[File:2-2b solution8.PNG|left|thumb|500px|Turn off the RCO 6 when SOS point station 108 returns to idle]]
 
[[File:2-2b solution8.PNG|left|thumb|500px|Turn off the RCO 6 when SOS point station 108 returns to idle]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
====Relay control. Alternative 2====
+
====Relay control. Alternative solution ====
* ''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.''
+
This solution reduces the number of events. Instead of using one event for each substation, one can set the "When Related To" = "All", and use the IF statement to check who is calling.
* ''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.
+
[[File:2-2b solution9.PNG|left|thumb|500px|This event is triggered by calls from any station. The IF statement is used to check who the caller is]]
 +
<br style="clear:both;" />
  
Include all substations (here: Elevator and Entrance) in UDP group 1:
+
Action string:
[[File:2-2b solution9.PNG|left|thumb|500px|Include 104 and 302 in UDP group 1]]
+
IF %op(%2.dir,=,107)
<br style="clear:both;" />
+
RCO 5 ON
 +
ENDIF
 +
IF %op(%2.dir,=,108)
 +
RCO 6 ON
 +
ENDIF
  
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:
+
Explanation: If the call is from 107, turn on RCO 5. If the call is from 108, turn on RCO 6.
[[File:2-2b solution10.PNG|left|thumb|500px|Private Ringing mode ON at 400 from UDP 1 triggers RCO = phys no of substation]]
 
<br style="clear:both;" />
 
  
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|500px|Turn off the RCO when station in UDP group 1 returns to idle]]
 
<br style="clear:both;" />
 
  
  
In the RCO table one needs to map the logical RCO to the physical output.
+
When the Control Room station returns to idle, the outputs should go off:  
* Elevator 104 is on physical number 4. RCO 4 should be mapped to output 5.
+
[[File:2-2b solution10.PNG|left|thumb|500px|Turn all outputs off whenever the Control Room returns to idle]]
[[File:2-2b solution13.PNG|left|thumb|500px|Map RCO 4 to output 5]]
 
<br style="clear:both;" />
 
* Entrance 302 is on physical number 39. RCO 39 should be mapped to output 6.
 
[[File:2-2b solution12.PNG|left|thumb|500px|Map RCO 39 to output 6]]
 
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Line 72: Line 68:
 
===Related articles ===
 
===Related articles ===
 
* [[2-2b. CCTV with relay - Event Handler (practice)]]
 
* [[2-2b. CCTV with relay - Event Handler (practice)]]
 +
 +
[[Category: AlphaCom practice]]

Latest revision as of 10:06, 30 June 2022

System configuration


Solution

Call buttons:

  • Pressing the call button at the Entrance or at the SOS Point should generate a call in private ringing mode to the Control Room.
Program DAK 1 of the Entrance station to "I 101"


Program DAK 1 of the SOS Point station to "I 101"


By setting Call Priority Setup = Low, the call from the Entrance will be forced to Private ringing mode, regardless of the Open/Private status of the Control Room


By setting Call Priority Setup = Low, the call from the SOS Point will be forced to Private ringing mode, regardless of the Open/Private status of the Control Room


Relay control

  • 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 Control Room starts ringing (The Private Ringing mode event goes ON), and the caller is station 107, turn on RCO 5:

Private Ringing mode ON at 101 when called from station 107 will trigger RCO 5 on


When the Control Room starts ringing (The Private Ringing mode event goes ON), and the caller is station 108, turn on RCO 6:

Private Ringing mode ON at 101 when called from station 108 will trigger RCO 6 on


When the conversation with the Entrance ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:

Turn off the RCO 5 when the Entrance station 107 returns to idle


When the conversation with the SOS Point ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:

Turn off the RCO 6 when SOS point station 108 returns to idle


Relay control. Alternative solution

This solution reduces the number of events. Instead of using one event for each substation, one can set the "When Related To" = "All", and use the IF statement to check who is calling.

This event is triggered by calls from any station. The IF statement is used to check who the caller is


Action string:

IF %op(%2.dir,=,107)
RCO 5 ON
ENDIF
IF %op(%2.dir,=,108)
RCO 6 ON
ENDIF

Explanation: If the call is from 107, turn on RCO 5. If the call is from 108, turn on RCO 6.


When the Control Room station returns to idle, the outputs should go off:

Turn all outputs off whenever the Control Room returns to idle







Related articles