wqtony2004
Member
hi, guys. I am using the Siemens setp 7. I have a thumbwheel input in the panel, which has four bit input all boolean ones? How can I get the decimal value of this wheel input, thanks a lot! PLZ help me- a new leaner of PLC.
I would take a look at http://www.plctalk.net/qanda/showthread.php?postid=23381#post23381 for a good explanation.
First, thanks for your help ,LD... or another..
In the first figure you offer, is there any possible the initial instruction will be implemented after other bit instruction? If not, is it because the program scan is top down, so it will always implement the top instruction first?
In the second figure, do you mean we use a word 'AND' instruction between 4 bit thumbwheel input and 'FF', and then we get the decimal output? what if there are some random '1' in the high bit of word I137?
In the fig2, the data type of 'move' is different, can it be implemented?The AND is with F, not FF so the high bits of byte IB137 are masked to zero.
Why is the data type different in fig. 2?