1/31/2017 5:20 PM | |
Joined: 12/9/2010 Last visit: 10/8/2022 Posts: 623 Rating:
|
Hi Sabeeh, U can use OB30-38 (watch dog timer interrupts). U can modify sampling time for OBs in HW configuration. Another simple solution is add trigger input(bool) to SCL function. U can connect eg. 1 seconds pulse when u call this function. Note that this pulse should be on for only one scan. I have used similar logic for flow totalizer where i add calculated value on every sampling interval. |
If you like the comment, rate it (right top) or thank it (left bottom). |
|
This contribution was helpful to
1 thankful Users |
2/1/2017 7:09 PM | |
Joined: 12/9/2010 Last visit: 10/8/2022 Posts: 623 Rating:
|
Hi Sabeeh, The smiffy solution is best suited to ur problem. I think initialization is through restart OBs[OB100]. U have integrate above function in ur RATE calculation function in SCL. @Smiffy: I will definately use ur scheme in my logic whenever required. |
If you like the comment, rate it (right top) or thank it (left bottom). |
|
This contribution was helpful to
1 thankful Users |
Follow us on