3/19/2024 8:24 PM | |
Joined: 1/21/2013 Last visit: 5/10/2024 Posts: 2765 Rating: (448)
|
Hi snounyTO, This is due to optimized block access. In the case of an S7-1500, each Boolean value is stored in its own byte. This improves the speed, because no masking is needed to get a certain bit out of a byte. See chapter 2.6.2 of the Programming Guideline for S7-1200/S7-1500. Admittedly, I would have expected 252 bytes (251 of which are used for the 251 Boolean values and 1 in addition to get even addresses), but these 4 bytes will not make a big difference. So it seems that for the array of Boolean there might be some additional optimization to get the length to a multiple of 8. Kind regards |
3/20/2024 10:05 AM | |
Joined: 10/14/2021 Last visit: 3/27/2024 Posts: 5 Rating: (0) |
Hello Stefan, thank you for your explanation. Now it "make sense". I hope I will find another way how to realize my function.
|