mps pa compact plc gb

154
Handling description MPS PA Compact Workstation Closed loop control with Simatic PLC CPU 313C

Upload: thuyennguyenviet

Post on 14-Oct-2014

447 views

Category:

Documents


25 download

TRANSCRIPT

Page 1: Mps Pa Compact Plc Gb

Handling description

MPS PA Compact Workstation

Closed loop control with Simatic PLC CPU 313C

Page 2: Mps Pa Compact Plc Gb

Order no.:

Description: MPS PA Compact Workstation – Closed loop control with Simatic PLC CPU 313C

Designation: Handling description

Status: 05/2008

Author: Wolfgang Eckart, Festo Didactic GmbH & Co KG

Graphics: Wolfgang Eckart, Festo Didactic GmbH & Co KG

Layout: 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: [email protected]

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.

Page 3: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 3

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. Installation of Step 7 _______________________________________ 9

2. Preparation of the workstation ______________________________ 13

2.1 Connection of the PLC______________________________________ 13

2.2 Fill up the tank 101 ________________________________________ 14

2.3 Close of the manual hand valves _____________________________ 15

2.4 Delete the contents of the CPU ______________________________ 16

2.5 Hardware configuration of the PLC ___________________________ 23

2.6 Edit the Symbol Table______________________________________ 41

Table of Contents

Page 4: Mps Pa Compact Plc Gb

Table of Contents

4 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Definition of process variables __________________________________________ 51

3. Normalisation and definition of the process variables factors______ 51

3.1 Adjustment of the ultrasonic sensor __________________________ 57

3.2 Definition of the normalisation factor _________________________ 68

3.2.1 Normalisation factor level control ____________________________ 68

3.2.2 Normalisation factor flow control ____________________________ 69

3.2.3 Normalisation factor pressure control_________________________ 97

3.2.4 Normalisation of the temperature factor______________________ 106

2-Step Control ______________________________________________________ 107

4. Level control by a 2-step controller __________________________ 107

Continuous Control __________________________________________________ 121

5. Continuous control _______________________________________ 121

5.1 Continuous pressure control _______________________________ 124

Page 5: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 5

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

Introduction

Introduction

Page 6: Mps Pa Compact Plc Gb

Software installation

6 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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

Training contents

Page 7: Mps Pa Compact Plc Gb

Software installation

© Festo Didactic GmbH & Co. • MPS PA – PLC control 7

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

Safety instructions

Page 8: Mps Pa Compact Plc Gb

Software installation

8 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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

PLC control general information

Page 9: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 9

Please insert the Step 7 CD into the drive and follow the screen to install the entire programs of Step 7. Mostly you don´t 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 Automation License Manager

Software Installation

1. Installation of Step 7

Page 10: Mps Pa Compact Plc Gb

Software installation

10 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Click on the Removable drive) (click on the SIMATIC Step 7 Professional Edition Floating licens) License Key Transfer (don´t get confused because the window is in german language, the command is Transfer in English)

Page 11: Mps Pa Compact Plc Gb

Software installation

© Festo Didactic GmbH & Co. • MPS PA – PLC control 11

(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)

Page 12: Mps Pa Compact Plc Gb

Software installation

12 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Page 13: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 13

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

1 Connection of the digital in- and outputs of the workstation with the PLC 2 Connection of the signal unit digital in- and outputs with the PLC 3 Connection of the analog in- and outputs of the workstation with the PLC 4 PC/MPI data cable connection of the PLC with the PC 5 Connection to the power supply

At the end, please switch the CPU to RUN.

Workstation set-up

2. Preparation of the workstation

2.1 Connection of the PLC

Page 14: Mps Pa Compact Plc Gb

Workstation set-up

14 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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.

Remark: The photo shows the old designation of mm instead of liter!!!

2.2 Fill up the tank 101

Page 15: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 15

Please close all manual hand valves within the system as shown within the picture.

2.3 Close of the manual hand valves

Page 16: Mps Pa Compact Plc Gb

Workstation set-up

16 © Festo Didactic GmbH & Co. • MPS PA – PLC control

After the example project has been running perfectly, we are going to start with our 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 Display Accessible Nodes

