Actions

Difference between revisions of "Dual Function on a single Call Button"

From Zenitel Wiki

(Created page with "{{AI}} This application makes it possible to distinguish between short press or long press of a call button or DAK. <br> If call button or DAK is released within 3 seconds i...")
 
(Input or DAK pressed)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{AI}}
 
{{AI}}
 +
This application makes it possible to distinguish between short press or long press of a call button or DAK.
  
 +
If call button or DAK is released within 3 seconds it will do one call. If pressed and kept pressed for more than 3 seconds it will do a different call.
  
This application makes it possible to distinguish between short press or long press of a call button or DAK. <br>
+
In this way one call button or DAK can be used to activate two different calls or functions.
If call button or DAK is released within 3 seconds it will do one call. If pressed and kept pressed for more than 3 seconds it will do a different call.<br>
 
In this way one call button or DAK can be used to activate two different calls or functions.<br>
 
  
Note: The DAK or call button used, should not be programmed in the DAK window at all. The destination for the call is programmed in the events used.
+
{{Note|The DAK or call button used, should not be programmed in the DAK window at all. The destination for the call is programmed in the events used}}
  
 
==Input or DAK pressed==
 
==Input or DAK pressed==
 +
Use an available [[UDP group]] as owner for the events. UDP 2 is used in this example.
 +
Select [[Station_Input_or_Station_DAK_key_(Event_Type)|event type 30]], with subtype 1 for Turbine call button and master station DAK 1, subtype 11 for [[IPVRS-1|TKIE tamper proof station]] or Turbine input 1.
 +
'''Event 1:''' - Start a 3 second (W30) timer related to number 9991, and write value 1 to [[User_Defined_Data_-_UDD|UDD]] index = physical number of station.
 +
[[File:Application10a.png|500px|left|thumb]]
 +
<br style="clear:both;" />
  
Use an available [[UDP group]] as owner for the events. UDP 2 is used in this example.<br>
+
{{Code2|
Add an event with UDP 2 as owner in System > Events. Same event will then be used by all devices with UDP 2 set.<br>
 
 
 
Select [[Station_Input_or_Station_DAK_key_(Event_Type)|event type 30]], with subtype 1 for Turbine call button and master station DAK 1, subtype 11 for [[IP_Vandal_Resistant_Substation_TKIE|TKIE tamper proof station]] or Turbine input 1.<br>
 
Set "when change to" ON and actions:
 
 
 
 
  $ST L%1.dir W30 L9991
 
  $ST L%1.dir W30 L9991
  WUDD %1.phy 1<br>
+
  WUDD %1.phy 1
 +
}}
  
This starts a timer of 3 seconds (W30) related to number 9991, and writes value 1 to [[User_Defined_Data_-_UDD|UDD]] index = physical number of station.
+
==Input or DAK released before timeout==
 
