InW Function
Returns the status of the specified input word port. Each word port contains 16 input bits.
Syntax
InW(WordPortNum)
Parameters
- WordPortNum
- Specify the word port for I/O.
Return Values
Returns the current status of inputs (long integers from 0 to 65535).
Note
Rule of word port which contains the input bit of Real Time I/O
Word ports =1, 3, 17, 19 return the state of the input port with an integer from 0 to 255.
The input bit of the Real Time I/O is not reflected.
See Also
In, Out, OutW
InW Function Example
Long word0
word0 = InW(0)