2.4 Delete the contents of the CPU

Page 17: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 17

MPI = 2 (double click on MPI = 2) Blocks (mark the entire contents of the CPU)

(right mouse button) Delete

Page 18: Mps Pa Compact Plc Gb

Workstation set-up

18 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Yes

Page 19: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 19

Yes

Page 20: Mps Pa Compact Plc Gb

Workstation set-up

20 © Festo Didactic GmbH & Co. • MPS PA – PLC control

OK

Page 21: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 21

(The SFC and SFB modules can not be deleted, only the user programs have been deleted, by means of the CPU is empty now)

Page 22: Mps Pa Compact Plc Gb

Workstation set-up

22 © Festo Didactic GmbH & Co. • MPS PA – PLC control

X (close the Accessible Nodes window)

Page 23: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 23

Please define the PLC-hardware used within your station with the STEP 7 software. After the configuration, please download it into the 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 = Dis_Hw Testing station = Tes_Hw Buffer station = Buf_Hw Seperating station = Sep_Hw Pick&Place station = P_P_Hw Fluidic Muscle station = FMS_Hw Handling station = Han_Hw Sorting station = Sor_Hw Storage station = Sto_Hw Filling station = Fil_Hw Packaging station = Pac_Hw In/Out station = I_O_Hw AFB ASRS = AAS_Hw MPS 500 ASRS = MAS_Hw Conveyor station = Con_Hw MPS PA Compact Workstation = PCC_Hw MPS PA Pressure station = PCP_Hw MPS PA Temperature station = PCT_Hw MPS PA Flow station = PCF_Hw MPS PA Level station = PCL_Hw MPS PA Filtration station = PAF_Hw MPS PA Mixing station = PAM_Hw MPS PA Reactor station = PAR_Hw MPS PA Quality Probe station = PAQ_Hw MPS Bulk Gravity Feeder station = BGF_Hw MPS Bulk Vibration Feeder station = BVF_Hw MPS Bulk Quality Control station = BQC_Hw MPS Bulk Dosage station = BDO_Hw

2.5 Hardware configuration of the PLC

Page 24: Mps Pa Compact Plc Gb

Workstation set-up

24 © Festo Didactic GmbH & Co. • MPS PA – PLC control

As an example of how to find the name of the CPU and the corresponding order number, please refer to the following picture

1 = Name of the CPU – here CPU 313C-2DP 2 = Order number of the CPU 3 = Name of additional I/O module 4 = Order number of the additional I/O module 5 = Name of additional I/O module 6 = Order number of the additional I/O module

Remark: Please make a list of modules you use including the order number.

Page 25: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 25

Definition of a new project:

File New

Page 26: Mps Pa Compact Plc Gb

Workstation set-up

26 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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

Page 27: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 27

Insert Station 2 SIMATIC 300 Station

Page 28: Mps Pa Compact Plc Gb

Workstation set-up

28 © Festo Didactic GmbH & Co. • MPS PA – PLC control

+ PCC_Hw- SIMATIC 300(1) (click onto the station) Hardware (double click)

Page 29: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 29

+ SIMATIC 300 + RACK-300 Rail (double click)

Page 30: Mps Pa Compact Plc Gb

Workstation set-up

30 © Festo Didactic GmbH & Co. • MPS PA – PLC control

+ 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-5BE01-0AB0as an example)

Page 31: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 31

(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)

Page 32: Mps Pa Compact Plc Gb

Workstation set-up

32 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Retentive Memory (type in a 0 like shown in the screen shot, because we don´t want to use any memory resistant Memories, Timers or Counters)

Page 33: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 33

Cycle Interrupt (type in a 50 like shown in the screen shot) OK

Page 34: Mps Pa Compact Plc Gb

Workstation set-up

34 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Station Save and Compile

Page 35: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 35

PLC Download

Page 36: Mps Pa Compact Plc Gb

Workstation set-up

36 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Choose your CPU you use – here CPU 313C) OK

Page 37: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 37

OK

Page 38: Mps Pa Compact Plc Gb

Workstation set-up

38 © Festo Didactic GmbH & Co. • MPS PA – PLC control

