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

The text of a manual · part 13 of 55

Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 6 - Creating a Program

Pages 99 to 112 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 99

Chapter

6

Creating a Program In this chapter you create a ladder program. The tasks you will perform are: • configure your SLC 500 controller • name your program

Creating a Program Offline with the HHT

A program is always created offline using the HHT. In creating the program, you: 1. Clear the memory of the HHT. 2. Configure the processor. 3. Configure the I/O. 4. Name the ladder program and main program file.

Clearing the Memory of the HHT To create a new program, clear the HHT memory (DEFAULT program). 1. Energize your HHT. After it goes through the self–diagnostic tests, the main menu display appears: SLC 500 PROGRAMMING SOFTWARE Rel. 2.03 1747 – PTA1E Allen–Bradley Company Copyright 1990 All Rights Reserved PRESS A FUNCTION KEY SELFTEST TERM PROGMAINT F1

F2

F3

OFL UTILITY F4

F5

6–1

Page 100

Chapter 6 Creating a Program

2. Press [F3], PROGMAINT. Then press [ENTER] to view the additional menu functions (as indicated by the > symbol in the lower right corner). The following display appears: File Name: File Name 0 1 2

Prog Name:2345 Type Size(Instr) System * Reserved * Ladder * OFL

EDT_DAT SEL_PRO EDT_I/O CLR_MEM F1

F2

F3

F4

> F5

3. Press [F4], CLR_MEM. The following display appears: File Name: File Name 0 1 2

Prog Name:2345 Type Size(Instr) System 76 Reserved 0 Ladder 5

ARE YOU SURE? YES F1

F2

OFL NO F3

F4

F5

4. Press [F2], YES. This clears the HHT memory and the following display appears: File Name: File Name 0 1 2

Prog Name:DEFAULT Type Size(Instr) System * Reserved * Ladder * OFL

EDT_DAT SEL_PRO EDT_I/O CLR_MEM F1

F2

F3

F4

> F5

Configuring the Controller After clearing the HHT memory, you must configure the processor and I/O structure for your application. Configuring the Processor 1. Press [F2], SEL_PRO. Then press [F1], TYPE. The following display appears: Type = 1747–L511 CPU–1K USER MEMORY Series = Memory Size = 1 K INSTRUCTIONS

Type = 1747–L511 CPU–1K USER MEMORY OTHER F1

6–2

F2

F3

F4

F5

Page 101

Chapter 6 Creating a Program

2. Use the cursor keys [ ↑ ] or [ ↓ ] then press [ENTER] to select the correct processor type. For this example, select the 1747–L511 processor. Since this is the default selection on the display, press [ENTER]. Processor module 1747–L511 is entered into memory. The previous display appears. 3. Press [ESC] to return to the following display: File Name: File Name 0 1 2

Prog Name:DEFAULT Type Size(Instr) System * Reserved * Ladder * OFL

EDT_DAT SEL_PRO EDT_I/O CLR_MEM F1

F2

F3

F4

> F5

Configuring the I/O 1. Press [F3], EDT_I/O. The following display appears: Rack 1 = 1746–A4 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L511

4–SLOT RACK

CPU–1K USER MEMORY

Slot 1 = NONE MOD_RCK MOD_SLT DEL_SLT UND_SLT F1

F2

F3

F4

F5

The display shows that the processor module we just entered is assigned to slot 0. It also shows the default rack selection 1746–A4. For this example you do not have to change the rack selection. If you are using a different rack, press [F1], MOD_RCK, then [F1], RACK 1. Select the appropriate rack, using the [ ↓ ] and [ ↑ ] keys, then press [ENTER]. If you are using more than one rack, follow the same procedure for racks 2 and 3. The next task is to assign the I/O module slots. For this example, use slots 1, 2, and 3. 2. Press [F2], MOD_SLT. The following display appears: Rack 1 = 1746–A4 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L511

4–SLOT RACK

CPU–1K USER MEMORY

Slot 1 = NONE Slot 1 = NONE OTHER F1

F2

F3

F4

F5

Slot 1 = NONE appears on the prompt line.

6–3

Page 102

Chapter 6 Creating a Program

3. Assign the input module found in slot 1 by scrolling with the [ ↓ ] key. For this example, press the [ ↓ ] key once to assign the 1746–IA4 module. (The [F3], OTHER key is for configuring I/O modules not found in the list of catalog numbers. See your specialty I/O user manual or instruction sheet for the proper code). 4. Press [ENTER]. The 1746–IA4 AC input is entered for slot 1. The following display appears: Rack 1 = 1746–A4 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L511 Slot 1 = 1746–IA4

