3/25/2022 11:46 AM | |
Joined: 4/28/2018 Last visit: 3/14/2025 Posts: 2 Rating:
|
need rotating bits in a Dword Value using STL ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 03/25/2022 14:04:17New subject after splitting |
|
3/25/2022 11:47 AM | |
Joined: 4/28/2018 Last visit: 3/14/2025 Posts: 2 Rating:
|
NEED for DWord in STL
|
3/25/2022 4:05 PM | |
Joined: 9/23/2005 Last visit: 9/5/2025 Posts: 5112 Rating:
|
RTFM |
Regards, |
|
3/28/2022 8:56 PM | |
Joined: 3/30/2020 Last visit: 9/5/2025 Posts: 5427 Rating:
|
The old posting where you originally posted, was discussing the mirroring of bits. In pseudo code it could be something like:
The code is just not optimum, but it will work. Consider this point as the STL might be a handful to debug. C code concept 1:
C code concept 2:
The STL code based on concept 2..
|
Last edited by: qwazee at: 03/28/2022 20:58:03STL code simulated on PLCSIM V15.1 (CPU1512 V2.8) Activities 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. |
|
Follow us on