Transcript
Page 1: PROGRAMMABLE LOGIC CONTROLLERS

PROGRAMMABLE LOGIC CONTROLLERS

ANDLADDER LOGIC

Greg Zimmerman

Electrical Engineering Undergraduate

Page 2: PROGRAMMABLE LOGIC CONTROLLERS

• Programmable Logic Controllers control most of the mechanical processes in many areas of production

• Very simple in operation, complex in design

Page 3: PROGRAMMABLE LOGIC CONTROLLERS

Overview

1. PLC and Controls History

2. PLC Components

3. Ladder Logic

4. Programming of Ladder Logic

Page 4: PROGRAMMABLE LOGIC CONTROLLERS

1. PLC and Controls History• Large amount of work required connecting wires• Difficulty with changes or replacements• Difficulty in finding errors; requiring

skillful/experienced work force• When a problem occurs, hold-up time is indefinite,

usually long• Too many moving parts

Page 5: PROGRAMMABLE LOGIC CONTROLLERS

• Number of wires reduced by approximately 80%

• Fast and easy error detection.

• No change in wiring to change program

• Needs fewer spare parts• Cheaper when large number

of I/O instruments are needed

• Less moving parts• Compact• Cost effective for

installation/maintenance

Advantages of PLCs

Page 6: PROGRAMMABLE LOGIC CONTROLLERS

2. PLC Components

• Definition• Components• PLC Operation

Page 7: PROGRAMMABLE LOGIC CONTROLLERS

Definition

• A Programmable controller is a solid state user programmable control system with functions to control logic, sequencing, timing, arithmetic data manipulation and counting capabilities.

Page 8: PROGRAMMABLE LOGIC CONTROLLERS

Components

• CPU• Memory Areas• Circuits to input or

output data

• Basically, a big box of math

Page 9: PROGRAMMABLE LOGIC CONTROLLERS

Specific Components

• Input Relays (contacts)

• Output Relays (coils)

• Data Storage

• Internal Utility Relays

• Counters

• Timers

Page 10: PROGRAMMABLE LOGIC CONTROLLERS

PLC Operation

• Continually scans ladder diagram

• Consists of 3 important steps

Page 11: PROGRAMMABLE LOGIC CONTROLLERS

Rung Scanning

Page 12: PROGRAMMABLE LOGIC CONTROLLERS

3. Ladder Logic

• Definition• Introduction• Comparison to Relay

Logic

Page 13: PROGRAMMABLE LOGIC CONTROLLERS

Definition

• One form of drawing electrical logic schematics

• Very popular for PLCs• Originally invented for

use with relays

Page 14: PROGRAMMABLE LOGIC CONTROLLERS

Comparison to Relay Logic

• First used for technicians, electricians & engineers

• Still first choice for most technicians, electricians, etc.

Page 15: PROGRAMMABLE LOGIC CONTROLLERS

Relay Logic

• Ladder Logic

• Relay Logic

Page 16: PROGRAMMABLE LOGIC CONTROLLERS

• “Jog” function added to previous relay circuit• 1 component added• 3 wires added

Page 17: PROGRAMMABLE LOGIC CONTROLLERS

• Two status indicators added• 6 additional wires

Page 18: PROGRAMMABLE LOGIC CONTROLLERS

• Most widely used program

• Shown here as a very small program

Page 19: PROGRAMMABLE LOGIC CONTROLLERS

4. Ladder Logic Programming

• Introduction

• Basics – NO/NC Contacts/Coils

• AND & OR Gates

• Timers and Counters

• Building a PLC Ladder Logic Programming

Page 20: PROGRAMMABLE LOGIC CONTROLLERS

Introduction

• First PLC programming system used• Borrowed heavily from relay diagrams plant

electricians already knew• Each rung solved left to right

Page 21: PROGRAMMABLE LOGIC CONTROLLERS

Basics

• NO Contact

• NO Coil (Output)

• NC Contact

• NC Coil (Output)

Page 22: PROGRAMMABLE LOGIC CONTROLLERS

AND Gate

Page 23: PROGRAMMABLE LOGIC CONTROLLERS

OR Gate

Page 24: PROGRAMMABLE LOGIC CONTROLLERS

Timers

• Very simple concept, it times

• 2 basic types, on-delay and off-delay

• Still sends logic as its output

Page 25: PROGRAMMABLE LOGIC CONTROLLERS

Counters

• Counts number of times a lever is pulled, a button is pushed, etc.

• 3 types• Up Counter• Down Counter• Up-Down Counter

Page 26: PROGRAMMABLE LOGIC CONTROLLERS

Building a PLC/Ladder Logic Program

• To illustrate, will start in relay logic, convert to ladder logic at end

• Will need to remove/replace some components

Page 27: PROGRAMMABLE LOGIC CONTROLLERS

• Overload Device Removed• All components in relay diagram because wires

are run to them• Is not addressed in ladder logic• Motor relay is not a physical entity in ladder logic

as in relay logic

Page 28: PROGRAMMABLE LOGIC CONTROLLERS

• ‘Jog Function’ added• Usually added for ease in troubleshooting

purposes only.• Now two ways to run motor – press start, or

press and hold Jog button

Page 29: PROGRAMMABLE LOGIC CONTROLLERS

• Status Indicators added• Green for output on• Red for output off

Page 30: PROGRAMMABLE LOGIC CONTROLLERS

• Relay Logic converted to Ladder Logic Diagram• Much fewer hard wired components• Double Pole Pushbutton for Jog switched to

Single Pole• Instead of motor relays, PLC just checks state of

motor output

Page 31: PROGRAMMABLE LOGIC CONTROLLERS

Conclusion

1. Programmable Logic History

2. PLC Components

3. Ladder Logic

4. Ladder Logic Programming