PROFINET Interface Reference

The PROFINET interface provides communication between LumiScan VGR and the PLC.

This chapter describes:

  • the PROFINET device: Hilscher card, device description (GSDML) and device name

  • the memory layout of the exchanged signals

  • the PROFINET device modules

  • the process flow for function calls

  • the available functions

  • return codes

  • operation modes

For an explanation of how the interface is used during operation, see PLC Settings.

PROFINET Device

LumiScan VGR is a PROFINET IO device. It communicates through a Hilscher cifX PC card in the IPC. Vision Controllers from HD Vision Systems with PROFINET are delivered with the card installed and configured as described here.

Card

Hilscher cifX RE PC card (for example cifX 50E-RE), channel 0, configured as PROFINET IO device. LumiScan VGR uses the first card of the PC (cifX0, channel 0).

Firmware

PROFINET IO device V3.4 (cifxpns.nxf)

Device description (GSDML)

GSDML-V2.31-HILSCHER-CIFX RE PNS-20150709.xml, download as ZIP

Device access point (DAP)

CIFX RE/PNS V3.4.19 - V3.4.x (DIM 3). The GSDML file describes several device access points: select this one.

Vendor ID / device ID

0x011E / 0x0103

Device name (station name)

cifxrepns, the name the card starts with. Use this name for the device in the PLC project. If several LumiScan VGR PCs share one PROFINET network, contact HD Vision Systems.

IP address

None (0.0.0.0): assigned by the PLC.

Modules

12 slots: 288 bytes to the PLC, 256 bytes from the PLC, see Device Modules.

How to set up the connection in the PLC project: Connect a PLC over PROFINET.

Memory Layout

The byte addresses below are offsets from the start of the area that LumiScan VGR writes (OUT_*, slots 1–8, 288 bytes) and of the area that it reads (IN_*, slots 9–12, 256 bytes). Give the modules of each direction consecutive addresses in the PLC project: several values span two modules, for example OUT_BBoxObjectFrame (bytes 90–113, slots 2–3) and OUT_PoseObjectInTcp (bytes 156–183, slots 4–5).

Two groups of signals are exchanged:

  • PLC inputs (OUT_):* Values written by LumiScan VGR and read by the PLC.

  • PLC outputs (IN_):* Values written by the PLC and read by LumiScan VGR.

Data Types and Byte Order

  • bool: one bit of a byte. byte/uchar: one byte, unchanged.

  • Integers (int, uint32): big-endian (most significant byte first). Siemens S7 controllers read and write them directly as DINT/UDINT.

  • Floating-point values (float): little-endian (least significant byte first), 4 bytes each. A controller that stores REAL big-endian, such as a Siemens S7, must reverse the four bytes of every float it reads from LumiScan VGR and of every float it writes (IN_ParamArgFloat, IN_PoseMoveInRobot). A little-endian controller (for example a CODESYS-based PLC such as the ctrlX CORE) reads the floats unchanged and must reverse the bytes of the integers instead.

  • Strings (IN_ParamArgString, IN_FeatureId): plain ASCII characters without a length header, padded with spaces or terminated with a zero byte. Write them as an array of characters, not as an S7 STRING, whose two header bytes would become part of the text.

PLC Inputs (OUT_*)

Slot / Group Byte Address Bit Data Type Name Description

Slot 1 - System Signals

0

0

bool

OUT_HeartBeat

Mirrors the value of IN_HeartBeat.

Slot 1 - System Signals

0

1

bool

OUT_Error

From v2.0.0: 1 when OUT_ReturnCode reports a failure (any code except 0 SUCCESS and 10 RESULTS_EMPTY), otherwise 0. Written together with OUT_ReturnCode. Before v2.0.0, always 0.

Slot 1 - System Signals

0

2

bool

OUT_ResetReady

Indicates whether the reset function is ready to be executed.

Slot 1 - System Signals

0

3

bool

OUT_ResetRunning

Indicates whether the reset function is currently running.

Slot 1 - System Signals

0

4

bool

OUT_SetupReady

