The text of a manual · part 8 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 3 - Understanding File Organization
Pages 53 to 56 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 53
Chapter
3
Understanding File Organization This chapter: • defines program, program files, and data files • indicates how programs are stored and transferred • covers the use of EEPROMs and UVPROMs for program backup
Program, Program Files, and Data Files
As explained in the following sections, the program can reside in: • the Hand–Held Terminal • an SLC 500 processor • a memory module • the APS terminal Notes on terminology: The term program used in Hand-Held Terminal (HHT) displays is equivalent to the term processor file used in APS software displays. These terms mean the collective program files and data files created under a particular program or processor file. Most of the operations you perform with the HHT involve the program and the two components created with it: program files and data files. Program Program Files
Data Files
3–1
Page 54
Chapter 3 Understanding File Organization
Program A program is the collective program files and data files of a particular user program. It contains all the instructions, data, and configuration information pertaining to that user program. The HHT allows only numbers and certain letters available on the keyboard to be entered for a program name. The program is a transferable unit. It can be located in the Hand-Held Terminal (or in the APS programming terminal); it can be transferred to/from an SLC 500, 5/01, or 5/02 processor, or to/from a memory module located in the processor. Program 01
Program 02
Program 03
HHT
SLC 500 Processor
Memory Module
Upload
Download HHT
SLC 500 Processor
The HHT and each CPU hold one program at a time. A program is created in the offline mode using your HHT. You first configure your controller, then create your user program. When you have completed and saved your program, you download it to the processor RAM memory for online operation. (See page 3–3 for more information on downloading.) You may also keep a back–up of your program in the EEPROM memory module located in the processor.
Program Files Program files contain controller information, the main control program, and any subroutine programs. The first three program files are required for each program. These are: • System Program (file 0)–This file is always included and contains various system related information and user-programmed information such as processor type, I/O configuration, program name and password. • Reserved (file 1)– This file is always included and is reserved for internal controller use. • Main Ladder Program (file 2)–This file is always included and contains user-programmed instructions defining how the controller is to operate. • Subroutine Ladder Program (files 3 – 255)–These are user-created and activated according to subroutine instructions residing in the main ladder program file. 3–2
Page 55
Chapter 3 Understanding File Organization
Data Files Data files contain the data associated with the program files. Each program can contain up to 256 data files. These files are organized by the type of data they contain. Each piece of data in each of these files has an address associated with it that identifies it for use in the program file. For example, an input point has an address that represents its location in the input data file. Likewise, a timer in the timer data file has an address associated with it that allows you to represent it in the program file. The first 9 data files (0 – 8) have default types. You designate the remainder of the files (9 – 255) as needed. The default types are: • Output (file 0) – This file stores the status of the output terminals or output information written to speciality modules in the system. • Input (file 1) – This file stores the status of the input terminals or input information read from the speciality modules in the system. • Status (file 2) – This file stores controller operation information. This file is useful for troubleshooting controller and program operation. • Bit (file 3) – This file is used for internal relay logic storage. • Timer (file 4) – This file stores the timer accumulated and preset values and status bits. • Counter (file 5) – This file stores the counter accumulated and preset values and the status bits. • Control (file 6) – This file stores the length, pointer position, and status bits for specific instructions such as shift registers and sequencers. • Integer (file 7) – This file is used to store numeric values or bit information. • Reserved (file 8) – This file is not accessible to the user. • User–Defined (file 9 – 255) – These files are user–defined as Bit, Timer, Counter, Control and/or Integer data storage. In addition, file 9 is specifically available as a Communication Interface File for communication with non–SLC 500 devices on a DH–485 network.
Downloading Programs When you have completed your program, it is necessary to transfer it to the SLC 500 processor in order to run the program. You do this by attaching your HHT to the processor and using the download function to transfer the program into the processor RAM. When downloading, you must take the processor out of the Run mode. HHT
PROCESSOR
RAM
RAM
1000
Download
1000
3–3
Page 56
Chapter 3 Understanding File Organization
Uploading Programs When you need to modify a program, it may be necessary to upload the program from an SLC 500 processor to the HHT. If the original HHT program is not current or the HHT has been attached to a different processor, uploading is necessary. Use the upload function to do this. When you are uploading, you can leave the processor in the Run mode. HHT
PROCESSOR
RAM
RAM
1000
Upload
1000
Using EEPROM and UVPROM Memory Modules for Program Backup An EEPROM or UVPROM memory module can be inserted in SLC 500 controllers. You can use the HHT to transfer a copy of the program in processor RAM to an EEPROM memory module. UVPROM memory modules cannot be programmed by a processor. (You need an external PROM burner.) You can also transfer a program from an EEPROM or UVPROM memory module to the processor’s RAM memory. Refer to page 14–1 for more information on using EEPROMs and UVPROMs. PROCESSOR RAM
1000
3–4
MEMORY MODULE
Processor to Memory Memory to Processor
1000