127
CHAPTER
5
The Memory System
and I/O Interaction
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
SECTION
2
Components
and Systems
When a PLC executes its program, the processor interprets the information in
the user program memory and controls the referenced bits in the data table that
correspond to real or internal I/O. The processor’s execution of the executive
program accomplishes this interpretation of the user program.
The maximum amount of user program memory available is normally a
function of the controller’s size (i.e., I/O capacity). In medium and large
controllers, the user program area is made flexible by altering the size of the
data table so that it meets the minimum data storage requirements. In small
controllers, however, the user program area is normally fixed. The amount of
user program memory required is directly proportional to the number of
instructions used in the control program. Estimation of user memory require-
ments is accomplished using the method described earlier in Section 5-3.
DATA TABLE ORGANIZATION
The data table’s organization, or configuration as it is sometimes called, is
very important. The configuration defines not only the discrete device
addresses, but also the registers that will be used for numerical and analog
control, as well as basic PLC timing and counting operations. The intention
of the following discussion of data table organization is not to go into detail
about configuration, but to review what you have learned about the memory
map, making sure that you understand how memory and I/O interact.
First, let’s consider an example of an application memory map for a PLC.
The controller has the following memory, I/O, and numbering system
specifications:
• total application memory of 4K words with 16 bits
• capability of connecting 256 I/O devices (128 inputs and 128 outputs)
• 128 available internal outputs
• capability of up to 256 storage registers, selectable in groups of 8-
word locations, with 8 being the minimum number of registers
possible (32 groups of 8 registers each)
• octal (base 8) numbering system with 2-byte (16-bit) word length
5-5 CONFIGURING THE PLC MEMORY—I/O ADDRESSING
Understanding memory organization, especially the interaction of the data
table’s I/O mapping and storage areas, helps in the comprehension of a PLC’s
functional operation. Although the memory map is often taken for granted by
PLC users, a thorough understanding of it provides a better perception of how
the control software program should be organized and developed.