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

The text of a manual · part 18 of 55

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

Pages 153 to 158 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 153

Chapter 7 Creating and Editing a Program File

3. Press [F3], NEW–INS, then [F1], BIT, then [F3],, ( ) - , then [ENTER]. The following display appears, with the instruction mnemonic displayed in the search buffer: 2.0.0.3.*

Instruction Mnemonic for the Output Energize Instruction

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

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

UP F4

OFL FORCE F5

4. To enter the address, press [SHIFT], then type the abbreviated address O:3/4. Then press [ENTER] to insert the information into the search buffer. The display appears as follows: 2.0.0.3.*

Instruction Mnemonic and the Address for the Output Energize Instruction

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

OTE + O:3/4 CUR–INS CUR–OPD NEW–INS F1 F2 F3

UP F4

OFL FORCE F5

5. Press [ENTER] to locate the instruction. Since this is an output energize instruction, there should be only one occurrence of this instruction and address. For other types of instructions, such as the examine if closed (XIC) instructions that you saw earlier, pressing [ENTER], finds each additional occurrence of the instruction with that address. Reversing the Search Direction The default setting for the search direction is to search from the cursor position down to the end of the program, then wrap around to the start of the program. In a large ladder program, you may want to change the search direction. Each time you bring up the search display, the direction function displays UP: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

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

UP F4

OFL FORCE F5

With UP displayed, the search starts at the cursor location, in this case at the start of the program, and continues toward the end of the program.

7–41

Page 154

Chapter 7 Creating and Editing a Program File

To change the search direction, press [F4], UP. The display changes as follows: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

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

DOWN F4

OFL FORCE F5

With DOWN displayed, the search starts at the cursor location, in this case at the start of the program, wraps around to the end of the program and continues toward the start of the program. Whenever you exit the search function, the direction display defaults back to UP. Searching for Forced I/O Searching for forced I/O is most useful in the Online Monitor mode, but can be used in the Offline Editing mode after a ladder program has been running in a processor and uploaded to the HHT. Refer to chapter 10 for details regarding uploading a ladder program and chapter 13 for a detailed description of the force function. In the Online Monitor mode, use the search forced I/O function to locate all forced inputs and outputs that are inserted in your program. In the Offline monitor mode, use the search forced I/O function to locate all forced inputs and outputs that were inserted into your program the last time it was operating in the Run mode before being uploaded to the HHT. Then document the location of each force and investigate the effects on machine operation before downloading the modified program.

!

7–42

ATTENTION: Use the search force function to locate all forces that have been uploaded to the HHT. Downloading a program containing forces can cause personal injury and damage to equipment.

Page 155

Chapter 7 Creating and Editing a Program File

In this example, a force has been inserted into the ladder program on input I1:1.0/0. Start from the offline edit file display with the cursor positioned 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

1. To search for any forces, 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

2. Press [F5], FORCE. The following prompt appears: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

ENTER TO FIND FORCE F1

F2

OFL F3

UP F4

F5

3. Press [ENTER] to find the first force. The cursor is positioned on the forced bit. The instruction mnemonic and address, the force status of the bit, and the location of the instruction are displayed along the top of the display: Force Information

FORCE ON

