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

The text of a manual · part 16 of 55

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

Pages 133 to 142 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 133

Chapter 7 Creating and Editing a Program File

6. First insert the examine if closed instruction with address B3/1, by pressing [F1], INS_INST, then [F1], BIT, then [F1],, ] [ - . 7. In the zoom display type the address B3/1, then press [ENTER], then, [F5], ACCEPT. The display appears as follows: 2.1.1.1.*

I I I

] [ ] [ ] [ ] [

]/[

( ) ( ) I I I

<END>

OFL

] [

]/[

( )

(L)

(U)

F1

F2

F3

F4

F5

>

8. Now insert the examine if closed instruction with address B3/2. Since the cursor is located on the right rail of the branch, press [F1],, ] [ - . 9. In the zoom display type the address B3/2, then press [ENTER], then [F5], ACCEPT. The display appears as follows: 2.1.1.1.*

I I I

] [ ] [ ] [ ] [

]/[

] [

]/[

( )

(L)

(U)

F1

F2

F3

F4

F5

( ) ( ) I I I

] [

<END>

OFL

>

Notice that the length of both branches has increased . 10. Press [ESC] twice to return to the proper menu. Then press [F5], ACP_RNG. 11. Save the changes.

7–21

Page 134

Chapter 7 Creating and Editing a Program File

Extending a Branch Down Use the extend branch down command to create a new branch level on an existing branch, below your cursor location. The new branch shares the same start and target locations as the branch on which the cursor is located. In this example, modify rung 1 of your program to appear as follows: O:3.0 ( ) 1

I:1.0 ] [ 0 B3 ] [

B3 ] [ 1

2

I:1.0 ] [ 1

Add this branch level to the rung.

B3 ] [ 3

1. From the previous save and continue display, press [ENTER]. The following display appears: 2.0.0.0.*

] [ ] [ ] [ ] [

]/[

( ) ( )

] [

<END> OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5 2. Because the cursor is positioned on the left power rail of rung 0, move the cursor to a position within nest level 1, branch level 2 of rung 1; by pressing the [↓] key , then the [→] key, then the [↓] key twice. The display changes to the following: 2.1.1.2.*

] [ ] [ ] [ ] [

]/[

( ) ( )

] [

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

7–22

Cursor Location

Page 135

Chapter 7 Creating and Editing a Program File

3. Press [F2], MOD_RNG, then [F2], BRANCH. The following menu display appears: 2.1.1.2.*

I I I

] [ ] [ ] [ ] [

( ) ( ) I I I

]/[ ] [

<END> EXT_UP F1

EXT_DWN APP_BR F2 F3

INS_BR F4

OFL DEL_BR F5

4. Press [F2], EXT_DWN. The display changes as follows: 2.1.1.3.*

I I I I

] [ ] [ ] [ ] [ EXT_UP F1

( ) ( ) I I I OFL I

]/[ ] [

EXT_DWN APP_BR F2 F3

INS_BR F4

DEL_BR F5

5. Press [ESC]. The proper menu is displayed: 2.1.1.3.*

I I I I

] [ ] [ ] [ ] [ INS_INST F1

( ) ( ) I I I OFL I

]/[ ] [

BRANCH MOD_INST F2 F3

F4

ACP_RNG > F5

6. Now insert the examine if closed instruction with address B3/3, by pressing [F1], INS_INST, then [F1], BIT, then [F1],, ] [ - . 7. In the zoom display type the address B3/3, then press [ENTER], then, [F5], ACCEPT. The display appears as follows: 2.1.1.3.*

I I I I

] [ ] [ ] [ ] [ ] [ ] [

]/[

( )

(L)

F1

F2

F3

F4

]/[ ] [

( ) ( ) I I I OFL I (U) > F5

Notice that the length of the newest branch is the same as the rest. 8. Press [ESC] twice to return to the proper menu. Then press [F5], ACP_RNG. 9. Save the changes.

7–23

Page 136

Chapter 7 Creating and Editing a Program File

Appending a Branch Use the append branch command to place the start of a branch to the right of the cursor location. In this example, you use the append branch command to create a parallel output branch. Modify rung 1 of your program to appear as follows: O:3.0 ( ) 1

I:1.0 ] [ 0 B3 ] [

O:3.0 ( ) 2

B3 ] [ 1

2

Add this branch to the rung.

I:1.0 ] [ 1 B3 ] [ 3

1. From the previous save and continue display, press [ENTER] for the main editing display menu: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

]/[

F1

F2

( ) ( )

] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F3