Indicates whether the setup function is ready to be executed.

Slot 1 - System Signals

0

5

bool

OUT_SetupRunning

Indicates whether the setup function is currently running.

Slot 1 - System Signals

Reserved

Slot 1 - Status Signals

4

byte/uchar

OUT_OperationMode

Contains the current operation mode. It can be changed using the Set Parameter function.
0 - IDLE: Only Reset and Set Parameter are available.
1 - AUTOMATIC: All processing functions are available.
2 - MANUAL: LumiScan VGR is controlled through the user interface.

Slot 1 - Status Signals

5

0

bool

OUT_IsSetup

Indicates whether system setup has been completed.

Slot 1 - Status Signals

Reserved

Slot 1 - Trigger Signals

8

0

bool

OUT_SetParameterReady

Indicates whether the Set Parameter function is ready.

Slot 1 - Trigger Signals

8

1

bool

OUT_SetParameterRunning

Indicates whether the Set Parameter function is running.

Slot 1 - Trigger Signals

9

0

bool

OUT_TriggerCameraReady

Indicates whether camera triggering is ready.

Slot 1 - Trigger Signals

9

1

bool

OUT_TriggerCameraRunning

Indicates whether camera triggering is running.

Slot 1 - Trigger Signals

10

0

bool

OUT_ComputeObjectsReady

Indicates whether object computation is ready.

Slot 1 - Trigger Signals

10

1

bool

OUT_ComputeObjectsRunning

Indicates whether object computation is running.

Slot 1 - Trigger Signals

11

0

bool

OUT_GetBestResultReady

Indicates whether the best-result calculation is ready.

Slot 1 - Trigger Signals

11

1

bool

OUT_GetBestResultRunning

Indicates whether the best-result calculation is running.

Slot 1 - Trigger Signals

12

0

bool

OUT_GripBestResultReady

Indicates whether the Grip Best Result function is ready.

Slot 1 - Trigger Signals

12

1

bool

OUT_GripBestResultRunning

Indicates whether the Grip Best Result function is running.

Slot 1 - Trigger Signals

13

0

bool

OUT_GetParameterReady

Indicates whether the Get Parameter function is ready.

Slot 1 - Trigger Signals

13

1

bool

OUT_GetParameterRunning

Indicates whether the Get Parameter function is running.

Slot 1 - Trigger Signals

14

0

bool

OUT_ResetCameraReady

Indicates whether the Reset Camera function is ready.

Slot 1 - Trigger Signals

14

1

bool

OUT_ResetCameraRunning

Indicates whether the Reset Camera function is running.

Slot 1 - Trigger Signals

15

0

bool

OUT_SetActiveCameraFeatureReady

From v2.0.0. Indicates whether the Set Active Camera Feature function is ready.

Slot 1 - Trigger Signals

15

1

bool

OUT_SetActiveCameraFeatureRunning

From v2.0.0. Indicates whether the Set Active Camera Feature function is running.

Slot 1 - Trigger Signals

16

Reserved. Do not use (until v2.0.0: SetStreamFeatureId).

Slot 1 - Trigger Signals

17

0

bool

OUT_RunRecipeReady

From v2.0.0. Indicates whether the Run Recipe function is ready.

Slot 1 - Trigger Signals

17

1

bool

OUT_RunRecipeRunning

From v2.0.0. Indicates whether the Run Recipe function is running.

Slot 1 - Trigger Signals

…

Reserved

Slot 2 - Data

64

byte/uchar

OUT_ReturnCode

Contains the return code of the last executed function.

Slot 2 - Data

65

byte/uchar

OUT_ObjectId

ID of the object as defined in the JSON settings.

Slot 2 - Data

66

6 x float

OUT_BBoxGripFrame

Not implemented: always 0.

Slots 2–3 - Data

90

6 x float

OUT_BBoxObjectFrame

Bounding box of the object in the object coordinate system:
[xmin, ymin, zmin, xmax, ymax, zmax] in meters.

Slot 3 - Data

114

float

OUT_PrevObjectDepth

