The text of a manual · part 15 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 7 - Creating and Editing Program Files, pages 123 to 132
Pages 123 to 132 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 123
Chapter 7 Creating and Editing a Program File
Entering a Parallel Branch The five branching instructions available on the HHT are listed below. Function Key
Description
[F1], Extend Up
Adds a parallel branch above the cursored branch.
[F2], Extend Down
Adds a parallel branch below the cursored branch. Places the starting point of a branch to the right of the cursored instruction or at the cursor. Places the starting point of the branch to the left of the cursored instruction or at the cursor. Removes a branch and the instructions within the branch from a rung.
[F3], Append Branch [F4], Insert Branch [F5], Delete Branch
In this example use the insert branch command. The other branching commands are described starting on page 7–19. 1. Starting from the previous display, press [ESC] twice to bring up the following menu display: OTE:O0:3.0/1
I
NO FORCE
2.1.0.0.1
( ) ( ) I
] [ ] [
<END> INS_INST F1
OFL ACP_RNG >
BRANCH MOD_INST F2
F3
F4
F5
2. Press [F2], BRANCH. The display shows the various branching instructions: OTE:O0:3.0/1
I
NO FORCE
2.1.0.0.1
( ) ( ) I
] [ ] [
<END> EXT_UP F1
EXT_DWN APP_BR F2
F3
INS_BR
OFL DEL_BR
F4
F5
7–11
Page 124
Chapter 7 Creating and Editing a Program File
3. With the cursor still on the output energize instruction, press [F4], INS_BR. The display changes as follows: 2.1.0.0.*
I
( ) ( ) I
] [ ] [
<END> SELECT BRANCH TARGET, PRESS ENTER OFL F1
F2
F3
F4
F5
The insert branch instruction places the start of the branch to the left of the cursor position. (You choose the direction of the branch target by using the [←] or [→] keys.) 4. The cursor is now positioned on the branch start and you are prompted to move the cursor to the branch target. Press the[←] key once. The cursor is now positioned to the left of the examine if closed instruction: 2.1.0.0.*
I
( ) ( ) I
] [ ] [
<END> SELECT BRANCH TARGET, PRESS ENTER OFL F1
F2
F3
F4
F5
5. Press [ENTER]. The branch is inserted around the examine if closed instruction: 2.1.1.1.*
I I
( ) ( ) I I
] [ ] [
<END> EXT_UP F1
EXT_DWN APP_BR F2
F3
INS_BR
OFL DEL_BR
F4
F5
Inserting an Instruction Within a Branch 1. Press [ESC] to display the previous editing menu. 2.1.1.1.*
I I
( ) ( ) I I
] [ ] [
<END> INS_INST F1
7–12
OFL ACP_RNG >
BRANCH MOD_INST F2
F3
F4
F5
Page 125
Chapter 7 Creating and Editing a Program File
2. Press [F1], INS_INST, then [F1], BIT, then [F1],, ] [ - . The zoom display prompts you for the bit address: ] [
ZOOM on XIC NAME: BIT ADDR:
2.1.0.0.*
EXAMINE IF CLOSED
ENTER BIT ADDR: F1
F2
F3
F4
F5
3. Type the address I:1/1, then press [ENTER], then [F5], ACCEPT. The display appears as follows: 2.1.1.1.*
I I
( ) ( ) I I
] [ ] [ ] [
<END> OFL
] [
]/[
( )
(L)
(U) >
F1
F2
F3
F4
F5
4. To accept the new rung into your program, press [ESC] twice, then [F5], ACP_RNG. The rung is now a part of your program, as indicated by the absence of I’s in the power rails: 2.2.0.0.*
( ) ( )
] [ ] [ ] [
<END>
OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1
F2
F3
F4
F5
5. Press [ENTER] for additional menu options, then press [F4], SAVE_CT, to save and continue editing, then press [F5], ACCEPT.
7–13
Page 126
Chapter 7 Creating and Editing a Program File
Modifying Rungs In the previous two examples you created rungs by inserting them into the program. After rungs are part of a ladder program, you can modify those rungs offline, at any time. Adding an Instruction to a Rung In this example, add an examine if closed instruction to the first rung (rung 0) of your program. The modified rung should appear as follows. I:1.0 ] [ 0
O:3.0 ( ) 0
I:1.0 ] [ 2
Add this instruction to the rung.
By adding an examine if closed instruction to this rung, you are creating a rung of series logic, that is: when input I:1.0/0 and input I:1.0/2 are both energized, output O:3.0/0 is energized. 1. From the previous display, press [ENTER] to display the additional menu functions. The cursor is located on the left power rail of rung 0.
2.0.0.0.*
( ) ( )
] [ ] [ ] [
<END>
OFL
INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1
F2
F3
F4
F5
2. To place the new instruction between the existing input and output instructions, press the [→] key twice to place the cursor on the output instruction. The display changes as follows: OTE:O0:3.0/0
2.0.0.0.2
( ) ( )
] [ ] [ ] [
Notice that with the cursor placed on the output instruction, the instruction mnemonic and address are displayed in the upper left corner.
NO FORCE
<END>
OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1
F2
F3
F4
The cursor location is also displayed in the upper right corner. This indicates that the cursor is located in program file 2, rung 0, nest level 0, branch level 0 and on the second instruction in the rung.
F5
3. Press [F2], MOD_RNG then [F1], INS_INST, then [F1], BIT for the following display to appear: OTE:O0:3.0/0
I
7–14
NO FORCE
2.0.0.0.2
( ) I ( )
] [ ] [ ] [
<END>
] [
]/[
( )
(L)
OFL (U)
F1
F2
F3
F4
F5
>
Page 127
Chapter 7 Creating and Editing a Program File
4. Press [F1],, ] [ - for the new examine if closed instruction. The following zoom display appears: ] [
ZOOM on XIC NAME: BIT ADDR:
2.0.0.0.2
EXAMINE IF CLOSED
ENTER BIT ADDR: F1
F2
F3
F4
F5
5. At the ENTER BIT ADDR: prompt, type the address I:1/2, then press [ENTER]. 6. Press [F5], ACCEPT. This inserts the instruction and address into the rung. The following display appears: OTE:O0:3.0/0
I
] [ ] [ ] [
NO FORCE
2.0.0.0.3
( ) I ( )
] [
<END>
] [
]/[
( )
(L)
OFL (U)
F1
F2
F3
F4
F5
>
7. Press [ESC] twice. Then press [F5], ACP_RNG. The new examine if closed instruction is now part of your rung, as indicated by the absence of I’s in the power rails. 2.1.0.0.*
] [ ] [ ] [
( ) ( )
] [
<END>
OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1
F2
F3
F4
F5
Once again, press [ENTER], then [F4], SAVE_CT, then [F5], ACCEPT to compile and save these edits, and continue editing.
7–15
Page 128
Chapter 7 Creating and Editing a Program File
Modifying Instructions In the previous example you modified a rung by adding an instruction to the rung. Another function available in the HHT is the ability to modify instructions. Instructions may be edited by changing the address and/or changing the type of instruction. The following examples show you how to do both. Changing the Address of an Instruction Change the address of the second examine if closed instruction, in the first rung (rung 0) of the program, from I:1.0/2 to I:1.0/1. The new rung should appear as follows: I:1.0 ] [ 0
O:3.0 ( ) 0
I:1.0 ] [ 1
Change this address.
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. To change the address of the second examine if closed instruction, press [→] twice. 3. With the cursor positioned on the examine if closed instruction with address I1:1.0/2, press [F2], MOD_RNG. The following display appears: XIC:I1:1.0/2
I
] [ ] [ ] [
INS_INST F1
7–16
NO FORCE
2.0.0.0.2
( ) ( )
] [
I
<END> BRANCH MOD_INST F2 F3
F4
OFL ACP_RNG > F5
Page 129
Chapter 7 Creating and Editing a Program File
4. Press [F3], MOD_INST, then [ZOOM]. The following display appears with the cursor on the first character of the instruction address, on the prompt line: 2.0.0.0.2 ] [ ZOOM on XIC NAME: EXAMINE IF CLOSED BIT ADDR:I1:1.0/2
ENTER BIT ADDR: EDT_DAT F1
F2
I1:1.0/2 F3
F4
ACCEPT F5
5. To change the address: • either write over the 2 with a 1 by pressing the [→] key seven times to position the cursor over the 2, then press [1], then [ENTER] • or enter the entire new address and then press [ENTER] Important: When using the second method, you must press the [SHIFT] key for the file type (I, O, B...). Also, if the previous address contains more characters than the new one, you must use the [SPACE] and the [→] keys to clear each remaining character before pressing [ENTER]. When the new address is displayed on the prompt line: 2.0.0.0.2 ] [ ZOOM on XIC NAME: EXAMINE IF CLOSED BIT ADDR: I1:1.0/1
ENTER BIT ADDR: EDT_DAT F1
F2
I1:1.0/1 F3
F4
ACCEPT F5
6. Press [F5], ACCEPT. The display returns to the ladder display, and the address is changed, as indicated in the upper left corner. XIC:I1:1.0/1
I
] [ ] [ ] [
] [
BIT
TMR/CNT
F1
F2
NO FORCE
2.0.0.0.2
( ) I ( )
<END> OFL I/O_MSG COMPARE CPT/MTH F3
F4
F5
7. To accept the new address, press [ESC] once to display the proper menu, then press [F5], ACP_RNG. 8. Save the changes.
7–17
Page 130
Chapter 7 Creating and Editing a Program File
Changing an Instruction Type Change the second examine if closed instruction, in the first rung of the program, to an examine if open instruction. Keep the same address for the new instruction. The new rung should appear as follows: O:3.0 ( ) 0
I:1.0 I:1.0 ] [ ]/[ 0 1
Change this instruction type.
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. To change the examine if closed instruction, press the [→] key twice. With the cursor positioned on the examine if closed instruction with address I1:1.0/1, press [F2], MOD_RNG. The following display appears: XIC:I1:1.0/1
I
] [ ] [ ] [
INS_INST F1
NO FORCE
2.0.0.0.2
( ) I ( )
] [
<END> BRANCH MOD_INST F2 F3
F4
OFL ACP_RNG > F5
3. Press [F3], MOD_INST, then [F1], BIT, then [F2],, ] / [ - . The following zoom display appears: ]/[ ZOOM on XIO NAME: EXAMINE IF OPEN BIT ADDR: I1:1.0/1
ENTER BIT ADDR: EDT_DAT F1
7–18
F2
2.0.0.0.2
I1:1.0/1 F3
F4
ACCEPT F5
Page 131
Chapter 7 Creating and Editing a Program File
4. Since all the information is correct, press [F5], ACCEPT. The new instruction is inserted into the rung. NO FORCE
XIC:I1:1.0/1
I
2.0.0.0.2
( ) I ( )
] [ ] [ ] [
]/[
] [
]/[
( )
(L)
(U)
F1
F2
F3
F4
F5
<END> OFL
>
5. To accept the new instruction, press [ESC] twice to display the proper menu, then press [F5], ACP_RNG. 6. Save the changes.
Modifying Branches Earlier in this chapter you programmed a rung containing a branch, using the insert branch function. The branch menu contains several different branching functions. This example deals with those functions. Extending a Branch Up Use the extend branch up command to create a new branch level on an existing branch, above 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 ] [
Add this branch to the rung.
B3 ] [ 1
2
I:1.0 ] [ 1
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
7–19
Page 132
Chapter 7 Creating and Editing a Program File
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 1 of rung 1; by pressing the [↓] key, then the [→] key, then the [↓] key. The display changes to the following: 2.1.1.1.*
] [ ] [ ] [
]/[
( ) ( )
Cursor Location
<END>
OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1
F2
F3
F4
F5
3. Press [F2], MOD_RNG, then [F2], BRANCH. The following menu display appears: 2.1.1.1.*
I I
] [ ] [ ] [ EXT_UP F1
]/[
( ) ( ) I I
<END> EXT_DWN APP_BR F2
INS_BR
OFL DEL_BR
F4
F5
F3
4. Press [F1], EXT_UP. The display changes as follows: 2.1.1.1.*
I I I
] [ ] [
]/[
( ) ( ) I I I
] [ EXT_UP F1
<END> EXT_DWN APP_BR F2
INS_BR
OFL DEL_BR
F4
F5
F3
5. Press [ESC]. The proper menu is displayed: 2.1.1.1.*
I I I
] [ ] [
]/[
( ) ( ) I I I
] [
<END> INS_INST F1
7–20
BRANCH MOD_INST F2 F3
F4
OFL ACP_RNG > F5