Professional Documents
Culture Documents
PID Control and Communication in Siemens PLC Day2
PID Control and Communication in Siemens PLC Day2
COMMUNICATION IN
SIEMENS PLC
Again when the relationship between input and output cannot be represented by
single linear proportionality, rather the input and output are related by some non-
linear relation, the system is referred to as a non-linear control system.
Requirements of a Good Control System
Sensitivity: The parameters of a control system are always changing with the
change in surrounding conditions, internal disturbance, or any other parameters.
This change can be expressed in terms of sensitivity. Any control system should
be insensitive to such parameters but sensitive to input signals only.
Noise: An undesired input signal is known as noise. A good control system should
be able to reduce the noise effect for better performance.
Requirements of a Good Control System
Speed: It is the time taken by the control system to achieve its stable output. A
good control system possesses high speed. The transient period for such a
system is very small.
1.Electric Hand Drier – Hot air (output) comes out as long as you keep your hand
under the machine, irrespective of how much your hand is dried.
2.Automatic Washing Machine – This machine runs according to the pre-set time
irrespective of washing is completed or not.
3.Bread Toaster – This machine runs as per adjusted time irrespective of toasting
is completed or not.
4.Automatic Tea/Coffee Maker – These machines also function for pre-adjusted
time only.
5.Timer Based Clothes Drier – This machine dries wet clothes for pre-adjusted
time, it does not matter how much the clothes are dried.
6.Light Switch – Lamps glow whenever the light switch is on irrespective of light is
required or not.
7.Volume on Stereo System – Volume is adjusted manually irrespective of output
volume level.
Close Loop Control Systems
Control systems in which the output has an effect on the input quantity in such a manner that
the input quantity will adjust itself based on the output generated is called a closed-loop
control system.
An open-loop control system can be converted into a closed loop control system by providing
feedback. This feedback automatically makes suitable changes in the output due to external
disturbance.
In this way, a closed loop control system is called an automatic control system. The figure below
shows the block diagram of the closed loop control system in which feedback is taken from the
output and fed into the input.
Examples of Close Loop control systems
1.Automatic Electric Iron – Heating elements are controlled by the output temperature of the
iron.
2.Servo Voltage Stabilizer – Voltage controller operates depending upon the output voltages of
the system.
3.Water Level Controller – Input water is controlled by the water level of the reservoir.
4.Missile Launched and Auto Tracked by Radar – The direction of the missile is controlled by
comparing the target and position of the missile.
5.An Air Conditioner – An air conditioner functions depending upon the temperature of the room.
6.Cooling System in Car – It operates depending upon the temperature which it controls.
Plus Minus of -loop control systems
An open-loop control system can be converted into a closed loop control system by providing
feedback. This feedback automatically makes suitable changes in the output due to external
disturbance.
In this way, a closed loop control system is called an automatic control system. The figure below
shows the block diagram of the closed loop control system in which feedback is taken from the
output and fed into the input.
Examples of Close Loop control systems
1.Automatic Electric Iron – Heating elements are controlled by the output temperature of the
iron.
2.Servo Voltage Stabilizer – Voltage controller operates depending upon the output voltages of
the system.
3.Water Level Controller – Input water is controlled by the water level of the reservoir.
4.Missile Launched and Auto Tracked by Radar – The direction of the missile is controlled by
comparing the target and position of the missile.
5.An Air Conditioner – An air conditioner functions depending upon the temperature of the room.
6.Cooling System in Car – It operates depending upon the temperature which it controls.
Plus Minus of -loop control systems
Example:
You are driving down the highway and decide to turn on cruise control at 100 km/h. When
your vehicle comes to a hill, the speed drops below the set point.
In this example, the set point is 100 km/h, the actual speed drops to 70 km/h, so the error
value becomes 100 – 70 =30.
The PID controller takes in this error value, and determines how much to control the
output, to bring the process value to the desired set point.
The PID controller will calculate the Error value, then press down on the gas pedal until
your car reaches the 100 km/h set point (the error becomes zero).
Download Factory I/O
Download Factory I/O
Main View Factory I/O
Open Scene Factory I/O
Open Driver Factory I/O for PLCSIM
TIA Portal PID Compact V2
TIA Portal PID Compact V2
Symbol Description
y Output value of the PID algorithm
Kp Proportional gain
s Laplace operator
b Proportional action weighting
w Setpoint
x Process value
TI Integral action time
TD Derivative action time
a Derivative delay coefficient (derivative delay T1 = a × TD)
c Derivative action weighting
TIA Portal PID Compact V2
Call TIA Portal PID Compact V2
You must assign parameters for PID_Compact directly in the multi-instance DB and
commission it via a watch table.
Startup TIA Portal PID Compact V2
When the CPU starts up, PID_Compact starts in the operating mode that is saved in
the Mode in/out parameter. To switch to "Inactive" operating mode during startup, set
RunModeByStartup = FALSE.
Reaction to Error TIA Portal PID Compact V2
In automatic mode and during commissioning, the reaction to error depends on the
SetSubstituteOutput and ActivateRecoverMode variables. In manual mode, the reaction is
independent of SetSubstituteOutput and ActivateRecoverMode. If ActivateRecoverMode =
TRUE, the reaction additionally depends on the error that occurred.
The Error parameter indicates if an error is pending. When the error is no longer pending,
Error = FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is
reset by a rising edge at Reset or ErrorAck.
Reaction to Error TIA Portal PID Compact V2
Input Parameter of TIA Portal PID Compact V2
Input Parameter of TIA Portal PID Compact V2
Add Technology Object TIA Portal PID Compact V2
Input Parameter of TIA Portal PID Compact V2
Output Parameter of TIA Portal PID Compact V2
Output Parameter of TIA Portal PID Compact V2
In/Out Parameter of TIA Portal PID Compact V2
Add Technology Object TIA Portal PID Compact V2
Setting Function and Parameter TIA Portal PID Compact V2
TIA Portal PID Compact Auto Tunning