thumbwheel switch
If you put your source voltage (with a TTL module,probably +5VDC) to 'C' and wire the others as mellis suggested to the input module and wired nothing else(for simplicity right now) then read the value of the input module as a WORD you should see the expected values 0 = 0. If you don't get this then post again with your results. And by the way - if it has the numbers 0-9 AND the letters A-F then it is a hexadecimal thumbwheel. You should see the word values 0 through 15. A BCD thumbwheel would stop at 9.
May I asked how to read the data from the thumbwheel switch aside from using DSW command? That command wont work for me because it will turn ON the series 4 Y outputs but in my case the outputs I need are not series, Y22, y23, y26 & y27.
The DSW command says dsw S D1 D2 n.. The S is the source (x) head device, the D1 is the Y head device to which the strobe signal is output, the D2 storing numeric value and the n as the total # of 4 digit switch.. The y22, y23, y26 & y27 i mean about is the D1 i used. When I put y23 as the D1, it will turn ON the nest 4 series outputs but my Y24 & Y25 should not be included because they had been wired to solenoid valves.
so, I tried another, is it correct: where x40 is for manual selector switch here:
/m8000/---------------(m1)
/m1/--/x40/--[mov k1x34 d1]
[mov k1x35 d2]
[mov k1x36 d3]
[mov k1x37 d4]
after turnibg ON the selector switch, i initially got these values:
x34 = 0
x35 = 8
x36 = 4
x37 = 2
why? my purpose of moving is just to convert the BCD data into binary.. I tried [BIN K1X34 D1] just replacing mov with BIN.. Am I at the right truck? I need to read the data from my digital switch/ thumbwheel and convert these into binary for PLC operation.. Am I thinking the right thing?
Any help or further explaination for the thumbwheel usage please..
Thank you very much.. I understand my thread always repeats by itself..
Sincerely,
sheryl- Philippines