1/18/2023 6:32 PM | |
Joined: 3/30/2020 Last visit: 11/19/2024 Posts: 4968 Rating: (1012)
|
BSL? As in the "bit shift left" instruction found in MicroLogics et.al.? Do you have a Rockwell processor or a Siemens one? You are right that shift register can be used to solve such an application problem. The most basic shift registers in the S7-1200 can handle 32 bits. Cascading is also possible. The recommended solution would be to use a bit array in a ring buffer configuration. There are some articles written about a "ring buffer" within the forum if you care to use the forum search. The alternative to this is to use an array and track time-stamps. This can be very handy if the count of items being tracked is few but the tracking distance is very long. The right fit for your application would depend on the details of the application. Things like..
So.. what are your thoughts? EDIT: |
Last edited by: qwazee at: 01/18/2023 18:33:03Last edited by: qwazee at: 01/18/2023 18:41:57Activities 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. |
|
1/19/2023 9:54 AM | |
Joined: 9/23/2005 Last visit: 11/18/2024 Posts: 4795 Rating: (733)
|
You may also hit it big. |
Last edited by: jacek d at: 01/19/2023 09:56:05Wrong link end point. Last edited by: jacek d at: 01/19/2023 09:57:48Regards, |
|
1/21/2023 5:48 PM | |
Joined: 7/11/2021 Last visit: 11/19/2024 Posts: 27 Rating: (0) |
I will search for any FIFO application example... Sandy |
This contribution was helpful to1 thankful Users |
Follow us on