Sign in to follow this  
Followers 0
Antony17

RSLogix 500 multiple Bit Shift

3 posts in this topic

Hi PLC's master! I've been searching for a while on how to do a ''multiple bit shift'' but I have found nothing.  

What I want to do is to shift the 8 ''upper bit'' of a word to the 8 ''lower bit''. I've found a way with 8 BSR (bit shift right) and the .DN, (see the picture attach) but I'm sure that there is a better way to do it! 

Anyone have idea of how can I shift those 8 bits in one time? 

Thanks for the help! 

Capture.PNG

Share this post


Link to post
Share on other sites

Dividing the source by 256 will effectively shift the bits 8 places to the right.  You may need to pass it through a MVM to clean up the results.

Sample.JPG

1 person likes this

Share this post


Link to post
Share on other sites
25 minutes ago, Cmdr_Suds said:

Dividing the source by 256 will effectively shift the bits 8 places to the right.  You may need to pass it through a MVM to clean up the results.

Sample.JPG

Thx!! Great idea, i'll try that!!

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