Mercury Triggers and Macros Examples

Trigger Definitions

  • Description:  Text field to describe what the Trigger does.
  • Events:  The event that will trigger the Macro.
  • Address:  The specific address for where the Event occurred.  Based on the Event, you can select (ALL) for addresses in the controller or a specific address.
  • Trigger Code:  A Trigger Code is assigned to a personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  This is only used for card related Events and is used to identify a specific personnel record or a group of personnel records to Trigger.
  • Time Schedule:  This defines when the Trigger will be valid.
  • Macro:  The Macro contains a sequence of actions that will only get executed if all of the conditions for the Trigger have been met.  
  • TVAR:  Trigger Variables are extra conditions that must be met in order for the Trigger to execute the assigned Macro.  TVAR values can be set and cleared within Macros.  So Triggers that have the identical conditions can behave differently based on what previous Macros have been executed.  Example- The same valid card read can create a flip flop state to arm/disarm monitor points and/or activate/deactivate relays.

 

Macro Definitions

  • Command:  The command that will get executed when the Trigger's conditions have been met.  A virtually unlimited number of commands can be assigned to a single Macro and will execute in sequence when the Macro is executed.
  • Address:  The specific address or group of addresses that will perform the Command when the Macro is executed.

 

Example:  Valid Card Trigger

Trigger Properties:

  • Description:  Valid Card Read
  • Events:  RO024:  Access Granted:  Door Used
  • Address:  Select the specific reader address for the Trigger or select (ALL) for the trigger to monitor all readers.
  • Trigger Code:  1 (This is the Trigger Code that is assigned to the personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  Can be used to identify a specific personnel record or a group of personnel records.)
  • Time Schedule:  1 (Choose when this Trigger should be valid.)
  • Macro:  Assign a Macro ID that has already been created.  The Macro will contain a sequence of actions that will get executed when the trigger conditions have been met.

 

Example:  Valid Card Trigger causes Flip Flop

Trigger 1 Properties:

  • Description:  Valid Card Read
  • Events:  RO024:  Access Granted:  Door Used
  • Address:  Select the specific reader address for the Trigger or select (ALL) for the trigger to monitor all readers.
  • Trigger Code:  1 (This is the Trigger Code that is assigned to the personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  Can be used to identify a specific personnel record or a group of personnel records.)
  • Time Schedule:  1 
  • Macro:  1
  • TVAR:  1

Macro 1 Properties

  • Command:  28- Set Trigger Variable
  • TVAR:  1
  • TVAR Value:  0
  • Command:  4- Control Point Deactivate
  • Address:  1.0.0.O2

Trigger 2 Properties:

  • Description:  Valid Card Read
  • Events:  RO024:  Access Granted:  Door Used
  • Address:  Select the specific reader address for the Trigger or select (ALL) for the trigger to monitor all readers.
  • Trigger Code:  1 (This is the Trigger Code that is assigned to the personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  Can be used to identify a specific personnel record or a group of personnel records.)
  • Time Schedule:  1 
  • Macro:  2
  • TVAR:  0

 

Macro 2 Properties

  • Command:  28- Set Trigger Variable
  • TVAR:  1
  • TVAR Value:  1
  • Command:  4- Control Point Activate
  • Address:  1.0.0.O2

 

 

Example:  Two Valid Card Reads will Trigger a Macro

Trigger 1 Properties:

  • Description:  Valid Card Read #1
  • Events:  RO024:  Access Granted:  Door Used
  • Address:  Select the specific reader address for the Trigger or select (ALL) for the trigger to monitor all readers.
  • Trigger Code:  1 (This is the Trigger Code that is assigned to the personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  Can be used to identify a specific personnel record or a group of personnel records.)
  • Time Schedule:  1 
  • Macro:  1
  • TVAR:  0

 

Macro 1 Properties

  • Command:  28- Set Trigger Variable
  • TVAR:  1
  • TVAR Value:  1
  • Command:  13- Delay Command
  • Address:  Select the same Controller address
  • Delay Time:  10 (time in seconds that the 2nd card must be presented)
  • Command:  28- Set Trigger Variable
  • TVAR:  1
  • TVAR Value:  0

 

Trigger 2 Properties:

  • Description:  Valid Card Read #2
  • Events:  RO024:  Access Granted:  Door Used
  • Address:  Select the specific reader address for the Trigger or select (ALL) for the trigger to monitor all readers.
  • Trigger Code:  1 (This is the Trigger Code that is assigned to the personnel record in the Advanced Access tab of the Personnel Manager module and can be any value between 0 - 999.  Can be used to identify a specific personnel record or a group of personnel records.)
  • Time Schedule:  1 
  • Macro:  2
  • TVAR:  1

 

Macro 2 Properties

  • Command:  28- Set Trigger Variable
  • TVAR:  1
  • TVAR Value:  0
  • Command:  Any command that you want to have execute for the 2nd valid card read.