24
1 ECNG 3004 Control Systems Application PLCs for Automation and Control

PLC Notes 01 - Basics Lizam

Embed Size (px)

Citation preview

Page 1: PLC Notes 01 - Basics Lizam

1

ECNG 3004 Control Systems Application

PLCs for Automation and Control

Page 2: PLC Notes 01 - Basics Lizam

2

PLC BasicsProgrammable Logic Controllers (PLCs), also referred to as programmable controllers, are in the computer family. They are used in commercial and industrial applications.

Page 3: PLC Notes 01 - Basics Lizam

3

Basic PLC OperationPLCs consist of input modules or points, a Central ProcessingUnit (CPU), and output modules or points.

Page 4: PLC Notes 01 - Basics Lizam

4

Basic PLC OperationPushbuttons (sensors), in this simple example, connected toPLC inputs, can be used to start and stop a motor connected toa PLC through a motor starter (actuator).

Page 5: PLC Notes 01 - Basics Lizam

5

Hard-Wired ControlPrior to PLCs, many of these control tasks were solved withcontactor or relay controls. This is often referred to as hard-wiredcontrol.

Page 6: PLC Notes 01 - Basics Lizam

6

PLCs Versus Other Types of Controls

A PLC is not the only choice for controlling a process. Sticking with only basic relays may be of a benefit depending upon your application. Yet, on the other hand, a computer might be the way to go. The PLC vs. PC debate has been going on for a long time. More often though it doesn't come down to an "either or" situation but involves a mix of technologies.

Page 7: PLC Notes 01 - Basics Lizam

7

PLC vs. Relay

In the early times of programming PLCs it was still questionable if a PLC was necessary over just relay control. With PLC prices going down, size shrinking, and performance of PLCs improving over the years this has become less of a battle. Yet the designer has to ask themselves if a PLC is really overkill for their application. Some questions should be asked.

Page 8: PLC Notes 01 - Basics Lizam

8

PLC vs. Dedicated ControllerA dedicated controller is a single instrument that is dedicated to controlling one parameter such as a PID controller measuring a temperature for heating control. They have the advantages of an all in one package, typically with display and buttons. This can be a very good thing to use in simple applications. A PLC these days can compete price wise and functionally with these controllers especially if you more then one controller is needed. PLCs offer a greater degree of flexibility too because the can be programmed to handle all sorts of different scenarios.

Page 9: PLC Notes 01 - Basics Lizam

9

PLC vs. PC (Personal Computers)

The PLC vs. PC debate has been going on for years. They both have their pros and cons. What often happens is that the two are used for their strengths in different parts of the factory.

Page 10: PLC Notes 01 - Basics Lizam

10

Advantages

• Smaller physical size than hard-wire solutions• Easier and faster to make changes• PLCs have integrated diagnostics and override functions• Diagnostics are centrally available• Applications can be immediately documented• Applications can be duplicated faster and less expensively

Page 11: PLC Notes 01 - Basics Lizam

11

Siemens PLCsThe S7-200 is referred to as a micro PLC because of its smallsize. The S7-200 has a brick design which means that the powersupply and I/O are on-board. The S7-200 can be used on smaller,stand-alone applications such as elevators, car washes, ormixing machines. It can also be used on more complexindustrial applications such as bottling and packaging machines.

Page 12: PLC Notes 01 - Basics Lizam

12

Basic TerminologyThe language of PLCs consists of a commonly used set ofterms; many of which are unique to PLCs. In order tounderstand the ideas and concepts of PLCs, an understanding of these terms is necessary.

Page 13: PLC Notes 01 - Basics Lizam

13

SensorA sensor is a device that converts a physical condition into anelectrical signal for use by the PLC. Sensors are connected tothe input of a PLC. A pushbutton is one example of a sensorthat is connected to the PLC input. An electrical signal is sentfrom the pushbutton to the PLC indicating the condition (open/closed) of the pushbutton contacts.

Page 14: PLC Notes 01 - Basics Lizam

14

ActuatorsActuators convert an electrical signal from the PLC into aphysical condition. Actuators are connected to the PLC output.A motor starter is one example of an actuator that is connectedto the PLC output. Depending on the output PLC signal themotor starter will either start or stop the motor.

Page 15: PLC Notes 01 - Basics Lizam

15

Discrete InputA discrete input, also referred to as a digital input, is an input that is either in an ON or OFF condition.

Page 16: PLC Notes 01 - Basics Lizam

16

Analog InputAn analog input is an input signal that has a continuous signal. Typical analog inputs may vary from 0 to 20 milliamps, 4 to 20 milliamps, or 0 to 10 volts. In the following example, a level transmitter monitors the level of liquid in a tank. Depending on the level transmitter, the signal to the PLC can either increase ordecrease as the level increases or decreases.

Page 17: PLC Notes 01 - Basics Lizam

17

Discrete OutputsA discrete output is an output that is either in an ON or OFF condition. Solenoids, contactor coils, and lamps are examples of actuator devices connected to discrete outputs. Discrete outputs may also be referred to as digital outputs. In the following example, a lamp can be turned on or off by the PLC output it is connected to.

Page 18: PLC Notes 01 - Basics Lizam

18

Analog OutputsAn analog output is an output signal that has a continuous signal. The output may be as simple as a 0-10 VDC level that drives an analog meter. Examples of analog meter outputs are speed, weight, and temperature. The output signal may also be used on more complex applications such as a current-topneumatictransducer that controls an air-operated flow-control valve.

Page 19: PLC Notes 01 - Basics Lizam

19

CPUThe central processor unit (CPU) is a microprocessor systemthat contains the system memory and is the PLC decisionmakingunit. The CPU monitors the inputs and makes decisionsbased on instructions held in the program memory. The CPUperforms relay, counting, timing, data comparison, andsequential operations.

Page 20: PLC Notes 01 - Basics Lizam

20

ProgrammingProgramming A program consists of one or more instructions that accomplisha task. Programming a PLC is simply constructing a set of instructions. There are several ways to look at a program such as ladder logic, statement lists, or function block diagrams.

Page 21: PLC Notes 01 - Basics Lizam

21

Statement ListA statement list (STL) provides another view of a set ofinstructions.

Page 22: PLC Notes 01 - Basics Lizam

22

Function Block DiagramsFunction Block Diagrams (FBD) provide another view of a set ofinstructions.

Page 23: PLC Notes 01 - Basics Lizam

23

PLC Scan

Page 24: PLC Notes 01 - Basics Lizam

24

Programming the S7-200