48
Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Embed Size (px)

Citation preview

Page 1: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Chapter 5

Introduction to PLC Operation

Page 2: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

ObjectivesExplain what binary information is

and how it is used in PLCs.Describe how computer and PLC data

are represented.Examine PLC memory and how it is

used.Explain how data gets into a PLC.Identify what addresses are and how

they are used in PLCs.

Page 3: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

The PLC Is a Digital Computer

The PLC is a computer similar to a desktop or notebook computer.

A PLC is an industrially hardened computer.

Page 4: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

PLC Block Diagram

Page 5: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Binary Concept

Binary is based on two states, on or off.

Two-state devices are described as either discrete or digital devices.

Discrete or digital devices are simply either on or off.

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

Copyright © 2002 Delmar Thomson Learning

Common Industrial Hardware Representing the Binary

Concept

Page 7: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Binary Data Representation

We communicate to others using groups of letters arranged into words.

The PLC uses groups of bits called words.

Different bit patterns represent different information.

Page 8: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Bits

Unlike English, computers have only two characters available, 1 or 0.

Each 1 or 0 is called a binary digit, or bit.

Binary is base or radix 2.A single bit is the smallest unit of

computer data.

Page 9: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

PLC Words

One measure of a computer’s capabilities is the length of the data words it can operate on.

Current PLCs use 16-bit words.Newer PLCs use 32-bit words.SLC 500 family PLCs are 16-bit

computers.

Page 10: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Information Represented as Combinations of Bits.

Page 11: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Parts of a 16-Bit Word

Page 12: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Bytes, Nibbles, and Bits

Page 13: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

16-Point Module’s I/O Points Represented in a

Word

Page 14: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Physical Input Conditions and the Corresponding Input

Data Word

Page 15: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

8-Point Input Module Represented in a Word

Page 16: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

24-Point I/O Module Represented in Two Words

Page 17: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Two Words Representing Inputs for a 32-Bit Module

Page 18: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Data Table Format

Words are 16 bits.Bits 0 through bit 15.First word or bit is always 0.SLC 500 data tables can contain

up to 256 words (0 to 255).

Page 19: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Words Arranged in a Data Table

Page 20: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Input Data File

Each input screw terminal has one memory location to store on or off status.

Input data is stored in the input data file, also called the input status file.

Input status file holds input status information, which is used to solve ladder program.

Page 21: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Input Data File (cont’d.)

Identified as an I type data file.Only one input status file allowed

per project.Only has words created for actual

modules in system.

Page 22: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Output Data File

Each output screw terminal has one memory location to store on or off status.

Output data is stored in the output data file, also called the output status file.

Page 23: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Output Data File (cont’d.)

Output status file holds output status information to update outputs.

The result of solving the ladder program.

Output data sent to modules during output update portion of scan.

Page 24: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Output Data File (cont’d.)

Identified as an O type data file.Only one output status file allowed

per project.Only has words created for actual

modules in system.

Page 25: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Output Status File Correlation To Module

Page 26: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Modular PLC and Output and Input Status

Tables

Page 27: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Fixed PLC and Output and Input Status Table

Image courtesy of Allen-Bradley, a Rockwell Automation business

Page 28: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Fixed I/O PLC Interaction With Input Status File

Page 29: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

I/O Address Structure

Page 30: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

I/O Address Format for SLC 500 Family of PLCs

Page 31: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

RSLogix 500 Software Input Status Table Screen

View

Page 32: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

RSLogix 500 Software Output Status Table Screen

View

Page 33: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

PLC Data Formats

Two 8-bit Unsigned Bytes of Data16-bit Unsigned Integer16-bit Signed IntegerBinary Coded DecimalHexadecimal

Page 34: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Two 8-bit Unsigned Bytes of Data

Page 35: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

16-bit Unsigned Integer

Page 36: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

16-bit Signed Integer

Page 37: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Binary Coded Decimal

Page 38: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Hexadecimal

Page 39: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

PLC Memory Categories

PLC memory is divided into two categories:System memoryApplication memory

Page 40: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

System Memory

Differentiates a PLC from another type of computer device.

Gives PLC its personality.Programmed into PLC at factory.Also called its operating system.

Page 41: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

SLC 500 Operating System

SLC 5/03, 5/04 and 5/05 processors have field upgradable operating systems.Add new features.Add new instructions.Fix problems.

Page 42: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Application Memory

Stores user program.Stores data associated with user

program:Input status fileOutput status fileTimers and countersNumerical data such as recipesResults of math operations

Page 43: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Ladder Files

Ladder files contain ladder programs.

Ladder file 2 must be main ladder program.

Ladder files 3 through 255 are subroutines.

Page 44: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

SLC 500 Data Files

Output statusInput statusProcessor

statusBinary or bitsTimers

CountersIntegerFloating pointUser defined

Page 45: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Default Data Files

Data files O through 8 are created by the processor with new project.

Floating point file is available on SLC 500 modular processors 5/03, 5/04, and 5/05.

5/03 processor must have operating system OS 301 and above.

Page 46: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Data File Identification

O: Output Status FileI: Input Status FileS: Processor Status File

Cannot create additional O, I, or S data files.

Page 47: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

Data File Identification

B3 Binary or bit fileT4 TimersC5 CountersR6 ControlN7 IntegerF8 Floating Point

Page 48: Copyright © 2002 Delmar Thomson Learning Chapter 5 Introduction to PLC Operation

Copyright © 2002 Delmar Thomson Learning

User Configurable Files

Data files greater than file 8 up to file 255 can be created by the user.

These are user-defined files.B, T, C, N, F file types.Each file can contain up to 255

elements with adequate processor memory.