From the course: PLC Program Flow and Control Instructions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

BSR instruction (bit shift right)

BSR instruction (bit shift right) - Ladder Logic Tutorial

From the course: PLC Program Flow and Control Instructions

Start my 1-month free trial

BSR instruction (bit shift right)

- [Instructor] Bit shifts right instruction shifts the bits in the data file to the right once for every low to high transition. The shifting starts from the most significant bit address of the word. Using the same previous example, when the instruction is enabled, goes from false to true. The BSR instruction starts at bit five. Since the length is six, taking the data coming from the sensor bit address, input one, bit one. The operation is the same for both instructions. The difference is only in the direction. This is how the table looks like before the shifting and after shifting of the bits to the right.

Contents