83
05/25/2022 1 Programmable Logic Controllers Professor Charlton S. Inao Defence University Bishoftu ,Ethiopia

Pe 5421 plc aftermid week 10 onwards

Embed Size (px)

Citation preview

Page 1: Pe 5421 plc aftermid week 10 onwards

05/01/2023 1

Programmable Logic Controllers

Professor Charlton S. InaoDefence UniversityBishoftu ,Ethiopia

Page 2: Pe 5421 plc aftermid week 10 onwards

General Objectives To explain and understand the following PLC concept:

05/01/2023 2

Programmable logic controller; Structure of PLC and system components; Programming Languages;( LAD,STL,FBD)Logic Gates application for PLCCounterShift RegisterJumpProgramming Applications

Page 3: Pe 5421 plc aftermid week 10 onwards

05/01/2023 3

Page 4: Pe 5421 plc aftermid week 10 onwards

05/01/2023 4

Page 5: Pe 5421 plc aftermid week 10 onwards

05/01/2023 5

Page 6: Pe 5421 plc aftermid week 10 onwards

Programmable Logic Controllers

05/01/2023 6

• Defined by NEMA as a digital electronic apparatus with a programmable memory for storing instructions to implement specific functions (logic, sequencing, timing, counting, and arithmetic) to control machines and processes.

• Considered as the first industrial-based computer

Page 7: Pe 5421 plc aftermid week 10 onwards

05/01/2023 7

Page 8: Pe 5421 plc aftermid week 10 onwards

05/01/2023 8

Page 9: Pe 5421 plc aftermid week 10 onwards

05/01/2023 9

Page 10: Pe 5421 plc aftermid week 10 onwards

05/01/2023 10

Page 11: Pe 5421 plc aftermid week 10 onwards

05/01/2023 11

Page 12: Pe 5421 plc aftermid week 10 onwards

05/01/2023 12

Page 13: Pe 5421 plc aftermid week 10 onwards

Advantages of Using PLC

05/01/2023 13

Shorter Project Implementation

Easier Modification Without Cost Penalty

Design Easily Change Using Software

Project Cost Can be Accurately Calculated

Shorter Training Time Required

A Wide Range of Control Operations

Easy Maintenance

Able to Withstand Harsh Plant Environment

High Reliability

Standardization of Controller Hardware

Page 14: Pe 5421 plc aftermid week 10 onwards

05/01/2023 14

Page 15: Pe 5421 plc aftermid week 10 onwards

05/01/2023 15

Page 16: Pe 5421 plc aftermid week 10 onwards

05/01/2023 16

Page 17: Pe 5421 plc aftermid week 10 onwards

05/01/2023 17

Page 18: Pe 5421 plc aftermid week 10 onwards

05/01/2023 18

Page 19: Pe 5421 plc aftermid week 10 onwards

05/01/2023 19

Page 20: Pe 5421 plc aftermid week 10 onwards

05/01/2023 20

Page 21: Pe 5421 plc aftermid week 10 onwards

05/01/2023 21

Page 22: Pe 5421 plc aftermid week 10 onwards

05/01/2023 22

Page 23: Pe 5421 plc aftermid week 10 onwards

05/01/2023 23

Page 24: Pe 5421 plc aftermid week 10 onwards

Functions of PLC

05/01/2023 24

Sequence Control

Conventional Relay Logic Replacer

Timer and Counter Functions

Auto / Semi / Manual Control of Machines and Processes

Sophisticated Control

Arithmetic Operations

Analog Control (Temperature, Pressure, etc.)

PID (Proportional Integral Derivation)

Stepper / Servo Motor Control

Page 25: Pe 5421 plc aftermid week 10 onwards

Functions of PLC

05/01/2023 25

Supervisory Control

Process Monitoring and Alarm

Interfacing with Computers

Factory Automation network

Wide Area Network

Page 26: Pe 5421 plc aftermid week 10 onwards

Basic Control System

05/01/2023 26

Open Loop System

INPUT LOGIC OUTPUT

- Pushbuttons- Limit Switches- Level Switches- Flow Switches

- Relays- Timers- Counter

s