Depth of the previously gripped object in meters, measured by GetBestResult and GripBestResult: the distance from the object’s former pose origin to the surface the current image shows there, along the object’s −Z axis. Valid only when the value is greater than 0.0; -1.0 if the measurement failed.

Slot 3 - Data

118

byte/uchar

OUT_NumObjects

Number of objects in the scene that have not yet been gripped.

Slot 3 - Data

…

Reserved

Slot 4 - Data

128

7 x float

OUT_PoseMoveInRobot

Pose of the move frame for a grip point in robot coordinates:
[tx, ty, tz, r1, r2, r3, r4]
t represents the translational component and r the rotational component. Units and rotation conventions depend on the robot configuration. If the rotation convention does not use quaternions, r4 contains no information.

Slots 4–5 - Data

156

7 x float

OUT_PoseObjectInTcp

Pose of the object in TCP coordinates. Uses the same pose format as OUT_PoseMoveInRobot.

Slot 5 - Data

184

uint32

OUT_GripPriority

Grip priority of the best grip point, as configured in the grip point settings of the object.

Slot 5 - Data

…

Reserved

Slot 6 - Data

192

float

OUT_ObjectScore2D

Score of the 2D object detection result.

Slot 6 - Data

196

float

OUT_PrevObjectCurvature

Curvature of the previously gripped object.

Slot 6 - Data

200

int

OUT_PrevObjectInnerNearestNeighbour

Nearest-neighbor value of the previously gripped object.

Slot 6 - Data

204

int

OUT_DepthLimitMM

Not written: always 0. GetParameter 4 and 5 wrote the camera’s depth range here up to v1.6.1; the depth range setting was removed in v1.6.2, and both return ID_DOES_NOT_EXIST.

Slot 6 - Data

208

int

OUT_ImageReference

Not written: always 0. GetParameter 6 wrote the image reference setting here up to v1.6.1; it was removed in v1.6.2.

Slot 6 - Data

212

float

OUT_ObjectScore3D

Score of the 3D object detection result.

Slot 6 - Data

216

float

OUT_CameraTemperature

Current camera temperature in °C. The value is updated when an image is captured. -273.1528 if the camera does not report a temperature: treat it as "unknown", not as a reading.

Slot 6 - Data

…

Reserved

PLC Outputs (IN_*)

Slot / Group Byte Address Bit Data Type Name Description

Slot 9 - System Signals

0

0

bool

IN_HeartBeat

Heartbeat signal from the PLC. OUT_HeartBeat follows this value.

Slot 9 - System Signals

0

1

bool

IN_Error

Reserved for PLC errors.

Slot 9 - System Signals

0

2

bool

IN_ResetRequest

Requests execution of the reset function.

Slot 9 - System Signals

0

3

bool

IN_EnableAdminMode

If system/enableExternalAdminModeControl is set to true in the JSON settings, this signal can be used to enable or disable admin mode.
The PLC should only change this value when no function is currently running.

Slot 9 - System Signals

0

4

bool

IN_SetupRequest

Requests execution of the setup function.

Slot 9 - System Signals

Reserved

Slot 9 - Status Signals

4

Reserved

Slot 9 - Status Signals

…

Slot 9 - Trigger Signals

8

0

bool

IN_SetParameterRequest

Requests execution of the Set Parameter function.

Slot 9 - Trigger Signals

9

0

bool

IN_TriggerCameraRequest

Requests a new image from the active camera.

Slot 9 - Trigger Signals

10

0

bool

IN_ComputeObjectsRequest

Requests object computation.

Slot 9 - Trigger Signals

11

0

bool

IN_GetBestResultRequest

Requests calculation of the best grip result.

Slot 9 - Trigger Signals

12

0

bool

IN_GripBestResultRequest

Requests confirmation of the best grip result.

Slot 9 - Trigger Signals

13

0

bool

IN_GetParameterRequest

Requests a parameter value.

Slot 9 - Trigger Signals

14

0

bool

IN_ResetCameraRequest

