Function Block MACROS

The Function Block MACROS defines multiple macros on the visualization.

The macros differ from scenes, as each command is executed asynchronously per PLC cycle. In addition, the function block also allows the superordinate control of scenes.

Note: This function block can have more than two inputs or two outputs. You can right-click on the function block to add another input or output.

Database

The database DB specifies the storage location of the macros. Thus, an element can have multiple macro function blocks. The database is stored behind the visualization variable and cannot be accessed as with a normal database.

All Inputs

When there is a positive edge at an input, the corresponding macro is executed immediately. The opposite output is set to true in this process. All other outputs are set to false.

All Outputs

Only the output of the last selected macro is set to true. All macros and the output can also be switched via the visualization.

Visualization

The control of the macros is done via the elements Macros and Macro Configuration. Under Interface, the value can be linked with the used function blocks.

Control via the visualization has priority over the corresponding input.

The configuration of a macro is explained in the Help section under Visualization.

See Also