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

In Axxon One, you can create and configure macros. You can create and configure macros on the Programming tab.

To create and configure macros, you must have access permissions to the programming setup (see Roles).

General algorithm to create and configure a macro

The Event rules and Cycle rules macros have a common algorithm of creation and configuration. To create a macro, click do the following:

  1. Go to the Programming tab.
  2. Click the Create... button in the

...

  1. Event rules or Cycle rules list.

...

  1. Image Added
  2. In the Name field, enter
  3. Enter
  4. the name of
  5. the macro (1)
  6. a macro. The default name is Macrocommand{sequence number}.
    Image Modified
  7. Select the macro working mode (2):

    ModeEvent-driven Cyclic
  8. From the Working mode drop-down list, select the working mode of a macro:
    Working modeEvent rulesCycle rules
    NeverCan only be run manually
  9. NeverManual execution only
  10. manual execution is possible (see
  11. can be run manually (Macros control)
  12.  
  13. Always
  14. Always on
  15. (default)Runs alwaysRuns always
  16. Always on
  17. Time schedule Runs within the selected time schedule (see Creating schedules).
  18. Manual execution is possible
  19. Can be run manually at any timeRuns within the
  20. specified
  21. selected time schedule
  22. info
  23. Note
    title
  24. Note
  25. Attention!
  26. When creating
  27. If a macro

  28. , the Always mode is used by default.
  29. working mode is within a time schedule (see Creating schedules), and a macro start time is outside this time schedule, a macro isn't started. 

  30. If you need to add a macro to the control menu on
  31. the
  32. a layout (see Macros control), set the
  33. corresponding checkbox (3).To configure event-driven macros, click the Image Removed button and
  34. Add to menu checkbox.
  35. For the Event rules macros, select one or more
  36. trigger events (4, see Configuring filters for event-driven macros
  37. events that initiate macro start by clicking the Image Added button in the Start conditions field (see Configuring start conditions). If you leave the event filter
  38. is left
  39. blank,
  40. the macro can be executed
  41. you can start this macro only manually.
    Info
    titleNote
    • To delete an event from the filter, click the Image Modified button.
    • You can run a macro for a group of cameras (see Creating a system of groups and subgroups).
    • You can collapse macro start conditions and each action by clicking the header.
  42. Add one or more actions
  43. to the
  44. performed by a macro (
  45. 5, see Settings specific to actions). Click the Image Removed button to do this
  46. see Examples of macros). These are actions that the system must perform after an event occurs. To add an action, click the Image Added button. To delete an action, click the Image Modified button.
  47. Info
    titleNote

    The macro can be executed for a group of cameras (see Creating a system of groups and subgroups).

    Info
    titleNote

    To hide the start conditions and action for the macro, click the action name.

    A cyclic macro can be launched automaticallyat
  48. Click the Apply Image Added button.

Created macros are displayed in the corresponding list. When you select the Never working mode for a macro, it is grayed out.
Image Added

Features of configuring the Cycle rules macros

The Cycle rules macros can be run automatically in a specified time interval, or at a random

...

time within

...

a specified

...

interval. To configure this

...

behavior, do

...

the following:

Image Added 

  1. In the
  2. Heartbeat Interval
  3. Heartbeat interval field, specify the time interval in the HH:MM:SS format
  4. (1)
  5. . For example, if you set the interval to 8 hours and leave the Random checkbox clear
  6. (see 6b)
  7. ,
  8. the macro will be launched
  9. a macro is started every 8
  10. hours strictly
  11. hours strictly.
  12. The macro will be launched
  13. A macro is started according to cycle settings even if the actions from its previous
  14. launch
  15. start are not completed. In this case, several instances of the same macro
  16. will be
  17. are executed simultaneously.

  18. Image Removed
  19. Set

  20. the Random checkbox (2)
  21. the Random checkbox, if you need to

  22. launch the
  23. start a macro at a random moment

  24. set
  25. specified by

  26. the 
  27. the Heartbeat interval

  28.  parameter
  29.  parameter. For example, if the interval is set to 8 hours, then once every 8 hours at a random moment,

  30. the macro will be launched
  31. a macro is started.

  32. Note
    titleAttention!

    If the macro working mode is linked to a time schedule, and the launch time falls out of the schedule, the macro will not be launched.  

    To save the macro, click the Apply button.

    Note
    titleAttention!

    By default, the created macros are available only to the users from the admin group (see Creating and configuring roles).

Editing macros

To edit a macro, do the following:

  1. Select the required macro from the list.
  2. Change the macro settings if necessary.
  3. Click the Apply Image Added button to save the changes. Click the Cancel Image Added button to cancel the changes.

Editing a macro is complete.

Copying macros

To copy a macroThe created macros are displayed in the list. If the Never mode is selected for the macro, it is grayed out.
Image Removed
You can copy macros. To do it, do the following:

  1. Select the required macro
  2. to copy
  3. from the list.
  4. Click
  5. the
  6. the Create... button.

A new macro with the similar parameter will be createdMacro is copied.

Info
titleNote

To create an empty macro with no parameters specified, select any of the common macros groups, and click the Create... button.

Removing macros

To delete remove a macro, select it in the list and click the Remove do the following:

  1. Select the required macro from the list.
  2. Click the Remove Image Added button.
  3. Click the Apply Image Added button.

Macro is removedbutton.