beautypg.com

Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 382

background image

Program Editing

Chapter 24

24-9

Searching for Specific Instructions and Specific Word Addresses

You can locate any instruction in your program by using methods
described in this section. You can search for a block instruction searching
for the counter address or the first entered address in the block.

You can locate any instruction in your program by performing the
following steps.

1.

Press [Search].

2.

Insert .

3.

insert

. Enter leading zeros before the address if necessary.

Keystrokes: You can locate any address (excluding those associated with
Examine On and Examine Off instructions and those contained within
files) by performing the following steps.

1.

Press [Search] 8.

2.

Enter

.

The address you enter is the word address for the output instructions. The
industrial terminal locates all uses of the word addresses associated with
the word address except for -] [- and -]/[-.

Once either key sequence is pressed, this information and an EXECUTING
SEARCH message is displayed near the bottom of the screen. The
industrial terminal begins to search for the address and/or instruction from
the cursor’s position. It looks past the temporary end and subroutine area
boundaries to the END statement. Then it continues searching from the
beginning of the program to the point where the search began.

If found, the rung containing the first occurrence of the address and/or
instruction is displayed as well as the rungs after it. If you press [Search]
again, the next occurrence of the address and/or instruction is displayed.
When it cannot be located or all addresses and/or instructions have been
found, a NOT FOUND message is displayed.

If the instruction is found in the subroutine area or past the temporary end
instruction, the area in which it is found is displayed in the lower portion of
the screen.

This function can be terminated at any time by pressing [Cancel
Command]. All other keys are ignored during the search.