8/9/2021 9:04 AM | |
Joined: 4/1/2019 Last visit: 4/23/2024 Posts: 103 Rating: (2) |
Morning, I would like to check the value of the bit 8 from the word of an array, How could I write it? Thank U all! |
8/9/2021 9:11 AM | |
Joined: 12/16/2012 Last visit: 4/24/2024 Posts: 652 Rating: (130) |
Hi! One solution would be a bitwise AND with a mask. |
This contribution was helpful to1 thankful Users |
8/9/2021 9:21 AM | |
Joined: 4/1/2019 Last visit: 4/23/2024 Posts: 103 Rating: (2) |
I dont know how to do it, could you show me an example please? |
8/9/2021 9:55 AM | |
Joined: 4/1/2019 Last visit: 4/23/2024 Posts: 103 Rating: (2) |
So, I guest something like this should work, isnt it? |
8/9/2021 11:03 AM | |
Joined: 2/11/2015 Last visit: 4/18/2024 Posts: 436 Rating: (33) |
Hi alvconsan, Try to write directly: PIW_PCD[0].%x0 without the DB instance on your code. |
8/9/2021 11:33 AM | |
Joined: 4/1/2019 Last visit: 4/23/2024 Posts: 103 Rating: (2) |
I think that is not posible, Im calling an structure from a FB where PIW_PCD[0] belongs |
Follow us on