4–SLOT RACK

CPU–1K USER MEMORY 4–INPUT 100/120 VAC

MOD_RCK MOD_SLT DEL_SLT UND_SLT F1

F2

F3

F4

F5

5. Call up another slot number using the [ ↓ ] and [ ↑ ] keys. Press the [ ↓ ] key once for slot 2. Assign the other slots by following the procedure for slot 1. Your controller is now fully configured. The configuration can be changed at any time by using the functions shown here. UND_SLT can be used to undelete a slot if it is accidently removed or to configure multiple slots with the same module type. 6. Press [ESC]. This returns you to the display shown below. File Name: File Name 0 1 2 3

Prog Name:DEFAULT Type Size(Instr) System * Reserved * Ladder * Ladder * OFL EDT_DAT SEL_PRO EDT_I/O CLR_MEM > F1

F2

F3

F4

F5

If needed, use SEL_PRO to change the processor type.

6–4

Page 103

Chapter 6 Creating a Program

Configuring Specialty I/O Modules – (SLC 5/02 Specific) When you use a specialty I/O module, you must indicate the type of module to the HHT. The configuration menu provides a list of available modules to select from. Each module is pre–configured, so after selecting the module from the list you have the option of viewing its configuration by pressing [F5], ADV_SET, advanced setup. Alteration of the fields is not recommended since these fields are pre–configured. However, if you select a module not listed, you may be required to alter some of the fields. Refer to your specialty I/O module user manual for more information regarding the required parameters. To configure a specialty I/O module not listed: 1. Configure your SLC 5/02 processor, racks, and standard I/O as described earlier. 2. Assign the specialty I/O module to an open slot in your rack. We are using slot 6 in a 1747–A7, 7–slot rack for the following example. We are also using the Remote I/O Scanner Module, catalog number 1747–SN for this example. Refer to RIO Scanner User Manual, catalog number 1747–NM005, for a detailed description of the parameters. From the previous display press [F3], EDT_I/O and [↓] five times. The following display appears: Rack 1 = 1746–A7 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L524

7–SLOT RACK

CPU–4K USER MEMORY

Slot 6 = NONE MOD_RCK MOD_SLT DEL_SLT UND_SLT ADV_SET F1

F2

F3

F4

F5

3. Press [F2], MOD_SLT. The following display appears: Rack 1 = 1746–A7 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L524

7–SLOT RACK

CPU–4K USER MEMORY

Slot 6 = NONE Slot 6 = NONE OTHER F1

F2

F3

F4

F5

6–5

Page 104

Chapter 6 Creating a Program

4. Press [F3], OTHER. For the RIO Scanner Module, enter the module ID code. Type 13608, then press [ENTER]. (For some module ID codes, the HHT may request additional information). The next display appears: Rack 1 = 1746–A7 Rack 2 = NONE Rack 3 = NONE Slot 0 = 1747–L524

7–SLOT RACK

CPU–4K USER MEMORY

Slot 6 = OTHER 13608 MOD_RCK MOD_SLT DEL_SLT UND_SLT ADV_SET F1

F2

F3

F4

F5

5. Press [F5], ADV_SET to view or modify the RIO scanner module’s parameters: –––––– Advanced I/O Configuration –––––– Current Subroutine File:

0

Current Configuration File:

G6 OFL

INT_SBR MOD_SET CFG_SIZ ADV_SIZ F1

F2

F3

F4

F5

6. Press [F4], ADV_SIZ to view or modify the I/O and M0/M1 file sizes: –––––––– Advanced I/O Size Setup –––––––– Note: All sizes are in words. Slot = 6 Output Size: 32 M0 File Size: 0 Input Size: 32 M1 File Size: 0 Scanned Output Size: 32 Scanned Input Size: 32 ENTER SCANNED OUTPUT: 32 OFL F1

F2

F3

F4

F5

The default for the scanned output size is 32 words. In this example, to reduce the processor scan time, enter 16 words. 7. Type 16, then press [ENTER]. The display changes as follows: –––––––– Advanced I/O Size Setup –––––––– Note: All sizes are in words. Slot = 6 Output Size: 32 M0 File Size: 0 Input Size: 32 M1 File Size: 0 Scanned Output Size: 16 Scanned Input Size: 32 ENTER SCANNED INPUT: 32 OFL F1

F2

F3

F4

F5

