Set DIO Command

This command changes the on / off or forced state of a digital input or output signal.

Set DIO signal [value]

Prerequisites

None

Parameters

signal

Required integer number that specifies the digital input or output signal to be altered. Invalid signal numbers are ignored.

value

Optional integer number that specifies the new state for the specified digital input or output signal. If no value is specified, a default of 0 is assumed.

Remarks

The following defines how the value is interpreted:

1

Forces the input or output signal on.

-1

Forces the input or output signal off.

0 or no value

Clears any force on or off and leaves the value of the signal unchanged.

Examples

Set DIO 13 1 ' This forces digital output signal 13 on.

See Also

Console Commands | Show DIO Command