115
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
One of the disadvantages of EEPROM is that a byte of memory can be written
to only after it has been erased, thus creating a delay. This delay period is
noticeable when on-line program changes are being made. Another disadvan-
tage of EEPROM is a limitation on the number of times that a single byte of
memory can undergo the erase/write operation (approximately 10,000).
These disadvantages are negligible, however, when compared to the remark-
able advantages that EEPROM offers.
5-3 MEMORY STRUCTURE AND CAPACITY
Figure 5-4. Units of PLC memory: bits, bytes, and words.
Word
Byte
Bit
BASIC STRUCTURAL UNITS
PLC memories can be thought of as large, two-dimensional arrays of single-
unit storage cells, each storing a single piece of information in the form of 1
or 0 (i.e., the binary numbering format). Since each cell can store only one
binary digit and bit is the acronym for “binary digit,” each cell is called a bit.
A bit, then, is the smallest structural unit of memory. Although each bit stores
information as either a 1 or a 0, the memory cells do not actually contain the
numbers 1 and 0 per se. Rather, the cells use voltage charges to represent 1 and
0—the presence of a voltage charge represents a 1, the absence of a charge
represents a 0. A bit is considered to be ON if the stored information is 1
(voltage present) and OFF if the stored information is 0 (voltage absent). The
ON/OFF information stored in a single bit is referred to as the bit status.
Sometimes, a processor must handle more than a single bit of data at a time.
For example, it is more efficient for a processor to work with a group of bits
when transferring data to and from memory. Also, storing numbers and codes
requires a grouping of bits. A group of bits handled simultaneously is called
a byte. More accurately, a byte is the smallest group of bits that can be handled
by the processor at one time. Although byte size is normally eight bits, this
size can vary depending on the specific controller.
The third and final structural information unit used within a PLC is a word.
In general, a word is the unit that the processor uses when data is to be operated
on or instructions are to be performed. Like a byte, a word is also a fixed group
of bits that varies according to the controller; however, words are usually one
byte or more in length. For example, a 16-bit word consists of two bytes.
Typical word lengths used in PLCs are 8, 16, and 32 bits. Figure 5-4 illustrates
the structural units of a typical programmable controller memory.