OK

Page 39: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 39

Yes

Page 40: Mps Pa Compact Plc Gb

Workstation set-up

40 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Station Exit

Page 41: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 41

Instead of using the real hardware addresses within the PLC programming, it´s much better to use so called symbols for the in- and outputs. To use the symbolic addressing, it´s much easier to understand and read the program. This is essential, because a lot of staff working in a company using the programs, but didn´t edit the programs by themselve. Please use the following list of all inputs and outputs used at your station.

2.6 Edit the Symbol Table

Page 42: Mps Pa Compact Plc Gb

Workstation set-up

42 © Festo Didactic GmbH & Co. • MPS PA – PLC control

In the following exercises we are going to use only some of the in- and outputs listed below.

Inputs of the Control panel

Symbol Adress Comment

START I125.0 Start button Touch panel

STOP I125.1 Stop button Touch panel

AUTOMAN I125.2 Auto/Manu switch Touch panel

RESET I125.3 Reset button Touch panel

Analog Inputs of the station

Symbol Adress Comment

AI_Level PIW 752 Analog input channel 0 level sensor

AI_Flow PIW 754 Analog input channel 1 flow sensor

AI_Pres PIW 756 Analog input channel 2 pressure sensor

AI_Temp PIW 758 Analog input channel 3 temperature sensor

Page 43: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 43

Binary Outputs of the station

Symbol Adress Comment

Valve Q124.0 Solenoid ball valve

Heating Q124.1 Output = 0 Heating off, Output = 1 Heating on

PumpPres Q124.2 Pump preset = 0=digital/1=analog

PumpDig Q124.3 Pump digital, only when PumpPreset = 0

Propval Q124.4 Activate proportional valve

Outputs of the Touch panel

Symbol Adress Comment

L_START Q125.0 Light inside Start button Touch panel

L_RESET Q125.1 Light inside Reset button Touch panel

L_Q1 Q125.2 Light Q1 Touch panel

L_Q2 Q125.3 Light Q2 Touch panel

Analog Outputs of the station

Symbol Adress Comment

AQPump PQW 752 Analog output channel 0 pump

AQValve PQW 754 Analog output channel 1 prop.valve

Page 44: Mps Pa Compact Plc Gb

Workstation set-up

44 © Festo Didactic GmbH & Co. • MPS PA – PLC control

+ SIMATIC 300(1) + CPU 313C S7 Program(1) Symbols (double click)

Page 45: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 45

(Please edit all the inputs and outputs of your station)

Page 46: Mps Pa Compact Plc Gb

Workstation set-up

46 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(After all in- and outputs have been edited, save the Symbol Table) Symbol Table Save Symbol Table Exit

Page 47: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 47

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.

PCC_Hw (click onto the project)

Page 48: Mps Pa Compact Plc Gb

Workstation set-up

48 © Festo Didactic GmbH & Co. • MPS PA – PLC control

File Save As…

Page 49: Mps Pa Compact Plc Gb

Workstation set-up

© Festo Didactic GmbH & Co. • MPS PA – PLC control 49

PCC_PrLe (type in the new name) OK

Page 50: Mps Pa Compact Plc Gb

Workstation set-up

50 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Now we have a new project with the hardware configuration and the Symbol Table but with a new name)

Page 51: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 51

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!!

3. Normalisation and definition of the process variables factors

Definition of process variables

Page 52: Mps Pa Compact Plc Gb

Definition of process variables

52 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Example: The value of the flow sensor (AI_Flow) with 5 V signal at the sensor

Page 53: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 53

Example: The value of the flow sensor (AI_Flow) with 10 V signal at the sensor

Page 54: Mps Pa Compact Plc Gb

Definition of process variables

54 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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:

Page 55: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 55

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 Process variable [mbar]

0 0

19658 275

Page 56: Mps Pa Compact Plc Gb

Definition of process variables

56 © Festo Didactic GmbH & Co. • MPS PA – PLC control

So if you will see a value of the pressure sensor (AI_Pres) in Step 7 of for example 15872

means:

Page 57: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 57

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 Process variable [l]

0 0

27648 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.

3.1 Adjustment of the ultrasonic sensor

