8.1 8th - PID-Superheat - (FreeCourseWeb - Com)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

PLC

Programming
for refrigerator,
AC and
Heat Pump
PID controller for Superheat

http://www.free-powerpoint-templates-design.com
Lock down alarm for Refrigerator
If the temperature inside the refrigerator is 4℃ and above, the compressor
shall be started.

If the temperature inside the refrigerator is 1℃ and below, the compressor


shall be started.

If the temperature inside the refrigerator is 4℃ and above for more than 5
seconds, a high temperature alarm shall be generated.

If the temperature inside the refrigerator is 1℃ and below for more than 5
seconds, a low temperature alarm shall be generated.

If there are 3 THA or TLA, the lock down alarm shall be generated. And it stops
the compressor.

You need to add a reset button which can clear the lock down alarm.

The compressor shall be controlled according to the temperature sensor from


1,600 rpm to 6,000 rpm with a PI controller. (P gain: 30, I value: 2 seconds)

You control an EXV (Electric Expansion Valve) which controls superheat with 0
to 100% range. The required superheat is above 8 ℃. You should use a PI
controller with 20% of P gain and 3 seconds of I value. The EXV shall open
50% when it is in the manual mode.

Let’s do practice.
Coding - 1

1. Click “PID_comp” program in the


“Recent projects” to open it again.
2. Copy and paste the “PID_0” network.

3. Add “SP_1”, “KP_1”, “superheat”, “actual_temp”,


“limits_1”, “overflow_1” and “man_1” variables.
Coding - 2

1. Assign variables into “PID_1”.

3. Change “Y_MANUAL”, “Y_MIN” and “Y_MAX”.

2. Add “SUB” math operator and assign “acutal_temp”.


Coding - 3

1. Insert a network.

2. Move “SUB” math operator and assign “superheat”.


Coding - 4

1. Copy and paste sliders.

2. Copy and past a push button for manual.

3. Assign variables.
Coding - 5

1. Assign “superheat” variable.

2. Assign “man_1” variable.


Coding - 6

1. Assign “SP_1” variable.


Simulation
Include visualization

We will study how to do simulation after finishing coding. And we will do it with visual method by
using visualization function of CODESYS.
Simulation - 1

3. Click “Yes” to download the program into the virtual PLC.


1. Click “Build”

2. Click “Login”

4. Click “Start”.
Simulation - 2

2. Click “Login”

1. PID_1’s “Y” value (output) increases when the superheat is less than sp_1.
Simulation - 3

1. PID_1’s “Y” value (output) decreases when the superheat is bigger than sp_1.
Simulation - 4

1. PID_1’s “Y” value (output) is 50 when the manual button is pressed.


THANK YOU
PID controller for Superheat

All images in this PPT were downloaded from www.shutterstock.com with a valid license.

You might also like