pe 3231 week 15 18 plc

86
03/15/2022 1 Programmable Logic Controllers PROFESSOR CHARLTON S. INAO Defence University Bishoftu ,Ethiopia prof CHARLTON S. INAO PE 3231 Hydraulic Pneumatic System Design

Upload: charlton-inao

Post on 20-Feb-2017

407 views

Category:

Engineering


2 download

TRANSCRIPT

05/01/2023 1

Programmable Logic Controllers

PROFESSOR CHARLTON S. INAODefence UniversityBishoftu ,Ethiopia

prof CHARLTON S. INAO

PE 3231 Hydraulic Pneumatic System Design

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 PLCTimersCounterShift RegisterJumpProgramming Applications

prof CHARLTON S. INAO

05/01/2023 3prof CHARLTON S. INAO

05/01/2023 4prof CHARLTON S. INAO

05/01/2023 5prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

05/01/2023 7prof CHARLTON S. INAO

05/01/2023 8prof CHARLTON S. INAO

05/01/2023 9prof CHARLTON S. INAO

05/01/2023 10prof CHARLTON S. INAO

05/01/2023 11prof CHARLTON S. INAO

05/01/2023 12prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

05/01/2023 14prof CHARLTON S. INAO

05/01/2023 15prof CHARLTON S. INAO

05/01/2023 16prof CHARLTON S. INAO

05/01/2023 17prof CHARLTON S. INAO

05/01/2023 18prof CHARLTON S. INAO

05/01/2023 19prof CHARLTON S. INAO

05/01/2023 20prof CHARLTON S. INAO

05/01/2023 21prof CHARLTON S. INAO

05/01/2023 22prof CHARLTON S. INAO

05/01/2023 23prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

Functions of PLC

05/01/2023 25

Supervisory Control

Process Monitoring and Alarm

Interfacing with Computers

Factory Automation network

Wide Area Network

prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

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+

_

prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

Power Supply

100 – 240 Volts AC

100 / 110 Volts AC

200 / 220 Volts AC

24 Volts DC

05/01/2023 29prof CHARLTON S. INAO

Inputs

DC – 24 Volts

AC – 110 / 220 Volts

05/01/2023 30prof CHARLTON S. INAO

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 31prof CHARLTON S. INAO

Relay

05/01/202332

prof CHARLTON S. INAO

Example: Omron Relay

05/01/202333

prof CHARLTON S. INAO

05/01/202334

prof CHARLTON S. INAO

05/01/2023 35prof CHARLTON S. INAO

Peripheral Devices

Programming Console

CX-Programmer Software

Conversion Cables

Connecting Cables

05/01/2023 36prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

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 38prof CHARLTON S. INAO

05/01/2023 39prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

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

prof CHARLTON S. INAO

05/01/2023 42prof CHARLTON S. INAO

Basic Structure of PLC

05/01/2023 43prof CHARLTON S. INAO

PLC

Spec

ficati

ons

05/01/2023 44prof CHARLTON S. INAO

LOGIC GATES

05/01/2023 45prof CHARLTON S. INAO

AND, OR , NOT

05/01/2023 46prof CHARLTON S. INAO

NAND , NOR, EXOR

De Morgan’sTheorem

05/01/2023 47prof CHARLTON S. INAO

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.

05/01/2023 48prof CHARLTON S. INAO

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

05/01/2023 49prof CHARLTON S. INAO

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

05/01/2023 50prof CHARLTON S. INAO

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 = A05/01/2023 51prof CHARLTON S. INAO

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. B05/01/2023 52prof CHARLTON S. INAO

Programming Format

1) Ladder diagram2)Mnemonic List3) Function Block Diagram

05/01/2023 53prof CHARLTON S. INAO

NOR,NAND,EX-OR

05/01/2023 54

NOR

NAND

EX -OR

prof CHARLTON S. INAO

Timer: On delay and Off delay

05/01/2023 55prof CHARLTON S. INAO

TIMERS

• ON DELAY TIMER- it delays the turning on of a device by some prescribed time.(bit logic from 0 to 1)

05/01/2023 prof CHARLTON S. INAO 56

OFF DELAY TIMER

05/01/2023 prof CHARLTON S. INAO 57

• OFF DELAY TIMER- it delays the turning OFF of a device by some prescribed time.(bit logic from 1 to 0)

Timer Resolution(Siemens)TIMER ADDRESS RESOLUTION

T32, T96 1 msT33-T36 10 ms

T97-T100 10 ms

T37-T63 10ms

T101-T255 100ms05/01/2023 prof CHARLTON S. INAO 58

Cascaded timer

05/01/2023 59prof CHARLTON S. INAO

Mitsubishi Siemens

On-OFF Cycle Timer

05/01/2023 prof CHARLTON S. INAO 60

Mitsubishi Siemens

COUNTERS

Counter UPCounter DownCounter Up/Down (Bi Directional Counter)

05/01/2023 61prof CHARLTON S. INAO

Counter

05/01/2023 62prof CHARLTON S. INAO

Week 15

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

05/01/2023 63prof CHARLTON S. INAO

Two Input control; Resetting a Latch

05/01/2023 64prof CHARLTON S. INAO

05/01/2023 65prof CHARLTON S. INAO

Shift Register -Mitsubishi

05/01/2023 66prof CHARLTON S. INAO

Shift Register

05/01/2023 67prof CHARLTON S. INAO

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 68prof CHARLTON S. INAO

05/01/2023 69prof CHARLTON S. INAO

Problem: Belt Sanding Machine

05/01/2023 70prof CHARLTON S. INAO

Transfer Station

05/01/2023 71prof CHARLTON S. INAO

Electric Relay Ladder Logic

05/01/2023 72prof CHARLTON S. INAO

05/01/2023 73prof CHARLTON S. INAO

05/01/2023 74prof CHARLTON S. INAO

05/01/2023 75prof CHARLTON S. INAO

Liquid Level Sorter

05/01/2023 76prof CHARLTON S. INAO

05/01/2023 77prof CHARLTON S. INAO

05/01/2023 78prof CHARLTON S. INAO

05/01/2023 79prof CHARLTON S. INAO

Wiring Diagram(Siemens LOGO)

05/01/2023 80prof CHARLTON S. INAO

Liquid Level Sorter Electrical Ladder Diagram

05/01/2023 81prof CHARLTON S. INAO

Liquid level Sorting Machine PLC Ladder Ladder Diagram

05/01/2023 82

M2.0

prof CHARLTON S. INAO

Artillery Cartridge Polishing Machine

05/01/2023 83prof CHARLTON S. INAO

05/01/2023 84

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

prof CHARLTON S. INAO

Cartridge polishing machine PLC Ladder diagram

05/01/2023 85prof CHARLTON S. INAO

The End

05/01/2023 86prof CHARLTON S. INAO