Requests a reset of the camera whose ID is in IN_ParamArgString.

Slot 9 - Trigger Signals

15

0

bool

IN_SetActiveCameraFeatureRequest

From v2.0.0. Requests a feature set for a camera: the camera ID in IN_ParamArgString, the feature set ID in IN_FeatureId.

Slot 9 - Trigger Signals

16

Reserved. Do not use (until v2.0.0: SetStreamFeatureId).

Slot 9 - Trigger Signals

17

0

bool

IN_RunRecipeRequest

From v2.0.0. Requests a recipe run. The recipe ID is in IN_ParamArgString.

Slot 9 - Trigger Signals

…

Reserved

Slot 10 - Data

64

byte/uchar

IN_ParamId

Specifies the parameter or operation used by the Set Parameter or Get Parameter function.

Slot 10 - Data

65

byte/uchar

IN_ParamArgByte

Byte argument used by parameter functions.

Slot 10 - Data

66

int

IN_ParamArgInt

Integer argument used by parameter functions.

Slot 10 - Data

70

float

IN_ParamArgFloat

Float argument used by parameter functions.

Slot 10 - Data

74

32 x byte/uchar

IN_ParamArgString

String argument used by parameter functions. Also the camera ID for Reset Camera and, from v2.0.0, for Set Active Camera Feature, and the recipe ID for Run Recipe.

Slot 10 - Data

106

16 x byte/uchar

IN_FeatureId

From v2.0.0. Feature set ID for Set Active Camera Feature: at most 16 characters, padded with spaces.

Slot 10 - Data

…

Reserved

Slot 11 - Data

128

7 x float

IN_PoseMoveInRobot

Current pose in robot coordinates using the move frame. This value should always be available.

Slot 11 - Data

…

Reserved

Slot 12 - Reserved

192

Reserved

Slot 12 - Reserved

…

Reserved

Device Modules

The PROFINET device of LumiScan VGR has twelve modules. Insert exactly these modules, in this order, into the device in the PLC project. Input and Output are seen from the PLC, as in the GSDML file. If the modules in the PLC project differ from the card, the PLC reports a module difference and no data is exchanged.

Slot Module Module ident Length (bytes) Signals and byte addresses

1

64 Bytes Input

0x14

64

OUT_* 0–63

2

32 Bytes Input

0x12

32

OUT_* 64–95

3

32 Bytes Input

0x12

32

OUT_* 96–127

4

32 Bytes Input

0x12

32

OUT_* 128–159

5

32 Bytes Input

0x12

32

OUT_* 160–191

6

32 Bytes Input

0x12

32

OUT_* 192–223

7

32 Bytes Input

0x12

32

OUT_* 224–255

8

32 Bytes Input

0x12

32

OUT_* 256–287

9

64 Bytes Output

0x15

64

IN_* 0–63

10

64 Bytes Output

0x15

64

IN_* 64–127

11

64 Bytes Output

0x15

64

IN_* 128–191

12

64 Bytes Output

0x15

64

IN_* 192–255

LumiScan VGR uses bytes 0–219 of the input area and bytes 0–155 of the output area; the remaining bytes are reserved.

Earlier editions of this manual listed four 64-byte modules in each direction (slots 1–8). That layout does not match the configuration of the card.

Process Flow

Each process uses three signals:

  • OUT_*Ready

  • IN_*Request

  • OUT_*Running

The execution sequence is the same for all functions.

Step OUT IN Note

1

Wait until OUT_*Ready == 1

Not applicable to reset functions

2

Set IN_*Request → 1

3

Check IN_*Request == 1

4

Set OUT_*Ready → 0

5

Set OUT_*Running → 1

6

Wait until OUT_*Ready == 0

Not applicable to reset functions

7

Check OUT_*Running == 1

Otherwise, the trigger is discarded

8

Set IN_*Request → 0

9

Wait until IN_*Request == 0

10

Execute the requested function

11

Set output variables

12

Set OUT_*Running → 0

13

Set OUT_*Ready → 1

14

Wait until OUT_*Running == 0

