10/4/2008 11:10 AM | |
Joined: 3/21/2006 Last visit: 11/1/2024 Posts: 10229 Rating: (1181) |
Hi What did you mean with "my FC block could not call FB block? This FB41 is better to call in same (fixed) time interval.(for example 100ms). Call this in some timing OB. This FAQ is also helpfull: Where can you find descriptions and examples of PID control with FB 41, FB 42 and FB 43, and SFB 41, SFB 42 and SFB 43? best regards |
10/4/2008 4:01 PM | |
Joined: 9/27/2006 Last visit: 11/18/2024 Posts: 12294 Rating: (2691) |
Hello mychinkee; A few things trouble me about this post; First you can call any FB or SFB from within any FC, as long as you respect the nesting limits of the block call (not more than 8 levels open at any time, and no exceeding of the watchdog timer for the whole program). I do not understand what you mean by " I am not being able to call out the FB41"; please post your FC logic calling the FB 41 to see why you cannot access it. Second, if you call the FB 41 from an FC xx that is called by OB1 (for example), what will your CYCLE parameter be? As extracted from the Online Help for SFB/FB 41: SFB/FB "CONT_C" (continuous controller) is used on SIMATIC S7 programmable logic controllers to control technical processes with continuous input and output variables.... Note: The calculation of the values in the control blocks is only correct if the block is called at regular intervals. For this reason, you should call the control blocks in a cyclic interrupt OB (OB30 to OB38). Enter the sampling time in the CYCLE parameter. |
Follow us on