Unit 3 PLC PDF
Unit 3 PLC PDF
Unit 3 PLC PDF
For example for analog input 0-10V DC with 16-bits PLC will only provide processor
with information about 16 various steps
This example shows the Data Flow Diagram and PLC program for analog in and output.
An analog signal of 0 to 10 volts comes in through a converter to an input module. The
signal is to be Analog Signal in Programmable Logic Controllers 60 scaled to 1/5 of its
value by the CPU and then sent out through an output module.
As IR0017 is the input and OR0024 the output, program when IN0016 is on, will operate
whole scaling procedure. Operation on scaling input signal for proper output The linear
input of 0 to 80 volts is to be scaled into the output as a linear 0 to 21 volts. To scale that
signal we have to find proper mathematical equation. From linear proportions it is clear
that we have to multiply the input by 21/80.
Program, when IN0016 is enabled, will operate the process of multiply by 21 (and save
the information to memory – MR0001) and then divide the result by 80. The other
sequence is inefficient, because of limited memory of data in a PLC, as a digital device.
When the value is first divided PLC will automatically round the value to the nearest
possible for him, which with small quantities produce enormous defect on the result.
Conditioning operation on more than one analog input There are two analog inputs A and
B of 0 to 100 volts. If A exceeds 35 V, output F is to go on; if B exceeds 19 V, output G
is to go on; if both exceed their listed numbers, output H is to go on; otherwise, no
outputs are to be on.
,
Those comparators placed in this example check if the first value is bigger than the
second one. As input A and B, there are IR0017 and IR0018 used. For outputs F,G,H
there are DO0005, DO006 and DO007 used accordingly.
To speed up the return to the process control, point, derivative control is added to the
proportional-integral system. Derivative control, also known as rate control, produces a
corrective signal based on the rate of change of the signal. The faster the change from the
set point, the larger the corrective signal. The derivative signal is added to the proportional-
integral system. This gives us faster action than the proportional-integral system signal
alone. A typical PID control system is shown in block diagram form in figure.This
configuration is the commonly used parallel type. The controller output signal of figure -1
is utilized through a control system to return the process variable to the set point.
To understand the PID module, refer to figure 2 The PLC sends a set-point signal to the
PID module. The module is made up of three elements: the proportional, integral, and
derivative circuits. The proportional circuit creates an output signal proportional to the
difference between the measurement taken and the setpoint entered in the PLC.
The integral circuit produces an output proportional to the length and amount of time the
error signal is present. The derivative circuit creates an output signal proportional to the
rate of change of the error signal.
The input transducer generates an output signal from the process being controlled
and feeds the measured value to the PID module. The difference between the set point
coming from the PLC and the measured value coming from the input transducer is the error
signal. Some sort of correcting device, such as a motor control, valve control, or amplifier,
takes the error signal and uses it to control the correction sent to the process being
controlled.
When a control system is designed such that it receives operating information from the
machine and makes adjustments to the machine based on this operating information, the
system is said to be a closed-loop system, as shown in Figure 10-1. The operating
information that the controller receives from the machine is called the process variable
(PV) or feedback, and the input from the operator that tells the controller the desired
operating point is called the set point (SP). When operating, the controller determines
whether the machine needs adjustment by comparing (by subtraction) the setpoint and the
process variable to produce a difference (the difference is called the error), The error is
amplified by a proportional gain1 factor kp in the proportional gain amplifier (sometimes
called the error amplifier). The output of the proportional gain amplifier is the control
variable (CV) which is connected to the controlling input of the machine. The controller
takes appropriate action to modify the machine’s operating point until the control variable
and the set point are very nearly equal.
It is important to recognize that some closed loop systems do not need to be completely
proportional (or analog). They can be partially discrete. For example, the thermostat that
controls the heating system in a home is a discrete output device;
Some closed loop control systems are totally proportional. Consider, for example, the
automobile cruise control.
When a digital control device (such as a PLC) is used in a control system, the closed loop
system may be partially or totally digital. In this case, it still functions as a proportional
system, but instead of the signals being voltages or currents, they are digital bytes or words.
The error signal is simply the result of digitally subtracting the SP value from the PV value,
which is then multiplied by the proportional gain constant kp. Although the end result can
be the same, there are some inherent advantages in using a totally digital system. First,
since all numerical processing is done digitally by a microprocessor, the calibration of the
fully digital control system will never drift with temperature or over time. Second, since a
microprocessor is present, it is relatively easy to have it perform more sophisticated
mathematical functions on the signals such a digital filtering (called digital signal
processing, discrete signal processing, or DSP), averaging, numerical integration, and
numerical differentiation.
The performing advanced mathematical functions on the closed loop signals can vastly
improve a system’s response, accuracy and stability. Whenever the closed loop control is
performed by a PLC, the actual control calculations are generally performed by a separate
coprocessor so that the main processor can be freed to solve the ladder program at high
speed. Otherwise, adding closed loop control to a working PLC would drastically slow the
PLC scan rate.
To see why these are potential problems, consider a closed-loop system that controls the
speed of a DC motor as shown in Figure 10-2. In this system, the output of the proportional
gain amplifier powers the DC motor. The PV for the system is provided by a tacho-
generator connected to the motor shaft. The tacho-generator simply outputs a DC voltage
proportional to the rotating speed of the shaft. It appears that if we make the SP the same
as the tacho-generator’s output (the PV) at the desired speed, the controller will operate the
motor at that speed. However, this is not the case.
When the operator inputs a new SP value to change the motor speed, the control system
begins automatically adjusting the motor’s speed in an attempt to make the PVmatch the
SP. However, if the proportional gain amplifier has a low gain kp, the response to the new
SP is slow, sluggish, and inaccurate. The reason for this is that as soon as the motor begins
accelerating, the tacho-generator begins outputting an increasing voltage as the PV. When
this increasing PV voltage is subtracted from the fixed SP, it produces a decreasing error.
This means the CV will also decrease which, in turn, will cause the motor speed to increase
at a slower rate. This causes the response to be sluggish. Additionally, in our example, let
us assume that in order to operate the motor in the desired direction of rotation the CV must
be a positive voltage. This means the error must also be some positive voltage. The only
way the error voltage can be positive is for the PV voltage to be less than the SP. In other
words, the motor speed will “level off” at some value that is less than the SP. It will never
reach the desired speed.
Figure 10-3 is a graph of the speed of a DC motor with respect to time. the motor is
accelerated with low proportional gain. the motor acceleration is reduced as the motor
speed increases which causes the system to take over 90 seconds to settle,. This error is
called offset
In an attempt to improve both the sluggish response and the offset in our motor speed
control, we will now increase the proportional gain kp.
However, this system still takes more than a minute to settle and the offset is more
We will now try a large increase in the proportional gain. Figure 10-5 shows the
response of our system with the gain kp increased by a factor of 10. here that the offset is
smaller however the response now oscillates to both sides of the SP before finally
settling. This decaying oscillation is called hunting It can potentially damage machines
with the overstress of mechanical systems and the overspeed of motors.
If we increase the proportional gain even more, the system becomes unstable. Figure 10-6
shows which is called oscillation. It is extremely undesirable and Any further increase in
the proportional gain will cause higher amplitudes of oscillations.
INDUSTRIAL PROCESS EXAMPLES
The PLC can be used in industrial departments of all the developed countries in industries
like chemical industry, automobile industry, steel industry and electricity industry. Based
on the development of all these technologies, functionality and application, the scope of
the PLC increases dramatically.
1) PLC in Glass Industry
With the development of PLC and increasing demand in the real world, the control mode
of the programmable-logic controller with an intelligent device is applied in the glass
industry. In making of a float glass, PLC itself cannot finish some controlling tasks because
of the complexity of the control system and processing of huge data. For the production of
glass, we make use of bus technology to construct the control mode of a PLC with a
distributed-control system. This control system deals with analog controlling and data
recording; the PLC is also used for digital quality control and position control.
2) PLC in Cement Industry
Along with the best-quality raw materials, the accurate data regarding process variables,
especially during mixing processes within the kiln, ensures that the output provided should
be of the best possible quality. Nowadays a DCS with bus technology is used in the
production and management industry. By using this existing DCS control system, the PLC
is in user mode of SCADA. This mode comprises PLC and configuration software. This
SCADA mode comprises the PLC and host computer. The host computer consists of slave
and master station. The PLC is used for controlling the ball milling, shaft kiln and Kiln of
coal.
3) Paper industry
In the paper industry, PLCs are used in various processes. These include controlling the
machines that produce paper products at high speeds.
For instance, a PLC controls and monitors the production of book pages or newspapers in
offset web printing.
4) CNC Machine
1) CNC machine tools using a variety of switch quantity control the movement of the
machine tool, including the control switch, trip switch, close to switch, pressure switch,
temperature switch, etc., through all kinds of switch signal to the PLC, and after PLC logic
operations, to control the signal output to the object. (2) PLC output signal via the relay,
contactor,
hydraulic or pneumatic solenoid valve, control knife library manipulator and rotary center
workbench, etc. (3) PLC collects all kinds of fault signal, the warning signs in the
appropriate position, issued by the CNC system alarm or alarm text signal. (4) PLC is to
achieve CNC machine tools (MT) of switch control through the communication between
the CNC system(CNC) and the machine tool (MT), namely the exchange of information
between PLC and CNC, PLC and MT.
5) PLC’s are used in wide range of industries like petrochemical, biomedical, distillery
,beverages, food industries and any other industry that seek less human help to produce
the product. With the help of PLC some of the process we can do is listed below
1.Continuous bottle filling system
2.Batch mixing system
3.stage air conditioning system
4.Traffic control
PLC INTERFACE
PLC interfaces numerous types of external electrical and electronic signals. These signals
can be AC or DC currents or voltages. Typically, they range from 4 to 20 milliamperes
(mA) or 0 to 120VAC, and 0 to 48VDC. These signals are referred to as I/O
(input/output) points. Their total is called the PLC's I/O capability. From an electronic
point-of-view, this number is based on how many points the PLC's CPU is able to look
at, or scan, in a specified amount of time. This performance characteristic is called scan
time. From the practical perspective of the user, however, the number of I/O modules
needed as well as the number of I/O points contained on each I/O module will drive what
the system's I/O capability should be.
It's important to have sufficient I/O capability in your PLC system. It's better to have
more than less so that, when more I/O points are required at a future time, it's easier to
write the existing spare I/O points into the software (since the hardware is already there).
There's no harm to the operating system in having spare I/O points; the software can be
programmed to ignore them, and these points will have a negligible effect on the PLC's
scan time.