Sign in to follow this  
Followers 0
Hawkmoon42

Moving Values

4 posts in this topic

Using RSlogix 500 and a SLC 505, I want to move different values to 4 7 segment digital displays conected to O:4.0. How do I simply move values in BCD so as to display on any of the 4 displays. ie 0000 0000 0000 0111 if moved to O:4.0 will display 7 in the first digital display from the left. But if i want to move it to the second DD from the left how would I do this. Thanks Gary

Share this post


Link to post
Share on other sites
See Picture. Use the TOD instruction and move instruction.

Share this post


Link to post
Share on other sites
Thanks Micky I had worked it out my self actually. I was to obsessed with moving part of a word, as in - 0000 0000 0000 0111 > 0000 0000 0111 0000 It never occured to me to multiply or devide the integer by 10 first, then convert to BCD, followed by using a masked move to the output Edited by Hawkmoon42

Share this post


Link to post
Share on other sites
The PLC 5 and COntrollogix have a nuce command called Bit Field Distribute which allows you to move "nibbles" won't help in this case but might in another processor family.

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