8. View or modify the remaining parameters by pressing [ENTER]. See the Remote I/O Scanner User Manual, catalog number 1747–NM005, for specific values.

6–6

Page 105

Chapter 6 Creating a Program

9. Press [ESC]. The following display appears: –––––– Advanced I/O Configuration –––––– Current Subroutine File:

0

Current Configuration File:

G6 OFL

INT_SBR MOD_SET CFG_SIZ ADV_SIZ F1

F2

F3

F4

F5

10.Set the G file (configuration file) size to 3. Press [F3], CFG_SIZ. The following display appears: –––––– Advanced I/O Configuration –––––– Current Subroutine File:

0

Current Configuration File:

G6

ENTER CONFIG. F1

FILE SIZE:

0

OFL

F3

F4

F5

F2

11. Type 3, then press [ENTER]. You are returned to the previous display. Press [F2], MOD_SET to view or modify the G file contents. The following display appears, with the cursor positioned on G6:0: Address G6:0 G6:1 G6:2

Indicates Slot 6

HEX/BCD

Data 2020 0000 0000

ELEMENT CANNOT BE EDITED! OFL BIN DEC HEX/BCD NEXT_PG PREV_PG F1

F2

F3

F4

F5

Word 0 of the G file is configured automatically by the processor according to the particular specialty I/O module. Word 0 is read only. For a description of G files, refer to page 4–27 in this manual. 12.Press [↓] to edit other words in the G file. The display changes as follows: Address G6:1 G6:2 G6:0

HEX/BCD

G6:1 = 000 BIN DEC F1

F2

Data 0000 0000 2020

OFL HEX/BCD NEXT_PG PREV_PG F3

F4

F5

6–7

Page 106

Chapter 6 Creating a Program

13.From this display you may choose the data format you prefer to use to configure the module for your application: BINary, DECimal, HEXadecimal/Binary Coded Decimal. Refer to Remote I/O Scanner User Manual, catalog number 1747–NM005, for a detailed description of the configuration specifications. 14.When you finish configuring your specialty I/O module, press [ESC] to return to the previous display: –––––– Advanced I/O Configuration –––––– Current Subroutine File:

0

Current Configuration File:

G6 OFL

INT_SBR MOD_SET CFG_SIZ ADV_SIZ F1

F2

F3

F4

F5

The [F1], INT_SBR, interrupt subroutine number, designates the I/O event-driven interrupt function that is used with the SLC 5/02 processor only. This function allows a specialty I/O module to interrupt the normal processor operating cycle in order to scan a specified subroutine file. This is described in detail starting on page 31–1. Interrupt operation for a specific module is described in the user’s manual for the module.

Naming the Ladder Program In addition to configuring your controller, you must give the program a name, other than DEFAULT, before continuing. When naming your ladder program, the HHT allows only numbers and certain letters available on the keypad, to be entered. Important: Ladder program names may be created on an APS terminal using the characters A–Z, 0–9, and underscore ( _ ). These programs may be uploaded to and displayed on the HHT. 1. From this display: File Name: File Name 0 1 2

Prog Name:DEFAULT Type Size(Instr) System * Reserved * Ladder *

OFL CHG_NAM CRT_FIL EDT_FIL DEL_FIL MEM_MAP > F1

6–8

F2

F3

F4

F5

Page 107

Chapter 6 Creating a Program

2. Press [F1], CHG_NAM. The following display appears: ––––––– Change Program/File Name ––––––– File Name: Program Name:

DEFAULT OFL

PROGRAM F1

F2

FILE F3

F4

F5

3. Press [F2], PROGRAM. The following display appears: ––––––– Change Program/File Name ––––––– File Name: Program Name:

DEFAULT

ENTER NAME: DEFAULT F1

F2

OFL F3

F4

F5

4. Name your program 1000. Type 1000, then press [SPACE], then [ENTER]. The program name is entered and you are returned to the previous display. ––––––– Change Program/File Name ––––––– File Name: Program Name:

1000 OFL

PROGRAM F1

F2

FILE F3

F4

F5

Important: If you forget to press the [SPACE] key, the program name is now 1000ULT. Whenever you create a new program name or change the name; if the previous name consists of more characters than the new one, the [SPACE] key must be used to clear the additional characters. To correct the name, repeat the above procedure.

Naming Your Main Program File Unlike the ladder program name, it is not required that you name the main program file. However, a main program file name is helpful, especially if there are multiple program files, such as a main program file (always file 2) and one or more subroutine files (files 3 through 255).

6–9

Page 108

