Docsity

Programmable Logic Controller-Control Systems-Lab Reports, Exercises of Control Systems

Toggle sidebar
bg1
P a g e | 1
Lab 1: Introduction to PLC
Programmable Logic Controller
Control engineering has evolved over time. In the past humans were the main method for
controlling a system. More recently electricity has been used for control and early electrical
control was based on relays. These relays allow power to be switched on and off without a
mechanical switch.
It is common to use relays to make simple logical control decisions. The development of low
cost computer has brought the most recent revolution, the Programmable Logic Controller
(PLC). The advent of the PLC began in the 1970s, and has become the most common choice
for manufacturing controls.
Cost effective for controlling complex systems.
Flexible and can be reapplied to control other systems quickly and easily.
Computational abilities allow more sophisticated control.
Trouble shooting aids make programming easier and reduce downtime
Reliable components make these likely to operate for years before failure.
Ladder logic is the main programming method used for PLCs. Ladder logic has been developed
to mimic relay logic.
Advantages:
Ladder Logic:
Figure 1: Simple Relay Layouts and Schematics
Scanning:
Figure 2: Scan Cycle of a PLC controller.
docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Programmable Logic Controller-Control Systems-Lab Reports and more Exercises Control Systems in PDF only on Docsity!

Lab 1: Introduction to PLC

Programmable Logic Controller

Control engineering has evolved over time. In the past humans were the main method for

controlling a system. More recently electricity has been used for control and early electrical

control was based on relays. These relays allow power to be switched on and off without a

mechanical switch.

It is common to use relays to make simple logical control decisions. The development of low

cost computer has brought the most recent revolution, the Programmable Logic Controller

(PLC). The advent of the PLC began in the 1970s, and has become the most common choice

for manufacturing controls.

Cost effective for controlling complex systems.

Flexible and can be reapplied to control other systems quickly and easily.

Computational abilities allow more sophisticated control.

Trouble shooting aids make programming easier and reduce downtime

Reliable components make these likely to operate for years before failure.

Ladder logic is the main programming method used for PLCs. Ladder logic has been developed

to mimic relay logic.

Advantages:

Ladder Logic:

Figure 1: Simple Relay Layouts and Schematics

Scanning:

Figure 2: Scan Cycle of a PLC controller.

Lab 1: Introduction to PLC

Task 1

Implement the following in Trilogi:

3 inputted AND, OR, NOR, NAND

2 inputted XOR

A B C AND

A B C NOR

AND:

Inputs:

 A

 B

 C

Output:

 AND = A.B.C

Table 1: Truth Table for 3 – Inputted AND Figure 3: Ladder Logic for 3 – Inputted AND

NOR:

Inputs:

 A

 B

 C

Output:

 NOR = (A+B+C)’

Table 2: Truth Table for 3 – Inputted NOR Figure 4: Ladder Logic for 3 – Inputted NOR

Lab 1: Introduction to PLC

A B XOR

Inputs:

 A

 B

Output:

 XOR = A’.B + A.B’

Table 5: Truth Table for 2 – Inputted XOR Figure 7 : Ladder Logic for 2 – Inputted XOR

XOR:

Lab 1: Introduction to PLC

Task 2

Implement the following in Trilogi:

A = B’.[C.(D’ + E + C’)]’ + F.C

Simplifying the given expression:

A = B’.[C.(D’ + E + C’)]’ + F.C

= B’.C’ + B’.D.E’.C + F.C

Since there are 5 inputs, the truth table will contain of 32 combinations. Here are two

combinations for verification:

For B = 1, C = 0, D = 1, E = 1, and F = 0, the expression gives A = 0 verified as:

For B = 1, C = 1, D = 1, E = 1, and F = 1, the expression gives A = 1 verified as:

Figure 8: Ladder Logic for the expression of Task 2 Figure 9: Verification in simulator

Lab 1: Introduction to PLC

Post Lab

A B C D0 D1 D2 D3 D4 D5 D6 D

Figure 11: Ladder Logic for Task 3

3 x 8 Decoder:

Inputs:

 A, B, C

Outputs:

 D0, D1, D2, D3, D4, D5, D6, D

Table 7 : Truth Table for 3 X 8 Decoder

Lab 1: Introduction to PLC

“Decoder and Demultiplexer operations are obtained from the same circuit, a decoder with an enable input is reffered to as a decoder/demultiplexer. It is the enable input that makes the circuit a demultiplexer; the decoder itself can use AND, NAND or NOR gates”. (Digital Logic and Computer Design – M. Morris Mano) Owing to the above reference, here the demultiplexer is made using NAND gates.

E A B D0 D1 D2 D

1 X X 1 1 1 1

Figure 12 : Ladder Logic for 3 x 8 Decoder

Demultiplexer:

Input:

 E

Select Lines:

 A, B

Output:

 D0, D1, D2, D3 Table^8 :^ Truth Table for 4 O/P DeMUX