F4

F5

2. Press the [↓] key once then the [→] key three times to position the cursor on the right power rail of branch level 0: 2.1.1.0.*

( ) ( )

] [ ] [ ] [ ] [ ] [ ] [

]/[

( )

(L)

(U)

F1

F2

F3

F4

F5

]/[ ] [

OFL

>

3. Press [F2], MOD_RNG, then [F2], BRANCH. The branch menu display appears: 2.1.1.0.*

I I I I

] [ ] [ ] [ ] [ ] [ EXT_UP F1

7–24

( ) ( ) I I I OFL I

]/[ ] [

EXT_DWN APP_BR F2 F3

INS_BR F4

DEL_BR F5

Page 137

Chapter 7 Creating and Editing a Program File

4. Press [F3], APP_BR. The following display appears: 2.1.1.0.*

I I I I

] [ ] [ ] [ ] [ ] [

( ) ( ) I I I I

]/[ ] [

SELECT BRANCH TARGET, PRESS ENTER F1

F2

F3

F4

OFL F5

5. Press the [→] key once to place the cursor to the right of the output. 2.1.1.0.6

I I I I

] [ ] [ ] [ ] [ ] [

( ) ( ) I I I I

]/[ ] [

SELECT BRANCH TARGET, PRESS ENTER F1

F2

F3

F4

OFL F5

6. Press [ENTER]. The branch is placed around the output: 2.1.1.1.*

I I I I

] [ ] [ ] [ ] [ ] [ EXT_UP F1

( ) ( ) I I I OFL I

]/[ ] [

EXT_DWN APP_BR F2 F3

INS_BR F4

DEL_BR F5

7. Press [ESC] to return to the editing menu display: 2.1.1.1.*

I I I I

] [ ] [ ] [ ] [ ] [ INS_INST F1

( ) ( ) I I I OFL I

]/[ ] [

BRANCH MOD_INST F2 F3

F4

ACP_RNG > F5

7–25

Page 138

Chapter 7 Creating and Editing a Program File

8. To enter the output energize instruction, press [F1], INS_INST, then [F1], BIT, then [F3],, ( ) - . 9. In the zoom display, type the address O:3/2, then [ENTER], and [ACCEPT]. The display appears as follows: 2.1.1.1.7

I I I I

] [ ] [ ] [ ] [ ] [ ] [

]/[

]/[

( )

(L)

F1

F2

F3

F4

] [

( ) ( ) I ( ) I I OFL I (U) > F5

10. Press [ESC] twice to return to the proper menu. Then press [F5], ACP_RNG. 11. Save the changes.

Delete and Undelete Commands Delete commands are used to delete branches, instructions, and rungs. In addition, undelete commands are used to copy an instruction or a rung and create new instructions or rungs. Deleting a Branch Use the delete branch command to remove a parallel branch and the instructions located within the branch. Modify rung 1 of your program to appear as follows: I:1.0 ] [ 0

O:3.0 ( ) 1

I:1.0 ] [ 1

O:3.0 ( ) 2

Important: Unlike the delete rung and delete instruction commands, there is no associated undelete branch command, in the HHT, to re–insert a deleted branch.

7–26

Page 139

Chapter 7 Creating and Editing a Program File

1. From the previous save and continue display, press [ENTER] for the main editing display menu: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

]/[

F1

F2

( ) ( ) ( )

] [

OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F3

F4

F5

2. Press the [↓] key to position the cursor on rung 1, then press [F2], MOD_RNG. The following display appears with the cursor positioned on the left power rail of rung 1: 2.1.0.0.*

I I I I

] [ ] [ ] [ ] [ ] [ INS_INST F1

( ) ( ) I ( ) I I OFL I

]/[ ] [

ACP_RNG >

BRANCH MOD_INST F2

F3

F4

F5

3. To remove branch level 1, position the cursor on the branch by pressing the [→] key, then the [↓] key. The display appears as follows: 2.1.1.1.*

I I I I

] [ ] [ ] [ ] [ ] [ INS_INST F1

( ) ( ) I ( ) I I OFL I

]/[ ] [

ACP_RNG >

BRANCH MOD_INST F2

F3

F4

F5

4. Press [F2], BRANCH, the branch menu display appears: 2.1.1.1.*

I I I I

] [ ] [ ] [ ] [ ] [ EXT_UP F1

( ) ( ) I ( ) I I OFL I

]/[ ] [

EXT_DWN APP_BR F2

F3

INS_BR

DEL_BR

F4

F5

7–27

Page 140

Chapter 7 Creating and Editing a Program File

5. Press [F5], DEL_BR. The following display cautions you that address references on this branch remain in their last state (either energized or de–energized) when you delete the instructions. 2.1.1.1.*

I I I I

] [ ] [ ] [ ] [ ] [

( ) ( ) I ( ) I I I

]/[ ] [

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

OFL F5

Important: When you modify a program after leaving the Run mode, the status bits associated with the instructions that are energized (true) or forced on, remain in that state even after they are deleted. This can cause incorrect program operation if these addresses are associated with other instructions. 6. Press [F2], YES to delete the branch. The display changes as follows: 2.1.1.1.*

I I I

] [ ] [ ] [ ] [

]/[

( ) ( ) I ( ) I I

<END> EXT_UP F1

EXT_DWN APP_BR F2 F3

INS_BR F4

OFL DEL_BR F5

7. To remove the bottom branch level, press [↓], then [F5], DEL_BR. 8. Press [F2], YES, then press [ESC], to return to the previous display. Press [F5], ACP_RNG and save the changes.

7–28

Page 141

Chapter 7 Creating and Editing a Program File

Deleting an Instruction Modify your program to appear as follows: I:1.0 I:1.0 ] [ ] [ 1 0 I:1.0 ] [ 0 I:1.0 ] [ 1

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

1. From the previous save and continue display, press [ENTER] for the main editing display menu: 2.0.0.0.*

] [ ] [ ] [

]/[

( ) ( ) ( )

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

2. Press the [→] key twice to place the cursor on the instruction to be deleted. Then press [F2], MOD_RNG. The following display appears: XIO:I1:1.0/1

I

] [ ] [ ] [

NO FORCE

2.0.0.0.2

]/[

( ) I ( ) ( )

<END> INS_RNG BRANCH MOD_INST F1 F2 F3

OFL ACP_RNG > F5

F4

3. Press [ENTER] to display additional menu functions: XIO:I1:1.0/1

I

] [ ] [ ] [

NO FORCE

2.0.0.0.2

]/[

( ) I ( ) ( )

<END> OFL F1

DEL_INST F2

F3

UND_INST F4

> F5

4. Press [F2], DEL_INST, then,[F2], YES to confirm the deletion. 5. Press [ENTER], then [F5], ACP_RNG. The instruction is removed and placed in a delete buffer. This instruction remains in the delete buffer until another instruction is deleted to replace it.

7–29

Page 142

Chapter 7 Creating and Editing a Program File

Copying an Instruction from One Location to Another Use the delete instruction command in conjunction with the undelete instruction command to copy an instruction from one location to another, within the same rung or to a different rung. 1. To copy the examine if closed instruction with address I:1.0/1, in rung 1, and place it between the input and output instructions in rung 0, start with the display from the previous procedure, with the cursor positioned on the left power rail of rung 1. 2.1.0.0.*

( ) ( ) ( )

] [ ] [ ] [

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

2. Press the [→] key two times, then the [↓] key once to position the cursor on the instruction to be copied. The display appears as follows: XIC:I1:1.0/2

NO FORCE

2.1.1.1.2

( ) ( ) ( )

] [ ] [ ] [

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

3. Press [F2], MOD_RNG, then [ENTER], for additional menu functions. Then press [F2], DEL_INST, then [F2], YES to confirm the deletion and place the instruction in the delete buffer. 4. Press [F4], UND_INST to re–insert the instruction into rung 1, then [ENTER], then press [F5], ACP_RNG. The display appears with the cursor on the END statement: 2.2.0.0.*

( ) ( ) ( )

] [ ] [ ] [

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

5. To insert the deleted instruction, between the input and output instructions in rung 0, press the [↑] key three times, then the [→] key once to position the cursor on the output energize instruction. Then press [F2], MOD_RNG, then [ENTER]. The undelete instruction command operates the same as the insert instruction command. The instruction is placed to the left of the cursor position.

7–30