3/4/2024 12:03 AM | |
Joined: 3/13/2019 Last visit: 6/23/2024 Posts: 154 Rating: (2) |
Dear sir, In one of our project Shift right,shift left instruction is used but I do not have idea about this instruction...How they work???When we use this instruction....I read this thread https://support.industry.siemens.com/cs/ae/en/view/17811407 But did not understand ,pls help me. Regards, Pankaj Tiwari |
Last edited by: The Helping Hand at: 03/04/2024 13:55:09Link optimized |
|
3/4/2024 4:47 AM | |
Joined: 3/30/2020 Last visit: 7/12/2024 Posts: 4624 Rating: (967) |
A Wikipedia article shows an animation of what a shift register does. We do not have a single bit shift registers, like the Wikipedia article shows. In the Siemens systems the shift registers are for bit groups of 8, 16 and 32 bits. The image below shows MW100 which is constructed of 16 bits. The image also shows what direction the movement of bits would be if a LEFT (green) or RIGHT (red) shift would be executed. Shifting one bit to the left, means that M100.7 moves out into a carry over bit (a special system bit). The rest of the bits also moves to the left, starting with M100.6 now becoming M100.7 and ending with M101.0 becoming M101.1. M101.0 is also set to FALSE. There are many reasons to use a shift register instruction. |
Last edited by: qwazee at: 03/04/2024 04:49:05correction Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to1 thankful Users |
Follow us on