In the previous lessons you learned that when you use the shift right instruction for integers or double integers, the instruction works like a divide function. In this lesson we will see how the shift left instruction works more like a multiply function and how you can easily figure out what the output value will be when you are writing a PLC program. Open up this lesson and let’s get started.
In the previous lesson titled Shift Left Word and Double Word Part 2 we discussed how we can use the Shift Left Word and Double Word instruction and how this instruction works more like a multiply instruction. In this video we will become familiar with how to turn on PLC outputs in sequential o...
In addition to the shift instructions we also have the rotate right and rotate left instructions in this folder.
The rotate right instruction works by rotating bits to the right according to the value entered in the IN input by whatever bit you define for it located in the N input.
Unlike the...
The rotate left instruction works in the exact opposite way of the rotate right instruction.