Sign in to follow this  
Followers 0
starunas

Moving values to memory

5 posts in this topic

Posted (edited)

Hi guys,

I have a little problem.

I'm creating application with rotary table. With every rotate, I make data shift, but when I turn off and on machine again I need to write &0 to several consecutive registers.

So, I need to write &0 from D1000 to D1500. Is there any function block with this functionality?

Maybe I have to write my own function block to do it ? Or use indirect addressing to do it?

 

Thanks,

starunas

Edited by starunas

Share this post


Link to post
Share on other sites

Take a look at the BSET(071) instruction. It should do what you want.

1 person likes this

Share this post


Link to post
Share on other sites

You could do something like thisCapture.thumb.JPG.b706d83bac40a2a7aad8b4

Share this post


Link to post
Share on other sites
1 hour ago, ktuncan said:

You could do something like thisCapture.thumb.JPG.b706d83bac40a2a7aad8b4

I tried it before creating this thread with this function. It doesn't work like we think. Try to use it with differentiate. It moves new value to D1000 and move consecutive words down.

Share this post


Link to post
Share on other sites
2 hours ago, Mendon Systems said:

Take a look at the BSET(071) instruction. It should do what you want.

Thank You @Mendon Systems . I tried this function and it most likely works as I desired.

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