Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 17 of 55

Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 7 - Creating and Editing Program Files, pages 143 to 152

Pages 143 to 152 of 486, from Hand-Held Terminal (Catalog Number 1747-PT1) User Manual

The original document is the PDF (1.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1747-PT1

Page 143

Chapter 7 Creating and Editing a Program File

6. Press [F4], UND_INST, then [ENTER], then [F5], ACP_RNG. The examine if closed instruction is now pasted into rung 0. 2.1.0.0.*

] [ ] [ ] [

( ) ( ) ( )

] [

<END> OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

7. To confirm this, press the [↑] key, then the [→] key twice. The display shows you that the examine if closed instruction with address I:1.0/1 is now the second instruction in rung 0. XIC:I1:1.0/1

] [ ] [ ] [

NO FORCE

2.0.0.0.2

( ) ( ) ( )

] [

<END> OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

Deleting and Copying Rungs Use the delete and undelete rung commands to copy rung 0 and create rungs 2 and 3. After copying the rungs, change the instruction addresses so that your program appears as follows: I:1.0 I:1.0 ] [ ] [ 1 0 I:1.0 ] [ 0 I:1.0 ] [ 1 I:1.0 I:2.0 ] [ ] [ 0 3 I:2.0 I:2.0 ] [ ] [ 2 1

O:3.0 ( ) 0 O:3.0 ( ) 1 O:3.0 ( ) 2 O:3.0 ( ) 3 O:3.0 ( ) 4

1. Starting from the previous display, with the cursor positioned on rung 0, press [F4], DEL_RNG. The display changes as follows: XIC:I1:1.0/1

] [ ] [ ] [

NO FORCE

2.0.0.0.2

( ) ( ) ( )

] [

<END> DATA/FORCES IN LAST STATE,DELETE? YES NO F1 F2 F3 F4

OFL F5

7–31

Page 144

Chapter 7 Creating and Editing a Program File

2. Confirm the deletion by pressing [F2], YES. 3. Rung 0 is now placed in the delete buffer. Re–insert the rung by pressing [F5], UND_RNG. 4. Copy the rung before the END statement. Position the cursor on the END statement by pressing the [↓] key twice. The undelete rung command functions the same as the insert rung command, the new rung is inserted above the rung that the cursor is positioned on. 5. Press [F5], UND_RNG. The new rung is inserted above the END statement: 2.2.0.0.*

] [ ] [ ] [ ] [

( ) ( ) ( ) ( )

] [

] [

<END> OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5 6. Since the two new rungs are identical at this point, you are not concerned with the position of the next rung. With the cursor positioned on the left power rail of the first new rung, press [F5], UND_RNG. The second new rung is inserted above the previous one: 2.2.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

7. To change the addresses of the instructions in the new rungs, position the cursor on the first instruction by pressing the [→] key. The address appears in the upper left corner of the display: XIC:I1:1.0/0

] [ ] [ ] [ ] [ ] [

] [

] [ ] [

NO FORCE

2.2.0.0.1

( ) ( ) ( ) ( ) ( )

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

7–32

Page 145

Chapter 7 Creating and Editing a Program File

8. Press [F2], MOD_RNG, then [F3], MOD_INST, then [ZOOM]. The zoom display for that instruction appears: 2.2.0.0.1 ] [ ZOOM on XIC NAME: EXAMINE IF CLOSED BIT ADDR:I1:1.0/0

ENTER BIT ADDR: EDT_DAT F1

F2

I1:1.0/0 F3

F4

ACCEPT F5

9. To change the address to I:1.0/3, press the [→] key seven times to position the cursor on the bit element. 10. Press [3], then [ENTER], then [F5], ACCEPT. The new address is assigned to the instruction. NO FORCE

XIC:I1:1.0/3

I

] [ ] [ ] [ ] [ ] [

] [

F1

F2

2.2.0.0.1

( ) ( ) ( ) ( ) I ( )

] [ ] [ F3

F4

F5

11. To change the next address, press [→], then [ZOOM]. The zoom display for this instruction appears: 2.2.0.0.2 ] [ ZOOM on XIC NAME: EXAMINE IF CLOSED BIT ADDR:I1:1.0/3

ENTER BIT ADDR: EDT_DAT F1

F2

I1:1.0/3 F3

F4

ACCEPT F5

7–33

Page 146

Chapter 7 Creating and Editing a Program File

12. Since you are assigning an input address from a different slot, press the [→] key three times, then press [2]. Press the [→] key three more times, then press [0], then [ENTER]. Verify that the new address is correct, then press [F5], ACCEPT. 13. Press the [→] key, then [ZOOM] to change the output address. The zoom display for the output energize instruction appears: ( ) ZOOM on OTE NAME: OUTPUT ENERGIZE BIT ADDR: O0:3.0/0

ENTER BIT ADDR: EDT_DAT F1

F2

2.2.0.0.3

O0:3.0/0 F3

F4

ACCEPT F5

14. Press the [→] key seven times to position the cursor on the bit element. 15. Press [3], then [ENTER], then [F5], ACCEPT. 16. To complete editing this rung, press [ESC], then [F5], ACP_RNG. 17. Repeat the above procedure for the instructions in rung 3. 18. Save and compile your changes.

Abandoning Edits If you have made changes that you do not want and they are not saved, press [ESC] and [F2], YES. This deletes your edits up to the last program save.

7–34

Page 147

Chapter 7 Creating and Editing a Program File

The Search Function

The search function allows you to quickly locate instructions and addresses in ladder program files. This section shows you how to search for: • instruction types, such as XIC • addresses, such as I:1/2 • combined instruction/address, such as OTE + O:3/4 • forced I/O instructions • a specific rung The HHT search function is done only within the existing program file. Subroutine files require that you go to those files to initiate another search. The search function is accessible offline, from the edit file menu display [F3], SEARCH, or... 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5 online, from the monitor file menu display [F4], SEARCH. 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

] [

MODE F1

FORCE F2

( ) ( ) ( ) ( ) ( )

] [ ] [ EDT_DAT F3

SEARCH F4

RUN F5

7–35

Page 148

Chapter 7 Creating and Editing a Program File

The following is a list of the search commands available on the HHT: Function Key [F1], CURSOR–INSTRUCTION [F2], CURSOR–OPERAND [F3], NEW–INSTRUCTION

[F4], UP/DOWN

[F5], FORCE

Description Searches for all instructions that are the same type as the instruction that the cursor is positioned on. Searches for every instruction that contains the address associated with the instruction that the cursor is positioned on. Displays the ladder editing menu of the available instruction symbols and/or mnemonics. Toggles the search direction within the program. When UP is displayed, the search starts at the cursor location and continues down to the end of the program, then wraps around to the start of the program. When DOWN is displayed, the search starts at the cursor location and continues up to the start of the program, then wraps around to the end of the program. Searches for all forces installed in a program.

Additionally, a search rung feature is available from either the offline, edit file display or the online, monitor file display, using the [RUNG] key located on the keypad.

7–36

Page 149

Chapter 7 Creating and Editing a Program File

Searching for an Instruction In this example, search for every examine if closed instruction (XIC) in the program, regardless of address. A search can be initiated with the cursor located anywhere in the program. In this example, the cursor is located on the left power rail of rung 0. 1. Start at the offline edit file display: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

2. Press [F3], SEARCH. The search display appears: 2.0.0.0.*

The search address is displayed here. The instruction mnemonic is displayed here.

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

+ CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

3. There are two ways to select the examine if closed instruction: • either use the [→] key to position the cursor on an examine if closed instruction, then press [F1], CUR–INS • or press [F3], NEW–INS, then [F1], BIT, then [F1],, ] [ - , then [ENTER]

The display changes as follows with the cursor on the first examine if closed instruction. Notice the instruction mnemonic is displayed in the search buffer, in the lower left corner of the display: XIC:I1:1.0/0

The instruction mnemonic is displayed in the Search Buffer.

] [ ] [ ] [ ] [ ] [

NO FORCE

2.0.0.0.1

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

XIC + CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

Each time the search object is found, the new cursor location becomes the search start point.

7–37

Page 150

Chapter 7 Creating and Editing a Program File

4. To find the next occurrence of the same instruction, press [ENTER]. The following display appears with the cursor positioned on the second examine if closed instruction in rung 0. Once again, notice that the display shows the instruction mnemonic and address in the upper left corner, and the cursor location in the upper right corner. Instruction Mnemonic and Address

XIC:I1:1.0/1

] [ ] [ ] [ ] [ ] [

NO FORCE

2.0.0.0.2

] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

