Command: |
SWITCH i
|
---|---|
Command Syntax: |
READ SWITCH i |
Range: |
|
Describe: |
Returns the current state of the associated switch. If the switch is connected, a value of 1 is returned. Not connected returns a value of 0. If the switch was connected since the last reading, but is no longer connected, a value of 2 is returned. READ SWITCH i |
Result: |
Returns state of switch (same status as BUTTON object, 0=not pressed, 1=pressed, 2=was pressed). |
Type or |
Sensor |