Saxony Thermal Posted May 1, 2024 Report Posted May 1, 2024 Hello, simple question, How do I clear a range of devices in ladder in GXworks 3 mitsubishi PLC? I'd like to do something like MOV K0 D4500 D5000 where I put 0 in all devices from D4500 through D5000. I have scanned the documentation for an hour now and not finding how to do this. I also don't see a way to iterate a loop like I might do in C. For now I just made an array of RST D4500, RST D4501, ... and so on for about 20 devices just to keep moving forward with some development. But I need to wipe that whole space easily. Is there a way to input an array for the RST function? Thanks! Quote
sczot Posted May 2, 2024 Report Posted May 2, 2024 Hello, I think, that you are looking for FMOV instruction. As it´s used in attached picture, once you turn on M0, it will fill hundred devices starting with D0 with zeroes Quote
Saxony Thermal Posted May 2, 2024 Author Report Posted May 2, 2024 Thank you. You saved me a lot of time! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.