ladder logic fundamentals -...

35
MME 486 – Fall 2006 Lecture – Ladder Logic Fundamentals 1 of 35 Ladder Logic Fundamentals Industrial Control Systems Fall 2006

Upload: dodien

Post on 09-Apr-2018

266 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 1 of 35

Ladder Logic Fundamentals

Industrial Control SystemsFall 2006

Page 2: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 2 of 35

Purpose of Industrial Controls

• In general, the purpose of an industrial control system is to control a process or mechanical system

• Examples include:– Beer brewing, camshaft machining, press

loading, automobile body welding, tube cutting, foam curing, water pump assembly, automobile painting, truck frame coating, etc.

Page 3: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 3 of 35

Components of Control

Process or Machine to be Controlled

Feedback from Process or Machine

OperatorInputs

•Product

orDesired

Behaviour

Page 4: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 4 of 35

History

• Before the use of computers, industrial control systems were implemented as mechanical, pneumatic/hydraulic or electric circuits

• Hardwired switches and electromechanical relays implemented the desired control logic

• Today, relay panels are still used in applications with low complexity.

• More often, I/O devices interface with a PLC that implements the desired logic.

Page 5: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 5 of 35

Relay Panel

http://www.maple-leaf.ca/indrelaybasedcontrol.html

Page 6: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 6 of 35

Control Supply Transformers

• Unlike high voltage (i.e. 240 VAC, 480 VAC, 575 VAC) output devices such as motors, the control systems are powered by lower voltage levels.

• Depending on the application, the control voltage can be 24 VDC or 120 VAC.

• The control logic supply is usually derived from the higher line voltages using a transformer.

Page 7: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 7 of 35

Control Supply Transformers

3 phasePower

ControlTransformer

HV in

LV out

Page 8: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 8 of 35

Fuses• Control circuits are always fuse protected • This will prevent damage to the control

transformer in the event of a short circuit

Page 9: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 9 of 35

Fuses• Fuses should be immune to current

transients (slow blow)• Must be rated at a current that is less

than or equal to the rated secondary current of the control transformer

• The fusing of control circuits can be complex. There are many different fuse types with trip characteristics available.

Page 10: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 10 of 35

Typical Diagram of Control Circuit Power

3 phasePower

ControlTransformer

Page 11: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 11 of 35

Ladder Logic

3 phasePower

ControlTransformer

All control circuitryoccurs between thepower and supply

and ground.These are the "rungs"

of the ladder

Page 12: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 12 of 35

Boolean (combinational) Logic and Relay Logic

• Switches and relays in a machine perform some type of control operation “logical function” such as AND, OR, NOT as found in digital circuits

• Coils, N/O and N/C contacts can be wired to perform logical functions

• No storage of previous states

Page 13: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 13 of 35

Ladder Logic - AND Function

• Binary 1 represents the presence of a signal or the occurrence of some event, while binary 0 representsthe absence of the signal or nonoccurrence of the event.

• For example, the closing of a switch would represent alogic 1, while an open switch represents a logic 0.

Page 14: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 14 of 35

Ladder Logic – AND Function

A BCR1

Both A AND B must be closed to energize CR1

Page 15: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 15 of 35

Application of AND Logic• Press operation• The machine can be only cycled by pressing

two switches simultaneously using two hands

Page 16: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 16 of 35

Ladder Logic - OR Function

Page 17: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 17 of 35

Ladder Logic – OR Function

• The lamp is on if SWITCH1 OR SWITCH 2 is closed.

Page 18: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 18 of 35

Ladder Logic – NOT Function

• The output is the inverse of the input

Page 19: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 19 of 35

Ladder Logic – NOT Function

• The light is on when the switch is open

L1SW1

Page 20: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 20 of 35

Ladder Logic – XOR Function

A

BY

011101110000YBA

Page 21: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 21 of 35

Ladder Logic – XOR Function

YA B

BA

Page 22: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 22 of 35

Sequential Logic

• Previous state used along with state present inputs to determine output. present state

• SR, D, and T flip flops

Page 23: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 23 of 35

The SR Latch• The SR latch has 2 stable states, on and off• The S, or set input is used to turn on the

output. The R, or reset input is used to turn off the output.

S

R

Q

Q

S

R

Q

Q

Race11101010

Q(t-1)00QRS

Page 24: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 24 of 35

The SR Latch• Occasionally, it is necessary to latch a relay ON when the activating

device goes OFF.• An SR latch may be formed by a NO and NC switch.• The start button is the set input, while the stop button is the reset

input.• The physical act of pushing the start or stop button is analogous to

applying a logic 1 to the S, or R inputs respectively.

Page 25: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 25 of 35

The T Flip Flop

• Sometimes it is useful to have a momentary contact switch the output on during the first switch contact, and switch the output off during the second switch contact.

Page 26: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 26 of 35

T Flip-Flop Proposed Circuit

Output appears on CR2

CR2

CR1PB CR2

PB

PB

PB

CR1

CR1

CR2

Page 27: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 27 of 35

T Flip-Flop

• Homework – Verify that the circuit on the previous page works through an analysis of the circuit states.

• Explain the operation of the circuit.

Page 28: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 28 of 35

Anti-Tie Down and Anti-Repeat

• The machine must not have the capability to be cycled by tying down one of the two RUN switches and using the second to operate the machine

• In most cases this is an extremely hazardous practice

• Anti-tie down and anti-repeat solve this problem

Page 29: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 29 of 35

Anti-Tie Down and Anti-Repeat

• Both switches must be pressed at the same time within small time window

• If one switch is pressed then the other is pressed after the time is expired, the machine will not cycle

• We need:– Two switches– TON relay

Page 30: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 30 of 35

Anti-Tie Down and Anti-Repeat

Page 31: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 31 of 35

Master Control Relays (MCRs)• Used to enable or

disable entire sections of control circuit (rungs)

Page 32: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 32 of 35

MCR's – Emergency Stops• Typically, MCR's are used in Emergency Stop

(E-Stop) circuits to disable power to a circuit or machine in the event of a fault, or an operator initiated stop.

MCR

MCR

MCR

StartE-Stop E-Stop E-Stop

Page 33: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 33 of 35

Control Zones

• Used to apply control to specific sections of the control circuitry

Page 34: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 34 of 35

Motor Starter Wiring• A 3 phase motor can be started in the following manner:

ph. A

ph. B

ph. C

3 Phase MotorCR1

CR1

CR1StartOL

CR1

Stop

CR1

OL

OL

OL

Page 35: Ladder Logic Fundamentals - Overblogdata.over-blog-kiwi.com/0/62/...ladder-logic-fundamental-controls.pdf · Lecture – Ladder Logic Fundamentals MME 486 – Fall 2006 4 of 35 History

MME 486 – Fall 2006Lecture – Ladder Logic Fundamentals 35 of 35

Motor Starter Wiring – Single Phase Motors

• Homework: Investigate how a three phase motor starter can be used to control a single phase motor.