Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The MACRO object corresponds to the Macros system Macro system object.

The MACRO object sends events presented in the table. Procedure is started when the corresponding event appears.

Format of events procedure for the Macros object:

Code Block
OnEvent("MACRO","_id_","_event_")

occurs.

Event

Description

ParametersParameter descriptionsdescription

"RUN"

Action is performed

src_sender<>

The name of the computer on which the macro was executed.

Note. The value of this parameter is displayed in the Add. info column of the Event viewer Viewer in real time. When Axxon PSIM is restarted and event log records are loaded from the database, this information is not displayed in the interface, but remains in the database

user_id<>

The identifier of the user who executed the macro.

Note. The value of this parameter together with the user name username is displayed in the the Add. info column of the Event viewer Viewer in real time. When Axxon PSIM is restarted and event log records are loaded from the database, this information is not displayed in the interface, but remains in the database

Operator format to describe actions with the macros is:

Code Block
DoReact("MACRO","_id_","_command_" [,"_parameters_"]);

List of commands and parameters for the the MACRO object is presented in the following table:

Command

command description

Parameters

Description

"RUN"

– perform action

performs an action

-

-

"SETUP"

– set

sets parameters for a macro

name<>

Object name

flags<>

Flags

state<>

Object state

hidden<>

«Hidden» flag

local<>

 «Local» flag

Properties of the MACRO object are shown in the table.

Properties of the MACRO object

Description of properties

ID<>

Object ID

PARENT_ID<>

Parent object ID

The The MACRO object can be in the following states:

...