Jump to content

Recommended Posts

Posted
I want to combine the value of two thumbwheel switches, I'm sure this is simple enough but for some reason it has stummped me. So if I have a 2 on thumbwheel #1 and I have a 8 on thumbwheel #2 I would like to move both of those numbers into a register and it display 28. Then move that into a timer. Thanks in advance!
Posted
Use the instruction BIN to get the values from the thumbwheels seperate into two dataregisters. Next you can multiply the value from thumbwheel 1 by K10 and add both together. Or do a bitshift left by 8. on the value from thumbwheel 1 and add them.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...