8/1/2022 4:39 PM | |
Joined: 11/4/2011 Last visit: 3/25/2025 Posts: 263 Rating:
|
Hi there, regarding calling the PID block in a cyclic interrupt OB: We are talking about controlling here, and for this you want the call cycle of the control function to be constant. With OB1 you usually do not have this, due to OB1 having the lowest priority. With a cyclic interrupt OB you can parametrize the call cycle of this OB, and therefor then have a constant call cycle of the code you call inside this OB. This is the benefit you have. Depending on your application and code, OB1 might also be suitable enough, but using a cyclic interrupt OB just ensures this in a better way. Regarding the cycle time to choose: You can find information on the processing time of the PID instructions in the manual, for PID Compact it is shown here: https://support.industry.siemens.com/cs/de/en/view/108210036/99858334091 I'd go with the approach "as short as needed, as long as possible", whatever this means in detail then depends on your application only. Regards, |
9/6/2023 3:18 PM | |
Joined: 11/4/2011 Last visit: 3/25/2025 Posts: 263 Rating:
|
Yes, that's the manual I linked above last year. |
Follow us on