Docsity

Instructions and Basic Addressing-Programmable Logic Controllers-Lecture 03 Slides-Electrical and Computer Engineering, Slides of Programmable Logic Controllers

Toggle sidebar
bg1
3-1
Programmable Logic
Controllers
PLC Addressing and Basic
Instructions
Dr. D. J. Jackson Lecture 3-1Electrical & Computer Engineering
Instructions
Basic addressing
• For the Allen-Bradley PLCs and the simulator
used, the input and output image areas (in
dd h d ) h ld “d f l ”
a
dd
ition to ot
h
er
d
ata
)
are
h
e
ld
in
“d
ata
f
i
l
es
”
• Each “data file” holds information such as
– Discrete input values
– Discrete output values
– Values associated with timers
Dr. D. J. Jackson Lecture 3-2Electrical & Computer Engineering
– Values associated with counters
– Status information
–Etc.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Instructions and Basic Addressing-Programmable Logic Controllers-Lecture 03 Slides-Electrical and Computer Engineering and more Slides Programmable Logic Controllers in PDF only on Docsity!

Programmable Logic

Controllers

PLC Addressing and Basic

Instructions

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

Instructions

Basic addressing

• For the Allen-Bradley PLCs and the simulator

used, the input and output image areas (in

addition to other data) are held in “data files”dd h d ) h ld “d f l ”

• Each “data file” holds information such as

  • Discrete input values
  • Discrete output values
  • Values associated with timers

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

  • Values associated with counters
  • Status information
  • Etc.

PLC data files

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

Simulator data files (^) AB PLC data files

I/O memory mapping

• Basic AB PLC addressing

Data file type

X1:x.0/

Data file type I – input O – output S – status B – binary T- timer C-counter

Slot number (not used with the simulator)

Bit number

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

Data file number (can be omitted for the basic data files)

Word number: selects a specific word in a data file I/O located on the controller (embedded I/O) is slot 0. I/O added to the controller (expansion I/O) begins with slot 1.

Examine if closed (XIC)

  • Alternate name: Normally open contact
  • Use the XIC instruction in your ladder program to determine if a bit is ondetermine if a bit is on. - When the instruction is executed, if the bit addressed is on (1), then the instruction is evaluated as TRUE. - When the instruction is executed, if the bit addressed is off (0), then the instruction is evaluated as FALSE.

Instruction symbol Switch is open

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

Switch is open

Switch is closed

Examine if open (XIO)

  • Alternate name: Normally closed contact
  • Use the XIO instruction in your ladder program to determine if a bit is offdetermine if a bit is off. - When the instruction is executed, if the bit addressed is on (1), then the instruction is evaluated as FALSE. - When the instruction is executed, if the bit addressed is off (0), then the instruction is evaluated as TRUE.

Instruction symbol

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

Switch is open

Switch is closed

Output energize (OTE)

  • Alternate name: coil
  • This instruction is usually used in conjunction with XICXIC oror XIOXIO or any other input instructionor any other input instruction.
  • If the logic preceding the OTE instruction is true (1), the OTE instruction will be energized

Instruction symbol

Not energized

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

Energized

Output latch (OTL)

• The OTL instruction is used only to turn

a bit on and latch it on

Instruction symbol

Initially not energized

Energized

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

L

Latched

Branches

  • Branches can be inserted in ladder logic programs to create parallel combinations of various ladder logic elementselements

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

Multiple Series/Parallel Branches

  • Multiple series/parallel branches can be utilized with multiple inputs and also affecting multiple outputs in parallelparallel

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

PLC simulator usage

  • Ladder logic elements (instructions) can be dragged and dropped onto the ladder window to create a ladder logic programladder logic program
  • The ladder logic program is executed by going online, ‘downloading’ the PLC program, and switching to run mode

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

OFFLINE/ONLINE control Download PLC run mode

ProSim simulations

  • The Logixpro simulator provides a set of built-in simulations
  • The I/O simulation initially will be of most use since it provides access to simulated discrete inputs (switches) and outputsp ( ) p (lamps)

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