PLC Reviewer PDF
PLC Reviewer PDF
PLC Reviewer PDF
PLCs provide many other benefits including: The processor (CPU) is the “brain” of the PLC.
Increase reliability
More flexibility The I/O system forms the interface by which field de-
Lower cost vices are connected to the controller.
Communication capability
Faster response time The terms field or real world are used to distinguish
Easier to troubleshoot actual external devices that exist and must be physically
Easier to test field devices wired from the internal user program that duplicates the
function of relays, timers, and counters.
A typical PLC can be divided into parts,
These are the central processing unit (CPU), A programming device is used to enter the desired
the input/output (I/O) section, the power supply, and program into the memory of the processor.
the programming device.
A personal computer (PC) is the most commonly used
The term architecture can refer to PLC hardware, to PLC programming device.
software, or to a combination of both.
A program is a user-developed series of instructions
An open architecture design allows the system to be that directs the PLC to execute actions.
connected easily to devices and programs made by other
manufacturers. Open architectures use off-the-shelf A programming language provides rules for combining
components that conform to approved standards. the instructions so that they produce the desired actions.
A system with a closed architecture is one whose design Relay ladder logic (RLL) is the standard programming
is proprietary, making it more difficult to connect to other language used with PLCs. Its origin is based on
systems. electromechanical relay control.
1
Memory is the part of a PLC that stores data, instruc- Examples of addressing schemes include rack/
tions, and the control program. Memory size is usually slot-based, versions of which are used in Allen-Bradley
expressed in K values: 1 K, 6 K, 12 K, and so on. The SLC 500 controllers, tag-based used in Allen-Bradley
measurement kilo, abbreviated K, normally refers to 1000 ControlLogix controllers, and PC-based control used in
units. soft PLCs.
Factors affecting the memory size needed for a In general, rack/slot-based addressing elements include:
particular PLC installation include: Type—The type determines if an input or output is
• Number of I/O points used being addressed.
• Size of control program Slot—The slot number is the physical location of the
• Data-collecting requirements I/O module. This may be a combination of the rack
• Supervisory functions required number and the slot number when using expansion
• Future expansion racks.
Word and Slot—The word and slot are used to iden-
The instruction set for a particular PLC lists the dif- tify the actual terminal connection in a particular I/O
ferent types of instructions supported. Typically, this module.
ranges from 15 instructions on smaller units up to 100 in-
structions on larger, more powerful units Every input and output device connected to a discrete I/O
module is addressed to a specific bit in the PLC’s memory.
Typical PLC Instructions Instruction Operation A bit is a binary digit that can be either 1 or 0. Analog I/O
modules use a word addressing format, which allows the
XIC (Examine ON) . . . . . . . . . . . . Examine a bit for an entire words to be addressed.
ON condition
XIO (Examine OFF) . . . . . . . . . . . Examine a bit for an Memory locations are defined by using base and
OFF condition alias tags. A base tag defines a memory location where
OTE (Output Energize) . . . . . . . . . Turn ON a bit data are stored. An alias tag is used to create an alternate
(nonretentive) name (alias) for a tag. The alias tag is often used to create
OTL (Output Latch) . . . . . . . . . . . Latch a bit (retentive) a tag name to represent a real world input or output.
OTU (Output Unlatch) . . . . . . . . . Unlatch a bit
(retentive) Combination I/O modules can have both input and
TOF (Timer Off-Delay) . . . . . . . . . Turn an output ON output connections in the same physical module.
or OFF after its rung has been OFF for a preset time
interval I/O modules can be 8, 16, 32, or 64 point cards. The
TON (Timer On-Delay) . . . . . . . . . Turn an output ON number refers to the number of inputs
or OFF after its rung has been ON for a preset time or outputs available. The standard I/O module has eight
interval inputs or outputs. A high-density module may have up to
CTD (Count Down) . . . . . . . . . . . Use a software counter 64 inputs or outputs. The advantage with the high-density
to count down from a specified value module is that it is possible to install up to 64 inputs or
CTU (Count Up) . . . . . . . . . . . . . . Use a software outputs in one slot for greater space savings. The only dis-
counter to count up to a specified value advantage is that the high-density output modules cannot
handle as much current per output.
CHAPTER 2: PLC HARDWARE Discrete I/O Modules
COMPONENTS The most common type of I/O interface module is the
discrete type. This type of interface connects
The input/output (I/O) section of a PLC is the section field input devices of the ON/OFF nature such as selec-
towhich all field devices are connected and provides the tor switches, pushbuttons, and limit switches.
interface between them and the CPU.
The classification of discrete I/O covers bit-
A rack is referred to as a remote rack when it is located oriented inputs and outputs. In this type of input or output,
away from the processor module. each bit represents a complete information element in
itself and provides the status of some external contact or
The remote racks are linked to the local rack through a advises of the presence or absence of power in a process
communications module. circuit.
The PLC’s memory system stores information about Backplane power is provided by the PLC
the status of all the inputs and outputs. To keep track of module power supply and is used to power the electronics
all this information, it uses a system called addressing. that reside on the I/O module circuit board.
2
Analog I/O Modules The BASIC or ASCII module runs user-written
BASIC and C programs. These programs are
analog devices represent physical quantities that can have independent of the PLC processor and provide an
an infinite number of values. Typical analog inputs and easy, fast interface between remote foreign devices
outputs vary from 0 to 20 mA, 4 to 20 mA, or 0 to 10 V. and the PLC processor. Typical applications include
interfaces to bar code readers, robots, printers, and
Analog input modules normally have multiple input displays.
channels that allow 4, 8, or 16 devices to be interface to The stepper-motor module provides pulse trains to a
the PLC. The two basic types of analog input modules are stepper-motor translator, which enables control of a
voltage sensing and current sensing. step-per motor
The BCD-output module enables a PLC to operate
Analog voltage input modules are available in two types: devices that require BCD-coded signals such as
unipolar and bipolar. seven- segment displays
The proportional-integral-derivative (PID) module
Unipolar modules can accept an input signal is used in process control applications that
that varies in the positive direction only. incorporate PID algorithms.
Motion and position control modules are used in
The resolution of an analog input channel refers to the applications involving accurate high-speed machining
smallest change in input signal value that can be sensed and packaging operations.
and is based on the number of bits used in the digital COMMUNICATION MODULES-Serial
representation. communications modules are used to establish point-
to-point connections with other intelligent devices for
A transducer converts a field device’s vari- the exchange of data.
able (e.g., pressure, temperature etc.) into a very low-level
electric signal (current or voltage) that can be amplified I/O SPECIFICATIONS
by a transmitter and then input into the analog module.
Typical Discrete I/O Module
The analog output interface module receives from Specifications
the processor digital data, which are converted into a
proportional voltage or current to control an analog field NOMINAL INPUT VOLTAGE This discrete input
device. The transition of a digital signal to analog values module voltage value specifies the magnitude (e.g., 5,
is accomplished by a digital-to-analog (D/A) converter, 24, 230 V) and type (AC or DC) of user-supplied
the main element of the analog output module. voltage that a module is designed to accept.
INPUT THRESHOLD VOLTAGES This discrete
Scaling refers to changing a quantity from one notation to input module specification specifies two values: a
another and involves: minimum ON-state voltage that is the minimum
Engineering units: The units a human uses and voltage at which logic 1 is recognized as absolutely
understands ON;and a maximum OFF-state voltage which is the
Transducer units: Either a voltage or current voltage at which logic 0 is recognized as absolutely
Binary, raw, or machine units: The units the OFF.
processor requires NOMINAL CURRENT PER INPUT This value
specifies the minimum input current that the discrete
SPECIAL I/O MODULES input devices must be capable of driving to operate
the input circuit.
Many different types of I/O modules have been AMBIENT TEMPERATURE RATING This value
developed to meet special needs. These include: specifies what the maximum temperature of the air
surrounding the I/O modules should be for best
The high-speed counter module is used to provide operating conditions.
an interface for applications requiring counter speeds INPUT ON/OFF DELAY Also known as response
that surpass the capability of the PLC ladder program. time, this value specifies the maximum time duration
The thumbwheel module allows the use of required by an input module’s circuitry to recognize
thumbwheel switches for feeding information to the that a field device has switched ON (input ON-delay)
PLC to be used in the control program. or switched OFF (input OFF-delay).
The TTL module allows the transmitting and OUTPUT VOLTAGE This AC or DC value
receiving of TTL (Transistor-Transistor-Logic) specifies the magnitude (e.g., 5 V,115 V, 230 V) and
signals. This module allows devices that produce type (AC or DC) of user-supplied voltage at which a
TTL-level signals to communicate with the PLC’s discrete output module is designed to operate.
processor. OUTPUT CURRENT These values specify the
An encoder-counter module allows the user to read maximum current that a single output and the module
the signal from an encoder on a real-time basis and as a whole can safely carry underload (at rated
stores this information so it can be read later by the voltage).
processor.
3
INRUSH CURRENT An inrush current is a Memory Types
momentary surge of current that an AC or DC output
circuit encounters when energizing inductive, Memory can be placed into two general categories: vola-
capacitive, or filament loads. tile and nonvolatile.
SHORT CIRCUIT PROTECTION Short circuit
protection is provided for AC and DC output Volatile memory will lose its stored information if all
modules by either fuses or some other current- operating power is lost or removed. Volatile memory is
limiting circuitry. easily altered and is quite suitable for most applications
LEAKAGE CURRENT This value specifies the when supported by battery backup.
amount of current still conducting through an output Nonvolatile memory has the ability to retain stored
circuit even after the output has been turned off. information when power is removed accidentally or in-
ELECTRICAL ISOLATION Recall that I/O tentionally.
module circuitry is electrically isolated to protect the
low-level internal circuitry of the PLC from high Random Access Memory (RAM), sometimes
voltages that can be encountered from field device referred to as read-write (R/W) memory, is designed
connections. so that information can be written into or read from
POINTS PER MODULE This specification defines the memory.RAM is used as a temporary storage area
the number of field inputs or outputs that can be of data that may need to be quickly changed.
connected to a single module. Most (Volatile)
BACKPLANE CURRENT DRAW This value Read Only Memory (ROM) stores programs, and
indicates the amount of current the module requires data cannot be changed after the memory chip has
from the backplane. been manufactured. ROM is normally used to store
the programs and data that define the capabilities of
THE CENTRAL PROCESSING UNIT the PLC.ROM memory is nonvolatile, meaning that
its contents will not be lost if power is lost.
A processor module can be divided into two sections: the Erasable Programmable Read-Only Memory
CPU section and the memory section. (EPROM) provides some level of security against
The CPU section executes the program and makes the unauthorized or unwanted changes in a program.
decisions needed by the PLC to operate and communicate EPROMs are designed so that data stored in them can
with other modules. be read, but not easily altered without special
equipment.
The memory section electronically stores the PLC pro- Electrically erasable programmable read-
gram along with other retrievable digital information. onlymemory (EEPROM) is a nonvolatile memory
that offers the same programming flexibility as does
Memory Design RAM. The EEPROM can be electrically overwritten
with new data instead of being erased with ultraviolet
Memory is the element that stores information, pro- light.
grams, and data in a PLC. Flash EEPROMs are similar to EEPROMs in that
they can only be used for backup storage. The main
The user memory of a PLC includes space for the user difference comes in the flash memory: they are
program as well as addressable memory locations for extremely fast at saving and retrieving files.
storage of data. Data are stored in memory locations by a
process called writing. Data are retrieved from memory
by what is referred to as reading. FUNDAMENTALS OF LOGIC
Memory elements store individual Binary principle refers to the idea that many things can
pieces of information called bits (for binary digits). be thought of as existing in only one of two states. These
states are 1 and 0. The 1 and 0 can represent ON or OFF,
Memory location refers to an address in the CPU’s open or closed, true or false, high or low, or any other two
memory where a binary word can be stored. A word usu- conditions.
ally consists of 16 bits. Each binary piece of data is a bit
and eight bits make up one byte. Logic gate is a circuit with several inputs but only
one output that is activated by particular combinations of
Memory utilization refers to the number of memory input conditions.
locations required to store each type of instruction.
4
AND gate is a device with two or more in- The NOT symbol placed at the output of an AND gate
puts and one output. The AND gate output is 1 only would invert the normal output result. An AND gate with
if all inputs are 1. an inverted output is called a NAND gate.
OR GATE
An OR gate can have any number of inputs but only one The Exclusive-OR (XOR) Function
output. The OR gate output is 1 if one or more inputs are 1. An often-used combination of gates is the exclusive-OR
(XOR) function. The output of this circuit is HIGH
only when one input or the other is HIGH, but not both.
The exclusive-OR gate is commonly used for the com-
parison of two binary numbers.
5
An understanding of the technique of writing simpli-
fied Boolean equations for complex logical statements is
a useful tool when creating PLC control programs. Some
laws of Boolean algebra are different from those of ordi-
nary algebra. These three basic laws illustrate the close
comparison between Boolean algebra and ordinary alge-
bra, as well as one major difference between the two:
Commutative Law
A+B=B+A A∙B=B∙A
Associative Law
(A+B)+C=A+(B+C)
(A∙B)∙C=A∙(B∙C)
Distributive Law
A∙(B+C)=(A∙B)+(A∙C)
A+(B∙C)=(A+B)∙(A+C)