(2)| 3/21/2020 2:33 PM | |
|
Joined: 11/16/2018 Last visit: 2/21/2025 Posts: 6 Rating:
|
I have a Data Block with ARRAY[1..225] bool type, 255 are steps. I wish to set dbx0.0 and increment for 255 steps every time my encoder sends a Z pulse. how do I shift that bit upto 255 steps for 255 encoder revolutions. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 03/23/2020 06:35:03New subject after splitting |
|
| 3/24/2020 9:31 PM | |
|
Joined: 1/17/2013 Last visit: 2/25/2025 Posts: 136 Rating:
|
Hi Murioif you are not expert in ST and you really need the code to be written in ladder or FUP then take a look to the attachment, however it would be much better to write the code using ST, it would be much more performing, believe me. stay healty and avoid covid-19 AttachmentFB1.pdf (329 Downloads) |
This contribution was helpful to
|
|
| 3/25/2020 2:24 AM | |
|
Joined: 11/16/2018 Last visit: 2/21/2025 Posts: 6 Rating:
|
Thanks alot. I am doing it in STL but I only managed to shift one byte. Let me try your way will let you know 😊 |
| 3/27/2020 5:19 PM | |
|
Joined: 11/16/2018 Last visit: 2/21/2025 Posts: 6 Rating:
|
@CIONCO I dont know why the solution you sent me just shifts upto max of 32steps. Just a double word. |
| 3/27/2020 6:07 PM | |
|
Posts: 623 Rating:
|
Hi, U should use Arrays & SCL language. |
Follow us on