Bin Picking Tutorial: Setting up Photoneo Bin Picking Studio with FANUC robots
Contents
1. Prerequisites
Please make sure that your Fanuc controller meets following criteria:
- System version 8.10 and higher (Versions 6.40 - 7.70 are also supported with certain limitations)
- R632 Karel - Karel option available
- R648 User Socket Msg - Socket Communication option available
Click Menu -> Status -> Version ID -> Next -> F3[ORDER FI] to verify that required options are installed on robot controller:
2. Fanuc Controller Setup
2.1 Set IP Addresses of Ethernet Ports
As a first step we need to configure controller IP addresses of robot controller.
On Pendant Press Menu -> Setup -> Host Comm -> TCP/IP:
Two Ethernet ports should be available, it is recommended to configure Port#1 for communication with Vision Controller. Adapt an IP address of Port#1 to meet you network configuration:
If you use ROBOGUIDE for workcell commisioning, configure Port#2 for transferring files between robot controller and your PC. Adapt an IP address of Port#2 to meet you network configuration:
2.2 Configure TCP/IP Server
Photoneo Fanuc Module requires State Server to run as a background task on the robot controller. Configured TCP/IP server is necessary for this purpose.
Press Menu -> Setup -> Host Comm -> F4[SHOW] and select Servers
Select S3 slot - we keep S1 and S2 slots reserved for user application.
Configure TCP/IP server S3 as shown in the figure below:
2.3 Configure TCP/IP Client
The main Photoneo Bin Picking application works in client mode. Configured TCP/IP Client is necessary for this purpose.
Press Menu -> Setup -> Host Comm -> F4[SHOW] and select Clients
Select C3 slot - we keep C1 and C2 slots reserved for user application.
Configure TCP/IP client C3 as shown in the figure below:
2.4 Change Cartesian Origin of Robot
The Cartesian origin of Fanuc robots is different than the Cartesian origin of robot models used in the Photoneo Binpicking Studio. In order to ensure successful calibration, we need to apply predefined offset in Z axis in UFRAME.
Press Menu -> Next -> System -> Variables and scroll down until you find system variable named GROUP. (Use Shift button to speed up scrolling)
Press Enter to open GROUP menu and select UFRAME option as shown in the figure below:
Edit the Z value according to the Offset table below and the arm you are using for your application.
A table of offsets for specific robot models is shown in the figure below:
NOTE: Be careful since this change might affect your previously taught Cartesian positions !!!
2.5 Load Photoneo Fanuc Module Files
The Photoneo Fanuc Interface consists of two Karel binaries and approximately 20 TP programs. All these files needs to be copied to robot controller in order to get Photoneo Fanuc Module up and running.
Extract Photoneo Fanuc Module archive (.zip file) which you received with Photoneo Bin Picking Studio to the USB stick and plug it to Teach Pendant.
Press Menu -> File -> File -> F5[UTILS] and select Set Device:
Select USB on TP (UT1:) option as shown in the figure below:
Press F2[DIR] to open Photoneo Fanuc Module directory:
Select *.*(all files) and press F3[LOAD] and YES to load all the files from Photoneo Fanuc Module to the robot controller:
Press Select button to verify that all TP and Karel programs were successfully loaded:
2.6 Enable Autostart of State Server
As a next step we need to configure State Server to start automatically after boot.
Press Menu -> Next -> System -> Variables and scroll down to find SHELL_CFG variable
Edit SHELL_NAME and SHELL_EXT to the state as shown in the figure below:
Cycle power to apply all changes. Press FCTN -> NEXT -> CYCLE POWER and confirm YES.
If everything was set correctly you should see that State Server is started and waiting for connection immediately after the boot: