Ch05 Basics of PLC Programming
Ch05 Basics of PLC Programming
Programmable
Logic
Controllers
Frank D.
Petruzella
Sixth Edition
© McGraw Hill LLC. All rights reserved. No reproduction or distribution without the prior written consent of McGraw Hill LLC.
Chapter 5
Basics of PLC
Programming
© McGraw Hill LLC Access the text alternative for slide images.
8
Type of Data
Program Scan
© McGraw Hill LLC Access the text alternative for slide images.
16
Speed of scan
The time it takes to complete a scan cycle is a
measure of how fast the controller can react to
changes in inputs.
If a controller has
to react to an input
signal that changes
states twice during
the scan time, it is
possible that the
PLC will never be
able to detect this
change.
Access the text alternative for slide images.
Hardwired relay
control circuit
Equivalent ladder
diagram program
© McGraw Hill LLC Access the text alternative for slide images.
26
Instruction List programming
Instruction list programming language consists
of a series of instructions that refer to the basic
AND, OR, and NOT logic functions.
Hardwired relay
control circuit
Equivalent instruction
list program
© McGraw Hill LLC Access the text alternative for slide images.
27
Functional block diagram
Functional block diagram programming uses
instructions that are programmed as blocks
wired together to accomplish certain functions.
© McGraw Hill LLC Access the text alternative for slide images.
28
Ladder and functional block
Ladder diagram and functional block diagram
programming used to produce the same logical
output.
Ladder diagram
Equivalent
function block
diagram.
Access the text alternative for slide images.
Ladder diagram
Equivalent
structured text
program.
Access the text alternative for slide images.
A true logic
path is
established by
the input
instructions in
the rung.
© McGraw Hill LLC Access the text alternative for slide images.
43
Action of the field device and PLC bit.
A signal
present
makes the
NO bit (1)
true; a signal
absent makes
the NO bit
(0) false. The
reverse is
true for an
NC bit.
Access the text alternative for slide images.
A complete closed
path is referred to
as having logical
continuity.
Instruction Addressing
Branch Instructions
Either A or B provides a
true logical path to all
three output instructions:
C, D, and E.
Additional input
instructions can be
programmed in the
output branches.
Access the text alternative for slide images.
It is possible, however,
to program a logically
equivalent branching
condition.
Reprogrammed to eliminate
vertical contact.
Reprogrammed circuit.
© McGraw Hill LLC Access the text alternative for slide images.
58
Section 5.7
Programming
Examine If Closed and
Examine If Open
Instructions
© McGraw Hill LLC 61
Examine If Closed (XIC) instruction
© McGraw Hill LLC Access the text alternative for slide images.
73
Section 5.10
Modes of Operation
www.mheducation.com
© McGraw Hill LLC. All rights reserved. No reproduction or distribution without the prior written consent of McGraw Hill LLC.