Professional Documents
Culture Documents
Modern industrial control systems are microprocessor-based programmable systems containing hardware
and software for direct digital control, distributed control, programmable control, and PID action. The
systems are designed not only for continuous monitoring and adjustment of process variables, but also for
sequential control, which is an event-based process, and alarm functions.
The PLC can be configured to receive a small number of inputs (both analog and digi- tal), and control
a small number of outputs.
The system also can be expanded with plug-in modules to receive a large number of signals, and
simultaneously control a large number of actuators, displays or other types of devices.
Process
Bus Bus
Input signals Input modules Output modules Control signals
Processor
Memory
Power supplies
Mass storage
Input module
sensor data
Consoles ADC
Loop 1 Process
Bus Multiplexer
Memory
Alarms Demultiplexer ADC
Address
Bus
Printers etc. Processor Loop 2
Network DAC
Control
Address DAC
data
Fieldbus
Output module
Address bus
Enable bus
The operation cycle in the PLC is made up of two separate modes; these are the I/O scan mode,
followed by the execution mode
I/O scan mode is the period when the processor updates the output control signals, based on the
information received from the previous I/O scan cycle after its evaluation of the signals.
The processor then scans the inputs in a serial mode and updates its internal memory as to the
status of the inputs.
Execution mode follows the I/O scan mode. In this mode, the processor evaluates the input data
stored in memory against the data programmed into the CPU. The programs usually are set up using
ladder networks, where each rung of the ladder is an instruction for the action to be taken for each
given input data level. The rung instructions are sequentially scanned, and the input data evaluated.
The processor then can determine the actions to be taken by the output modules, and puts the data
into memory for transfer to the output modules during the next I/O scan mode.
The internal control function of the PID module using an analog loop is shown in Figure 14.10. The
analog temperature signal from the furnace is the input to the module, where it can be converted to a
digital signal and recorded in the computer memory, fed to the PID controller via a gain control. It is then
sent to an analog dif- ferencing circuit, where it is compared to the set point signal from the processor.
The furnace signal and set point are subtracted, giving an analog error voltage. The error voltage is fed to
the PID controller. The controller then produces an analog
PID
PID module
DAC Gain adj.
Processor ADC Analog input T
Heater
Ladder Diagrams
The ladder diagram is universally used as a symbolic and schematic way to represent the
interconnections between the circuit elements used in programming a PLC.
The ladder network also is used as a tool for programming the operation of the PLC. The elements are
interconnected between the supply lines for each step in the control process, giving the appearance of
the rungs in a ladder. A number of programming languages are in common use for controllers, as
follows:
Ladder; Instruction list; Boolean ,flowcharts; Functional , blocks; Sequential function charts ;
High-level languages (ANSI, C, structured text).
Switch Symbols
Figure shows the typical switch symbols with
switch number used for the elements in a
ladder diagram. A number of momentary
action switches are shown. These are, from
top to bottom: a push to close [normally
open (NO)] and push to open [normally
closed (NC)].
Position limit switches sense the position of an object, and close or open when a desired position is
reached. Pressure, temperature, and level switches set limits, and can be designed to open or close when
the set limits are reached. The level switch shown is the lower limit switch (LLS), The upper limit
switch (ULS) or full switch (FS) are not shown. The output from the most common flow meter produces
pulses that go to a counter. The symbol for the meter is shown.
Figure Switch symbols in use for ladder diagrams
Relay and Timing Symbols
A jar-filling system is shown in Figure 14.16. The reservoir contains a mixture of two liquids that must
be heated to a preset temperature before the jars can be filled. When the liquid is below a preset level, the
heater must be Off. The incoming liquids must be turned Off when the reservoir is full, and not turned On
until the liquid level reaches the low-level sensor. The filling of the jars cannot proceed until the liquid
reaches a set temperature and above the lower set level in the reservoir. The con- veyor belt moves the jars
into a filling position that is sensed by a limit switch. When in position, the filling starts. When the jar is
full, a level sensor senses the level, and the liquid to the jar turned off. The conveyor belt is then started,
and the next jar is moved into position for filling. Design a ladder diagram for a PLC to perform the above
Load
control function.
Figure 14.15 Logic ladder equivalent of electronic logic gates.
Ladder rung S01, the NO contacts of the temperature sensor TS1, controls relay CR1 when the set
temperature is reached the relay is energized. Ladder rung S02, the NO contacts of the lower limit
level sensor, will energize relay CR2 when the liquid level reaches the set minimum level.
Ladder rung S03, the NC relay contacts of CR1, are in series with the NC contacts of the full sensor
FS1, whose contacts open when the reservoir is full. CR3 is energized, and opens valves SOL 1 and 2 in
rungs S04 and S05 to fill the reservoir. A set of NO contacts of CR3 is in parallel with the NC set of
contacts of CR1. CR3 contacts are closed as it is energized, so that when the liquid level reaches the
lower limit and LLS1 contacts close, CR1 is energized and its NC contacts in rung S03 will open.
1.
CR3 will remain energized until the FS1 contacts open, which deenergizes CR3 and stops the filling. CR3
will not be reenergized until the liquid drops to the lower set limit.
Ladder rung S06, the NO contacts from CR1 and CR2, are connected in series, so that CR4 only will
be energized when the temperature and liquid levels are above the set minimums, which will prevent filling
of the jars until the contacts are energized.
Ladder rung S06, the NO contacts from CR1 and CR2, are connected in series, so that CR4 only will
be energized when the temperature and liquid levels are above the set minimums, which will prevent filling
of the jars until the contacts are energized.
Ladder rung S07 prevents fuel to the heater from being turned On via solenoid SOL3 when the
liquid level is low, and turns Off the fuel when the set temperature is reached.
Ladder rung S08, the NO contacts of the jar full limit switch LS1, energizes relay CR5 when the jar is
full.
Ladder rung S09, the NO contacts of the jar position limit switch LS2, energizes relay CR6 when the
jar is in a filling position.
Ladder rung S0A, SOL4, is energized to fill the jar when CR4 is energized, the position limit switch is
closed, and the jar is not full.
Ladder rung S0B, CR7, is energized when the jar is full. A set of contacts from CR7 are across the full
contacts CR5 to keep CR7 energized until CR6 is deenergized, which prevents CR7 from deenergizing, due
to the liquid level dropping due to motion.
Ladder rung S0C, the conveyor motor M1, is energized when CR4 and CR7 are energized. When CR7 is
deenergized by CR6, a set of contacts on CR6 will supply power to the motor until the next jar is in
position.