Helo guys,
I wrote a couple of STEP7 SCL programs that simulates behaviors of discrete systems. I hope someone remembers STEP 7 SOPDT simulator in one of previous threads. I always placed my implementations in OB35 with default cyclic time of 100 ms. My main motiv was to ensure precise sample time. If I entered sample time as parameter and doing calculation inside, I had to ensure code to be executed with time that correspond to entered sample time. I remember once I had a lot of problems with FB41 (PID block) placed in OB1. Later I found out that because of variable cyclic time of OB1, Integrator and Derivator's time constants would not mean much unless FB41 is executed ad precise time intervals entered as parameter to the function block. I know that strange behavior was due to scan time jitter that exists with OB1 (every sac time can last more or less than from previous one).
Is same thing applies to every calculation that takes time constant in order to work?
If that is true, that means every discrete model that I implement must be placed in OB35. Is there any way I can measure and see how same code will do in different OBs (OB1 and OB35) and compare them that way?
Thanks
I wrote a couple of STEP7 SCL programs that simulates behaviors of discrete systems. I hope someone remembers STEP 7 SOPDT simulator in one of previous threads. I always placed my implementations in OB35 with default cyclic time of 100 ms. My main motiv was to ensure precise sample time. If I entered sample time as parameter and doing calculation inside, I had to ensure code to be executed with time that correspond to entered sample time. I remember once I had a lot of problems with FB41 (PID block) placed in OB1. Later I found out that because of variable cyclic time of OB1, Integrator and Derivator's time constants would not mean much unless FB41 is executed ad precise time intervals entered as parameter to the function block. I know that strange behavior was due to scan time jitter that exists with OB1 (every sac time can last more or less than from previous one).
Is same thing applies to every calculation that takes time constant in order to work?
If that is true, that means every discrete model that I implement must be placed in OB35. Is there any way I can measure and see how same code will do in different OBs (OB1 and OB35) and compare them that way?
Thanks