(1)| 9/17/2019 9:29 AM | |
|
Posts: 306 Rating:
|
You can use SFB3 - SFB5 timers by creating instance data block for timers (link). Then there is no need to create a DB for each timer. Also in PCS, FBs are often called from OB3x cyclic interrupts. At the input of FB, you can provide the input SampleTime - the period of the call. Then, to calculate the time, you can simply summarize this value and save it in a variable in the "static" area. |
| 9/17/2019 1:33 PM | |
|
Joined: 8/19/2017 Last visit: 10/25/2025 Posts: 79 Rating:
|
That's exactly what I want, Thanks |
Follow us on