Docsity

PLC Lecture Notes: Understanding Programmable Logic Controllers, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
2-1
Dr. D. J. Jackson Lecture 2-1Electrical & Computer Engineering
Programmable Logic
Controllers
PLC Basics
Dr. D. J. Jackson Lecture 2-2Electrical & Computer Engineering
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
• Number and type of I/O modules present in the PLC
system
• Status information
pf3
pf4
pf5
pf8

Partial preview of the text

Download PLC Lecture Notes: Understanding Programmable Logic Controllers and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

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

Programmable Logic

Controllers

PLC Basics

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
    • Number and type of I/O modules present in the PLC system
    • Status information

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

Operating systems and application

programs

• A PLC retains its operating system, user

programs, and some data in retentive

(nonvolatile) memory

  • 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 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 sequence
  • 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 length of user program
  • Typically, hundreds of complete scans can take place in 1 second

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

Output scan

• During the output scan, data is taken from

the output image area and sent to all

output modules in the system

Output module

PLC Output module

Output Image Area

PLC scanning considerations

• During the input scan, input terminals are

read and the input image area is updated

accordingly.

• 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)
  • the output image area is updated appropriately

• During the output scan, data associated with

the output image area is transferred to

output terminals

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

PLC scanning considerations

• It is important to understand that the input,

program, and output scans are separate,

independent functions

  • 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

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

top to bottom rungs, in order

• Usually, the complete ladder scan time is a

few milliseconds

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

Rung scanning

RUNG

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

Conveyor stopped

Operator alarm

Two-rung ladder logic program

CPU Digital input module

Digital output module Input Image User program Output image

Spray painter

Paint

Paint level sensor

Alarm light

Part sensor

Operator control switch

Zero speed sensor Motor