SetInW Statement
For Virtual IO, sets specified input word (16 bits) to the specified value.
Syntax
SetInW portNumber, value
Parameters
- Portnum
- Specify the I/O input word.
- value
- Specify the word as an integer from 0 to 65535.
Note
Rule of word port which contains the input bit of Real Time I/O
The input bit of the Real Time I/O cannot be reflected.
Specify the value for word port = 1 containing the input bits of real-time I/O as an integer from 0 to 255. The value larger than 255 will result in an error.
Description
SetIn provides the ability to set up to 16 bits of virtual inputs at once.
See Also
SetInReal, SetSw, SetIn
SetInW Statement Example
> setinw 0, 1 ' Sets the first bit of word 0 to On.