Docsity

PLC Basics-Programmable Logic Controllers-Lecture 02 Slides-Electrical and Computer Engineering, Slides of Programmable Logic Controllers

Toggle sidebar
bg1
2-1
Programmable Logic
Controllers
PLC Basics
Dr. D. J. Jackson Lecture 2-1Electrical & Computer Engineering
Operating systems and application
programs
• A PLC contains a basic operating system that
allows for:
– Downloadin
g
and executin
g
user (ladder lo
g
ic)
programs
– Communicating with devices
•I/O modules
• Other PLCs on a network
–Holdin
g
confi
g
uration data such as
Dr. D. J. Jackson Lecture 2-2Electrical & Computer Engineering
gg
• Number and type of I/O modules present in the PLC
system
• Status information
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download PLC Basics-Programmable Logic Controllers-Lecture 02 Slides-Electrical and Computer Engineering and more Slides Programmable Logic Controllers in PDF only on Docsity!

Programmable Logic

Controllers

PLC Basics

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Operating systems and application

programs

• A PLC contains a basic operating system that

allows for:

  • Downloading and executing user (ladder logic) programs
  • Communicating with devices
    • I/O modules
    • Other PLCs on a network
  • Holding configuration data such as

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

g g

  • Number and type of I/O modules present in the PLC system
  • Status information

Operating systems and application

programs

• A PLC retains its operating system, user

programs, and some data in retentive

((nonvolatile) memory l l )

  • While the PLC is off or is even disconnected from the power supply (given a battery backup)

• A PLC can then resume running a user

program as soon as power is restored

The PLC ma be p og ammed to eq i e some

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

  • The PLC may be programmed to require some operator action before resuming user program execution (for safety purposes)

User program execution

  • A PLC executes an initialization step when placed in run mode, then repeatedly executes a scan cycle sequencesequence
  • The basic PLC scan cycle consists of three steps
    • An input scan
    • A user program scan
    • An output scan
  • The total time for one complete program scan is a function of processor speed I/O modules used and

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

function of processor speed, I/O modules used, and length of user program

  • Typically, hundreds of complete scans can take place in 1 second

Output scan

• During the output scan, data is taken from

the output image area and sent to all

output modules in the systemoutput modules in the system

Output module

PLC

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

PLC^ Output module

Output Image Area

PLC scanning considerations

• During the input scan, input terminals are

read and the input image area is updated

accordinglyaccordingly.

• During the program scan

  • data in the input image area is applied to the user program
  • the program is executed (instructions carried out in sequence) th t t i i d t d i t l

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

  • the output image area is updated appropriately

• During the output scan, data associated with

the output image area is transferred to

output terminals

PLC scanning considerations

• It is important to understand that the input,

program, and output scans are separate,

independent functionsd d f

  • Any changes in the status of input devices during the program or output scan are not recognized until the next input scan

• Furthermore, data changes in the output

table are not transferred to the output

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

table are not transferred to the output

terminal during the input and program scans

• The transfer affecting the output devices

takes place only during the output scan

PLC scanning considerations

• With all PLCs, there are special processing

considerations to note

• First, all PLCs take a specific amount of time

to scan their operational programs

completely

• Typically, the program scanning takes place

left to right across each rung and from the

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

top to bottom rungs, in order

• Usually, the complete ladder scan time is a

few milliseconds

Rung scanning

RUNG 1 2 3 4 5

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Column scanning

RUNG

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Two-rung ladder logic program

On switch

Part sensor

Spray paint

Paint empty

Operator alarm

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Conveyor stopped

alarm

Two-rung ladder logic program

CPU Digital input module

Digital output module Input Image User program Output image

S

Alarm light

Operator P t

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-

Spray painter

Paint

Paint level sensor

Part sensor

Operator control switch

Zero speed sensor Motor

Example Program with Energized Inputs

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-