- Motors- Solenoid valves- Lamps- Alarm/

annunciator- Relays/contactorsPLC

Page 27: Pe 5421 plc aftermid week 10 onwards

Basic Control System

05/01/2023 27

Closed Loop System

Controller Final ControlElement

ProcessVariable

Transmitter

Set value

Error

Process Variable Primary

Element / Transducer

Temperature

Flow+

_

Page 28: Pe 5421 plc aftermid week 10 onwards

Hardware Components

05/01/2023 28

Central Processing Unit (CPU)

Micro PLC – less than 100 I/O’s

Small PLC – 0 to 128 I/O’s

Medium PLC – 0 to 256 I/O’s

Large PLC – 0 to 512 I/O’s

Page 29: Pe 5421 plc aftermid week 10 onwards

Power Supply

100 – 240 Volts AC

100 / 110 Volts AC

200 / 220 Volts AC

24 Volts DC

05/01/2023 29

Page 30: Pe 5421 plc aftermid week 10 onwards

Inputs

DC – 24 Volts

AC – 110 / 220 Volts

05/01/2023 30

Page 31: Pe 5421 plc aftermid week 10 onwards

Outputs

Transistor type (24 Vdc )

Relay / Contact type (24Vdc / 220 Vac)

TRIAC type (110 / 220 Vac)

PNP-type Transistor Input

• Source• Generates power

NPN-type Transistor Input

• Sink• Transmits power

05/01/2023 31

Page 32: Pe 5421 plc aftermid week 10 onwards

Relay

05/01/202332

Page 33: Pe 5421 plc aftermid week 10 onwards

Example: Omron Relay

05/01/202333

Page 34: Pe 5421 plc aftermid week 10 onwards

05/01/202334

Page 35: Pe 5421 plc aftermid week 10 onwards

05/01/2023 35

Page 36: Pe 5421 plc aftermid week 10 onwards

Peripheral Devices

Programming Console

CX-Programmer Software

Conversion Cables

Connecting Cables

05/01/2023 36

Page 37: Pe 5421 plc aftermid week 10 onwards

Software Components

05/01/2023 37

1. Ladder Diagram Language – a symbolic instruction type language

2. Boolean Language- Basic level language that composed of three (3) Boolean logic operation: AND, OR, NOT

Mnemonic Instruction – written in abbreviated form using 3 or 4 letters that generally imply the the operation of the instruction

3. Functional Blocks Language – high level instructions that permit the user to program more complex functions using the ladder diagram format

- Instruction set is composed of blocks that executes or performs specific function

Page 38: Pe 5421 plc aftermid week 10 onwards

4. English Statement Language – considered derivative of computer language such as BASIC.

-also known as Control Statements

Note:

OMRON PLC’s uses both Ladder Diagram Language and Boolean Language.

05/01/2023 38

Page 39: Pe 5421 plc aftermid week 10 onwards

05/01/2023 39

Page 40: Pe 5421 plc aftermid week 10 onwards

Key Points to Know in Selecting or Using PLC

05/01/2023 40

I. Know the process to be controlled

II. Determine the type of control

Distributed control

Centralized control

Individual machine control

III. Determine I/O interface requirements

Estimate digital and analog I./Os

Check for I/O specifications

Determine if remote I/O is required

Allow for future expansion

IV. Define peripheral devices

Page 41: Pe 5421 plc aftermid week 10 onwards

Steps in PLC Programming

05/01/2023 41

Draw the Schematic Diagram

Draw Control Diagram

Develop PLC Ladder Diagram

I/O Assignment

Convert to Mnemonic (Boolean)

PLC Layout

Page 42: Pe 5421 plc aftermid week 10 onwards

05/01/2023 42

Page 43: Pe 5421 plc aftermid week 10 onwards

Basic Structure of PLC

05/01/2023 43

Page 44: Pe 5421 plc aftermid week 10 onwards

PLC

Spec

ficati

ons

05/01/2023 44

Page 45: Pe 5421 plc aftermid week 10 onwards

LOGIC GATES

Page 46: Pe 5421 plc aftermid week 10 onwards

AND, OR , NOT

