FANUC Automatic Calibration

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

This topic introduces the process of automatic calibration via Standard Interface communication between the FANUC robot and Mech-Mind Vision System.

Preparation before Calibration

Make preparation before calibration according to the camera mounting method. You may refer to the links below.

Pre-calibration Configuration

  1. Open Mech-Vision, and click the Camera Calibration (Standard) button in the toolbar. The Configuration before Calibration window will be prompted.

  2. In the Select how to calibrate window, select the New calibration radio button, and then click the Next button.

  3. In the Select calibration task window, select Hand-eye calibration for listed robot from the drop-down list box, click the Select robot model button to select the robot model used by the project, and then click the Next button.

  4. In the Select camera setup window, select the camera mounting method in this project, and then click the Next button.

  5. In the Calibration method and robot control window, select Automatic and Standard Interface, and then click the Next button.

  6. In the Communication mode window, keep the default value of Protocol. Click the Start interface service button in the Connect the robot area, and the message on this button will change to Waiting for the robot to connect....

    • The port number for the Host IP address parameter is 50000 by default. If the port number determined in the communication solution is not 50000, please change it as required.

    • After finishing the previous steps, do not close the Configuration before Calibration window.

    wait for robot connection

Select and Modify Calibration Program

Before starting, ensure that you have set up Standard Interface communication.
  1. After loading the program files, press SELECT key on the teach pendant to enter the program selection interface. Select MM_AUTO_CALIB using the arrow keys and then press ENTER to open the program.

    calibration1
  2. Set the parameters of the function CALL MM_INIT_SKT in the program MM_AUTO_CALIB. This function has four parameters. Select one of the parameters by using the arrow keys, press F5 to select CHANGE, and then change the value as needed.

    • Parameter 1: client port number (1-8)

    • Parameter 2: IP address of the IPC

    • Parameter 3: IPC (server) port number, which should be the same as the setting in Mech-Vision

    • Parameter 4: timeout (min)

    calibration2

Teach the Calibration Start Point

  1. After opening the program, press the STEP key on the teach pendant to switch to Step mode. Then the Step icon on the screen will turn yellow.

    calibration3
  2. Press and hold either one of the deadman switches on the back of the teach pendant. Move the robot to the start point for calibration.

    enable switch
  3. Move the cursor to the second line using the arrow keys, and press the SHIFT and FWD keys at the same time to run the command on the second line. Then the user reference frame 0 will be used.

    calibration4
  4. Move the cursor to the third line, and press the SHIFT and FWD keys at the same time to run the command on the third line. Then the tool reference frame 1 will be used.

    calibration5
  5. Select [100] using the arrow keys, and press F5 to select POSITION. Then, press F5 again to select REPRE. Select Cartesian using the arrow keys and press ENTER to confirm.

    calibration6
    calibration7
  6. Select CONTINUE in the dialogue box below, and then press F4 to select DONE.

    calibration8
  7. Select the line number of line 5. Then, press SHIFT and F5 (to select TOUCHUP) together. When the teach pendant displays the message Position has been recorded to PR[100], the robot’s pose is stored in PR[100].

    calibration9
  8. Press STEP on the teach pendant to exit the Step mode. Then the Step icon on the screen will turn grey.

    calibration10

Run the Calibration Program

  1. Switch the robot to the automatic mode: Turn the switch of the teach pendant to OFF, and turn the switch of the controller to AUTO.

    mm run 1
    mm run 2
  2. Press RESET on the teach pendant to dismiss all alarms. Then, adjust the robot speed to between 10% and 20% with the keys +% and -%.

    calibration11
  3. Press the green button on the controller to auto-run the calibration program.

    mm run 3
  4. When, in the Configuration before Calibration window in Mech-Vision, the current status changes to connected and the button Waiting for the robot to connect…​ changes to Disconnect robot, click Calibrate. The Calibration (Eye to hand) window will be prompted.

    start calilbration1

    If the robot is connected successfully, the Console tab of Mech-Vision Log panel will display a log.

    start calilbration2

Calibration Procedure

Conduct calibration according to the camera mounting method. You may refer to the links below.

Change the Extrinsic Parameter File

If the camera’s extrinsic parameter file has been used by a Mech-Vision project, you need to change the extrinsic parameter file used by the Mech-Vision project to a new one after you finish the hand-eye calibration.

  1. Select the Capture Images from Camera Step.

    change calibration parameter group
  2. In the Step Parameters panel, click change calibration parameter group icon of the Camera Calibration Parameters parameter, and select the newly calibrated extrinsic parameter file.

Calibration-Related Status Codes

During automatic calibration via Standard Interface communication, the vision system returns data together with the status code to the robot. Status codes, which are categorized into error codes and normal status codes, indicate the command execution status. Calibration related status codes are listed in the tables below.

Error codes

Error code Description

Calibration: Parameter error

Calibration: No calibration flange pose provided from Mech-Vision

Calibration: No calibration joint angles provided from Mech-Vision

Calibration: Robot failed to reach calibration point

Normal status codes

Normal status code Description

7100

Calibration: Robot moved to the calibration point successfully

7101

Calibration: Pose received from Mech-Vision successfully

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.