XIC + CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

Cursor Location

OFL FORCE F5

5. Pressing [ENTER] again, brings up the next occurrence of the instruction, the first instruction in rung 1, nest level 1, branch level 0. XIC:I1:1.0/0

] [ ] [ ] [ ] [

NO FORCE

2.1.1.0.1

( ) ( ) ( ) ( )

] [ ] [

<END> XIC + CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

You may continue to search for each XIC instruction in the program by pressing [ENTER]. When you reach the last occurrence of this instruction in the program, the cursor wraps around to the start of the program. 6. To conclude this search procedure and clear the search buffer, press [ESC]. Searching for an Address In this example, search for every occurrence of address I:1/1 in the program, regardless of instruction type. A search can be initiated with the cursor located anywhere in the program. 1. Use the cursor keys to position the cursor on the left power rail of rung 0: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

] [

] [ ] [

( ) ( ) ( ) ( ) ( )

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

7–38

Page 151

Chapter 7 Creating and Editing a Program File

2. Press [F3], SEARCH. The search display appears: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

+ CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

3. To search for the specific address, press [SHIFT], then type the abbreviated form of the address, I:1/1. Then press [ENTER] to place the address into the search buffer: 2.0.0.0.*

The address is displayed in the search buffer.

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

+ I:1/1 CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

4. Press [ENTER] again, to find the first occurrence of the address, which is the second instruction in rung 0. XIC:I1:1.0/1

] [ ] [ ] [ ] [ ] [

NO FORCE

2.0.0.0.2

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

+ I:1/2 CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

5. Press [ENTER] again, to find the next occurrence of the address, which is located in rung 1, nest level 1, branch level 1, instruction number 2: XIC:I1:1.0/1

] [ ] [ ] [ ] [

NO FORCE

2.1.1.1.2

( ) ( ) ( ) ( )

] [ ] [

<END> + I:1/1 CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

7–39

Page 152

Chapter 7 Creating and Editing a Program File

6. Press [ENTER] again. The cursor wraps around to the beginning of the program and locates the cursor on the previous occurrence of the address, in rung 0: XIC:I1:1.0/1

] [ ] [ ] [ ] [ ] [

NO FORCE

2.0.0.0.2

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

+ I:1/1 CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

7. Exit the search. Press [ESC]. Searching for a Particular Instruction with a Specific Address In most applications, you search for the location of an instruction and its associated address. In the procedure below, the search is for the location of output energize (OTE), O:3/4. 1. Use the cursor keys to position the cursor on the left power rail of rung 0: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

2. Press [F3], SEARCH. The search display appears: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

] [ ] [

+ CUR–INS CUR–OPD NEW–INS F1 F2 F3

7–40

( ) ( ) ( ) ( ) ( )

] [

UP F4

OFL FORCE F5