Page 47: Pe 5421 plc aftermid week 10 onwards

NAND , NOR, EXOR

De Morgan’sTheorem

Page 48: Pe 5421 plc aftermid week 10 onwards

Boolean Algebra

• An algebraic system that describes the logic circuit, in which the variables are limited to two values, usually 0 and 1.

• George Boole developed an algebra for values for the systematic treatment of logic.

• Boolean algebra deals with variables that take on two discrete values, 0 and 1 , and with operations that assume logical meaning.

• Situations involving “yes-no, true –false,on-off” can be represented by Boolean Logical operations.

Page 49: Pe 5421 plc aftermid week 10 onwards

Boolean Algebra Laws1) A + 1= 12) A + 0 = A3) A.0 = 04) A.1 = A5) A + A =A6) A.A = A7)A.A = 08) A + A = 19) A + B = B + A

10) AB + AC= A(B + C)11) A + BC =(A+B)(A+C)12) A + B = A.B13) A.B = A + B14) AΦ B= A.B + A.B(exor)

15) A + AB = A + Belec

elec

elec

elec

elec

elec

elec

elec

NAND

elec

elec

OR

OR

OR

OR

AND

AND

AND

EX OR

NOR

Page 50: Pe 5421 plc aftermid week 10 onwards

Boolean Algebra Laws1) Anything Ored to itself is equal to itself.2) Anything ANDed to itself is equal to itself. 3) It does not matter in which order we consider

inputs for OR and AND gates.

4) We can use truth table to show we can treat bracketed terms in the same way as the ordinary algebra.

A. (B +C)=A.B + A.C A +(B.C) =( A+B) . (A+C)

A + A =A

A . A =A

A + B = B + A A . B = B . A

Page 51: Pe 5421 plc aftermid week 10 onwards

Boolean Algebra Laws5) Anything ORed with its own inverse equals 1. A +A =16) Anything ANDed with its own inverse equals =0 A.A=07) Anything Ored with a zero is equal to itself. Anything

Ored with a 1 is equal to 1. A + 0 =A ; A + 1= 18) Anything ANDed with a 0 is equal to zeo; anything

ended with 1 is equal to itself. A.0 = 0 A.1 = A

Page 52: Pe 5421 plc aftermid week 10 onwards

Six Axioms on Properties of Boolean Algebra

Commutative Axiom:A.B=B.AA+B=B+ADistributive Axiom:A.(B+C)=(A.B) +(A.C)A+(B.C)=(A+B ).(A+C)Idempotency Axiom:A.A=AA+A=A

Absorption AxiomA.(A +B)=AA +(A.B)=AComplementation AxiomA.A=0A+A= 1A = ADe Morgan’s theorem

A.B= A + BA+B= A. B

Page 53: Pe 5421 plc aftermid week 10 onwards

Programming Format

1) Ladder diagram2)Mnemonic List3) Function Block Diagram

05/01/2023 53

Page 54: Pe 5421 plc aftermid week 10 onwards

NOR,NAND,EX-OR

05/01/2023 54

NOR

NAND

EX -OR

Page 55: Pe 5421 plc aftermid week 10 onwards

Timer: On delay and Off delay

05/01/2023 55

Page 56: Pe 5421 plc aftermid week 10 onwards

Cascaded timer/ On-OFF Cycle Timer

05/01/2023 56

Page 57: Pe 5421 plc aftermid week 10 onwards

COUNTERS

Counter UPCounter DownCounter Up/Down (Bi Directional Counter)

05/01/2023 57

Page 58: Pe 5421 plc aftermid week 10 onwards

Counter

05/01/2023 58

Page 59: Pe 5421 plc aftermid week 10 onwards

Week 15

• Internal Relays• Markers• Two Input Internal Relay Control• Latches Control of Internal Relays• Programming Application of Internal Relays

05/01/2023 59

Page 60: Pe 5421 plc aftermid week 10 onwards

Two Input control; Resetting a Latch

05/01/2023 60

Page 61: Pe 5421 plc aftermid week 10 onwards

05/01/2023 61

Page 62: Pe 5421 plc aftermid week 10 onwards

Shift Register -Mitsubishi

