37
Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Embed Size (px)

Citation preview

Page 1: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Chapter 6

Introduction to Logic

Page 2: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Objectives

Explain AND logic.Describe OR logic.Explain NOT logic.Explore a truth table for specified

logic.Determine if a PLC ladder rung is

true or false under specified conditions.

Page 3: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Hardwired Electrical Circuit Has Electrical Continuity

Hardwired circuit has actual current flow.

This is called electrical continuity.Current flows through switching

device to directly control the load.

Page 4: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Hardwired Relay Circuit

Page 5: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Logical Continuity

Hardwire relay circuits have electrical continuity, or current flow.

PLCs do not operate on electrical continuity, but logical continuity.

Page 6: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Logical Continuity (cont’d.)

A PLC ladder program resembles an electric schematic.

A PLC program is a set of instructions stored in memory.

PLC ladder symbols represent ladder program instructions.

Page 7: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Logical Continuity (cont’d.)

PLC instructions examine the status of a bit at the associated address.

Bits are either a 1 or 0.Instructions are either true or

false.PLCs have logical continuity.

Page 8: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Signal Flow into and out of a PLC

Page 9: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Input Signal Seen by Input Module

Signal from field device is wired to input module screw terminals.

These signals are called input signals or simply inputs.

Each input point has a unique identifier called an address.

Page 10: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Input Module Isolates and Converts

Discrete input module determines if input is a valid ON signal.

The discrete input module converts the incoming electrical signal to +5v DC, or 0v DC.

An ON state will be converted to +5v DC.

An OFF state will be converted to 0v DC.

Page 11: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Input Section to Back Plane

The high voltage input signal is isolated from the lower voltage microprocessor and supporting circuitry in the processor.

Signal is then transferred to the chassis back plane and sent to processor memory for storage.

Page 12: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Processor and Input Status File

Field input signals are transferred from the input module by way of the back plane for storage in the processor’s input status file.

There is one storage location in the status table for the on or off status of each input device.

On signal stored as a 1, off as a 0.

Page 13: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Processor Examines Status Table Bit

When running, the processor solves ladder instructions by examining the on or off status of the input device by examining the associated memory location for a 1 or 0.

Page 14: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Ladder Program Solved

Ladder instructions have rules regarding when they are true or false.

Instructions are made true or false as a result of the examined bit.

If there is a path of true input instructions to the output instruction, the rung will be true.

Page 15: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Output Update

When all ladder rungs have been solved, the output status table data is sent to the respective output modules one word at a time.

When rung is solved, the output status table is updated.

Page 16: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Combining and Solving Ladder Instructions

Three basic types of logic:AndOrAnd / Or (combinational)

Page 17: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Series Logic

When two switches are wired in series, both switches must be ON before power will flow.

Switch 1 AND switch 2 must all pass power before light 1 will turn on.

Page 18: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Conventional Series Circuit

Page 19: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Switch 1 AND Switch 2 Need to Be Closed to Energize L-1

Page 20: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Truth Table

A truth table shows all possible input conditions and the expected output conditions.

The following slide shows a truth table for AND logic.

Page 21: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Truth Table for AND Logic

Page 22: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

PLC Instructions in Series

PLC instructions work the same basic way as hard wired field devices.

Instructions in series are considered ANDed together, or AND logic.

Switch 1 AND switch 2 must be on for L-1 to come on.

Page 23: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

PLC Representation of a Rung

Page 24: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Truth Table for Two-Input AND Logic

Page 25: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Three-Input Series Circuit

Page 26: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Three-Input PLC Ladder Rung

Page 27: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Three-Input AND Logic Truth Table

Page 28: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Parallel Is also OR Logic

Inputs in parallel are said to be ORed.

Switch 1 is ORed with switch 2.If switch 1 is closed OR switch 2 is

closed, light 1 will turn on.If both SW1 and SW2 are closed,

light 1 will turn on.

Page 29: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Conventional Parallel Circuit

Page 30: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Programmable Controller Ladder Diagram

Page 31: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Two-input OR Truth Table

Page 32: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Truth Table for NOT Logic

Page 33: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Conventional Ladder Diagram

Page 34: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

PLC Representation of N.O and N.C. Instructions

All PLCs use the standard normally open and normally closed instructions.

Different manufacturers use different names for the instructions.

Page 35: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Normally Open and Normally Closed Instruction

Identification

Page 36: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Combination AND-OR Logic

Input devices can be combined in series (ANDed) and also in parallel (ORed) on a PLC ladder rung.

Instructions programmed to provide the proper input conditions for your application.

This is called combination AND-OR logic.

Page 37: Copyright © 2002 Delmar Thomson Learning Chapter 6 Introduction to Logic

Copyright © 2002 Delmar Thomson Learning

Combination AND-OR Logic