Page 58: Mps Pa Compact Plc Gb

Definition of process variables

58 © Festo Didactic GmbH & Co. • MPS PA – PLC control

+S7-Program(1) Blocks OB1 (double click)

Page 59: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 59

(Choose STL in the field of Created in Language) OK

Page 60: Mps Pa Compact Plc Gb

Definition of process variables

60 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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.

Page 61: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 61

File Save

Page 62: Mps Pa Compact Plc Gb

Definition of process variables

62 © Festo Didactic GmbH & Co. • MPS PA – PLC control

PLC Download (follow the commands on the screen)

Page 63: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 63

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.

Page 64: Mps Pa Compact Plc Gb

Definition of process variables

64 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Debug Monitor (to activate the online function)

Page 65: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 65

STANDARD (right mouse button) Representation Floating Point (to see the Real numbers)

Page 66: Mps Pa Compact Plc Gb

Definition of process variables

66 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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.

Page 67: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 67

Page 68: Mps Pa Compact Plc Gb

Definition of process variables

68 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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 [%] AI PIW Process variable [mm]

0 0 0

100 27648 10

Umax Process Xmax Process PIW max Factor f

Level control 10,00 V 10 l 27648 0,1

Flow control with pump

Pressure control

Temperature control

3.2 Definition of the normalisation factor

3.2.1 Normalisation factor level control

Page 69: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 69

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

3.2.2 Normalisation factor flow control

Page 70: Mps Pa Compact Plc Gb

Definition of process variables

70 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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)

Page 71: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 71

View FBD (check if the programming language is FBD)

Page 72: Mps Pa Compact Plc Gb

Definition of process variables

72 © Festo Didactic GmbH & Co. • MPS PA – PLC control

View Overviews (activates the catalog of available Function Block Modules if it is not active already)

Page 73: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 73

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)

Page 74: Mps Pa Compact Plc Gb

Definition of process variables

74 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Click on the input) (right mouse button) Insert Symbol (to insert a symbol which we defined at the very beginning during the hardware configuration)

Page 75: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 75

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)

Page 76: Mps Pa Compact Plc Gb

Definition of process variables

76 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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)

Page 77: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 77

Insert Network

Page 78: Mps Pa Compact Plc Gb

Definition of process variables

78 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Edit the program like shown within the screen shot)

Page 79: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 79

File Save

Page 80: Mps Pa Compact Plc Gb

Definition of process variables

80 © Festo Didactic GmbH & Co. • MPS PA – PLC control

PLC Download (to download the program into the CPU. Follow the instructions on the screen to proceed until the download is complete)

Page 81: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 81

Debug Monitor (to activate the online function)

Page 82: Mps Pa Compact Plc Gb

Definition of process variables

82 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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.

Page 83: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 83

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 Monitor (to deactivate the online function)

Page 84: Mps Pa Compact Plc Gb

Definition of process variables

84 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Insert Network (to insert a new network)

Page 85: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 85

(Define the network comment like shown within the screen shot)

Page 86: Mps Pa Compact Plc Gb

Definition of process variables

86 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Click under the Network to activate the programming frame) -Bit logic (to close the menu of the Bit logic modules) + Move Move (double click)

Page 87: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 87

IN (Click on IN) (right mouse button) Insert symbol AI_Flow (double click to choose the flow sensor)

Page 88: Mps Pa Compact Plc Gb

Definition of process variables

88 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Negate the EN = enable input, because we want to permanently load the Flow sensor value to the Memory Double Word MD20)

Page 89: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 89

OUT (Click on OUT) (type in the hardware address of the Memory Double Word we want to use – here MD20) ENTER

Page 90: Mps Pa Compact Plc Gb

Definition of process variables

90 © Festo Didactic GmbH & Co. • MPS PA – PLC control

File Save

Page 91: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 91

PLC Download (follow the instructions on the screen until the download is finished)

Page 92: Mps Pa Compact Plc Gb

Definition of process variables

92 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Debug Monitor (to activate the online function)

Page 93: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 93

MD20 (right mouse button) Representation Decimal (to see the decimal value of the Flow sensor in MD20)

