input 8,9,1,2,4,5,6,7
main:
for b0 = 0 to 7
lookup b0,(8, 9, 1, 2, 4, 5, 6, 7),b8
readadc b8, b7
if b8 = value do something.....
next b0
I have used this type of program to read list of analog inputs. The manual say readadc channel, variable.?
What are channel numbers...??
The numbers I used above are for the pins in the line below on an 18M2
;lookup b0,(c.0, c.1, b.1, b.2, b.4, b.5, b.6, b.7),b8
Is there an equivalent way of reading a list of digital inputs...... They would be value 1 or value 0. ....?
main:
for b0 = 0 to 7
lookup b0,(8, 9, 1, 2, 4, 5, 6, 7),b8
readadc b8, b7
if b8 = value do something.....
next b0
I have used this type of program to read list of analog inputs. The manual say readadc channel, variable.?
What are channel numbers...??
The numbers I used above are for the pins in the line below on an 18M2
;lookup b0,(c.0, c.1, b.1, b.2, b.4, b.5, b.6, b.7),b8
Is there an equivalent way of reading a list of digital inputs...... They would be value 1 or value 0. ....?
Last edited: