C HAPTER T HREE L OGI C C ON CEPT S

C HAPTER T HREE L OGI C C ON CEPT S

Science when well digested is nothing but good sense and reason.

—Leszinski Stanislas

Industrial Text & Video Company 1-800-752-8398

www.industrialtext.com

S ECTION Introductory Logic C HAPTER 1 Concepts

Concepts 3

C HAPTER To understand programmable controllers and their applications, you must

H IGHLIGHTS 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 T HE B I N A RY C ONCEPT

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.

O p e r a t i n g N o t o p e r a t i n g L i m i t s w i t c h R i n g i n g N o t r i n g i n g B e ll

B l o w i n g S li e n t

V a l v e Table 3-1. Binary concept using positive logic.

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.

Industrial Text & Video Company 1-800-752-8398

www.industrialtext.com

S ECTION Introductory Logic C HAPTER 1 Concepts

Concepts 3

Negative logic , as illustrated in Table 3-2, uses 0 to represent the more positive voltage level, or the occurrence of the event. Consequently, 1 represents the nonoccurrence of the event, or the less positive voltage level. Although positive logic is the more conventional of the two, negative logic is sometimes more convenient in an application.

N o t o p e r a t i n g O p e r a t i n g L i m i t s w i t c h N o t r i n g i n g R i n g i n g B e ll

S li e n t

C l o s e d V a l v e Table 3-2. Binary concept using negative logic.