Skip to main content

3.6. Find and Replace

3.6. Find and Replace

 

This is the function to search the entire ladder diagram to find the designated text or replace the designated text with other text. Select Edit (E) – Find & Replace (F) menu or click on the  button on the Tool Bar or press the Ctrl+F key, and the following Find and Replace dialog box will be displayed as shown in [Figure 3.28].

 

 

Figure 3.28 Find and Replace Dialog Box

 

Each part of the dialog box is described in [Table 3-4].

 

Table 34 Each Part of Find and Replace Dialog Box

Range

Current Project

Find/Replace is done over all .LAD in current project.

Current Document

Find/Replace is done over the current focused .LAD window.

Find what

Enter the text you want to find.

Replace with

Enter the new text you want to replace with the text you find. Enter this only when you are using the Replace function. You can keep this blank when you are using just the Find function.

Find Next

This finds and moves the cursor to the location that matched with the ‘Find what’ in the specified range.

Find All

This finds all locations that matched with the ‘Find what’ in the specified range, and outputs them in the ‘Find Results’ window.

If you double-click an item in the ‘Find Results’, the cursor moves to the location.

Replace Next

This replaces the text at the current cursor location and moves the cursor to the next location.

Replace All

This searches the specified range and replaces all ‘Find what’ into ‘Replace with’ as a batch process.

Match case

Select whether to distinguish lower and upper case when finding or replacing the text.

Direction

When you select the direction as down, the system will search downward after completing the search to the right direction.

When you select the direction as up, the system will search the upward Rung after completing the search to the left direction.

Where

Select the search target. You can specify the target to comment, mnemonic and operand to limit the search. But for the mnemonic, you cannot execute the Replace function.

Rung/inst/Goto

When you enter the rung and instruction number, and press the Goto button, the cursor will move to the location. For example, if you want to search for the 5th instruction of the 30th rung, enter “30” in the Rung and “5” in the instruction, and press the Goto button. If you want to go to a rung, enter 0 for the instruction number.

Close

Close the Find and Replace dialog box.