whizzo944 Posted March 13, 2004 Report Posted March 13, 2004 For you S5 programming experts out there, how do I handle thumbwheels connected to 8 inputs to enter a number between 0 and 99 into the PLC in BCD format and then compare that number with a counter. All the program needs to do is to compare the number set on the thumbwheels to a machine cycle count and then change state when they are equal. I know how to do this with a fixed count number but I don't know how to handle the inputs and convert them into a number in a register. The S5 manual may as well be in German Quote
Seppo Alanen Posted March 17, 2004 Report Posted March 17, 2004 L (thumweel-byte) L KM 0000 0000 00001111 UW or AW T (temp) L (thumweel-byte) L KM 0000 0000 11110000 UW or AW L KF +10 XF L (temp) +F T (integer) Quote
Recommended Posts
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.