Skip to content

FANUC Robots Vision Manual

Note

This manual focuses exclusively on FANUC Robots-specific topics. For general robot vision information, please refer to the wenglor robot vision manual.

This repository contains an example FANUC program to set up and start the generic vision interface to wenglor Machine Vision Devices on your FANUC robot.

The robot vision example for FANUC consists of the following files, available in the sources directory of this repository. They are provided once per controller software generation, in the folders V9 and V10 — transfer only the set that matches your controller software:

File Description
V9/, V10/ One complete file set per controller software generation: V9 for the software versions 9.10, 9.30 and 9.40, V10 for 10.10.
w_library.pc KAREL library with all vision routines (socket communication, calibration, detection, conversions).
w_library.kl KAREL source code of the library, for reference and for recompiling it yourself.
w_single_detect.tp Single object detection TP program.
w_multi_detect.tp Multiple object detection TP program.
w_update_reference_frame.tp Reference-frame update TP program.
w_move.tp Helper TP program that moves the robot to a pose register (PTP or LIN).

The sources directory also contains plain-text listings of the TP programs (.LS) for reading them without a teach pendant. They are documentation only.

Note

  • Tested with the FANUC R-30iB Mate Plus robot controller and the LR Mate 200iD robot arm. The supported controller software versions are V9 (9.10, 9.30 and 9.40) and V10 (10.10). Make sure to use the file set that matches your controller software.
  • Working with KAREL files requires the system variable $KAREL_ENB to be set to 1.

How the manual is organized

graph LR A[1. Installation & Setup] --> B[2. User Configuration] B --> C[3. Robot Program] C -.-> D[4. Troubleshooting] D -.-> E[5. Support & Feedback]
  1. Installation & Setup — prepare the controller, network, and tool frame, then transfer the files.
  2. User Configuration — adjust the KAREL variables and poses to your setup.
  3. Robot Program — how the KAREL library and TP programs work together.
  4. Troubleshooting — common issues and how to resolve them.
  5. Support & Feedback — where to report bugs or suggest features.

Note

The generic robot vision API (commands, return values, error codes), the calibration guidelines, and the uniVision job setup are documented once in the wenglor robot vision manual and are not repeated here. This manual only describes how the FANUC example uses them.