15

Check the return code

16

Read the output variables

For a more detailed explanation of the handshake behavior, see PLC Settings: Process Flow.

Function Descriptions

Function Input Output Description Prerequisite

IN_Reset

Resets all OUT_* variables to their default values. All output values are set to zero and OUT_OperationMode is set to IDLE.

OUT_Reset

Resets all IN_* variables to their default values.

OUT_SetParameter

IN_ParamId
IN_ParamArgByte
IN_ParamArgInt
IN_ParamArgFloat
IN_ParamArgString

OUT_ReturnCode

Sets a parameter. IN_ParamId specifies which parameter is changed:

0 - SET_OPERATION_MODE: Sets OUT_OperationMode to the value of IN_ParamArgByte. The PLC cannot switch the system out of manual mode; manual mode must be exited through the user interface.

1 - SET_CAMERA_ID: Sets the active camera to the ID specified by IN_ParamArgString.

2 - SET_PIPELINE_ID: Sets the active pipeline to the ID specified by IN_ParamArgString.

3 - SET_ROBOT_ID: Sets the active robot to the ID specified by IN_ParamArgString.

OUT_OperationMode = AUTOMATIC or IDLE

OUT_GetParameter

IN_ParamId
IN_ParamArgByte
IN_ParamArgInt
IN_ParamArgFloat
IN_ParamArgString

OUT_ReturnCode plus the output specified by the selected parameter

Reads a parameter. IN_ParamId specifies the requested value:

0 - GET_NUM_OBJECTS_2D_TOTAL: Returns the total number of objects detected in 2D via OUT_NumObjects.

1 - GET_NUM_OBJECTS_3D_TOTAL: Returns the number of 3D-detected objects that have not yet been gripped via OUT_NumObjects.

2 - GET_NUM_OBJECTS_2D_TYPE: Returns the number of 2D-detected objects of the type specified in IN_ParamArgString.

3 - GET_NUM_OBJECTS_3D_TYPE: Returns the number of 3D-detected objects of the type specified in IN_ParamArgString that have not yet been gripped.

Any other IN_ParamId returns ID_DOES_NOT_EXIST.

OUT_OperationMode = AUTOMATIC

OUT_TriggerCamera

OUT_ReturnCode

Captures an image with the currently active camera.

OUT_OperationMode = AUTOMATIC

OUT_ComputeObjects

OUT_ReturnCode

Calculates the poses of all detected objects from the most recent image using the active pipeline.

OUT_OperationMode = AUTOMATIC

OUT_GetBestResult

IN_ParamArgByte
IN_ParamArgFloat

OUT_ReturnCode
OUT_ObjectId
OUT_ObjectScore2D
OUT_ObjectScore3D
OUT_BBoxGripFrame
OUT_BBoxObjectFrame
OUT_PrevObjectDepth
OUT_PrevObjectCurvature
OUT_PrevObjectInnerNearestNeighbour
OUT_NumObjects
OUT_PoseMoveInRobot
OUT_PoseObjectInTcp
OUT_GripPriority

Calculates grip points for the active robot using the most recently calculated object poses and returns information about the highest-priority valid grip.

If path planning is configured, the input arguments can be used to evaluate the trajectory at a specific point:

* IN_ParamArgByte: ID of the path segment (0 to n - 1) * IN_ParamArgFloat: Interpolation factor from 0.0 to 1.0

0.0 represents the start of the path segment and 1.0 the end.

Path segment 0 always exists, even if no path planning is configured. In that case, it returns a constant result for all interpolation factors.

If invalid arguments are supplied, they are set to 0 before execution. No error is returned for this case.

OUT_GripPriority indicates the grip priority assigned to the selected grip point. The priority is configured for each grip point of an object.

OUT_OperationMode = AUTOMATIC

OUT_GripBestResult

IN_ParamArgByte
IN_ParamArgFloat

Performs the same calculation as OUT_GetBestResult and additionally informs the system that the selected result has been or will be gripped.

OUT_OperationMode = AUTOMATIC

OUT_ResetCamera

IN_ParamArgString

OUT_ReturnCode

Disconnects and reconnects the camera whose ID is in IN_ParamArgString and applies its feature files (cameras[].featureFiles), as Setup leaves it. Other cameras are not touched, Setup is not needed afterwards, and OUT_IsSetup keeps its value. The camera has no feature set after the reset: select one again with Set Active Camera Feature if you use them. For the active camera, the last captured image is discarded. The reset does not capture. Returns SUCCESS when the camera is connected again, ID_DOES_NOT_EXIST for an empty or unknown ID, CAMERA_NOT_CONNECTED for a disabled camera and for one that cannot be closed or does not come back (disconnect and reconnect its power supply), CAMERA_BUSY while the camera is in use (retry), and CAMERA_NOT_INITIALIZED if its feature files cannot be applied.

Up to v2.0.0, the function restarted the camera driver, which reconnected every camera, an empty ID restarted only the driver, and Setup had to be executed again after a reset. Before v2.0.0, it returned SUCCESS for a camera that did not come back and for an unknown ID.

OUT_OperationMode = AUTOMATIC

OUT_SetActiveCameraFeature

IN_ParamArgString
IN_FeatureId

OUT_ReturnCode

From v2.0.0. Applies a feature set (featureSets[] in the settings file) to a camera. The camera is specified by its ID in IN_ParamArgString, the feature set by its ID in IN_FeatureId (at most 16 characters). An empty ID or default restores the values the camera had when it was connected.

Replaces the SetDeviceFeatureId and SetStreamFeatureId functions of earlier versions: it uses the former SetDeviceFeatureId signals (byte 15); byte 16 is no longer used. The PLC program must be updated.

OUT_OperationMode = AUTOMATIC

OUT_RunRecipe

IN_ParamArgString
IN_PoseMoveInRobot

As OUT_GetBestResult

From v2.0.0. Runs a recipe (recipes[] in the settings file): selects its camera, pipeline and robot and runs its commands, by default capture, Compute Objects and Get Best Result. Replaces three Set Parameter calls, Trigger Camera, Compute Objects and Get Best Result.

IN_ParamArgString contains the recipe ID (at most 32 characters). If the recipe’s robot carries the recipe’s camera, IN_PoseMoveInRobot is read immediately before the capture, as for Trigger Camera. If the recipe sets a pose itself (SET_POSE), the field is not read.

The outputs are those of OUT_GetBestResult for path segment 0. The first failing step ends the recipe; its error is in OUT_ReturnCode.

OUT_OperationMode = AUTOMATIC

Return Codes

OUT_ReturnCode holds the result of the last function. LumiScan VGR also shows it in the status window and on the PROFINET tab, see PLC Settings: Status Information.

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.

Application Example

The following diagram shows an example process using one camera, one pipeline, and one robot.

The example assumes that the operation mode does not change during the process. After each function call, check the return code and handle any reported error before continuing.

Multiple objects can be picked from a single captured image. Depending on the required cycle time, it may also be practical to capture a new image before each grip.

Example PROFINET process using one camera, one pipeline, and one robot

Manual Mode

During operation, manual mode can be activated through the user interface. The operation mode then changes to MANUAL (2).

While manual mode is active, processing functions cannot be started from the PLC.

When manual mode is exited, the system changes to IDLE (0). To resume automatic processing, set the operation mode back to AUTOMATIC through the PLC.

See also Manual Mode.

Multiple Components

All calculations use the currently active camera, pipeline, and robot.

If a project contains multiple cameras, pipelines, or robots, make sure that the correct active components are selected using OUT_SetParameter before executing each function. From v2.0.0, a recipe selects its camera, pipeline and robot itself (OUT_RunRecipe).

Reference Lists

Operation Modes

ID Mode Description

0

IDLE

The system is idle. Processing functions are not available.

1

AUTOMATIC

Automatic PLC-controlled operation. Processing functions are available.

2

MANUAL

Manual operation through the user interface.

3

SHUTDOWN

The application shuts down.