Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 101

Advertising
background image

Chapter 6
Programming Overview

6–4

Program Files

Program files contain controller information, the main program, interrupt
subroutines, and any subroutine programs. These files are:

System Program (file 0) – This file contains various system related
information and user-programmed information such as program name and
password.

Reserved (file 1) – This file is reserved.

Main Program (file 2) – This file contains user-programmed instructions
defining how the controller is to operate.

User Error Fault Routine (file 3) – This file is executed when a fault
occurs. It is only used for this purpose.

High-Speed Counter Interrupt (file 4) – This file is executed when an
HSC interrupt occurs. It can also be used for a subroutine program.

Selectable Timed Interrupt (file 5) – This file is executed when an STI
occurs. It can also be used for a subroutine program.

Subroutine Program (files 6 – 15) – These are used according to
subroutine instructions residing in the main program file or other
subroutine files.

Data Files

Data files contain the status information associated with external I/O and all
other instructions you use in your main and subroutine program files. In
addition, these files store information concerning controller operation. You
can also use the files to store “recipes” and look-up tables if needed.

These files are organized by the type of data they contain. The data file types
are:

Output – This file stores the state of the output terminals for the
controller.

Input – This file stores the status of the input terminals for the controller.

Status – This file stores controller operation information. It is useful for
troubleshooting controller and program operation.

Bit – This file is used for internal relay logic storage.

Timer – This file stores the timer accumulator and preset values and the
status bits.

Counter – This file stores the counter accumulator and preset values and
the status bits.

Control – This file stores the length, position pointer, and status bits for
specific instructions such as bit shifts and sequencers.

Integer – This file is used to store numeric values or bit information.

Advertising