Sign in to follow this  
Followers 0
Saxony Thermal

GXworks 3 how to clear a range of devices

3 posts in this topic

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!

Share this post


Link to post
Share on other sites

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

fmov.PNG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0