ControlLogix Searching and Cross Reference Lesson Objectives After the completion of this lesson, the student will: Be able to locate program elements using the search function Be able to locate tags using the search function Be able to locate tags using the cross reference function AB_CLX_Searching_and_Cross_Reference_2B.doc Searching and Cross Reference General The searching function may be accessed a number of ways: 1) From the search menu 2) Using the quick search tool 3) Using the Ctrl-F shortcut Searching has many options that can be configured. It is possible to have the item visible on the screen and have the search function report the item not found. The search results are shown in the results window. If you double click on the result, the software will open the routine / rung listed. 2 © Automation Training - 2009 Searching and Cross Reference The search function is accessed from the search menu or using Ctrl-F. Conventional searching can be tailored to meet the users’ needs. Some of the variations include: • Find What – Tag names, instruction types or descriptors • Find Within – Current Routine, All Routines in current program, all routines in current task or all Routines • Search Direction – Up or Down from the cursor • Wrap – When searching from the center of a routine, if the wrap is on the software will search to the end of the specified routine and wrap back to the top of the routine. The degree and extent to which searching can be customized depends on the software revision of RSLogix 5000. Refer to RSLogix 5000 release notes for further information. © Automation Training - 2009 3 Searching and Cross Reference 4 © Automation Training - 2009 Searching and Cross Reference Search and Replace The Search and Replace function is an advanced feature that should be used with care. It is possible to corrupt an application program quickly using this feature. Note: Search and replace can only be performed on an offline file. There are two methods to access the Search and Replace feature: By selecting Search → Find then clicking on the Replace button or by selecting Search → Replace. Below is an example of the search utility using the replace function. Each time the Find Next button is pressed, the system will highlight the next occurrence, the user can then select replace to perform the operation. This can be done on an individual basis for each occurrence of the search criteria, or if there are many instances to be changed choosing the “replace all” triggers the system to scroll and change all occurrences of the search. © Automation Training - 2009 5 Searching and Cross Reference Cross-Reference Another method of locating items in a project is to use the cross reference function. The Cross-Reference may be accessed through the menu or by the short cut CTRL-E. The function may be used by: • Accessing the cross reference with no tag selected and then choosing a tag from the combo box • With a tag selected in a window, right click and select cross reference or by using the short cut. The cross reference for the tag will be generated. The cross reference may be filtered (Show) or sorted, you may also change the scope of the report. Typically you will only be interested in locations that are destructive (written to or controlled), use the Show filter to display only destructive entries. After using the cross reference to navigate to a tag, the window is still open; if you need to perform an additional cross reference, use the Window menu to access the screen or Ctrl-Tab. Your Turn The instructor will provide you with a project to use, and a list of tag names to locate in it. Find all the destructive references to the tags on the list provided. ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ 6 © Automation Training - 2009