show the entry list
STEP 7 Micro/WIN -- Creating S7 programs -- Calling blocks and functions
How do you reset the high-speed counters of the S7-200?
Using an S7-200 without twilight switch, how do you have shutters open at sunrise and close at sunset?
How do you count values over 16 bits with the S7-200?
How can you limit the pitch of jumps with S7-200?
How do you configure the positioning module EM253 so that the connected stepper motor can proceed in both directions?
How do you position a servo drive axis using the S7-200 pulse interface?
How do you create a bar display in TD 200 or TD 200C?
How can you optimize use of timers in STEP 7 Micro/WIN?
How do you determine the frequency of a pulse sequence and speeds?
How can you scale analog values with S7-200 in conjunction with CPU224XP and expansion modules EM 231, EM 232 and EM 235?
How do you convert a binary number into Gray code (or vice versa) in STEP 7 Micro/WIN?
How do you convert the number format DOUBLE INTEGER into BCD code (or vice versa) in STEP 7 Micro/WIN?
How do you form the absolute and negative values of numbers in STEP 7 Micro/WIN?
Why does the PID controller created by the instruction wizard sometimes not work?
What do you have to do in the SIMATIC S7-200 in order to edit part of the program once after restarting?
Which library with the inverse functions to the trigonometric functions (sine, cosine, tangent) is available for STEP 7-Micro/WIN?
Scaling the setpoint and actual values in the STEP 7 Micro/WIN V4 wizards for PID control loops
Positioning Wizard for PTO/PWM in STEP 7 Micro/WIN V4.0
How to implement a three step control with PID-loop in the S7-200 via STEP 7-Mirco/WIN?
STEP 7 Micro/WIN -- Operation and maintenance -- Diagnosing errors
What should you watch out for when using the local variable types OUT and TEMP in subprograms?
How can you release the memory area of a library that is not required in STEP 7 Micro/WIN?
How do you operate the PID tuner control panel or EM253 via an Ethernet connection with STEP 7 Micro/WIN?
Why does the PID controller created by the instruction wizard sometimes not work?
PID closed-loop controller outputs incorrect loop output when loop input is equal to loop setpoint
Wrong Output Value in the "ROUND" Function
Why does the actual value on my PID controller jump sporadically?
Why does the PID controller created by the instruction wizard sometimes not work?
Part number:

Description:
In STEP 7 Micro/WIN, the PID controller created by the instruction wizard does not work sporadically; is this due to the switching of the enable bit "EN" of the initialization subprogram "PIDx_INIT" (see Fig. 01).


Fig. 01

Solution:
To ensure proper working of the PID controller, the initialization program "PIDx_INIT" must be called from the main program in each cycle using the special marker 0.0 (SM0.0) (see Fig. 03, Network 2).
The "PIDx_INIT" block configures the PID controller by initializing via the special marker 0.1 (SM0.1) the required variables that are used by the logic and starting the PID interrupt program "PID_EXE", which is called cyclically according to the PID sampling time.

Manual operation of the PID controller:
If the PID controller is only to be activated at specific times or events, you can implement this via the manual mode in the "Instruction Wizard PID" (see Fig. 02).


Fig. 02

When the manual mode is activated, the "PIDx_INIT" block must be reinserted in the main program, because the "Auto_Manual" and "ManualOutput" parameters have been added (see Fig. 03, Network 2).
The conditions for activating the PID controller are adopted in Network 1 (Fig. 03) according to the specifications in Fig. 01.


Fig. 03

The PID calculation is not executed in manual mode ("Auto_Manual" = "0") and standardized REAL value (0.00 to 1.00) at the "ManualOutput" input is converted as follows according to the limit specifications (see Fig. 04) into the value "Output" (data type: INTEGER):

Output = ManualOutput * (upper limit - lower limit) + lower limit value


Fig. 04

 Entry ID:25781753   Date:2007-10-22 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour