KST VisionTech 21 en
KST VisionTech 21 en
KUKA.VisionTech 2.1
Issued: 11.10.2013
© Copyright 2013
KUKA Roboter GmbH
Zugspitzstraße 140
D-86165 Augsburg
Germany
This documentation or excerpts therefrom may not be reproduced or disclosed to third parties without
the express permission of KUKA Roboter GmbH.
Other functions not described in this documentation may be operable in the controller. The user has
no claims to these functions, however, in the case of a replacement or service work.
We have checked the content of this documentation for conformity with the hardware and software
described. Nevertheless, discrepancies cannot be precluded, for which reason we are not able to
guarantee total conformity. The information in this documentation is checked on a regular basis, how-
ever, and necessary corrections will be incorporated in the subsequent edition.
Subject to technical alterations without an effect on the function.
Translation of the original documentation
KIM-PS5-DOC
Contents
1 Introduction .................................................................................................. 7
1.1 Industrial robot documentation ................................................................................... 7
1.2 Representation of warnings and notes ...................................................................... 7
1.3 Trademarks ................................................................................................................ 7
1.4 Terms used ................................................................................................................ 8
2 Purpose ........................................................................................................ 9
2.1 Target group .............................................................................................................. 9
2.2 Intended use .............................................................................................................. 9
5 Safety ............................................................................................................ 27
5.1 General safety measures ........................................................................................... 27
5.2 Standards and regulations ......................................................................................... 27
6 Planning ....................................................................................................... 29
6.1 Connecting cables and interfaces .............................................................................. 29
7 Transportation ............................................................................................. 31
7.1 Transportation ............................................................................................................ 31
10 Configuration ............................................................................................... 51
10.1 Configuring a 2D measurement task - overview ........................................................ 51
10.2 Configuring a 3D measurement task - overview ........................................................ 51
10.3 Creating a task and taking images (stationary) ......................................................... 51
10.4 Creating a task and taking images (moving) ............................................................. 52
10.5 Setting up an image processing task in WorkVisual .................................................. 52
10.5.1 Installing the image processing environment ....................................................... 53
10.5.2 Licensing the image processing environment in WorkVisual ............................... 53
10.5.2.1 Activating the license ....................................................................................... 53
10.5.2.2 Repairing the license ....................................................................................... 53
10.5.2.3 Activating an emergency license ..................................................................... 54
10.5.3 Creating a tool block file in WorkVisual ............................................................... 54
10.5.3.1 Templates ........................................................................................................ 55
10.6 Configuring a 2D task ................................................................................................ 56
10.7 Generating a 2D model ............................................................................................. 59
10.7.1 2D model with a stationary camera ...................................................................... 59
10.7.2 2D model with a moving camera .......................................................................... 60
10.8 Testing a 2D task ....................................................................................................... 61
10.9 Configuring a 3D task ................................................................................................ 62
10.10 Generating a 3D model ............................................................................................. 64
10.11 Testing a 3D task ....................................................................................................... 65
11 Programming ............................................................................................... 67
11.1 Note on programming ................................................................................................ 67
11.2 Subprogram VT_INIT ................................................................................................ 67
11.3 Subprogram VT_OPENCONNECTION ..................................................................... 67
11.4 Subprogram VT_TASKTRIGGER ............................................................................. 67
11.5 Subprogram VT_TASKTRIGGER_REFBASE ........................................................... 68
11.6 Subprogram GET_VTRESULT .................................................................................. 68
11.7 Subprogram GET_VTCORRECTIONFRAME ........................................................... 68
11.7.1 Structure of VTRESULT ....................................................................................... 69
11.8 Subprogram VTRESULT_CHECK ............................................................................ 69
13 Messages ..................................................................................................... 83
14 Maintenance ................................................................................................. 89
14.1 Maintenance symbols ................................................................................................ 89
15 Repair ........................................................................................................... 91
15.1 Exchanging the switch ............................................................................................... 91
15.2 Exchanging the camera ............................................................................................. 91
15.3 Exchanging the motherboard ..................................................................................... 91
16 Troubleshooting .......................................................................................... 93
17 Decommissioning, storage and disposal .................................................. 95
17.1 Decommissioning ....................................................................................................... 95
17.2 Storage ...................................................................................................................... 95
17.3 Disposal ..................................................................................................................... 95
18 Appendix ...................................................................................................... 97
18.1 Tightening torque ....................................................................................................... 97
1 Introduction
Notes These hints serve to make your work easier or contain references to further
information.
1.3 Trademarks
Term Description
KUKA smartHMI User interface of the KUKA System Software
(KUKA smart Human-Machine Interface)
GigE Gigabit Ethernet
GenICam Generic Interface for Cameras: generic pro-
gramming interface for cameras used in
industrial image processing.
Reference pose Robot position for image acquisition
Tool block Image processing task created using WorkVi-
sual.
EKI Ethernet KRL interface
PoE Power over Ethernet
Power supply via network
KONI KUKA Option Network Interface
KLI KUKA Line Interface
Connection to Ethernet network
2 Purpose
This documentation is aimed at users with the following knowledge and skills:
Expert knowledge of KRL programming
Advanced knowledge of the robot controller system
Advanced knowledge of network connections
Knowledge of the VisionPro software from Cognex (training)
Use KUKA.VisionTech is used to determine and correct the position of a robot rel-
ative to the position of a component with the aid of one or more cameras. Up
to 3 cameras may be operated simultaneously with the system. Only hardware
components approved by KUKA Roboter GmbH may be used. The hardware
components must only be operated under the specified environmental condi-
tions.
Misuse Any use or application deviating from the intended use is deemed to be imper-
missible misuse. This includes e.g.:
Operation outside the permissible operating parameters
Use in potentially explosive environments
Use in the vicinity of welding applications
Networking the camera network with a company network
3 Product description
Communication The robot controller communicates with one or more GigE cameras via the im-
age processing system. The connection between the kernel system and the
image processing system is established via the Ethernet KRL interface.
1 KR C4 compact 3 Switch
2 Connecting cable 4 Cameras
Image processing An image processing environment is installed on the controller during installa-
software tion of VisionTech. This software performs the image processing tasks. This
software must also be installed on the service laptop.
Overview There are 5 RJ45 connections on the KUKA GigE switch. Ports 1 to 4 are PoE-
capable. KUKA MXG20 cameras can be connected to ports 1 to 3.
Port 5 can be used to connect the KR C4 compact; this port is not PoE-capa-
ble. The switch must be integrated into a housing with a protection rating of
IP 54 and supplied with a direct voltage of 12-36 V. The switch can be mount-
ed on a TS 35 top-hat rail.
In the KR C4, the switch is installed and connected to the power supply of the
KR C4. Up to 3 cameras can be connected to interfaces X64.1 to X64.3. Alter-
natively, the cameras can be connected directly to the switch in the KR C4 via
a cable inlet.
LEDs
Power supply
Interfaces
Overview The KUKA MXG20 camera conforms to the GigE standard and is PoE-capa-
ble. The image resolution is 2 megapixels. The camera can be powered via
PoE or from an external power supply. A protective lens hood is mounted on
the camera. C-Mount lenses can be used (lenses are not included in the scope
of supply).
The following must be ensured when selecting the lens:
The lens fits on the camera
The lens fits into the protective lens hood (depth: 45 mm, can be enlarged
using extension rings – 12 mm each)
1 LEDs
2 Data/PoE interface
3 Process interface / power supply
Connector pin
allocation
Fig. 3-8: Contact diagram, data/PoE interface (view from contact side)
Fig. 3-9: Contact diagram, process interface / power supply (view from
contact side)
LEDs
Different connecting cables are required for the operation of one or more cam-
eras. The connecting cables used conform to the CAT6 standard for network
cables. The network cables have different connectors depending on the inter-
face. The cables are available in various lengths.
4 Technical data
Name Definition
EN 61000-6-2 Electromagnetic compatibility (EMC) - Part 6-2:
Generic standards – Immunity for industrial envi-
ronments
EN 61000-6-4 Electromagnetic compatibility (EMC) - Part 6-4:
Generic standards – Emission standard for
industrial environments
Name Definition
EN 55024 Information technology equipment – Immunity
characteristics – Limits and methods of mea-
surement
EN 61000-3-2 Electromagnetic compatibility (EMC) - Part 3-2:
Limits – Limits for harmonic current emissions
EN 61000-3-3 Electromagnetic compatibility (EMC) - Part 3-3:
Limits – Limitation of voltage changes, voltage
fluctuations and flicker in public low-voltage sup-
ply systems, for equipment with rated current
If a cable inlet on the KR C4 is used instead of interface X64, the following con-
nectors are available:
The RJ45 connectors that are connected to interfaces A13.1 to A13.3 have
protection rating IP 20.
For detailed specifications of the connecting cables, see (>>> 9.3.6 "De-
scription of the connecting cables" Page 40).
The RJ45 connectors that are connected to interfaces PoE 1 to PoE 3 have
protection rating IP 20.
For detailed specifications of the connecting cables, see (>>> 9.3.6 "De-
scription of the connecting cables" Page 40).
1 Rear view
2 Side view
3 View from below
4 Front view
5 Side view with protective lens hood
1 Front view
2 Side view
Camera The identification plate is already mounted on the camera. The camera label
must be selected and attached by the user; this depends on the interface to
which the camera is connected:
Interface X64.1 / A13.1 / PoE 1: label B1
Interface X64.2 / A13.2 / PoE 2: label B2
Interface X64.3 / A13.3 / PoE 3: label B3 (for stationary cameras only)
Switch The following plates and labels are attached to the switch.
5 Safety
This documentation contains safety instructions which refer specifically to the
software and hardware described here.
The fundamental safety information for the industrial robot can be found in the
“Safety” chapter of the Operating and Programming Instructions for System In-
tegrators or the Operating and Programming Instructions for End Users.
The user must carry out a risk analysis and is responsible for ensuring
correctly adapted lighting.
6 Planning
Connecting The connecting cables comprise all the cables for transferring energy and sig-
cables nals between the robot controller, linear unit, robot and cameras. The following
connecting cables are available:
For the KR C4 with interface X64:
Connecting cable, KR C4 – linear unit
Connecting cable, linear unit – robot
Connecting cable, KR C4 – robot
Connecting cable, KR C4 – camera
For the KR C4 with cable inlet to interface A13 on the switch:
Connecting cable, switch – linear unit
Connecting cable, linear unit – robot
Connecting cable, switch – robot
Connecting cable, switch – camera
For the KR C4 compact:
Connecting cable, KR C4 compact – switch
Connecting cable, switch – camera
All the connecting cables for the KR C4 are suitable for use on robots. The
connecting cables for the KR C4 compact are not suitable for use on robots.
Information about the energy supply system for axes 1 to 3 and axes 3 to 6
can be found in separate documentation.
Depending on the specific system configuration, connecting cables are re-
quired in different lengths. The following cable lengths are available:
The maximum length of the connecting cables must not exceed 45 m with
moving (robot-guided) cameras and 35 m with stationary cameras. Thus if the
robot is operated on a linear unit which has its own energy supply chain these
cables must also be taken into account.
The following points must be observed when planning and routing the con-
necting cables:
Protect cables against exposure to mechanical stress.
Route the cables without mechanical stress – no tensile forces on the con-
nectors
Cables are only to be installed indoors.
Route cables in such a way that they cannot be damaged by sharp edges,
tools or other materials.
Route cables in such a way that they are located outside of the camera’s
field of vision.
Observe permissible temperature range (fixed installation) of 243 K (-
30 °C) to 363 K (+90 °C).
For detailed specifications of the connecting cables, see (>>> 9.3.6 "De-
scription of the connecting cables" Page 40).
Interface X64 Interfaces X64.1 to X64.3 are situated on the connection panel of the KR C4.
7 Transportation
7.1 Transportation
Cameras Before transportation, the cameras must be removed. A protective cap must
be mounted on the connection for the process interface / power supply. The
cameras must be packaged for transportation in ESD protection foil. Care
must be taken to ensure that the cameras do not come into contact with hu-
midity.
Switch The switch must be packaged for transportation in ESD protection foil. Care
must be taken to ensure that the switch does not come into contact with hu-
midity.
Laptop/PC Software:
WorkVisual 3.0
The requirements for installation of WorkVisual are contained in the
WorkVisual documentation.
1 License key
3. Press Create footprint and select a directory. A file is generated in the se-
lected directory which links the control PC to the license. An encrypted sig-
nature for this control PC is saved in the file.
4. Send the generated file to [email protected]. KUKA Service
will use this to create a licensing file and send it to you.
5. Press ..., select the received licensing file and confirm with OK.
6. Reboot the robot controller.
Description If hardware components are modified, added or exchanged, this may invali-
date the license. A license becomes invalid if the current signature of the con-
trol PC differs too greatly from the saved signature. In this case, the license
can be repaired.
Step Description
1 Connect camera to the robot controller.
(>>> 9.3.1 "Networking KR C4 with interface X64, stationary"
Page 38)
(>>> 9.3.2 "Networking KR C4 with cable inlet, stationary"
Page 38)
(>>> 9.3.3 "Networking KR C4 compact, stationary"
Page 39)
2 Refresh the sensor overview.
1. In the main menu, select VisionTech > Sensor overview.
2. Press Refresh sensors.
3 Configure Ethernet KRL interface.
(>>> 9.4 "Configuring the Ethernet KRL interface" Page 43)
4 Configure the camera network.
(>>> 9.5 "Configuring the camera network" Page 43)
5 Configure the camera.
(>>> 9.6 "Configuring cameras" Page 44)
6 Align the camera.
(>>> 9.7 "Aligning camera (stationary)" Page 45)
7 Calibrate the camera.
(>>> 9.9 "Calibrating camera (stationary)" Page 46)
Step Description
1 Connect camera to the robot controller.
(>>> 9.3.4 "Networking KR C4 with interface X64, robot-
guided" Page 39)
(>>> 9.3.5 "Networking KR C4 with cable inlet, robot-guided"
Page 40)
2 Refresh the sensor overview.
1. In the main menu, select VisionTech > Sensor overview.
2. Press Refresh sensors.
3 Configure Ethernet KRL interface.
(>>> 9.4 "Configuring the Ethernet KRL interface" Page 43)
4 Configure the camera network.
(>>> 9.5 "Configuring the camera network" Page 43)
5 Configure the cameras.
(>>> 9.6 "Configuring cameras" Page 44)
Step Description
6 Align the cameras.
(>>> 9.8 "Aligning cameras (moving)" Page 45)
7 Calibrate the cameras.
(>>> 9.10 "Calibrating cameras (moving)" Page 48)
Description The cameras are connected via Ethernet; the networking differs depending on
the robot controller used and the mounting type of the cameras.
Variant Description
KR C4 with interface X64, (>>> 9.3.4 "Networking KR C4 with inter-
robot-guided face X64, robot-guided" Page 39)
KR C4 with cable inlet, (>>> 9.3.5 "Networking KR C4 with cable
robot-guided inlet, robot-guided" Page 40)
KR C4 with interface X64, (>>> 9.3.1 "Networking KR C4 with inter-
stationary face X64, stationary" Page 38)
KR C4 with cable inlet, sta- (>>> 9.3.2 "Networking KR C4 with cable
tionary inlet, stationary" Page 38)
KR C4 compact, stationary (>>> 9.3.3 "Networking KR C4 compact,
stationary" Page 39)
Configuration The connecting cables are used to transfer power and signals between the ro-
bot controller, linear unit, robot and cameras.
The following connecting cables are available:
For the KR C4 with interface X64:
Connecting cable, KR C4 – linear unit
Connecting cable, linear unit – robot
Connecting cable, KR C4 – robot
Connecting cable, KR C4 – camera
For the KR C4 with cable inlet to interface A13 on the switch:
Connecting cable, switch – linear unit
Connecting cable, linear unit – robot
Connecting cable, switch – robot
Connecting cable, switch – camera
For the KR C4 compact:
Connecting cable, KR C4 compact – switch
Connecting cable, switch – camera
Interfaces, KR C4 For connection of the connecting cables between the KR C4, linear unit, robot
and cameras, the following connectors are available at the interfaces:
If a cable inlet on the KR C4 is used instead of interface X64, the following con-
nectors are available:
Connecting The following connecting cables are for a KR C4 with interface X64:
cables, KR C4
Interfaces, KR C4 For connection of the connecting cables between the KR C4 compact, switch
compact and cameras, the following connectors are available at the interfaces:
Connecting
cables, KR C4
compact
Description To establish a connection between the kernel system and the image process-
ing system, the number of the flag that is to trigger execution of the interrupt
program must be entered in the configuration file for the Ethernet KRL inter-
face. The interrupt program monitors the result of the image processing. It is
triggered once the calculation of the image processing is completed.
replace the entry Choose Flag with the number of the flag that is to trig-
ger execution of the interrupt program.
3. Save and close the file.
4. In the main menu, select Configuration > Inputs/outputs > I/O drivers
and click on Reconfigure.
The I/O driver is reconfigured.
VisionTech can be used with both stationary and moving cameras. A station-
ary camera is fixed in its position, e.g. mounted on a stand or on the ceiling. A
moving camera is mounted on the robot flange.
Description
Field Description
Serial number Serial number of the cameras
IP address IP address of the cameras
Description Description of the cameras
Status Green: The camera is ready for operation.
Red: The camera is not ready for operation
and can thus not be used.
Recommendations
The camera should be directly above the calibration plate.
The calibration plate should fill as much of the image of the camera
as possible.
Precondition The cameras are mounted on the robot flange and configured as moving.
The cameras are networked.
The network has been configured.
The cameras are aligned.
A calibration plate is mounted and is located in the field of vision of the
cameras.
The NULLFRAME tool is selected.
4. Move the robot to the first calibration pose and press Take picture. The
fiducial mark (cross at the center of the calibration plate) must be visible in
every pose. It is not possible to record the same pose twice.
10 Configuration
Step Description
1 Teach reference position above the component.
2 Create task and take images.
(>>> 10.3 "Creating a task and taking images (stationary)"
Page 51)
(>>> 10.4 "Creating a task and taking images (moving)"
Page 52)
3 Set up an image processing task in WorkVisual.
(>>> 10.5 "Setting up an image processing task in WorkVi-
sual" Page 52)
4 Configure task.
(>>> 10.6 "Configuring a 2D task" Page 56)
5 Generate model.
(>>> 10.7 "Generating a 2D model" Page 59)
6 Test task.
(>>> 10.8 "Testing a 2D task" Page 61)
7 Create KRL program.
Step Description
1 Teach reference position above the component.
2 Create task and take images.
(>>> 10.4 "Creating a task and taking images (moving)"
Page 52)
3 Set up an image processing task in WorkVisual.
(>>> 10.5 "Setting up an image processing task in WorkVi-
sual" Page 52)
4 Configure task.
(>>> 10.9 "Configuring a 3D task" Page 62)
5 Generate model.
(>>> 10.10 "Generating a 3D model" Page 64)
6 Test task.
(>>> 10.11 "Testing a 3D task" Page 65)
7 Create KRL program.
3. Select the created task and activate the desired camera by means of the
check box in the Configurations area.
4. Press the camera icon, select the calibration plane and press Save pic-
ture.
Or: In the Task area, press the Settings icon and select Save.
The image is saved in the directory C:\KRC\TP\VisionTech\Snap-
shots\Name of the task\Camera serial number\Name of the plane. The Snap-
shots folder is a shared network resource. A maximum of 20 images can
be saved per calibration plane; any further images overwrite the oldest ex-
isting image.
Step Description
1 Install the image processing environment on the service lap-
top.
(>>> 10.5.1 "Installing the image processing environment"
Page 53)
Note: It is advisable to archive all the data on the service lap-
top before installation.
2 Install the VisionTech option package in WorkVisual.
3 License the image processing environment in WorkVisual.
(>>> 10.5.2 "Licensing the image processing environment in
WorkVisual" Page 53)
4 Save any perspective controlled images that were taken via
the controller to a USB stick or make them available via the
network.
5 Create a tool block file in WorkVisual.
(>>> 10.5.3 " Creating a tool block file in WorkVisual"
Page 54)
6 Transfer the tool block file to the controller on a USB stick or
via the network.
Precondition The VisionTech software has been copied to a USB stick, or is accessible
via the network.
Procedure 1. Select the menu sequence Editors > Option packages > VisionTech >
License configuration. The License configuration window is opened.
2. Click on Install license.
3. Enter the license key in the License key box. The license key is enclosed
with the software.
1 License key
It is not possible to take images with the license for the service laptop.
Description If hardware components are modified, added or exchanged, this may invali-
date the license. A license becomes invalid if the current signature of the im-
age processing computer differs too greatly from the saved signature. In this
case, the license can be repaired.
Procedure 1. Select the menu sequence Editors > Option packages > VisionTech >
License configuration. The License configuration window is opened.
2. Click on Repair license.
3. In the list of installed licenses, select the license to be repaired.
4. Click on Create repair request and select a directory. A file is generated
in the selected directory.
Procedure 1. Select the menu sequence Editors > Option packages > VisionTech >
License configuration. The License configuration window is opened.
2. Click on Install emergency license.
3. Click on Activate emergency license.
4. Restart WorkVisual.
4. Click on the button. The image(s) are inserted next to the inputs under
InputImage.
9. Click on the button and choose whether the tool should be saved com-
pletely or without images or results.
10. Select a directory and click on Save.
Description
1 Linking arrow
10.5.3.1 Templates
Template Description
LocatePartsOneStage Type: 2D
Suitable for parts which are defined by relatively coarse structures, e.g.
complete panels. The search area is the entire image. Further tools can
be added; only the result of “PatMax” is transferred, however.
LocatePartsKnown- Type: 2D
Position
With this template, a number of parts are searched for in the field of
view. The rough position of these parts must be known, however. The
search area is limited to the known rough position.
Template Description
LocatePart3D Type: 3D
With this template, the search procedure is subdivided into 2 steps
(analogous to LocatePartTwoStages):
Coarse search
The position of the parts in the picture is determined.
Fine search
Individual features are located which are required for 3D position de-
termination of the part. The features are identified by a consecutive
index. The index is positioned at the start of the name of the feature
tool block. The numbering starts at zero and must be consecutive.
Numbering is largely automatic, however. The fine search is run once
for each instance found in the coarse search.
Templates for features:
PointFeaturePM
Point feature which is located with a PatMax tool.
LineSegFeature
Straight line feature; normally represents points on a straight edge of
the part that is to be located. Has a start point and end point, which
are defined by the search area of the FindLine tool.
LineFeature
Line feature, without a start and end point.
CircleFeature
Feature which describes a circle in 3D.
Note: The PatMax tool and the FindLine tool must not be renamed. The
features must be evenly distributed over the component.
CrspCollector Collects the data from the FeatureCrsp outputs of 3D feature tool blocks
and makes these available at the output as a list of Crsps. In addition,
the result images of the Crsps are collected and forwarded in the
Graphic output.
StringCollector Collects the values at its inputs and returns these values as a string,
separated by a vertical bar, at the UserData output. The inputs accept
the data types INT32, DOUBLE, BOOL and STRING. These inputs must
be created as required.
PoseCreator Can be used if a 2D pose is not to be generated by a PatMax tool. The
values from which the pose is to be created are provided by the inputs.
PoseCollector Collects the individual poses from various tools and generates a list
which is returned to the PartResults output. This list is expected at this
output by the KUKA interface for 2D tasks.
If the tool block is created with WorkVisual, the required inputs and
outputs already exist.
If the selected is too low, this may lead to inconsistencies, e.g. if each
camera detects different objects. It is advisable to enter the number
of components that one expects to find.
Description
Item Description
1 Back to Overview
2 Name of the task
The name is freely selectable.
3 State of the task
Green: Task has been successfully configured.
Red: Task is not configured.
4 Generate model.
Green frame: Model has been successfully generated.
Red frame: No model has yet been generated.
5 Test task
Activated: The task can be tested.
Deactivated: The task cannot be tested. No model has yet
been generated, or the task is not configured.
6 Settings icon
Select the number of parts
Take images from all cameras
Item Description
7 Camera icon
Set exposure time
0 … 200 ms
Select calibration plane
Take images from this camera
8 Exposure time that has been set
9 Select tool block file
10 Serial number of the camera
11 Activated: Camera is used.
Deactivated: Camera is not used.
Button Description
New Creates a new task.
Delete Deletes the selected task from the list and from
the file system.
Refresh tasks Reloads all tasks and tool blocks in the directory
C:\KRC\TP\VisionTech\Tasks.
Import tool block Copies the selected file into the directory
C:\KRC\TP\VisionTech\ToolBlocks. The file can
then be selected in every task via the selection
box in the Toolblocks column.
Description Once the model has been generated, a result window with images and a table
is displayed. The result is the position of the component in the calibration base.
Areas detected by the cameras are indicated in green in the images. Areas
that have not been detected are marked in red.
Precondition The XY plane of the workpiece base is located on the surface of the com-
ponent.
The Z axis of the workpiece base points in the same direction as the cali-
bration coordinate system.
The task has been configured.
The icon in the Status column is green.
There is only 1 component in the field of vision of the cameras.
The NULLFRAME tool is selected.
Description Once the model has been generated, a result window with images and a table
is displayed. The result is the position of the component in the workpiece base.
Areas detected by the cameras are indicated in green in the images. Areas
that have not been detected are marked in red.
Description Once the test has been performed, a result window with images and a table is
displayed.
Areas detected by the cameras are indicated in green in the images. Areas
that have not been detected are marked in red. The differences between the
reference position used for model generation and the calculated position are
displayed in the table. If multiple components have been detected, the tables
are displayed on tabs.
The value of Score is between 0.0 and 1.0. The better the match between the
trained pattern and the pattern in the current search image, the higher the val-
ue of Score.
If the tool block is created with WorkVisual, the required inputs and
outputs already exist.
If the selected is too low, this may lead to inconsistencies, e.g. if each
camera detects different objects. It is advisable to enter the number
of components that one expects to find.
6. Select the tool block file and confirm with OK. The file is imported into Vi-
sionTech and can then be used for all tasks.
7. Repeat steps 5 to 7 for further tool block files used.
8. In the line for the desired camera in the Toolblocks column, select the im-
ported tool block file.
9. Press the camera icon. A window for setting the exposure time is dis-
played and the taking of images is displayed.
10. Optionally: Enter the exposure time or set it using the plus/minus keys or
the slider control.
11. Press Save picture. An image is made.
12. Press Save. The setting is saved.
Configuration of the task has been successfully completed when the icon
in the Status column changes to green.
Description
Item Description
1 Back to Overview
2 Name of the task
The name is freely selectable.
3 State of the task
Green: Task has been successfully configured.
Red: Task is not configured.
4 Generate model
Green frame: Model has been successfully generated.
Red frame: No model has yet been generated.
Item Description
5 Test task
Activated: The task can be tested.
Deactivated: The task cannot be tested. No model has yet
been generated, or the task is not configured.
6 Settings icon
Select the number of parts
Take images from all cameras
7 Camera icon
Set exposure time
0 … 200 ms
Take images from this camera
8 Exposure time that has been set
9 Select tool block file
10 Serial number of the camera
11 Activated: Camera is used.
Deactivated: Camera is not used.
Button Description
New Creates a new task.
Delete Deletes the selected task from the list and from
the file system.
Refresh tasks Reloads all tasks and tool blocks in the directory
C:\KRC\TP\VisionTech\Tasks.
Import tool block Copies the selected file into the directory
C:\KRC\TP\VisionTech\ToolBlocks. The file can
then be selected in every task via the selection
box in the Toolblocks column.
Description Once the model has been generated, a result window with images and a table
is displayed. Areas detected by the cameras are indicated in green in the im-
ages. Areas that have not been detected are marked in red. All configured
model points are listed in the table. For each model point, the model type is
specified and whether or not it has been found. The maximum and mean error
when finding the model point are also specified. For good results, the RMS er-
ror should be < 1 mm.
Description Once the test has been performed, a result window with images and a table is
displayed.
Areas detected by the cameras are indicated in green in the images. Areas
that have not been detected are marked in red. The differences between the
reference position and the calculated position are displayed in the table. If mul-
tiple components have been detected, the tables are displayed on tabs.
The value of Score is the mean square residual error after calculation of the
object position relative to the nominal position. If the position of the object can-
not be calculated, Score has the value -1.
11 Programming
Description The subprogram VT_INIT initializes the EKI channel. The configuration file is
transferred. VT_INIT is executed in the advance run.
Example VT_INIT("VisionTechConfig")
Example VT_OPENCONNECTION("VisionTechConfig")
For this subprogram, the same base and the same tool files must be
used as for model generation. The result is calculated relative to the
base for model generation.
Description The return value of GET_VTRESULT is the result of the previously executed
image processing task in the form of a VTRESULT structure. The configura-
tion file is transferred. The subprogram is executed in the advance run.
Description The subprogram VT_WAIT stops the program sequence until the flag is set to
the value TRUE. Program execution is then resumed. VT_WAIT triggers an
advance run stop.
The flag for which the program is to wait is the same flag that is set to
TRUE in the subprograms DO_GETVTRESULT and
DO_GETVTRESULTS.
Syntax VT_WAIT("Flag")
Example VT_CLOSECONNECTION("VisionTechConfig")
Description The subprogram VT_CLEAR ends the EKI channel. The configuration file is
transferred. VT_CLEAR is executed in the advance run.
Ensure that no data are called by a connection that has already been
terminated by VT_CLEAR.
Example VT_CLEAR("VisionTechConfig")
1 Base correction
2 Offset of point P1 due to the base correction
3 Radius (limit value)
Description The subprogram VT_CHECKPOSE checks whether points on the robot de-
fined by the user lie within an area defined by the user. The points on the robot
defined by the user are defined relative to the robot flange. Up to 10 points can
be defined.
(>>> 11.14.1 "Defining the points on the robot" Page 74)
It must be possible for all defined points to be addressed by the robot in the
NULLFRAME base and with the NULLFRAME tool. If a point is located outside
of the robot’s workspace, the robot stops.
Fig. 11-3: Example: Defined points within and outside of the defined area
Syntax RET = VT_CHECKPOSE("Base of the area", "Limit value X", "Limit value Y", "Limit
value Z", "Base of the gripping point", "Gripping point", "Tool")
All points (relative to the robot flange) in base 16 that lie within the following
values are valid:
X value: max. 700 mm
Y value: max. 950 mm
Z value: max. 900 mm
The gripping point is in base 11 and taught with tool 1.
Procedure 1. In the main menu, select Variable > Overview > Display.
2. Mark a variable in the UserCheckPoints tab and press Edit.
3. Enter the X, Y and Z values and save with OK.
4. Repeat steps 2 to 3 for the further points used. Enter the points in an un-
interrupted sequence from 1 to 10. If, for example, 5 points are desired,
enter the values into the variables UserCheckPoint[1] to UserCheck-
Point[5].
Description The subprogram GET_VTUSERDATA calls up optional user data from all con-
figured tool blocks and makes them available to the KRL.
GET_VTUSERDATA is executed in the advance run.
For the execution of the subprogram, 1 entry with user data from the
tool block is created for each camera.
The flag that is to be set to TRUE is the same flag that is used in the
subprogram VT_WAIT. The flag that is to be set to FALSE is defined
in the configuration file.
Description The subprogram VT_DIRECT calculates the status of axis 5 at the end point
in such a way that axes 4 and 6 are moved as little as possible. The program
requires the coordinates X, Y, Z, A, B and C of start and end points as well as
the status of the start point.
Start and end points can be taught with different tools and base coordinate
systems. In order for these to be calculated for the axis angles, the tool and
base must be transferred as a parameter for each start and end point.
If the status for the basic area or for axes 2 and 3 changes from the
start point to the end point, the program can no longer be used.
Syntax VT_DIRECT("Start point"), ("End point"), ("Base of the start point"), ("Base of the
end point"), ("Tool of the start point"), ("Tool of the end point")
12 Example programs
Line Description
36 Stops the program. During the initial execution of the pro-
gram, the points ProGrippingPos, GrippingPos and PostGrip-
pingPos in the newly calculated coordinate system (here:
base 11) must be taught here.
38 The query is TRUE if all defined points are located within the
defined area.
40 … 45 Calculates the motion between 2 points in such a way that
axis 4 and axis 6 are moved as little as possible. The query
determines whether only 1 component (start point -> ProGrip-
pingPos) or multiple components (PostGrippingPos -> Pro-
GrippingPos) have been detected.
Note: The program also functions without this call.
47 … 51 The point is addressed in the corrected component base.
Note: The program also functions without lines 43, 47 and 50.
55 Terminates all existing connections to the server.
56 Terminates the EKI channel.
13 Messages
14 Maintenance
Maintenance
symbols
Oil change
Tighten screw/nut
Clean component
Exchange battery
15 Repair
Precondition The robot controller is switched off and secured to prevent unauthorized
persons from switching it on again.
The power cable is de-energized.
Precondition The robot controller is switched off and secured to prevent unauthorized
persons from switching it on again.
The power cable is de-energized.
16 Troubleshooting
Fault Remedy
“Power” LED on the camera Check that the plugged and screwed
does not light up connections along the connecting cable
are fitted securely.
Check the connecting cable for dam-
age.
Neither LED “P1” nor LED Check whether voltage is present at the
“P2” lights up power connection (V1 or V2).
LED “P1” or LED “P2” lights Check that the DIP switches are set cor-
up red on the switch rectly. Both switches must be in the “ON”
position.
LED “Gigabit PoE Port” The connected device does not support
does not light up on the PoE.
switch
17.1 Decommissioning
Procedure 1. Disconnect the cameras and switch from the power supply.
2. Unplug the connecting cables.
3. Prepare the cameras and switch for storage or transportation.
17.2 Storage
Precondition If the cameras and switch are to be put into long-term storage, the following
points must be observed:
The place of storage must be as dry and dust-free as possible.
Avoid temperature fluctuations.
Avoid condensation.
Observe and comply with the permissible temperature ranges for storage.
Select a storage location in which the packaging materials cannot be dam-
aged.
Only store the cameras and switch indoors.
Procedure Cover the cameras and switch with ESD protection foil and seal it against
dust.
17.3 Disposal
When the cameras and switch reach the end of their useful life, dispose of
them as electrical scrap without disassembling.
18 Appendix
Tightening torque The following tightening torques are valid for screws and nuts where no other
specifications are given.
Strength class
Screw size 8.8 10.9 12.9
M1.6 0.17 Nm 0.24 Nm 0.28 Nm
M2 0.35 Nm 0.48 Nm 0.56 Nm
M2.5 0.68 Nm 0.93 Nm 1.10 Nm
M3 1.2 Nm 1.6 Nm 2.0 Nm
M4 2.8 Nm 3.8 Nm 4.4 Nm
M5 5.6 Nm 7.5 Nm 9.0 Nm
M6 9.5 Nm 12.5 Nm 15.0 Nm
M8 23.0 Nm 31.0 Nm 36.0 Nm
M10 45.0 Nm 60.0 Nm 70.0 Nm
M12 78.0 Nm 104.0 Nm 125.0 Nm
M14 125.0 Nm 165.0 Nm 195.0 Nm
M16 195.0 Nm 250.0 Nm 305.0 Nm
M20 370.0 Nm 500.0 Nm 600.0 Nm
M24 640.0 Nm 860.0 Nm 1030.0 Nm
M30 1330.0 Nm 1700.0 Nm 2000.0 Nm
19 KUKA Service
Availability KUKA Customer Support is available in many countries. Please do not hesi-
tate to contact us if you have any questions.
Index
Numbers I
2D model, generating 59 Image processing environment, installing 53
2D model, moving camera 60 Image processing environment, licensing 53
2D model, stationary camera 59 Image processing task, setting up 52
2D task, configuring 56 Images, taking (moving) 52
2D task, testing 61 Images, taking (stationary) 51
3D model, generating 64 Installation 33
3D task, configuring 62 Installation, VisionTech 33
3D task, testing 65 Intended use 9
89/336/EEC 19, 20 Interfaces 29
Interfaces, KR C4 compact, connecting cables
A 42
Appendix 97 Interfaces, KR C4, connecting cables 40
Introduction 7
C
Calibration plane, delete 48 K
Calibration plates 17 KLI 8
Camera network, configuring 43 Knowledge, required 9
Camera, aligning (stationary) 45 KONI 8
Camera, calibrating (stationary) 46 KUKA Customer Support 99
Camera, exchange 91 KUKA GigE switch 12
Cameras, aligning (moving) 45 KUKA GigE switch, technical data 20
Cameras, calibrating (moving) 48 KUKA MXG20 camera 16
Cameras, configuring 44 KUKA MXG20 camera, technical data 19
Configuration 51
Connecting cables 17, 21, 29 L
Connecting cables, KR C4 21, 41 License repair 35, 53
Connecting cables, KR C4 compact 22, 42 License, activation 34, 53
Licensing 33, 34
D
Decommissioning 95 M
Defining the points on the robot 74 Maintenance 89
Dimensions, camera 23 Maintenance symbols 89
Dimensions, extension 24 Messages 83
Disposal 95 Motherboard, exchange 91
DO_GETVTRESULT (subprogram) 75
DO_GETVTRESULTS (subprogram) 76 N
Documentation, industrial robot 7 Networking 38
E O
EKI 8 Overview, VisionTech 11
EMC Directive 19, 20
Emergency license, activation 35, 54 P
EN 60204-1 + A1 27 Plates and labels 24
Ethernet KRL interface, configuring 43 PoE 8
Example programs 79 Product description 11
Programming 67
F Purpose 9
Functions 11
R
G Recommissioning 37
General safety measures 27 Reference pose 8
GenICam 8 Regulations 27
GET_VTCORRECTIONFRAME (subprogram)
68 S
GET_VTRESULT (subprogram) 68 Safety 27
GET_VTUSERDATA (subprogram) 75 Safety instructions 7
GigE 8 Service, KUKA Roboter 99
smartHMI 8
Standards 27
Start-up 37
Storage 95
Support request 99
Switch, exchange 91
System requirements 33
T
Target group 9
Task, creating (moving) 52
Task, creating (stationary) 51
Technical data 19
Templates 55
Terms used 8
Tightening torque 97
Tool block 8
Tool block file, creating 54
Trademarks 7
Training 9
Transportation 31
Troubleshooting 93
U
Uninstallation, VisionTech 34
Update, VisionTech 33
V
VT_CHECKPOSE (subprogram) 72
VT_CHECKPOSELIMIT (subprogram) 71
VT_CLEAR (subprogram) 71
VT_CLOSECONNECTION (subprogram) 71
VT_DIRECT (subprogram) 77
VT_INIT (subprogram) 67
VT_OPENCONNECTION (subprogram) 67
VT_RESULTCHECK2 (subprogram) 70
VT_TASKTRIGGER (subprogram) 67
VT_TASKTRIGGER_REFBASE (subprogram)
68
VT_WAIT (subprogram) 70
VTRESULT_CHECK (subprogram) 69
VTRESULT, structure 69
W
Warnings 7