Siemens v1.0 Service Manual Page 138

  • Download
  • Add to my manuals
  • Print
  • Page
    / 202
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 137
Example "PID control"
4.2 Set organization block for PID controller
STEP 7 Basic V10.5
138 Getting Started, 12/2009, A5E02651459-01
4.2 Set organization block for PID controller
Introduction
The blocks for the PID controller are created in a new organization block. A cyclic interrupt
organization block, which you will now create, is used as new organization block.
Cyclic interrupt organization blocks serve to start programs in periodic time intervals
independent of the cyclic program execution. Cyclic program execution will be interrupted by
the cyclic interrupt OB and resume after the interrupt.
The following figure shows the program execution with a cyclic interrupt OB:
0DLQ
>2%@
0DLQ
>2%@
0DLQ>2%@F\FOH
&\FOLF,QWHUUXSW>2%@
PV
2SHUDWLQJV\VWHP3/&
3,'B&RPSDFW
'%
3,'B&RPSDFW
)%
Program starts with Main [OB1].
A cyclic interrupt is triggered every 100 ms, which interrupts the program at any point (for
example, during Main [OB1]) and executes the program in the cyclic interrupt OB.
In this case the program consists of a function block PID_Compact.
PID_Compact is executed and the values are written to the data block PID_Compact (DB).
After execution of the cyclic interrupt OB, Main [OB1] will be continued at the point at which it
was interrupted. The values remain intact.
Main [OB1] is completed.
The program cycle starts again.
In the example project you use the cyclic interrupt OB to call the technological object
"PID_Compact". The technological object "PID_Compact" is the image of the PID controller
in the software. You can use this technological object to configure a PID controller, activate it
and control its execution status.
Page view 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 201 202

Comments to this Manuals

No comments