Set up Standard Interface Communication with MELFA

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

This guide shows how to load the Standard Interface program files to a FANUC robot, and set up the Standard Interface communication between Mech-Mind Vision System and the robot.

In this section, you will load the robot Standard Interface program and the configuration files to the robot system to establish the Standard Interface communication between the vision system and the robot.

Preparation

Check Controller and Software Compatibility

Software Version: RT ToolBox3 Pro Version 2.50C

Controller Version:

  • CR500:K9q

  • CR700:R7x,S7x

  • CR800:E1

Procedure for checking version information:

  1. Launch the RT ToolBox3 software (abbreviated “ToolBox3”).

    melfa software
  2. Click the Help menu and select Version Information.

    melfa software version

Set up the Network Connection

Set the IP Address

The workflow for establishing a network connection via ToolBox3 is as follows:

  • Check robot IP address

    1. On the teach pendant’s main menu, find PARAM and press EXE.

      TP param
    2. Go to the PARAM page on the teach pendant, enter NETIP in the NAME field, then press EXE to confirm.

      TP NETIP
    3. As shown in the figure, the DATA area displays the robot’s IP address.

      TP DATA

If the teach pendant is unavailable or the robot IP cannot be determined, you can connect directly to the robot using a USB cable with a mini-B connector (as shown below).

mini b
  • Create a robot project in ToolBox3:

    1. Start ToolBox3, click Workspace to open the main menu, then click New.

      RT menu
    2. In the pop-up window, select the path for the new workspace, edit the workspace name, then click OK to confirm and complete creation.

      RT new workspace
    3. After creating the workspace, the Add Project window opens to the Overview step. Enter the project name and click Next.

      RT work addon
    4. In the Robot Model step, fill in the options based on the actual robot in use, then click Next.

      RT work series
    5. In the Communication step, modify the IP address (as viewed on the teach pendant) and the TCP server port number, then click Next.

      RT ip port
    6. In the Language step, select Robot Language and Regional Language 2 according to the project requirements, then click Finish to create the project.

      RT lang

Connect the Hardware

Use an Ethernet cable to connect the robot controller’s LAN port to a switch port. The operating system running the robot software and the operating system running the vision software must both be connected via Ethernet to the same switch, as shown in the figure below.

RT hardware connect

Controller Communication Connection

  1. In Workspace/Online/Parameters/Communication Parameters, find and click Ethernet to open it; in the settings page menu, select Device–Port to enter the Device list.

    RT dev port
  2. Select the OPT device to be used as the communication device, then click the Settings button to open the Device Parameter Settings window. Configure the current device parameters according to the following rules:

    • Mode: Client

    • IP Address: IP address of the IPC

    • Port #: Must match the vision-side port number

    • Protocol: Data Connection

    • Packet Type: 0: CR

    • Allocation: COM7

      Within the Allocation options, only COM7 supports controller-to-robot connections.

      RT dev port 2

Back up Robot Program Files

  1. In the ToolBox3 interface, on the left, navigate to Workspace/Project Name/Robot Name/Backup, right-click the Backup folder and click Online Project Backup.

    RT backup
  2. On the Online Project Backup page, confirm Backup is set to All Files, add a Comment and modify the Folder Name (if needed), then click OK.

    RT backup info
  3. A backup completion message pops up in ToolBox3, indicating the backup was successful.

    RT backup popup
  4. Saved backup files can be found in the project’s Backup folder. If you do not edit the backup Folder Name, the default folder will be named with the operation date and time.

    RT backup file

Set up Robot Communication Configuration

  1. Open Mech-Vision. You may enter different interfaces. Create a new solution according to the instructions below.

    • If you have entered the Welcome interface, click New blank solution.

    create solution 1
    • If you have entered the main interface, click File  New Solution on the menu bar.

    create solution 2
  2. Click Robot Communication Configuration on the toolbar of Mech-Vision.

  3. In the Robot Communication Configuration window, complete the following configurations.

    1. Click the Select robot drop-down menu, and select Listed robot. Click Select robot model, and select the robot model that you use. Then, click Next.

    2. It is recommended to set the port number to 50000 or above. Ensure that the port number is not occupied by another program.

    3. (Optional) Select Auto enable interface service when opening the solution.

    4. Click Apply.

  1. On the main interface of Mech-Vision, make sure that the Robot Communication Configuration switch on the toolbar is flipped and has turned blue.

    interface service

Prepare Program Files

  1. You can also find the program folder in the Communication Component/Robot_Interface/MELFA path in the installation directory of Mech-Vision and Mech-Viz.

  2. Copy the following files to any folder; the figure below uses Desktop/MELFA as an example.

    • MMAUTOCALIB.prg

    • MMCOMTEST.prg

    • MMMODULE.prg

    • MMS1VisBasic.prg

    • MMS2VizBasic.prg

    • MMS3VisBasic.prg

    • MMS4VISUser.prg

    • MMS5VIZUSER.prg

      burn desktop

Load the Program Files to the Robot

  1. Start ToolBox3, in the left pane navigate to Workspace/Project Name/Robot Name/Simulation, find the Program option, right-click to open the menu, and select Program Manager to open it.

    RT program manage
  2. On the Program Manager, in the Source area select Project, click ... to choose the path where the flash files are stored, and confirm the file list in the File List area.

    RT burn list
  3. After confirming, check (Select All) to select all flash files in the list, click Copy in the middle of the interface to open the pop-up, verify the copy targets again, then click OK to complete flashing.

    RT burn copy
  4. Confirm that the flash files have been imported into Workspace/Project Name/Robot Name/Simulation/Program.

    RT burn finish

Test Standard Interface Communication

  1. On the robot control panel, click Select to open the ToolBox3 Select Program dialog.

    test choose
  2. In ToolBox3, in the Select Robot Program pop-up, select the MMCOMTEST program and click OK.

    test run
  3. The test program will run automatically, and Mech-Vision returns the corresponding status information.

  4. When the connection is successful, Mech-Visionthe returned status information is as shown in the figure below:

    vision center log

The connection test is for testing purposes only; once successfully established, the connection will automatically disconnect. You can view the Client connected and Client disconnected logs on the Console tab of the Mech-Vision Log window.

Is this page helpful?

You can give a feedback in any of the following ways:

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.