Apply a substitution to an element
Substitutions can be applied to the following elements to replace them when the program is instantiated:
- Directives
- Function block diagram elements
- Structured text chart lines
- Sequential function chart elements
- RungsTIP:Rung numbers are applied sequentially and cannot be changed. If inherited substitutions have been excluded, substitutions applied to the rung will extend to directives contained by the rung.Ladder diagram elements include a resizing slider in the decorator pane to help view more of the large diagrams.
To apply a substitution to an element
- In theLibrary Objectspane, select the library object, then right-click the element in the parameter section of the decorator pane and selectSubstitutions.TIP:TheSubstitutionscommand does not respond if more than one item is selected.
- In theSubstitution Builderwindow, review the substitutions listed in theElement Substitutionsbox to trace the origin of the current substitution, if one exists.TIP:CheckShow existing substitutions which do NOT affect this elementto see all current substitutions. This shows potential conflicts and unexpected replacements for new substitutions.
- Select a scope in theScopefield.
- In theSearch forfield, enter an initial text string to be replaced.
- In theReplace withfield, enter a replacement string.
- Select a scope for the text search.Operand replacementlimits the search to the tokens for operands, so it should only be selected if this is where the substitution should take place.Text replacementlimits the search to text strings not in tokens.
- ClickApplyto test the substitution. The new substitution appears in theElement Substitutionsbox.
- ClickOKto exit the Substitution Builder.
- (optional) If supported by the element, check theExclude Base Library SubstitutionsorExclude Library Substitutionscheckbox so the new substitution takes precedence.
Provide Feedback