Chapter 6 Creating a Program

1. Continuing from the change name display, press [F4], FILE. This display appears: ––––––– Change Program/File Name ––––––– File Name: Program Name:

1000

ENTER NAME: F1

OFL F2

F3

F4

F5

2. Name the main program file 222. Type 222, then press [ENTER]. The main program file name is entered and you are returned to the previous menu. The same restrictions apply to the characters for the main program file name as to ladder program names. Also, using the [SPACE] key may be necessary if you are re–naming the main program file. 3. Exit this menu level by pressing [ESC]. The program maintenance display appears: Main Program File Name

Program Name File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder *

File Size

OFL CHG_NAM CRT_FIL EDT_FIL DEL_FIL MEM_MAP > F1

F2

F3

F4

F5

The program directory now shows the name of the program, which is 1000 and the name of the main program file, which is 222. The display also shows the file sizes. At this point, asterisks (*) are displayed because no ladder programs are entered.

Passwords

6–10

Password protection prevents access to a program file and prevents changes from being made to the program. Each program may contain two passwords; the password and the master password. The master password overrides the password. This function is available for the offline HHT program, from the utility menu display and for the online processor program, from the attach display. You can only use numeric–based passwords.

Page 109

Chapter 6 Creating a Program

You can use passwords in the following combinations: Only Password Designated

You must enter the password to gain access to the program file.

Only Master Password Designated

You do not have to enter the master password to gain access to the program file. A master password is used by itself to allow access if a regular password is accidentally entered.

Password and Master Password Designated

You must enter either the password or the master password to gain access to the program file.

Generally, if you are using a number of processors, each processor is given a different password, and a master password is applied to all of the processors. You can use the master password to change or remove any password. Important: There is no password override to defeat the protection. Contact your Allen-Bradley representative if you are not able to locate your password.

Entering Passwords Ordinarily, you do not enter a password until your ladder program is completed, tested, and ready to be applied. This avoids having to type in the password each time you edit the program, download, edit again, and so on. Passwords can consist of up to 10 characters, numbers 0 through 9. In this example, enter the password, 123, for program file 1000. Use the Offline mode for this procedure. 1. Begin at the utility display: File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder *

ONLINE

WHO

PASSWRD

F1

F2

F3

OFL CLR_MEM F4

F5

2. Press [F3], PASSWRD. The following display appears: File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder * OFL

ENT

REM

ENT_MAS

REM_MAS

F1

F2

F3

F4

F5

6–11

Page 110

Chapter 6 Creating a Program

3. Press [F1], ENT. The display prompts you for the password: File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder *

ENTER NEW PASSWORD: F1

F2

OFL F3

F4

F5

4. Type 123. Notice that as you enter the characters, X’s are displayed for security reasons: File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder *

ENTER NEW PASSWORD: XXX F1

F2

F3

OFL F4

F5

5. Press [ENTER]. You are prompted to verify the password, by re–typing it: File Name: 222 File Name 0 1 2 222

Prog Name:1000 Type Size(Instr) System * Reserved * Ladder *

RE–ENTER NEW PASSWORD: F1

F2

F3

OFL F4

F5

6. Type 123 again. The password is now accepted. 7. Cycle power to the HHT for the password to take effect. After the HHT powers up, you are requested to enter the password if you press [F3], PROGMAINT or [F5], UTILITY.

Entering Master Passwords If a master password is required, press [F3], ENT_MAS, from the password menu display. The entry procedure is the same as for a password.

6–12

Page 111

Chapter 6 Creating a Program

Removing and Changing Passwords To remove a password or master password, do one of the following: Removing Passwords

Removing Master Passwords

1. Press [F3], PASSWRD.

1. Press [F3], PASSWRD.

2. Press [F2], REM

2. Press [F4], REM_MAS.

3. Type existing password and press [ENTER].

3. Type the existing master password and press [ENTER].

To change a password or master password, do one of the following: Changing Passwords

Changing Master Passwords

1. Press [F3], PASSWRD.

1. Press [F3], PASSWRD.

2. Press [F1], ENT

2. Press [F4], ENT_MAS.

3. Type existing password and press [ENTER]. 4. Type the new password and press [ENTER]. 5. Re–type the new password and press [ENTER]. 6. Cycle power to the HHT.

3. Type the existing master password and press [ENTER]. 4. Type the new master password and press [ENTER]. 5. Re–type the new master password and press [ENTER]. 6. Cycle power to the HHT.

6–13

Page 112

This page is a scan with no text; see it in the PDF.