Configure the macro instruction, Work with the macro instruction – Rockwell Automation DeviceLogix System User Manual User Manual

Page 74

Advertising
background image

74

Publication RA-UM003B-EN-P - February 2010

Chapter 3 Bind Function Blocks with I/O

Configure the Macro
Instruction

Beginning with DeviceLogix firmware revision 4, certain devices
support the Macro instruction, which defines a set of logic routines.
Once defined, a Macro instruction behaves like other instructions in
logic.

A Macro definition contains an instruction and may reference any
output inside this logic and wiring. It does not contain any product
scope I/O. The name of a Macro definition cannot duplicate any
existing DeviceLogix instruction name or another existing Macro
definition name.

The maximum number of Macro definitions permitted is defined in
the DeviceLogix capability information, which is included in the EDS
file.

Work with the Macro Instruction

You can access, edit, and manage Macro instructions through new
Tools menu options:

• Create Macro Block

• Macro Block Manager

• Open Macro Block Definition

• Delete Macro Block

• Open Macro Block Logic

Using a Macro instruction encompasses these general steps, each of
which is described in following sections.

1. Create the Macro definition

2. Define the external I/O binding

3. Add parameters

4. Set security (optional)

5. Apply the Macro definition

6. Add the Macro instruction to logic

7. Manage the Macro

Advertising