8/7/2007 11:14 AM | |
Joined: 4/24/2006 Last visit: 12/13/2024 Posts: 8783 Rating: (1172) |
Hi, Perhaps the following faq, will help: http://support.automation.siemens.com/WW/view/en/26116970 And the Temp variable OB35_EXC_FREQ will tell you the interval time in milliseconds of execution OB35 Best regards, Wizard |
8/7/2007 1:47 PM | |
Joined: 5/18/2006 Last visit: 10/21/2020 Posts: 170 Rating: (64) |
A simplier/more straight forward method would be to use TIME_BEG and TIME_END blocks from the CFC Library/ElementA Blocks. See attached to determine actual cycle time (time between executions of the OB). Note that the TIME_END Block executes first (1/36) and the TIME_BEG executes the very the step (1/37). This way the TIME_END calculation (TM_DIFF) equals the current CPU Time (in milliseconds) minus the time from the previous cycle. If you were to set the run sequence such that the TIME_BEG block was the first block and the TIME_END was the last block in the OB run sequence, then one could measure OB Execution time (inclusive of all interupts). Also see FAQ 22000962 for more options (OB_INFO blocks that can calculate overall CPU Performance based on all OB3x's. Hope this helps. |
This contribution was helpful to1 thankful Users |
8/7/2007 2:13 PM | |
Joined: 7/17/2007 Last visit: 9/2/2008 Posts: 9 Rating: (0) |
Thank you all for your answers. JP |
Follow us on