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
  1. In the
    Library Objects
    pane, 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.
  2. In the attributes section of the decorator panel, under
    Configure Instantiation Rules
    , in the
    Condition
    box, enter a value or click the ellipsis (...) button to enter an expression using the Expression Builder.
  3. In the
    Usage
    box, 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, click
      Revert
      (red X) to the right of the
      Condition
      box.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal