56
SECTION
1
Introductory
Concepts
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
3
Logic
Concepts
CHAPTER
HIGHLIGHTS
To understand programmable controllers and their applications, you must
first understand the logic concepts behind them. In this chapter, we will
discuss three basic logic functions—AND, OR, and NOT—and show you
how, with just these three functions, you can make control decisions ranging
from very simple to very complex. We will also introduce you to the
fundamentals of Boolean algebra and its associated operators. Finally, we
will explain the relationship between Boolean algebra and logic contact
symbology, so that you will be ready to learn about PLC processors and their
programming devices.
3-1 THE BINARY CONCEPT
Note that in Table 3-1, the more positive voltage (represented as logic 1) and
the less positive voltage (represented as logic 0) were arbitrarily chosen. The
use of binary logic to represent the more positive voltage level, meaning the
occurrence of some event, as 1 is referred to as positive logic.
Table 3-1. Binary concept using positive logic.
)V+(1)V0(0elpmaxE
gnitarepOgnitarepotoNhctiwstimiL
gnigniRgnignirtoNlleB
nOffOblubthgiL
gniwolBtneliSnroH
gninnuRdeppotSrotoM
degagnEdegagnesiDhctulC
desolCnepOevlaV
The binary concept is not a new idea; in fact, it is a very old one. It simply
refers to the idea that many things exist only in two predetermined states. For
instance, a light can be on or off, a switch open or closed, or a motor running
or stopped. In digital systems, these two-state conditions can be thought of as
signals that are present or not present, activated or not activated, high or low,
on or off, etc. This two-state concept can be the basis for making decisions;
and since it is very adaptable to the binary number system, it is a fundamental
building block for programmable controllers and digital computers.
Here, and throughout this book, binary 1 represents the presence of a signal
(or the occurrence of some event), while binary 0 represents the absence of
the signal (or the nonoccurrence of the event). In digital systems, these two
states are actually represented by two distinct voltage levels, +V and 0V, as
shown in Table 3-1. One voltage is more positive (or at a higher reference)
than the other. Often, binary 1 (or logic 1) is referred to as TRUE, ON, or
HIGH, while binary 0 (or logic 0) is referred to as FALSE, OFF, or LOW.