+
'''Event 2:''' - Reset UDD and stop timer if UDD is set, and call station 102.
[[File:Dak_1_or_Call_Button_Pressed.PNG|left|500px|Dak 1 or Call Button Pressed]]
+
[[File:Application10b.png|500px|left|thumb]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
==Input or DAK released before timeout==
+
{{Code2|
 
 
Insert an event 30, with same owner and subtype, when change to OFF. This event will be triggered if button is released before timeout.
 
Actions:
 
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  WUDD %1.phy 0
 
  WUDD %1.phy 0
 
  $ST L%1.dir
 
  $ST L%1.dir
  $CALL L%1.dir L102
+
  $CALL L%1.dir L102 *
  ENDIF<br>
+
  ENDIF
Explanation: Reset UDD and stop timer if UDD is set, and call station 102.
+
}}
  
[[CALL_SETUP|$CALL]] can only be used for station-to-station calls, but other commands can be used. A [[Ringing_group|ringing group]] call using [[SEND_MAIL|$SM]] can look like this:<br>
+
* [[CALL_SETUP|$CALL]] can only be used for station-to-station calls, but other commands can be used.  
$SM L%1.dir L6701 U100 NM18 GV U13<br>
+
* A [[Ringing_group|ringing group]] call using [[SEND_MAIL|$SM]] can look like this:
It is also possible to simulate that a specific DAK is activated. The advantage is that every station can have its "own" programming done in the DAK window, instead of using a common destination. Note that a unused DAK is recommended to use. Example using DAK 10:
+
** $SM L%1.dir L6701 U100 NM18 GV U13
[[DIAL_DAK|$DIAL_DAK]] L%1.dir U10
+
* It is also possible to simulate that a specific DAK is activated. The advantage is that every station can have its "own" programming done in the DAK window, instead of using a common destination. Example using DAK 10:
 +
** [[DIAL_DAK|$DIAL_DAK]] L%1.dir U10
  
 
So options are:
 
So options are:
Line 45: Line 44:
 
* Simulate DAK press: $Dial_DAK...
 
* Simulate DAK press: $Dial_DAK...
  
Note: [[DIAL_DIGITS|$DD]] is not recommended to use for this function, because repeated button presses during ringing or conversation might cause malfunction.
+
{{Note|[[DIAL_DIGITS|$DD]] is not recommended to use for this function, because repeated button presses during ringing or conversation might cause malfunction.}}
 +
 
 +
==Input or DAK kept pressed==
 +
[[Event_Timeout_(Event_Type)|Event 21]] is triggered if button is not released within timeout. This is used to set up the second call function.
  
[[File:Dak_1_or_Call_Button_Released.PNG|left|500px|Dak 1 or Call Button Released]]
+
'''Event 3:''' - Initiates ringing group 1 (6701) and sets UDD = 0..
 +
[[File:Application10c.png|500px|left|thumb]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
==Input or DAK kept pressed==
+
{{Code2|
 
 
[[Event_Timeout_(Event_Type)|Event 21]] is triggered if button is not released within timeout. This is used to set up the second call function.<br>
 
Actions in the example below are:
 
 
  $SM L%1.dir L6701 U100 NM18 GV U13
 
  $SM L%1.dir L6701 U100 NM18 GV U13
  WUDD %1.phy 0<br>
+
  WUDD %1.phy 0
Explanation: Starts ringing group 1 (6701) and sets UDD = 0.
+
}}
 
 
[[File:Timeout_on_Button_Pressed.PNG|left|500px|Timeout on Button Pressed]]
 
<br style="clear:both;" />
 
  
 +
------
 +
See also [[Delayed Call]]
  
[[Category:Applications]]
+
[[Category:AlphaCom Applications]]
 +
[[Category:ICX-AlphaCom Applications]]

Latest revision as of 12:45, 9 February 2023

AI.png

This application makes it possible to distinguish between short press or long press of a call button or DAK.

If call button or DAK is released within 3 seconds it will do one call. If pressed and kept pressed for more than 3 seconds it will do a different call.

In this way one call button or DAK can be used to activate two different calls or functions.

Note icon The DAK or call button used, should not be programmed in the DAK window at all. The destination for the call is programmed in the events used


Input or DAK pressed

Use an available UDP group as owner for the events. UDP 2 is used in this example. Select event type 30, with subtype 1 for Turbine call button and master station DAK 1, subtype 11 for TKIE tamper proof station or Turbine input 1. Event 1: - Start a 3 second (W30) timer related to number 9991, and write value 1 to UDD index = physical number of station.

Application10a.png


Action commands:

$ST L%1.dir W30 L9991
WUDD %1.phy 1


Input or DAK released before timeout

Event 2: - Reset UDD and stop timer if UDD is set, and call station 102.

Application10b.png


Action commands:

IF %udd(%1.phy)
WUDD %1.phy 0
$ST L%1.dir
$CALL L%1.dir L102 *
ENDIF


  • $CALL can only be used for station-to-station calls, but other commands can be used.
  • A ringing group call using $SM can look like this:
    • $SM L%1.dir L6701 U100 NM18 GV U13
  • It is also possible to simulate that a specific DAK is activated. The advantage is that every station can have its "own" programming done in the DAK window, instead of using a common destination. Example using DAK 10:

So options are:

  • Direct call: $CALL....
  • Ringing group: $SM...
  • Simulate DAK press: $Dial_DAK...
Note icon $DD is not recommended to use for this function, because repeated button presses during ringing or conversation might cause malfunction.


Input or DAK kept pressed

Event 21 is triggered if button is not released within timeout. This is used to set up the second call function.

Event 3: - Initiates ringing group 1 (6701) and sets UDD = 0..

Application10c.png


Action commands:

$SM L%1.dir L6701 U100 NM18 GV U13
WUDD %1.phy 0



See also Delayed Call