Professional Documents
Culture Documents
Order no.: Description: Designation: Status: Author: Graphics: Layout: MPS PA Compact Workstation Closed loop control with Simatic PLC CPU 313C Handling description 05/2008 Wolfgang Eckart, Festo Didactic GmbH & Co KG Wolfgang Eckart, Festo Didactic GmbH & Co KG Festo Didactic GmbH & Co KG
Festo Didactic GmbH & Co., D-73770 Denkendorf, 2008 Internet: www.festo.com/didactic http://www.festo.com/didactic/de/ProcessAutomation e-mail: info@adiro.com All rights reserved, including translation rights. No part of this publication may be reproduced or transmitted in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of Festo.
Table of Contents
Table of Contents _____________________________________________________ 3 Introduction__________________________________________________________ 5 Introduction _______________________________________________________ 5 Training contents___________________________________________________ 6 Safety instructions__________________________________________________ 7 PLC control general information _______________________________________ 8 Software Installation___________________________________________________ 9 Workstation set-up ___________________________________________________ 13 1. 2. 2.1 2.2 2.3 2.4 2.5 2.6 Installation of Step 7 _______________________________________ 9 Preparation of the workstation ______________________________ 13 Connection of the PLC______________________________________ 13 Fill up the tank 101 ________________________________________ 14 Close of the manual hand valves _____________________________ 15 Delete the contents of the CPU ______________________________ 16 Hardware configuration of the PLC ___________________________ 23 Edit the Symbol Table______________________________________ 41
Table of Contents
Definition of process variables __________________________________________ 51 3. 3.1 3.2 3.2.1 3.2.2 3.2.3 3.2.4 Normalisation and definition of the process variables factors______ 51 Adjustment of the ultrasonic sensor __________________________ 57 Definition of the normalisation factor _________________________ 68 Normalisation factor level control ____________________________ 68 Normalisation factor flow control ____________________________ 69 Normalisation factor pressure control_________________________ 97 Normalisation of the temperature factor______________________ 106
2-Step Control ______________________________________________________ 107 4. Level control by a 2-step controller __________________________ 107
Continuous Control __________________________________________________ 121 5. 5.1 Continuous control _______________________________________ 121 Continuous pressure control _______________________________ 124
Introduction
Introduction
The Festo Didactic learning system for process automation is designed to meet a number of different training and vocational requirements. The systems and stations of the learning system for process automation facilitate industry-orientated vocational and further training and the hardware consists of didactically suitable industrial components. The Compact Workstation of the learning system for process automation provides you with an appropriate system for practice-orientated tuition of the following key qualifications Social competence, Technical competence and Methodological competence Moreover, training can be provided to instill team spirit, willingness to cooperate and organisational skills. Actual project phases can be taught by means of training projects, such as: Planning, Assembly, Programming, Commissioning, Operation, Maintenance and Trouble Shooting
Software installation
Training contents
Training contents covering the following subjects can be: Process Engineering Reading and drawing of flow charts and technical documentation Electrical technology Correct wiring of electrical components Sensors Correct use of sensors Measuring of non-electrical, process and control variables Closed-loop control technology basics of closed-loop control technology Extension of measuring chains into closed control loops Analyze a closed-loop system P, I, D-control Optimize a closed-loop system Closed-loop controller Configuration, assigning operation parameters and optimization of a closed-loop controller Commissioning Commissioning of a closed-loop system Commissioning of a process engineering system Trouble Shooting Systematic trouble shooting on a process engineering system Maintenance of a process engineering system Operation and observation of a process
Software installation
Safety instructions
General Participants must only work on the station under the supervision of an instructor. Observe the data in the data sheets for the individual components, in particular all notes on safety! Electrics Electrical connections and dis-connections are only allowed when when the power is disconnected! Use only low voltage of up to 24 V DC. Pneumatics If you use pneumatic components within your system, please do not exceed the permissible pressure of 8 bar (800 kPA). Do not switch on compressed air until you have established and secured all tubing connections. Do not disconnect air lines under pressure. Particular care is to be taken when switching on the compressed air. Cylinders may advance or retract as soon as the compressed air is switched on. Mechanics Securely mount all components on the plate. No manual intervention unless the system is in Stop mode. The pump can be mounted horizontally or vertically. If mounted, the output of the pump must point upwards. For further information please refer to the corresponding data sheet of the pump. Process engineering Before filling the tanks with water, switch of the 24 VDC power supply and disconnect the 220 (230) VAC power from the socket The use of tap water in quality of drinking water (recommended), ensures a prolonged maintenance-free operation of the system (proportional valve and pump). The maximum operating temperature of the tanks must not exceed +40 C. Do not operate the heating unit unless the heating element is fully immersed in fluid. Do not operate the piping system with a system pressure higher than 0,5 bar. Do not operate the pump without fluid, running dry or used for sea water or contaminated fluids. Please empty fluids from the system (tanks, piping, close valves) before you make changes at the piping system. It is possible to drain the fluids inside the workstation by opening the manual hand valve V105
Software installation
The use of a PLC S7 (CPU 313C or CPU 314C or CPU 314C-2DP) with the software Step 7 offers you the possibility to measure, analyze and control all digital and analog signals of the workstation. With the Compact Workstation of the learning system for process automation you have the possibility to work with the following closed loop process: level controlled system flow rate controlled system pressure controlled system temperature controlled system
Software Installation
1.
Installation of Step 7
Please insert the Step 7 CD into the drive and follow the screen to install the entire programs of Step 7. Mostly you dont need to install Adobe Reader because it already exists in most cases. So please deactivate the installation of Adobe. If a message appears to install the Authorisation of the Step 7 software, please choose the menu No Transfer License key later After the installation of Step 7 is complete, please install the iMAP software and follow the screens. If a message appears to install the Authorisation of iMAP software, please choose the menu No Transfer License key later After the installation is complete, please insert the USB flash drive of Step 7 in an USB port and wait until Windows is ready to use it. Proceed like shown on the next page and ff:
Start
Simatic
License Management
Software installation
(Click on the Removable drive) (click on the SIMATIC Step 7 Professional Edition Floating licens) License Key Transfer (dont get confused because the window is in german language, the command is Transfer in English)
10
Software installation
(Choose your local drive )C:) OK (after the transfer is finished click on the local drive in the left window and check if the license has been transferred. To remove the license from the local drive C, please proceed accordingly)
11
Software installation
12
Workstation set-up
2.
After unpacking the Compact workstation, please proceed to set-up the system as follows: Required hardware: PC (minimum: Pentium 200MHz, 32MB RAM, 600x800 graphics) with USB interface and a CD-ROM drive 24V power supply unit for the PLC PLC (CPU 313C or CPU 314C or CPU 314C-2DP Edutrainer) Signal unit
2.1
1 2 3 4 5
Connection of the digital in- and outputs of the workstation with the PLC Connection of the signal unit digital in- and outputs with the PLC Connection of the analog in- and outputs of the workstation with the PLC PC/MPI data cable connection of the PLC with the PC Connection to the power supply
13
Workstation set-up
2.2
Fill up the tank 101 After all cable connections have deen done, please fill the tank 201 with water until the safety sensor B214 can detect water. Please switch off the 24 VDC power supply and disconnect the 220 (230 VAC) power line from the socket during the filling process.
14
Workstation set-up
2.3
Close of the manual Please close all manual hand valves within the system as shown within the picture. hand valves
15
Workstation set-up
2.4
Delete the contents After the example project has been running perfectly, we are going to start with our of the CPU own projects. To do so, we have to delete the entire contents of the CPU memory first. Please follow the screen shots to do so. Before you delete the CPU memory make sure, that you have the example projects already saved on a data drive (CD or hard drive). Before we proceed, please close the last active project.
PLC
16
Workstation set-up
Blocks
17
Workstation set-up
Yes
18
Workstation set-up
Yes
19
Workstation set-up
OK
20
Workstation set-up
(The SFC and SFB modules can not be deleted, only the user programs have been deleted, by means of the CPU is empty now)
21
Workstation set-up
22
Workstation set-up
2.5
Hardware Please define the PLC-hardware used within your station with the STEP 7 software. configuration of the After the configuration, please download it into the PLC. PLC To do so, please edit a new project and name it PCC_Hw Remark: Please check what kind of PLC and additional modules you use. Refer to the following page. We are going to show the hardware configuration for the Compact Workstation using a CPU 313C as an example for all other stations. Please use the following names of the Step 7 project for all other stations: Distribution station Testing station Buffer station Seperating station Pick&Place station Fluidic Muscle station Handling station Sorting station Storage station Filling station Packaging station In/Out station AFB ASRS MPS 500 ASRS Conveyor station MPS PA Compact Workstation MPS PA Pressure station MPS PA Temperature station MPS PA Flow station MPS PA Level station MPS PA Filtration station MPS PA Mixing station MPS PA Reactor station MPS PA Quality Probe station MPS Bulk Gravity Feeder station MPS Bulk Vibration Feeder station MPS Bulk Quality Control station MPS Bulk Dosage station = = = = = = = = = = = = = = = = = = = = = = = = = = = = Dis_Hw Tes_Hw Buf_Hw Sep_Hw P_P_Hw FMS_Hw Han_Hw Sor_Hw Sto_Hw Fil_Hw Pac_Hw I_O_Hw AAS_Hw MAS_Hw Con_Hw PCC_Hw PCP_Hw PCT_Hw PCF_Hw PCL_Hw PAF_Hw PAM_Hw PAR_Hw PAQ_Hw BGF_Hw BVF_Hw BQC_Hw BDO_Hw
23
Workstation set-up
As an example of how to find the name of the CPU and the corresponding order number, please refer to the following picture
1 2 3 4 5 6
= = = = = =
Name of the CPU here CPU 313C-2DP Order number of the CPU Name of additional I/O module Order number of the additional I/O module Name of additional I/O module Order number of the additional I/O module
Remark: Please make a list of modules you use including the order number.
24
Workstation set-up
File
New
25
Workstation set-up
PCC_Hw (type in the name of the project here PCC_Hw for MPS PA Compact Workstation as an example for all other stations) (please check the directory it should be C:\Programs\Siemens\Step7\S7_Proj) OK
26
Workstation set-up
Insert
Station
27
Workstation set-up
+ PCC_Hw-
28
Workstation set-up
+ SIMATIC 300
+ RACK-300
29
Workstation set-up
+ CPU 313C (Now you are going to need your list of what kind of CPU do you use. Please choose the correct CPU with the corresponding order number and place it onto slot number 2 here CPU 313C with the order number of 6ES7 313-5BE010AB0as an example)
30
Workstation set-up
(Now we are going to define some contents of the CPU itself) CPU 313C (double click on your CPU you use here CPU 313C-2DP) Cycle/Clock Memory (activate the Clock memory and type in the address of the clock memory here 100, which is free defineable)
31
Workstation set-up
Retentive Memory (type in a 0 like shown in the screen shot, because we dont want to use any memory resistant Memories, Timers or Counters)
32
Workstation set-up
Cycle Interrupt
OK
33
Workstation set-up
Station
34
Workstation set-up
PLC
Download
35
Workstation set-up
OK
36
Workstation set-up
OK
37
Workstation set-up
OK
38
Workstation set-up
Yes
39
Workstation set-up
Station
Exit
40
Workstation set-up
2.6
Instead of using the real hardware addresses within the PLC programming, its much better to use so called symbols for the in- and outputs. To use the symbolic addressing, its much easier to understand and read the program. This is essential, because a lot of staff working in a company using the programs, but didnt edit the programs by themselve. Please use the following list of all inputs and outputs used at your station.
41
Workstation set-up
In the following exercises we are going to use only some of the in- and outputs listed below.
Start button Touch panel Stop button Touch panel Auto/Manu switch Touch panel Reset button Touch panel
Analog input channel 0 level sensor Analog input channel 1 flow sensor Analog input channel 2 pressure sensor Analog input channel 3 temperature sensor
42
Workstation set-up
Solenoid ball valve Output = 0 Heating off, Output = 1 Heating on Pump preset = 0=digital/1=analog Pump digital, only when PumpPreset = 0 Activate proportional valve
Light inside Start button Touch panel Light inside Reset button Touch panel Light Q1 Touch panel Light Q2 Touch panel
AQPump AQValve
43
Workstation set-up
+ SIMATIC 300(1)
+ CPU 313C
S7 Program(1)
44
Workstation set-up
45
Workstation set-up
(After all in- and outputs have been edited, save the Symbol Table) Symbol Table Save Symbol Table Exit
46
Workstation set-up
Remark: To prepare for the project, we are going to save the existing project PCC_Hw with a new name of PCC_PrLe for project level control.
47
Workstation set-up
File
Save As
48
Workstation set-up
OK
49
Workstation set-up
(Now we have a new project with the hardware configuration and the Symbol Table but with a new name)
50
3.
All analog voltage signals are working in the range of 0 10 V without focussing on the real process value like mm of water for the level control, or l/min for the flow or mbar for the pressure or C for the temperature. By loading the analog input signals inside the CPU, the relation of the voltage and the decimal value of the peripheral input word (PIW xxx) inside the CPU is as follows.
By means of, if the analog signal at the level sensor for example is 5 V, the value inside the CPU is 13824. The following screen shot shows that example. Remark: All of the following screen shots have been done using a CPU 313C and a standard Control panel. If you use another PLC specification, the handling is the same!!
51
Example: The value of the flow sensor (AI_Flow) with 5 V signal at the sensor
52
Example: The value of the flow sensor (AI_Flow) with 10 V signal at the sensor
53
Of course it is quite difficult to work with the PIW analog input values inside the CPU, it would be much better, if we could normalise them to the real process value: l/min flow control To do so, we have to calculate the relation between the analog voltage signals and the real process variable like:
54
Example pressure sensor: W activated the pump digitally and checked the value of the analog input (pressure sensor). We found the following relation: Pressure sensor: AI PIW 0 19658 Process variable [mbar] 0 275
55
So if you will see a value of the pressure sensor (AI_Pres) in Step 7 of for example 15872
means:
56
3.1
The ultrasonic sensor has to be adjusted to show the value of the level of the water in the tank. If the tank is empty, the ultrasonic sensor must give an analog signal of 0 V. Based on the below formula, we have to edit a program within the CPU which enables us to calculate the real process variable in mm height. This program will be written in the OB1 (Organisation Block 1) and is based on the relation below. Level sensor: AI PIW 0 27648 Process variable [l] 0 10
Please follow the screen shots step by step to edit, download and test the program. The value of the the level sensor comes as a Word in Integer. To be able to calculate with Real numbers, we have to transfer the Word into an Integer Double Word first, before we transfer that value to Real numbers.
57
+S7-Program(1)
Blocks
58
OK
59
(Edit the program like shown within the screen shot) The real or Floating point numbers like 300 or 27648 can be edited simply by type 300.0 and 27648.0 and the numbers will change to Floating points automatically.
60
File
Save
61
PLC
Download
62
Now please fill 4.5 liter of water into the tank 102
and watch online how the value of the level sensor changes. Remark: The photo shows the old tank designation of mm instead of liter!!! Remark: Because based on the tank construction, the value of the ultrasonic sensor and the liter of water in the tank is not 1:1, we have to fill only 4.5 liter into the tank = 5 V at the sensor.
63
Debug
64
Representation
65
Now adjust the ultrasonic sensor by opening the screws and move the sensor up or down until you can see the value which is shown in the screen shot, by means of 5 liter of water. After the sensor is adjusted, please close the screws again.
66
67
3.2
To be able to see the real process variable later on within the online mode of the continuous control, we have to define a so called factor which is based on %, because the analog input variable of the Function Block which is used to control the process continuously is based on %. Level sensor: AI PIW [%] 0 100 AI PIW 0 27648 Process variable [mm] 0 10
3.2.1
Umax Process Level control Flow control with pump Pressure control Temperature control 10,00 V
Xmax Process 10 l
Factor f 0,1
68
3.2.2
For the flow control, we have to find out first, what is the maximum flow the pump can achive. To do so we are going to activate the pump digitally and pump water from tank 101 to tank 102 for exact 1 minute and then we switch off the pump. After switching off the pump, we have to measure the difference in water height reached in 1 minute. Please open the manual valve 101 to proceed. To activate the pump digitally, we we are going to use the project PCF_PrFl. Please follow the instructions on the screen shots below to do so step by step.
+PCC_PrFl
+SIMATIC 300(1)
+CPU 313C
+S7 Program(1)
Blocks
69
(Double click on OB1 and change the language to FBD) (Change the comment of the Network 1 like shown within the screen shot) (click under the network to activate the programming frame)
70
View
71
View Overviews (activates the catalog of available Function Block Modules if it is not active already)
72
We are goint to edit a small program to activate the pump digitally by pressing the START button. As long as we press the START button, the pump shall be activated digitally. According to the list of in- and outputs, we have to activate the output of the pump by pressing the START button. This function as long as is called Assignment. Please follow the screen shots step by step to edit this project.
+Bit logic Assign (double click or move the module into the frame by keeping the left mouse button pressed)
73
(Click on the input) (right mouse button) Insert Symbol (to insert a symbol which we defined at the very beginning during the hardware configuration)
74
START (double click. If you use the CPU 315F-2 PN/DP version with a Touch panel, the real hardware addresses will vary, but the symbols are all the here Start)
75
(Click on the output) (right mouse button) Insert Symbol PumpDig (double click. If you use the CPU 315F-2 PN/DP version with a Touch panel, the real hardware addresses will vary, but the symbols are all the same herePumpDig)
76
Insert
Network
77
78
File
Save
79
PLC Download (to download the program into the CPU. Follow the instructions on the screen to proceed until the download is complete)
80
Debug
81
(If you press the START button you will here the pump is working and water is flowing from tank 201 to tank 102 of the Level control station. You also can see the function of that program online inside the CPU). It might happen, that the tank 102 is totally empty, so please fill the tank first with exactly 5 liter of water by pressing the START button. If you reach 5 liter of water, release the START button. Now we have a defined starting point of 5 liter water in tank 102. Now press and hold the START button again for exactly 1 minute. After exactly 1 minute, please reflease the START button and check the height of the water in the tank 102 of the Level control station.
82
In our experiment, we found out, that the height of the water reaches the level of 9.95 liter, by means of 9.95 l 5 l (starting point) = 4.95 l Xmax Process = 4.95 l / min The next is, to find out the maximum value of flow sensor AI_Flow if the pump is working digitally. To do so, we have to add another network to our program. Please follow the screen shots to do so:
Debug
83
Insert
84
(Define the network comment like shown within the screen shot)
85
(Click under the Network to activate the programming frame) -Bit logic (to close the menu of the Bit logic modules) + Move Move (double click)
86
Insert symbol
87
(Negate the EN = enable input, because we want to permanently load the Flow sensor value to the Memory Double Word MD20)
88
OUT (Click on OUT) (type in the hardware address of the Memory Double Word we want to use here MD20) ENTER
89
File
Save
90
PLC Download (follow the instructions on the screen until the download is finished)
91
Debug
92
Representation
93
(By pressing and holding of the START button you can see that the pump is working digitally and you can see the maximum value of AI_Flow which is 17750 in our experiment. After finish, please deactivate the monitor mode) Debug Monitor File Exit
94
Flow sensor:
95
Flow sensor: AI PIW [%] 0 64.2 AI PIW 0 17750 Process variable [l/min] 0 4.95
64.2 % of maximum flow rate equals a maximum voltage of the process of: 17750 / 27648 * 10 V = 6.42 V Umax Process Level control Flow control with pump Pressure control Temperature control 10,00 V 6,42 V Xmax Process 10 l 4,95 l/min PIW max 27648 17750 Factor f 0,1 0,077
96
3.2.3
For the pressure control, we have to find out first, what is the maximum pressure the pump can achive. To do so we are going to activate the pump digitally and pump water from tank 101 to tank 101. Please open the manual valves 103 and 108 to proceed. To activate the pump digitally, we have to save the project PCC_PrFl as a new project named PCC_PrPr. After saving is finished, please open OB1 of PCC_PrPr.
(Change the network comment and change the Network 2 like shown within the screen shot)
97
File
Save
98
PLC
99
Debug
100
Representation
Decimal
101
(By pressing and holding of the START button you can see that the pump is working digitally and you can see the maximum value of the pressure is approx. 275 mbar in our experiment)
102
(By pressing and holding of the START button you can see that the pump is working digitally and you can see the maximum value of PIW 756 which is 19658 in our experiment. After finish, please deactivate the monitor mode) Debug Monitor File Exit
103
Pressure sensor:
104
Pressure sensor: AI PIW [%] 0 71,1 AI PIW 0 19658 Process variable [mbar] 0 275
71,1 % of maximum flow rate equals a maximum voltage of the process of: 19658 / 27648 * 10 V = 7,11 V Umax Process Level control Flow control with pump Pressure control Temperature control 10,00 V 6,42 V 7,11 V Xmax Process 10 l 4,95 l/min 275 mbar PIW max 27648 17750 19658 Factor f 0,1 0,077 3,87
105
3.2.4
The easiest way to define the factor is the temperature process, because we are using a PT 100 sensor, normalized to 0 10 V which means 0 100 C. The calculation of the factor is according to the definition, that the temperature inside the tank should not be higher than 40 C:
40 C = 4 V = 40% = 4 V / 10 V * 27648 = 11059 Temperatur sensor: AI PIW [%] 0 40 AI PIW 0 11059 Process variable [C] 0 40
Umax Process Level control Flow control with pump Pressure control Temperature control 10,00 V 6,42 V 7,11 V 4V
* The temperature inside the tank should not exceed 40 C which means 4,0 V or PIW of 11059. The values above can vary from workstation to workstation a little bit.
106
2-Step Control
4.
The 2-step controller represents the easiest way to control a process variable simply by digitally switching on the manipulated value when a minimum level is reached and switching it off when a maximum level is reached. For this exercise, we are going to activate the pump digitally and open the manual valve 101 totally and the valve 112 by 2/3 to realise a disturbance value. Please save the existing project PCC_PrPr as a new project named PCC_Pr2S: The definition of the exercise shall be: Activate the pump by switching the Auto/Manu switch on Switching off the digitally pump at a level of 5,2 liter Switching on the digitally pump at a level of 4,8 liter mm
107
2-Step Control
We want to use the real process values of liter, so that we have to normalise the level sensor input signal like we did it in the first project. So we are going to open the first project PCC_PrLe and copy the OB1 to the new project PCC_Pr2S. Please follow the screen shots how to proceed:
File
Open
108
2-Step Control
OK
109
2-Step Control
(Move the windows like shown within the screen shot. Choose Blocks of PCC_PrLe) (click onto OB1 of PCC_PrLe) (right mouse button) Copy
110
2-Step Control
Paste
111
2-Step Control
112
2-Step Control
OB1 (double click on OB1 of PCL_Pr2S) View language to Function Block Diagram FBD)
113
2-Step Control
Insert
Network
114
2-Step Control
(Edit the first comparator to switch on the pump digitally if the Auto/Manu switch is on and the level of water is less than 4,8 liter)
115
2-Step Control
(Edit the second comparator to switch off the pump digitally if the level of water is higher than 5,2 liter. We want to switch off the pump in any case, even the Auto/Manu switch is off safety. After finish the editing) File Save PLC Download
116
2-Step Control
Debug
Monitor
117
2-Step Control
118
2-Step Control
What you can see is the situation that the level in the tank 102 is approx. 4,65 liter of water and thats why the pump switches on if the Auto/Man switch is on as well.
119
2-Step Control
Now the level of the water in the tank reaches 5,22 liter the pump will be switched off. The pump can also be switched off by switch off the Auto/Man switch safety!!! (After finishing the test, please close the monitor mode and close the programming window) Debug Monitor File Exit
120
Continuous Control
5.
Continuous control
In the following project we are going to reaIise a continuous flow control by using different controller types.
Normal so called open loop programs will be edited within Functions (FCx) numbered with 1, 2, 3, 4, a.s.o. These programs will be called (started) from the Organisation Block 1 on specific conditions. The cycle time max. is 150 ms, the real cycle time depends on the length of the single program. The OB1 starts automatically after switching the CPU to RUN, all FCs have to be called up from OB1. In the closed loop control (continuous control) it is different as you can see within the graphics. OB35 as well as OB1 start automatically after switching the CPU to RUN.
121
Continuous control
So in most cases, a continuous control solution is a combination of both OB1 and FCs for the digital periphery like sensors, control panel functions (START, RESET etc.) and OB35 with FB41, DB41 for the continuous control of the closed loop process.
122
Continuous control
123
Continuous control
5.1
Please proceed to prepare the continuous pressure control by switching the manual valves to the correct position and save the existing project PCC_Pr2S as a new project PCC_PrCP. As we found out in the project before, the data of the different process variables are: Umax Process Xmax Process 300 mm 4,95 l/min 275 mbar 40 C PIW max 27648 17750 19658 11059 Factor f 30 0,077 3,87 1
Level control Flow control with pump Pressure control Temperature control
The following project solution (Proj_05) is defined by: The Auto/Manu switch pre-selects the pump analog By pressing the START button, we will pre-select 200 mbar to MD30 By pressing the RESET button, we will pre-select 250 mbar to MD30 Each pre-selection will be indicated by the corresponding light inside the button All the above mentioned functions have to be programmed in FC3 FC3 shall be called without any condition (uncondition call) For the continuous control, we are going to try different controller types
124
Continuous control
Insert
S7-Block
Function
125
Continuous control
126
Continuous control
Blocks
Insert
Organisation Block
127
Continuous control
128
Continuous control
Edit
Select All
129
Continuous control
Edit
Delete
130
Continuous control
Insert
Network
131
Continuous control
(Type in the network comment and edit the uncondition call like shown within the screen shot. After finish the editing) File Save File Exit
132
Continuous control
133
Continuous control
(edit the program like shown within the screen shot. After File Save File Exit
134
Continuous control
135
Continuous control
(Define the corresponding DB, which is free defineable here we use DB41) ENTER Yes
136
Continuous control
(Edit the corresponding in-and outputs of the FB41 as shown within the screen shot. After finish editing) File Save File Exit
137
Continuous control
Start
Simatic
Step 7
PID Control
138
Continuous control
File
Open
139
Continuous control
(Choose the correct project PCC_PrCPby pressing on Browse and move to Blocks and make sure, that Offline is activated) DB41 OK
140
Continuous control
(Edit DB41 like shown within the screen shot. The factor of 3.87 we defined during the project 3. After finish the editing) File Save File Exit
141
Continuous control
(Download the entire Blocks to the PLC) Blocks PLC Download (follow the instructions on the screen to complete the entire download)
142
Continuous control
All
143
Continuous control
Yes
144
Continuous control
Yes
145
Continuous control
OK
146
Continuous control
Yes
147
Continuous control
Start
Simatic
Step 7
PID
148
Continuous control
File Open (choose the project PCC_PrCP by pressing the Browse button and switch to Blocks) Blocks DB41 Online (to activate the online function) OK
149
Continuous control
(Change the Manipulated Variable to Automatic Operation) recorder) Debug Curve Recorder
150
Continuous control
(Move the window of the Curve Recorder like shown within the screen shot) Settings
151
Continuous control
(Change the settings like shown within the screen shot. Because we calculated the factor for pressure control by 3.87, we can change the setpoint and process variable to mbar, by means of from 0 300 mbar. The pump is still working in %, by means of from 0 100 %) OK
152
Continuous control
Before we start the control process, please switch on the Auto/Manu switch to activate the pump analog and by pressing the START button and the Start at the Curve recorder the process starts.
Start
153
Continuous control
Now you can optimize the controller by changing the parameters for Proportional Gain and/or Reset Time
Stop (stop the curve recorder) (change the parameters here Proportional Gain = 4 and Reset Time = 4 s) PLC Download Start (re-start the curve recorder) (you can also change the setpoint during the process simply by pressing the RESET button and back to the START button on the signal unit to see how the controller reacts on changing setpoints) (after finishing the optimization, please close the window) File Exit OK (to save the changes) All other continuous controls are quite similar.
154