Sign in to follow this  
Followers 0
Sanchit Sahay

MOVEW vs LD/OUT

3 posts in this topic

I'm using a D0-06R controller (DL-06 family). Its a limited memory controller, with abt 7k word memory The PLC program installed on the controller is having lots of MOVEW instructions. I'm thinking to replace them with combination of LD-OUT instructions. Example: //Original Instruction STR SP1 MOVEW K0 V2004 MOVEW V6126 V6125 //Modified Instruction STR SP1 LD K0 OUT V2004 LD V6126 OUT V6125 This reduces memory usage by a significant amount per instruction. MOVEW consumes around 14words,whereas LD and OUT(box) consume 1 word each. Is there any merit keeping MOVEW? Any comments appreciated Edited by Sanchit Sahay

Share this post


Link to post
Share on other sites
MOVEW is just a macro and it contains almost exactly what you propose.

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