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 setting value of the word ports which contain the input bit of Real Time I/O =1, 3, 17, 19 by 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.

If virtual I/O is disabled, this command will result in an error.

See Also
SetInReal, SetSw, SetIn

SetInW Statement Example

> setinw 0, 1  ' Sets the first bit of word 0 to On.