Find and Replace Operations

The Find and Replace command enables you to search for a specified string of characters within your project.

You can use any of the following methods to access this functionality:

  • From the Information and Logs toolbox
  • In the Dictionary panel
  • From an editor (FBD, FFLD, IL, ST)

Information and Logs

See Information and Logs window for more information.

Dictionary

Right-click on the variable name and select the Find all command in the menu.
This command starts a search of all documents for the selected variable and displays the results in the table widget within the Information and Logs window toolbox.


  • This opeartion selects only the instances that match the complete words (for example, a search for "MyVar" returns "MyVar" but not "MyVar1”).

Editor

It is possible to perform a search and replace from a PLC editor (FBD, FFLD, IL, ST) by selecting the Find, Find next, and Find All commands in the contextual menu.

Find and Replace from an Editor

Figure 1: Find and Replace from an Editor

Function

Description

Match Whole Word

When selected, only the instances that match the complete words defined in the Find what field are selected.

Example: A search for MyVar returns MyVar but not MyVar1).

Find next

Used to select in the current editor the next instance of the matched string.

Replace next

Used to replace the next instance of the matched string.

Replace all

Used to replace in the current editor all instances of the matched string.


  • The Find, Replace and Replace all operations work only for variable symbol property of the Control.


  • When the Find All command is applied to a variable, the system returns a list of all instances of the variable, not just those in the current program.