ITAS 104 Module II Lesson 1
ITAS 104 Module II Lesson 1
Algebra
Program Scan
MODULE II
This module gives an overview of digital logic gates and illustrates how
to duplicate this type of control on a PLC. Boolean algebra, which is a
shorthand way of writing digital gate diagrams, is discussed briefly. Some small
hand-held programmers have digital logic keys, such as AND, OR, and NOT, and
are programmed using Boolean expressions.
2. Draw the logic symbol, construct a truth table, and state the Boolean
equation for the AND, OR, and NOT functions.
Module II
PAGE \* MERGEFORMAT 2
6. Describe input and output image table files and types of data files.
1. There are four lessons in Module II. It is imperative and important for you
to read and understand the lessons thoroughly in order to hasten your
knowledge about the topics.
2. In case you need further clarifications on some topics, you can have
supplemental reading using any references listed in the preliminaries or you
may surf the net re. the matter or raise questions during the set Google
Meet.
4. Learning activities are found at the end of each lesson and at the classwork
of our Google Classroom; you are advised to answer all the items in the test
independently and upload them via Google Classroom . Refrain from going
over your module while answering in order to measure your level of
comprehension and retention of the lessons. However, you may do so
afterwards for the purpose of clarification and confirmation.
Module II
PAGE \* MERGEFORMAT 2
Lesson 1
The PLC, like all digital equipment, operates on the binary principle. The
term binary principle refers to the idea that many things can be thought of as
existing in only one of two states. These states are 1 and 0. The 1 and 0 can
represent ON or OFF, open or closed, true or false, high or low, or any other
two conditions. The key to the speed and accuracy with which binary
information can be processed is that there are only two states, each of which
is distinctly different. There is no in-between state so when information is
processed the outcome is either yes or no.
A logic gate is a circuit with several inputs but only one output that is
activated by particular combinations of input conditions. The two-state binary
concept, applied to gates, can be the basis for making decisions. The high
beam automobile lighting circuit of Figure 1 is an example of a logical AND
decision. For this application, the high beam light can be turned on only when
the light switch AND the high beam switch are closed.
Module II
PAGE \* MERGEFORMAT 2
Since logic gates are digital ICs (Integrated Circuits) their input and
output signals can be in only one of two possible digital states, i.e., logic 0 or
logic 1. Thus, the logic state of the output of a logic gate depends on the logic
states of each of its inputs. Figure 4 illustrates the four possible combinations
of inputs for a 2-input AND gate. The basic rules that apply to an AND gate is:
Module II
PAGE \* MERGEFORMAT 2
The symbol drawn in Figure 9 is that of a NOT function. Unlike the AND
and OR functions, the NOT function can have only one input. The NOT output is
1 if the input is 0. The output is 0 if the input is 1. The result of the NOT
operation is always the inverse of the input, and the NOT function is,
therefore, called an inverter. The NOT function is often depicted by using a
bar across the top of the letter, indicating an inverted output. The small circle
at the output of the inverter is referred to as a bubble and indicates that an
inversion of the logical function has taken place.
Module II
PAGE \* MERGEFORMAT 2
The NOT function is most often used in conjunction with the AND or the
OR gate. Figure 11 shows the NOT function connected to one input of an AND
gate for a low-pressure indicator circuit. If the power is on (1) and the pressure
switch is not closed (0), the warning light will be on (1).
Module II
PAGE \* MERGEFORMAT 2
Figure 11. NOT function is most often used in conjunction with an AND gate.
Source: Google
The NOT symbol placed at the output of an AND gate would invert the
normal output result. An AND gate with an inverted output is called a NAND
gate. The NAND gate symbol and truth table are shown in Figure 12. The NAND
function is often used in integrated circuit logic arrays and can be used in
programmable controllers to solve complex logic.
The same rule about inverting the normal output result applies if a NOT
symbol is placed at the output of the OR gate. The normal output is inverted,
and the function is referred to as a NOR gate. The NOR gate symbol and truth
table are shown in Figure 13.
Figure 12. NAND gate symbol and Figure 13. NOR gate symbol and
truth table. Source: Google truth table. Source: Google
Module II
PAGE \* MERGEFORMAT 2
Boolean Algebra
The mathematical study of the binary number system and logic is called
Boolean algebra. The purpose of this algebra is to provide a simple way of
writing complicated combinations of logic statements. There are many
applications where Boolean algebra could be applied to solving PLC
programming problems.
Figure 15. Boolean algebra is related to AND, OR, and NOT functions.
Source: Google
Module II
PAGE \* MERGEFORMAT 2
Figure 16. Logic operators are used singly to form logical statements. Source:
Google
Figure 17. Logic operators are used in combination to form Boolean equations.
Source: Google
Boolean expression: Y = AB + C
Gates required: (by inspection)
1 - AND gate with input A and B
1 - OR gate with input C and output from previous AND gate
Module II
PAGE \* MERGEFORMAT 2
Figure 18. Logic gate circuit developed from the Boolean expression Y = AB + C.
Figure 19. Logic gate circuit developed from the Boolean expression
Y = A(BC + D). Source: Google
Module II
PAGE \* MERGEFORMAT 2
Figure 20. Determining the Boolean Figure 21. Determining the Boolean
equation for a logic circuit. Source: equation for a logic circuit. Source:
Google Google
Module II
PAGE \* MERGEFORMAT 2
2. Draw the logic symbol, construct a truth table, and state the Boolean
equation for each of the following:
a. Two-input AND gate
b. NOT function
c. Three-input OR gate
d. XOR function
3. Express each of the following equations as a ladder logic program:
a. Y = (A + B)CD
b. Y = A B C + D + E
c. Y = [( A + B )C] + DE
d. Y = ( A B C ) + (D E F)
4. Write the ladder logic program, draw the logic gate circuit, and state the
Boolean equation for the two relay ladder diagrams in the figure below.
Source: Google
Module II