05/01/2023 62

Page 63: Pe 5421 plc aftermid week 10 onwards

Shift Register

05/01/2023 63

Page 64: Pe 5421 plc aftermid week 10 onwards

i

M 0.0

Q 0.1

Q 0.2

Q 0.3

Q 0.4

Q 0.5

Q 0.6

Q 0.7

Q 0.0

I0.1

0UT

I0.0

I 0.2

M 0.0

M 0.2

M 0.3

M 0.4

M 0.6

M 0.5

M 0.7

SFT

RST

M 0.1

Shift Register Siemens Configuration

END

05/01/2023 64

Page 65: Pe 5421 plc aftermid week 10 onwards

05/01/2023 65

Page 66: Pe 5421 plc aftermid week 10 onwards

Problem: Belt Sanding Machine

05/01/2023 66

Page 67: Pe 5421 plc aftermid week 10 onwards

Transfer Station

05/01/2023 67

Page 68: Pe 5421 plc aftermid week 10 onwards

Electric Relay Ladder Logic

05/01/2023 68

Page 69: Pe 5421 plc aftermid week 10 onwards

05/01/2023 69

Page 70: Pe 5421 plc aftermid week 10 onwards

05/01/2023 70

Page 71: Pe 5421 plc aftermid week 10 onwards

05/01/2023 71

Page 72: Pe 5421 plc aftermid week 10 onwards

Liquid Level Sorter

05/01/2023 72

Page 73: Pe 5421 plc aftermid week 10 onwards

05/01/2023 73

Page 74: Pe 5421 plc aftermid week 10 onwards

05/01/2023 74

Page 75: Pe 5421 plc aftermid week 10 onwards

05/01/2023 75

Page 76: Pe 5421 plc aftermid week 10 onwards

Wiring Diagram(Siemens LOGO)

05/01/2023 76

Page 77: Pe 5421 plc aftermid week 10 onwards

Liquid Level Sorter Electrical Ladder Diagram

05/01/2023 77

Page 78: Pe 5421 plc aftermid week 10 onwards

Liquid level Sorting Machine PLC Ladder Ladder Diagram

05/01/2023 78

M2.0

Page 79: Pe 5421 plc aftermid week 10 onwards

Artillery Cartridge Polishing Machine

05/01/2023 79

Page 80: Pe 5421 plc aftermid week 10 onwards

05/01/2023 80

The designed and developed automated artillery cartridge polishing machine is intended for defence application to recondition the 122mm and 130mm diameter cartridges. The machine is intended to replace the traditional way of polishing the artillery cartridge with a modern and automated machine for HOMICHO Ammunition Factory. The Artillery cartridge polishing machine is a pneumatic type polishing machine which is basically used for polishing the external and internal surfaces of 122mm and 130mm artillery cartridges. The abrasive head can be moved to any point over the polishing area. The longitudinal and traverse movements of the polishing head are controlled using a programmable Language Control (PLC) integrated with pneumatically controlled cylinders. The PLC program is written using a ladder logic programming method using software for precise control of all the movements of the actuators in the two directions. Different directional control valves with pressure relieve valves are mounted to perform different functions. Standard design approaches and manufacturing sequences are followed to design and fabricate the polishing machine. The complete machine includes electric motor, pneumatic cylinders, polishing abrasives and a pneumatic line. The overall dimension of the machine is 2585x705x470mm and its spindle is designed to hold firmly different caliber cartridges and can be rotated at 800 RPM with a 5Kw spindle motor.

Since quality of the polishing machine is dependent on different polishing parameters like, polishing abrasives used, depth of polishing, RPM of the spindle and the feed rate of the polishing head, the surface quality of polished cartridges when it compared with previously polished parts it can expected to be in the range of 0.2 and 0

Page 81: Pe 5421 plc aftermid week 10 onwards

Cartridge polishing machine PLC Ladder diagram

05/01/2023 81

Page 82: Pe 5421 plc aftermid week 10 onwards

Hydraulic Missile Autoloader Mobile Machine

05/01/2023 82

Page 83: Pe 5421 plc aftermid week 10 onwards

The End

05/01/2023 83