Industry Online Support
Technical Forum
12/25/2010 9:13 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating: (309) |
Hello, in the Header of each OB (as of byte 12 of the first 20 local data bytes) you can read the time the OB was started. You can also read the system time using SFC1 This is explainde here (http://support.automation.siemens.com/WW/view/en/21222026). If you read the time before each call, you can compute the difference between calls and know the exact rate. In the standrd libary you will find the FC34 SB_DT_DT The function FC34 subtracts two time values (format DT) and provides a duration (format TIME) as the result. Where the Format TIME is a 32 bit interger in msec. |
Best regards |
|
Follow us on