10/25/2024 1:40 PM | |
Joined: 3/30/2020 Last visit: 9/4/2025 Posts: 5423 Rating:
|
The problem is easy enough. Use the shift word left instruction. Each time the instruction receives a clock pulse the bits will be shifted. Use the in-software documentation to read up on the instruction. I do recommend that you use a WORD instead of the BYTE. The quickest is to use a memory address like say MW20. The entry point will be M21.0 (!!) and the exit point is either the 8th bit (M21.7) or 9th bit (M20.0) depending of the timing of the logics. Then you have the choice of coding in LAD, STL, SCL or FBD. STL documentation has the most description and is added as an attachment. AttachmentSTL shift onstruction.pdf (297 Downloads) |
Last edited by: qwazee at: 10/25/2024 13:42:40Activities 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. |
|
Follow us on