# Set Online

Sets the Vision System into Online or Offline mode. For more information, see Online and Offline States.

Note:

- This command cannot place the Vision System into Online mode if the sensor has been set Offline either manually in the Vision System user interface or by a Discrete Input signal.
- The Vision System application will send Set Online commands to vision system sensors to perform administrative functions such as Backup and Restore.

## Set Online Inputs

Syntax: SO<Int>

Parameter | Description
--- | ---
Int | 0 = Sets the Vision System Offline. 1 = Sets the Vision System Online.

## Set Online Outputs

Returns a status code. The status codes are:

Status Codes | Description
--- | ---
1 | The command was executed successfully.
0 | Unrecognized command.
-1 | The value given for Int is either out of range, or is not a valid integer.
-2 | The command could not be executed.
-5 | The communications flag was successful but the sensor did not go Online because the sensor is set Offline manually through the Vision System user interface or by a Discrete I/O signal.
-6 | User does not have Full Access to execute the command.

## Example: Set the Vision SystemIn-Sight Sensor Into Online Mode

To set the In-Sight vision system into Online mode, issue the following command: SO1

The Vision System responds with a status code of 1, indicating that the sensor was successfully placed Online.

## Example: Set the Vision SystemIn-Sight Sensor into Offline Mode

To set the In-Sight vision system into Offline mode, issue the following command: SO0

The Vision System responds with a status code of 1, indicating that the sensor was successfully taken Offline.