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, do the following:

  1. Go to the Programming tab.
  2. Click the Create... button in the Event rules or Cycle rules list.
    Image Added
  3. In the Name field, enter the name of a macro. The default name is Macrocommand{sequence number}.
    Image Added
  4. From the Working mode drop-down list, select the working mode of a macro:
    Working modeEvent rulesCycle rules
    NeverCan only be run manually
  5. Enter the name of the macro (1).
    Image Removed
  6. Select the macro working mode (2):

    ModeEvent-driven CyclicNeverManual execution only
  7. manual execution is possible (see
  8. can be run manually (Macros control)
  9.  
  10. Always
  11. Always on
  12. (default)Runs alwaysRuns always
  13. Always on
  14. Time schedule Runs within the selected time schedule (see Creating schedules).
  15. Manual execution is possible
  16. Can be run manually at any timeRuns within the
  17. specified
  18. selected time schedule
  19. info
  20. Note
    title
  21. Note
  22. Attention!
  23. When creating
  24. If a macro

  25. , the Always mode is used by default.
  26. 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. 

  27. If you need to add a macro to the control menu on
  28. the
  29. a layout (see Macros control), set the
  30. corresponding checkbox (3).To configure event-driven macros, click the Image Removed button and
  31. Add to menu checkbox.
  32. For the Event rules macros, select one or more
  33. trigger events (4,
  34. 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
  35. is left
  36. blank,
  37. the macro can be executed
  38. you can start this macro only manually.
  39. Image Removed
  40. 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.
  41. Add one or more actions
  42. to the
  43. performed by a macro (
  44. 5, see Settings specific to actions). Click the Image Removed button to do this
  45. 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.
  46. 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
  47. 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.
    Info
    title
  18. Image Removed
  19. Note
  20. Set the Random checkbox (2)
  21. Starting with Axxon One 2.0.12, the minimumallowed value of the Heartbeat interval field is 1second.

  22. Set the Random checkbox, if you need to

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

  25. set
  26. specified by

  27. the 
  28. the Heartbeat interval

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

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

  33. 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 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.