Topic: DMD0277

Find Element or Instruction


The Find Element or Instruction dialog is used to locate all of the occurrences of a program element, a Nickname or an instruction. The search can include all of the code-blocks in a project, or a single code-block. If the edit cursor is on an element or instruction when the Find operation is invoked, that element will be automatically entered in the Look For field.

 

The Find Element or Instruction dialog can be opened by selecting the Search -> Find menu selection, or pressing Ctrl + F. After a successful Find operation, pressing Ctrl + Shft + F will repeat the search for the next occurrence of the same element or instruction.

 

 

Clicking More >> will expand the dialog to expose additional search options that can refined the search operation.

 

 

Search For specifies what type of programming element to search for:

 

  • select Element to search for a memory element.

Look For any memory element (X0, D7, X16:UB), or a Nickname of any memory element (StartButton, _FirstScan, etc.). As text is entered an auto-complete list will help find the correct element or nickname.

Enable Match Exactly to have the search operation only return matches for the element exactly as entered, this will ignore cast operators. For example, if searching for X0, a parameter of X0:UB would not match.

 

Enable Match in Range to have the search operation return matches if the Element is contained within a range that is used as a parameter, for example, if searching for X3, an instruction is using a range of X0-X7, would return a match.

  • select Instruction to search for an instruction by the instruction's mnemonic:

Look For specifies the mnemonic of the instruction; as text is entered the auto-complete will help get the correct mnemonic.

  • select Contact to search for a Contact.

Look For becomes a drop-down list of the available types of Contact instructions which can be searched for.


Element Search Options contains options to help refine the search for an element

 

Enable Refine Search use the optional search parameters:

 

  • Input Parameter will only search for the element through the range of input parameters.
     

  • Output Parameter will only search for the element through the range of output parameters.
     

  • In a Specific Instruction will only search for the element in instructions of the specified type; enter the mnemonic for the instruction type in the field provided.
     

  • Inside of a Contact will only search through the range of Contacts for the element.
     

  • Inside of a Coil will only search through the of Coils for the element.
     

  • Inside of a Box will only search through the Box instructions for the element.

 


Where to Search specifies which code-blocks will be searched:

 

  • select All Control Logic to search all of the code-blocks in the current project.
     

  • select All Open Code-Blocks to only in the code-blocks that are currently open.

     

  • select Current Code-Block to search operation only in the code-block where the Find was initiated.

     

    • select Entire Code-Block to search operation over the entire code-block
       

    • enable Rung and enter a range of addresses (will be converted to rung boundaries) that will be searched in the code-block where the Find was initiated.

 


Show 'Find All' Results In specifies where to display the results if the Find All button is used:
 

  • 'Find Results 1' opens an output window named Find Results 1 and displays the search results in that window.

     

  • 'Find Results 2' opens an output window named Find Results 1 and displays the search results in that window.

 


Click the Find Prev button to search backwards through the specified code-blocks.

 

Click the Find Next button to search forwards through the specified code-blocks.

 

Click the Find All button to search through the specified code-blocks for all occurrences of the element or instruction, then display the results in the user-specified Find All output window.

 


See Also:

Go To Address or Rung Number

 

Search and Replace