User guide

936 Chapter 38 Working in the Environment
Macros
Macros are not actually Environment objects. Rather, they are collections of other
Environment objects and their cabling.
To create a new macro:
m Select all Environment objects that you wish to include, then choose New > Macro.
Logic Express will enclose all selected objects in a frame with a gray background.
If some of the objects selected when creating a macro have cables leading to
unselected objects, these cables will be deleted when the macro is created. A warning
will notify you of this. In this situation, the macro is made from a copy of the original
selection of objects, and the original collection of objects remains unchanged.
Macros are limited in size—the limit is dependent on the memory usage of the
individual objects within the macro. This limit is typically between 100 and 200 objects.
You can nest macros—a macro can contain other macros as objects.
To unpack a macro:
m Double-click any empty (blank) section of the macro object.
This reverts the macro back into its component objects and cables.
Macros have a lot in common with standard Environment objects—you can connect
cables to and from them, they can be resized, they have their own parameters and
icon, they can be chosen as destinations in the Arrange window track list, and they can
be copied or dragged between Environment layers (including between projects).