Set a rule for instantiation
By default, library object items are set to instantiate under all conditions, and to instantiate once every time the library object is added to an
Application Code Manager
project. If needed configure an expression that determines when the element is instantiated and define its usage.The following library object items support instantiation rules:
- Digital alarms
- Elements
- Function block elements
- Motion groups
- Motion group axis
- Programs
- Routines
- Sequential function chart elements
- Structured text chart lines
- Structured text elements
- Tags
- Tasks
To set a rule for instantiation
- In theLibrary Objectspane, select a supported library object item. The decorator panel displays the attributes on the top half of the pane and the parameters on the bottom half.
- In the attributes section of the decorator panel, underConfigure Instantiation Rules, in theConditionbox, enter a value or click the ellipsis (...) button to enter an expression using the Expression Builder.
- In theUsagebox, select either:
- One per object: Instantiates once every time a library object is added in the project.
- Include Once: Limits the element to a single instance in the project.TIP:To revert to the default condition, clickRevert(red X) to the right of theConditionbox.
Provide Feedback