Below is a list of trigger definitions, macro definitions, and trigger 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. Since TVAR values can be set and cleared within Macros, 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 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. The Trigger Code 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. The Trigger Code 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. The Trigger Code 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. The Trigger Code 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.
System Triggers and Macros
The system automatically creates triggers and macros to perform device scheduling for device groups. Below is a table that shows which system triggers/macros are created:
Type | ID | Event/Action | Link |
Trigger | 300 to 399 | Time Schedule Activated | Macros 500 to 599 |
Trigger | 400 to 499 | Time Schedule Deactivated | Macros 800 to 899 |
Macro | 500 to 599 | Macro for when an Area is Disarmed or a Time Schedule is Activated. | Triggers 300 to 399 |
Macro | 600 to 699 | Macro for when an Area is Armed. | None |
Macro | 700 to 799 | Macro for when an Area is in an Alarm State | None |
Macro | 800 to 899 | Macro for when an Area is Force Armed or a Time Schedule is Deactivated | Triggers 400 to 499 |