Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:

Table of Contents

Column



General information

Macro is a tool used to configure system responses to certain events. System response may can include one or several different actions. You can configure Axxon One to perform certain actions if any events occur in the system. For example, when a fire is detected—to activate voice notification, when the a camera is disarmed—to send an email notification and initiate an alarm, etc. To perform such actions, you need macros.and so on.

Note
titleAttention!

Macros work only within a single the same Axxon-domain only. Macro conditions and actions cannot include objects from You cannot use objects belonging to another Axxon-domain in start conditions (see Configuring start conditions) and in macro actions (see The Domain object).

Types of macros

Image Modified

There are three types of macros:

...

Types of macrosDescription
Event rules
  • These macros can run automatically on

...

  • receiving the specified events or initiated manually by the operator.
  • When

...

  • an event is received, the actions in the macro are executed once

...

Automatic rules

...

  • These macros run every time when

...

Cycle rules
  • These macros can run automatically after a

...

  • specified period of time, or at a random time within a

...

  • specified interval.
  • Cycle macros are run on the first

...

  • server in the Axxon-domain

...

  • in alphabetical order

...

  • available at the time of

...

  • starting the macro.
  • Cycle macros are executed immediately after you save them in the system, unless they have been created outside the time schedule

...

  • .
  • After completing all actions,

...

  • macro is automatically restarted. Additionally, a cycle macro can be

...

  • started automatically in a specified time interval, or at a random moment within the specified time interval. In this case, all actions in the macro

...

Note
titleAttention!

If, during the response of a cycle macro to a certain event, another event that should also be processed by this macro occurs, it will be skipped. 

If another event occurs during an event-driven macro response, this event will be processed according to the specified parameters.

Unless the macro has standby commands (see Wait for eventWait for timeoutWait till previous action finishes), all actions are performed simultaneously.

Tip

Macros control

Configuring macros

You can create and configure macros on the Programming tab (see Create Macros).

To configure macros, do the following:

Image Removed

  1. Specify the green section of the setting Start conditions (1). These are the events in the system that will trigger a macro (see Configuring start conditions).

  2. Specify the blue section of the setting that is the system actions (2). These are the actions that the system should perform after an event occurs (see Settings specific to actions). Several system actions can be configured.

There is also an orange setting section in cycle macros. It sets the system wait time between the actions. For more information on configuring the cycle macros, see Cycle macros.

...

  • are executed once