Page 94: Mps Pa Compact Plc Gb

Definition of process variables

94 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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

Page 95: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 95

Flow sensor:

Page 96: Mps Pa Compact Plc Gb

Definition of process variables

96 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Flow sensor:

AI PIW [%] AI PIW Process variable [l/min]

0 0 0

64.2 17750 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 Xmax Process PIW max Factor f

Level control 10,00 V 10 l 27648 0,1

Flow control with pump 6,42 V 4,95 l/min 17750 0,077

Pressure control

Temperature control

Page 97: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 97

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)

3.2.3 Normalisation factor pressure control

Page 98: Mps Pa Compact Plc Gb

Definition of process variables

98 © Festo Didactic GmbH & Co. • MPS PA – PLC control

File Save

Page 99: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 99

PLC Download (to download the program into the CPU)

Page 100: Mps Pa Compact Plc Gb

Definition of process variables

100 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Debug Monitor (to activate the online function)

Page 101: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 101

MD30 (right mouse button) Representation Decimal

Page 102: Mps Pa Compact Plc Gb

Definition of process variables

102 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(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)

Page 103: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 103

(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

Page 104: Mps Pa Compact Plc Gb

Definition of process variables

104 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Pressure sensor:

Page 105: Mps Pa Compact Plc Gb

Definition of process variables

© Festo Didactic GmbH & Co. • MPS PA – PLC control 105

Pressure sensor:

AI PIW [%] AI PIW Process variable [mbar]

0 0 0

71,1 19658 275

71,1 % of maximum flow rate equals a maximum voltage of the process of:

19658 / 27648 * 10 V = 7,11 V

Umax Process Xmax Process PIW max Factor f

Level control 10,00 V 10 l 27648 0,1

Flow control with pump 6,42 V 4,95 l/min 17750 0,077

Pressure control 7,11 V 275 mbar 19658 3,87

Temperature control

Page 106: Mps Pa Compact Plc Gb

Definition of process variables

106 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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 [%] AI PIW Process variable [°C]

0 0 0

40 11059 40

Umax Process Xmax Process PIW max Factor f

Level control 10,00 V 10 l 27648 0,1

Flow control with pump 6,42 V 4,95 l/min 17750 0,077

Pressure control 7,11 V 275 mbar 19658 3,87

Temperature control 4 V 40 °C 11059 1

* 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.

3.2.4 Normalisation of the temperature factor

Page 107: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA – PLC control 107

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

4. Level control by a 2-step controller

2-Step Control

Page 108: Mps Pa Compact Plc Gb

2-Step Control

108 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 109: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 109

PCC_PrLe (choose the first project) OK

Page 110: Mps Pa Compact Plc Gb

2-Step Control

110 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 111: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 111

(Choose Blocks of PCC_Pr2S) (right mouse button) Paste

Page 112: Mps Pa Compact Plc Gb

2-Step Control

112 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(After the copy procedure is finished, close the window of PCC_PrLe) X

Page 113: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 113

OB1 (double click on OB1 of PCL_Pr2S) View FBD (change the programming language to Function Block Diagram – FBD)

Page 114: Mps Pa Compact Plc Gb

2-Step Control

114 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Insert Network

Page 115: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 115

(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)

Page 116: Mps Pa Compact Plc Gb

2-Step Control

116 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 117: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 117

(After downloading the program, open the online function) Debug Monitor

Page 118: Mps Pa Compact Plc Gb

2-Step Control

118 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Change the representation to Floating point)

Page 119: Mps Pa Compact Plc Gb

2-Step Control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 119

What you can see is the situation that the level in the tank 102 is approx. 4,65 liter of water and that’s why the pump switches on if the Auto/Man switch is on as well.

Page 120: Mps Pa Compact Plc Gb

2-Step Control

120 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 121: Mps Pa Compact Plc Gb

© Festo Didactic GmbH & Co. • MPS PA - Fluid Lab ® - PA 121

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 FC´s 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.

5. Continuous control

Continuous Control

Page 122: Mps Pa Compact Plc Gb

Continuous control

122 © Festo Didactic GmbH & Co. • MPS PA – PLC control

