show the entry list
ES - SIMATIC Manager -- Creating programs -- CFC - Using block libraries
What are the system requirements for using SIMATIC PCS 7 Industry Library?
What should you watch out for when changing the symbolic addresses of input/output modules?
Why are the inputs of the driver block in the CFC chart no longer interconnected after replacing a HART analog module?
How do you parameterize the PCS 7 APL channel driver so that the output process value is inverted?
How do you configure a Modbus slave using the "RCV_341" (FB 121) PCS 7 block?
Why do I get the signal "QBAD" on my "CH_AI" driver block?
How do you configure the "Sample_T" input?
Why is the module INT_P issuing invalid values at the output?
Why isn’t the CH_AI block not interconnected automatically with the option "Create module driver"?
How can I change the preset message class in standard blocks?
Can blocks from the CFC library for the S7-300 CPUs also be used in a program for an S7-400 CPU?
What is the meaning of the block input VALUE_QC of the CH_DI block?
Why is the simulated value not output on the CH_AI driver block and how can a value still be simulated?
When do you speak of a "self-regulating process" and when of a "non-self-regulating process"?
How do you do perform controller optimization with the PCS 7 PID tuner?
What is the meaning of the parameters "GAIN", "TN" and "TV" with the CTRL_PID block?
Why is there only half the expected current output from each of the analog output modules in the case of redundant modules?
How much memory is used by the SIMATIC PCS 7 V6.0 library blocks and templates in the PLC?
What do I have to take into account to avoid that the actual value overshoots when switching over from hand/track operation to automatic operation of the "CTRL_PID" with activated setpoint ramp?
How can additional message texts - only as event and OS range - be edited in a block that supports messages in SIMATIC PCS 7 V5.x?
When generating the module drivers, how can you clear the message "Necessary files are missing for block CH_AI. Please note that you must install exactly that version of the library from which this block was imported"?
Why does the CH_AI driver report the slave still to be defective (QBAD=1) after failure and return of a PROFIBUS DP slave (e.g. ET 200M)?
How do you interconnect an FM350-2 in PCS 7?
How can you clear the error message "Value BITVAL is not defined in file AL_CHN.xml / CH_DI." in the module driver log?
How do you do perform controller optimization with the PCS 7 PID tuner?
Part number:

In PCS 7 V5.1 onwards it is possible to optimize controllers using the commissioning tool "PCS 7 PID Tuner". The tool makes measurements to determine the process parameters and then suggests the optimum settings for the controller. If required, you can apply these settings immediately.

You can optimize controllers of the "PCS 7 Library", "PCS 7 Advanced Process Library" V7.1 onwards and function-compatible controllers. In the case of step-action controllers, it is also possible to determine the motor actuating time.


  • The PCS 7 PID Tuner software is installed on the ES. You can install the tool with the PCS 7 general setup.
  • The necessary license is installed. In PCS 7 V7.1 onwards you do not need an additional license for the PCS 7 PID Tuner.
  • The CFC chart is compiled and loaded into the AS.
  • There is an online connection between the ES and the AS.
  • The following is known about the control loop:
    • Process behavior (with or without integral part)
    • Status of the control loop (manual or automatic)
    • Working point of the controller
    • Controller type (PID, PI or P controller)

The instructions below show you how to use the PCS 7 PID Tuner taking the example of a continuous PI controller.

Additional information is available in the relevant readme file and in the Online Help of the PCS 7 PID Tuner.
A practical example of how to operate using the PCS 7 Advanced Process Library (APL) is shown in the document entitled "PID Control with Gain Scheduling and PID Tuning" (Entry ID: 38755162).


  • Please note that by optimizing you are interfering with the plant process. If there is interference in a process, this is indicated in the optimization step concerned. You must be aware of the possible consequences.
  • Make appropriate arrangements with the operating staff before optimization.
  • Monitor the process constantly on the curve recorder during optimization.
No. Procedure
1 Prepare the controller for optimization
Before optimizing you must switch the controller to "Optimize" mode. You can set this in the CFC chart on the controller block or on the OS faceplate.
You set the "OPTI_EN" input to "Enable" on the block in the CFC chart. The input is hidden by default. On the faceplate you set the "Enable Optimiz." option in the "Parameter" view.

Fig. 01: Preparing the controller for optimization

2 Start the PCS 7 PID Tuner
Select the controller block and start the tool from the CFC chart using the menu command "Edit > Optimize PID controller...".

Fig. 02: Starting the PID Tuner

3 Parameterize the curve recorder
To adapt the display to the process conditions, you stop recording and click the "Settings..." button.

Fig. 03: Parameterizing the curve recorder

4 Start controller optimization
Click the "Start Controller Optimization" button.

Fig. 04: PID Tuner

5 Measured value acquisition (Steps 1 to 5)
In Steps 1 to 3 you define the conditions for measured value acquisition. The values of the control path are acquired in Step 4. Monitor this on the curve recorder. Then you can cancel process stimulation.
  1. Select process behavior (with or without integral part)
  2. Select the operating mode (manual/automatic) and input the starting point for the jump stimulation
  3. Input the jump stimulation, new setpoint value
  4. Measured value acquisition
  5. Cancel process stimulation

Fig. 05: Measured value acquisition

6 Controller behavior and result (Steps 6 to 8)
You select the controller behavior and type in Steps 6 and 7. In Step 8 you simulate the control loop with the optimized controller parameters. You can test with this with different jump sizes and controller parameters.
  1. Input of controller behavior (optimum disturbance behavior / optimum master control behavior)
  2. Result and selection of controller type (PID/PI/P)
  3. Simulation of the controller loop with the optimized parameters

Fig. 06: Result parameters

Fig. 07: Result diagram

7 Set the controller (Step 9)
In this last step you can select whether the old or new settings are to be applied. Click the "Finish" button to end controller parameterization.
  1. Selection of the controller parameters (old/new)

Fig. 08: Loading the optimized parameters

8 End PID Tuner
The controller is now parameterized with the new settings. End the PID Tuner by clicking the "End and save" button. The controller is reset to its original operating mode.

Creation environment:
The pictures in this FAQ were created with SIMATIC PCS 7 V7.1.

Additional Keywords
Control engineering

 Entry ID:8031495   Date:2014-02-03 
I regard this helpfulas not helpful                                 
My Documentation Manager 
Support Request
To this entry
Create PDF 
Send to a friend
Compatibility tool 
Online Help
Guided Tour