OMRON
Finding and Replacing Text
This applies to the 'Look At:' choices of 'Address', 'Symbol Names', 'All(strings)'. Select How to Input
pushbutton to show examples.
Replacing only in the Selected Rungs
Select one or more rungs and then select Replace from the Edit Menu.
Selected will be automatically selected.
Note:
Normally, a match will only be found if text within the item matches exactly what is being searched for. Note,
however, a 'wildcard' can be used of '*' to search for partial matches. The '*' wildcard indicates that any
following characters are to be ignored in a single word when searching for a match. Note that the wildcard
operates on each word separately. e.g. to search for mnemonic lines for the 'MOV(0221)' instruction where the
second operand is D1, the following search can be made – "MOV* D1".
In addition, it is possible to search for 'Whole Word Only' - a match will only be found if an entire word matches
the text typed. If this option is not selected, then a match will be found if a word contains the text typed, and any
text may be in front or behind the 'Find What' text in the same word. For this search a match will normally be
found regardless of case. If an exact match is required, select the 'Match case' option.
Wild Card Searching
A wildcard can be used in the search and replacement text. This will have the effect of using the text that the
corresponding wildcard in the find string became. e.g. Using a 'Find what' of 'ab*' and a replace of 'tr*' will
change 'about' into 'trout' and 'abort' into 'trort'.
Mnemonics Searching
The Mnemonic search is the same as the normal text search, except it can be used to retrieve almost any
information about the symbol or step it may be contained in (except rung comments). A Mnemonic search is
able to retrieve all the information of Address, Value and Symbol Name searches. Matches found using a
Mnemonic search though will only display information in the Mnemonic line of an Instruction Step, and will not
track to the exact operand that the match may belong in.
The entire line of mnemonic is search so it is possible to specify any string that may occur in a mnemonic, e.g.
an instruction followed by an operand.
Rung Comment Searching
Rung Comments are treated the same as any other text based search, but can not be accessed in the symbol table.
Finding and Replacing Addresses
This search and replace operates the same as for the Text but applies only to the 'Look At' choice of 'Bit
Addresses' and 'Addresses'.
The choice of 'Bit Addresses' is only available when searching and replacing for only addresses of BOOL type.
No period is needed when entering the addresses in the 'Find What' field in this case. e.g. '1000' will search for
address '10.00' only.
1. Select the Replace button from the toolbar or press Ctrl+H to open the Replace dialog.
2. In the Look At: field select the area to be searched. Select either 'Address', 'Symbol
Names', 'Mnemonics' or 'Comments'.
3. In the Find what field, enter the text to be searched for.
4. In the Replacement field, enter the replacement text.
The pull-down list on the Find What field can be used to enter the contents used for
previous find operations, and the pull-down list on the Replace with field can be used to
enter the contents used for previous replace operations.
5. Select either PLC, Program or Current view to set the scope of the find and replace.
Click Find Next to find and display the next assurance of the match, click Replace to
replace the match or Replace All to replace all matches.
The first click of the Replace button can also be used to find the next occurrence. Two clicks
will find the next occurrence and perform the replace.
PART 1: CX-Programmer
CHAPTER 3 – Project Reference
CX-Programmer _Page 47
Need help?
Do you have a question about the CX-PROGRAMMER V9 and is the answer not in the manual?
Questions and answers