Working with Macros
214
372 SPU 780 01EMAN May 2002
Macros
Overview Macros are generic pieces of logic networks you create with parameters instead of
actual addresses. Macros are programmed offline in the Logic Editor. When you
insert a macro in your main project, you map the parameters to real addresses. You
can insert the same macro in several places with different sets of mapped addresses
each time. The addresses change but the logic stays the same.
The main project retains its link to the inserted macros. This means ProWORX 32
notices if you make changes to a macro and informs you when you view it in the
Logic Editor.
Creating a Macro
Project
To create a macro project:
Editing a Macro In general, you edit a macro with the same tools as a regular project. However,
several ProWORX 32 functions are disabled when editing a macro project. Among
them are:
Traffic Cop
Config Extensions
ASCII Functions
Extended Memory
PLC Status
I/O Drawing Generator
Analyze Device
Reading and Writing
Step Action
1 Create a new ProWORX 32 offline project by selecting File
→ New Project from
the ProWORX menu. For more information about creating projects, see Creating
a New Project, p. 29.
2 Select the Use as a Macro checkbox and complete the remaining new project
wizard steps.
3 Once a macro project has been created it is denoted by the macro project icon,