phuz
Member
I feel like I'm circling back to a very newbie question, but am genuinely curious.
I'm using a BSL on a DINT for a length of 14 bits. For some reason, all of the bits in the DINT are being shifted, not just bits 0-13.
In this instance, it doesn't matter since I am not using the remaining bits, but would like to know why it's not shifting only the length I called out.
Even the BSL instruction help file shows it should only care about the bits from the length.
I'm using a BSL on a DINT for a length of 14 bits. For some reason, all of the bits in the DINT are being shifted, not just bits 0-13.
In this instance, it doesn't matter since I am not using the remaining bits, but would like to know why it's not shifting only the length I called out.
Even the BSL instruction help file shows it should only care about the bits from the length.
Last edited: