9/26/2024 6:41 AM | |
Joined: 3/30/2020 Last visit: 11/1/2024 Posts: 4920 Rating: (1006) |
The most effective way to handle this type of application is to use a circular buffer [LINK: https://en.wikipedia.org/wiki/Circular_buffer]. That ensures that you are not pushing data around. Less waste on the processing. The work principle is that a read pointer and write pointer is used. Only the pointers move. Using SCL would be a bit more easy to implement when using arrays. In STL some indirect addressing needs to be used. Some example may exist for the S7-300 on the support site. Best to search first. Else use Mr. Brucatori idea if you wish to make use of a ready made and available code. Hopefully you have access to SCL. Or perhaps ask him to volunteer to code with STL using indirect addressing and pointing to the DB you requested. |
Last edited by: qwazee at: 09/26/2024 06:43:40Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
9/26/2024 9:34 AM | |
Joined: 6/20/2017 Last visit: 11/1/2024 Posts: 441 Rating: (40) |
Only due the fact that novembrer 13 is near. In OB1 two usage examples. AttachmentTest2001.zip (139 Downloads) |
Last edited by: Gustavo Antonio Banchetti Brucatori at: 09/26/2024 09:43:53Gustavo Antonio Banchetti Brucatori. |
|
This contribution was helpful to1 thankful Users |
Follow us on