---
title: "Return Codes"
description: "Return codes of LumiScan VGR - the numeric OUT_ReturnCode over PROFINET, the ReturnCode string over OPC UA, and what each code means."
product: "LumiScan VGR / VGR Lite"
component: "lumiscan-vgr"
version: "2.0.0"
display_version: "2.0.0.8"
latest_version: true
language: "en"
url: "https://docs.hdvisionsystems.com/en/lumiscan-vgr/reference/return-codes.html"
---

# Return Codes – LumiScan VGR / VGR Lite

Every LumiScan VGR function reports its result as a return code: as a status message in the status window (for example **SUCCESS**), as a number in `OUT_ReturnCode` over PROFINET, and as the string `ReturnCode` over OPC UA.

What to do about a code is described in [Troubleshooting](https://docs.hdvisionsystems.com/en/lumiscan-vgr/troubleshooting.html).

**Table 1. Return Values**

| Status | Value | Meaning |
| --- | --- | --- |
| `SUCCESS` | 0 | No error occurred. |
| `UNKNOWN_ERROR` | 1 | An unknown error occurred. |
| `CAMERA_NOT_INITIALIZED` | 2 | The currently active camera has not been initialized or does not exist. |
| `CAMERA_NOT_CONNECTED` | 3 | A connection to the camera could not be established. |
| `CAMERA_ACQUISITION_ERROR` | 4 | An error occurred while communicating with or acquiring data from the camera. |
| `PIPELINE_NOT_INITIALIZED` | 5 | The currently active pipeline has not been initialized or does not exist. |
| `ROBOT_NOT_INITIALIZED` | 6 | The currently active robot has not been initialized or does not exist. |
| `MISSING_DATA` | 7 | Additional data required to execute the function is missing, for example recorded data or results from a previous calculation step. |
| `ID_DOES_NOT_EXIST` | 8 | The specified ID does not exist. This can occur, for example, when attempting to activate a camera, pipeline, or robot that is not configured. |
| `MISSING_TRANSFORM` | 9 | The required coordinate transformation is not available. This can occur, for example, if hand-eye calibration data is missing for a robot-camera pair. |
| `RESULTS_EMPTY` | 10 | No valid grip points are available for the active robot. |
| `CAMERA_HARDWARE_TRIGGER_AGAIN` | 12 | Auto-exposure under a hardware trigger: the frame’s intensity is outside `acceptedIntensityMin`..`acceptedIntensityMax`, so no camera data is returned. The corrected exposure is already written to the camera: send another hardware trigger and capture. If it keeps coming back, the exposure is at its limit (`minExposureTime_us` or `maxExposureTime_us`): check the lighting or widen the limits. Also returned when the camera’s trigger mode cannot be read. |
| `CAMERA_BAD_EXPOSURETIME_SETTING` | 13 | Auto-exposure under a software trigger or a free-running camera: the retry budget (`retryBudget_ms`) ran out, or the exposure reached its limit, with the intensity still outside `acceptedIntensityMin`..`acceptedIntensityMax`. Check the lighting, widen `minExposureTime_us`..`maxExposureTime_us`, or raise `retryBudget_ms`. |
| `CAMERA_RESTART_REQUIRED` | 14 | Not returned. If `CAMERA_NOT_CONNECTED` persists after a camera reset, restart the camera by disconnecting and reconnecting its power supply. |
| `OPERATION_MODE_INVALID` | 15 | From v2.0.0, OPC UA only: the method is not available in the current operation mode, for example in manual mode. On PROFINET, a function that is not available in the current operation mode keeps its `OUT_*Ready` at `0` instead, so it cannot be requested. |
| `FEATURE_FILE_NOT_FOUND` | 16 | From v2.0.0. The requested feature set is not configured for this camera, is not valid for it, or its ID is longer than 16 characters. |
| `CAMERA_BUSY` | 17 | From v2.0.0. The camera is connected but currently held by something else. Unlike `CAMERA_NOT_CONNECTED`, it is worth retrying. |
| `MISSING_ROBOT_POSE` | 18 | From v2.0.0. The active camera is carried by the robot (`cameraMountType` `MOVING`) and no robot pose is in effect. This does not mean that `IN_PoseMoveInRobot` is missing: the pose was discarded after the capture, normally by a **SetParameter** that changed the active camera or robot. Trigger the camera again. |
| `MALFORMED_ROBOT_POSE` | 19 | From v2.0.0. A pose was supplied in `IN_PoseMoveInRobot` but cannot be used: the wrong number of values for the robot’s pose format, a rotation that is not a rotation, or every value zero. The capture is not performed. Check what the PLC writes to `IN_PoseMoveInRobot`. |