So in most cases, a continuous control solution is a combination of both – OB1 and FC´s 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.

Page 123: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 123

Page 124: Mps Pa Compact Plc Gb

Continuous control

124 © Festo Didactic GmbH & Co. • MPS PA – PLC control

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 PIW max Factor f

Level control 10,00 V 300 mm 27648 30

Flow control with pump 6,42 V 4,95 l/min 17750 0,077

Pressure control 7,11 V 275 mbar 19658 3,87

Temperature control 4 V 40 °C 11059 1

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

5.1 Continuous pressure control

Page 125: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 125

(Open Blocks at the new project PCC_PrCP) Insert S7-Block Function

Page 126: Mps Pa Compact Plc Gb

Continuous control

126 © Festo Didactic GmbH & Co. • MPS PA – PLC control

FC3 (change the name of the Function) (make sure the programming language is FBD) OK

Page 127: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 127

Blocks Insert Organisation Block

Page 128: Mps Pa Compact Plc Gb

Continuous control

128 © Festo Didactic GmbH & Co. • MPS PA – PLC control

OB35 (change the name of the Organisation Block) (make sure the programming language is FBD) OK

Page 129: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 129

OB1 (double click) Edit Select All

Page 130: Mps Pa Compact Plc Gb

Continuous control

130 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Edit Delete

Page 131: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 131

Insert Network

Page 132: Mps Pa Compact Plc Gb

Continuous control

132 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 133: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 133

1. Screen shot Network 1 - 3

Page 134: Mps Pa Compact Plc Gb

Continuous control

134 © Festo Didactic GmbH & Co. • MPS PA – PLC control

2. Screen shot Network 4 - 5

FC3 (double click) (edit the program like shown within the screen shot. After finish the editing) File Save File Exit

Page 135: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 135

OB35 (double click) (edit the network comment) FB41 CONT_C_ICONT (double click)

Page 136: Mps Pa Compact Plc Gb

Continuous control

136 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Define the corresponding DB, which is free defineable – here we use DB41) ENTER Yes

Page 137: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 137

(Edit the corresponding in-and outputs of the FB41 as shown within the screen shot. After finish editing) File Save File Exit

Page 138: Mps Pa Compact Plc Gb

Continuous control

138 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Activate the PID Control parametising) Start Simatic Step 7 PID Control parametising

Page 139: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 139

(Maximize the window) File Open

Page 140: Mps Pa Compact Plc Gb

Continuous control

140 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Choose the correct project – PCC_PrCPby pressing on Browse and move to Blocks and make sure, that Offline is activated) DB41 OK

Page 141: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 141

(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

Page 142: Mps Pa Compact Plc Gb

Continuous control

142 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Download the entire Blocks to the PLC) Blocks PLC Download (follow the instructions on the screen to complete the entire download)

Page 143: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 143

All

Page 144: Mps Pa Compact Plc Gb

Continuous control

144 © Festo Didactic GmbH & Co. • MPS PA – PLC control

Yes

Page 145: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 145

Yes

Page 146: Mps Pa Compact Plc Gb

Continuous control

146 © Festo Didactic GmbH & Co. • MPS PA – PLC control

OK

Page 147: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 147

Yes

Page 148: Mps Pa Compact Plc Gb

Continuous control

148 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Activate the PID Control parametising again) Start Simatic Step 7 PID Control parametising

Page 149: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 149

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

Page 150: Mps Pa Compact Plc Gb

Continuous control

150 © Festo Didactic GmbH & Co. • MPS PA – PLC control

(Change the Manipulated Variable to Automatic Operation) (Activate the curve recorder) Debug Curve Recorder

Page 151: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 151

(Move the window of the Curve Recorder like shown within the screen shot) Settings

Page 152: Mps Pa Compact Plc Gb

Continuous control

152 © Festo Didactic GmbH & Co. • MPS PA – PLC 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

Page 153: Mps Pa Compact Plc Gb

Continuous control

© Festo Didactic GmbH & Co. • MPS PA – PLC control 153

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

Page 154: Mps Pa Compact Plc Gb

Continuous control

154 © Festo Didactic GmbH & Co. • MPS PA – PLC 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.