bcj1072

Sum of data registers

3 posts in this topic

Hello,

I am looking to add the contents of a group of data registers(D100-D110) and record their sum in another register(D120). Is there a function that will do this?

Currently I am doing the following

-[MOV K0 D120]

-[+ D100 D101 D120]

-[+ D101 D120 D120] 

-[+ D102 D120 D120]

~

-[+ D110 D120 D120]

Share this post


Link to post
Share on other sites

Which series of PLC? See if yours has the WSUM instruction.

Share this post


Link to post
Share on other sites

Q series. Yes, WSUM is exactly what I was looking for. Thankyou!

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