Professional Documents
Culture Documents
the microprocessor, the machine that was originally used as a relay replacement device only,
evolved into the advanced PLC of today.
Advantages of PLCs
There are six major advantages of using PLCs over relay systems as follows:
Flexibility
Ease of troubleshooting
Space efficiency
Low cost
Testing
Visual operation
Components of a PLC
All PLCs have the same basic components. These components work together to bring
information into the PLC from the field, evaluate that information, and send information back
out to various field. Without any of these major components, the PLC will fail to function
properly.
The basic components include a power supply, central processing unit (CPU or processor), coprocessor modules, input and output modules (I/O), and a peripheral device.
Input/Output Modules
The type of input modules used by a PLC depends on the type of input device. For example,
some respond to digital inputs, which are eitheronoroffwhile others respond to analog signals. In
this case, analog signals represent machine or process conditions as a range of voltage or current
values. The PLC input circuitry converts signals into logic signals that the CPU can use. The
CPU evaluates the status of inputs, outputs, and other variables as it executes a stored program.
The CPU then sends signals to update the status of outputs.
Output modules convert control signals from the CPU into digital or analog values that can be
used to control various output devices. The programming device is used to enter or change the
PLCs program or to monitor or change stored values. Once entered, the program and associated
variables are stored in the CPU. In addition to these basic elements, a PLC system may also
incorporate an operator interface device to simplify monitoring of the machine or process.
Power Supply
The function of the power supply is to provide the DC power to operate the PLC. It is supplied
by single-phase 120 or 240 VAC line power that powers the PLC system. See Figure x.
Figure 5: CPU
The items shown inside the CPU and their basic functions are as follows:
Co-processor Modules
Co-Processor Modules are programmable general-purpose microcomputers that expand the
capability and functionality of a PLC system. A Co-Processor Module is controlled by the CPU,
and interfaces with the CPU as shown above.
Co-Processor Modules monitor and control peripheral systems such as the following:
Alphanumeric Displays
Video Graphics Displays
Communication Networks
Software
The function of Software is to provide instructions to the CPU and Co-Processor Modules.
Physically, software is a large group of logic ones and zeros stored in the memory of the CPU.
Peripheral Device
The function of the peripheral device is to input data and monitor the equipment operation. It
may be a personal computer, handheld programmer, or an operator touch screen.
in this language resemble ladders, with two vertical rails and a series of horizontal rungs between
them.
Ladder logic is widely used to program PLCs, where sequential control of a process or
manufacturing operation is required. Ladder logic is useful for simple but critical control
systems, or for reworking old hardwired relay circuits. As PLCs became more sophisticated, it
has also been used in very complex automation systems. Often the ladder logic program is used
in conjunction with a HMI program operating on a computer workstation.
Manufacturers of programmable logic controllers generally also provide associated ladder logic
programming systems. Typically, the ladder logic languages from two manufacturers will not be
completely compatible; ladder logic is better thought of as a set of closely related programming
languages rather than one language (the IEC 61131-3 standard has helped to reduce unnecessary
differences, but translating programs between systems still requires significant work). Even
different models of PLCs within the same family may have different ladder notation such that
programs cannot be seamlessly interchanged between models.
Ladder logic is a rule-based language rather than a procedural language. A "rung" in the ladder
represents a rule. When implemented with relays and other electromechanical devices, the
various rules "execute" simultaneously and immediately. When implemented in PLC, the rules
execute sequentially by software in a continuous loop (scan). By executing the loop fast enough,
the effect of simultaneous and immediate execution is achieved to within the tolerance of the
time required to execute every rung in the "loop" (the "scan time").
The coil or output of a rung, may represent a physical output, which operates some device
connected to the PLC, or may represent an internal storage bit for use elsewhere in the program.
PLC Operations
Basic Operation
The operation of a PLC is very simple. The processor makes decisions based on a ladder logic
program written by the user (see Topic I). In order to use the program properly, the PLC must
communicate with the various field devices it is tasked with monitoring and controlling. It then
compares the actual conditions of the field devices with what the program instructs them to do,
and updates the output devices accordingly.
Operational Sequence
The operational sequence shown in Figure 6 is as follows:
1. Input switch is pressed
2. Input module places a "1" in the input data table
3. The ladder logic program sees the "1" and caused a "1" to be put into the output data
table
4. The output data table causes the output module to energize associated point
5. The output device energizes
Logic Scan
Ladder logic programs are modeled after relay logic. In relay logic, each element in the ladder will
switch as quickly as possible. Program elements can only be examined one at a time in a fixed
sequence. The ladder logic graphic in Figure 8 is interpreted left-to-right, top-to-bottom. The ladder
logic scan begins at the top rung. At the end of the rung, it interprets the top output first, then the
output branched below it. On the second rung, it solves branches, before moving along the ladder
logic rung.