XIC:I1:1.0/0

] [ ] [ ] [ ] [ ] [

2.0.0.0.1

( ) ( ) ( ) ( ) ( )

] [

] [ ] [

ENTER TO FIND FORCE F1

F2

OFL F3

UP F4

F5

4. To find any additional forces, press [ENTER] again. Since this program contains no other forces, press [ESC] twice to exit the search function.

7–43

Page 156

Chapter 7 Creating and Editing a Program File

Searching for Rungs You can search for a specific rung number by using the rung key located at the lower right corner of the keypad: F1 N

F3

F4

F5

U

SPACE

ESC

ZOOM

F2 S

I

PRE/LEN ACC/POS

O

A 7

B 8

C 9

D 4

E 5

F 6

T 1

R 2

M 3

RUNG

# 0

–

.

SHIFT

:

/

ENTER

Press [RUNG], type the desired rung number, and then press [ENTER].

To use the search rung function you must be in either the offline, edit file display or the online, monitor file display. 1. To search for rung 3, start at the following display with the cursor located 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 [RUNG]. The following prompt appears: 2.0.0.0.*

] [ ] [ ] [ ] [ ] [

] [

] [ ] [

( ) ( ) ( ) ( ) ( )

ENTER RUNG NUMBER: OFL INS_RNG MOD_RNG SEARCH DEL_RNG UND_RNG > F1 F2 F3 F4 F5

7–44

Page 157

Chapter 7 Creating and Editing a Program File

3. Type 3, then press [ENTER]. The cursor is now positioned on the left power rail of rung 3. 2.3.0.0.*

] [

( )

] [

<END>

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

4. To search for additional rungs, repeat steps 1 through 3.

Creating and Deleting Program Files

The memory map function also allows you to create and delete data elements and files. To locate the Memory Map function from the HHT’s main menu, press [F3], PROG_MAINT and [F5], MEM_MAP.

Creating Data Files If your application requires a lot of data manipulation or use of sequencers, you may want to create the data files and enter the data prior to developing the ladder diagram. Also, if you are using indexed addressing in your SLC 5/02 program, you need to create the data file elements that the instructions may index into. You cannot create additional elements in the output file (file 0), input file (file 1), or status file (file 2). These files can only be created through the processor and I/O configuration. Data is created by entering the highest numbered element you want to be included. For example if they have not already been created, entering element N7:12 (default integer file 7) creates element N7:12 and all lower numbered elements down to N7:0. 1. From the main menu, press [F3], PROG_MAINT and [F5], MEM_MAP. The following display appears: File Type 0 O output 1 I input 2 S status 3 B bit 4 T timer CRT DT F1

LastAddr Elements O0:3.0 1 I1:2.0 2 S2:15 16 B3/15 1 – –

DEL DT NEXT PG F2

F3

Words 1 2 16 1 – OFL PREV PG PRG SIZE F4

F5

7–45

Page 158

Chapter 7 Creating and Editing a Program File

2. To create elements N7:0 through N7:12, press [F1], CRT_DAT, type N7:12 and press [ENTER]. The following display appears: File Type LastAddr Elements 7 N integer N7:12 13 8 Reserved – – 0 O output O0:3.0 1 1 I input I1:2.0 2 2 S status S2:15 16 CRT DT F1

DEL DT NEXT PG F2

F3

Words 13 – 1 2 16 OFL PREV PG PRG SIZE F4

F5

The memory map indicates that the integer (N) file 7 size is 13 elements (equivalent to 13 words) and the last address is N7:12.

Deleting Data Files When you modify your ladder program and delete instructions, any corresponding data file addresses are not de–allocated. For efficient memory usage, it is best to delete unused data file addresses. You cannot delete a data file element that is used in your ladder program. Neither can you delete an unused element within a file if a higher number in the file is used in your ladder program. Also, you cannot delete elements in the output file (file 0), input file (file 1), or status file (file 2). These files can only be deleted through the processor and I/O configuration. Data is deleted by entering the lowest numbered element you want to be deleted. For example, entering element N7:12 (default integer file 7) deletes element N7:12 and all existing higher numbered elements. To delete elements N7:5 through N7:12, press [F2], DEL_DT from the memory map display, type N7:5 and press [ENTER]. The following display appears: File Type LastAddr Elements 7 N integer N7:4 5 8 Reserved – – 0 O output O0:3.0 1 1 I input I1:2.0 2 2 S status S2:15 16 CRT DT F1

DEL DT NEXT PG F2

F3

Words 5 – 1 2 16 OFL PREV PG PRG SIZE F4

F5

The memory map now indicates that the integer (N) file 7 size is 5 elements (equivalent to 5 words) and the last address is N7:4.

7–46