Set up Nachi Controller

Network configuration

A network connection between the two systems is required for communication between the robot controller and Mikado Controller. To do this, first connect an Ethernet port of the Nachi Controller to an Ethernet port of the Mikado Controller. A fixed IP address and a corresponding subnet mask must then be set for both the Mikado Controller and the robot controller. The network configuration of the Mikado Controller is explained in more detail in section Network adapter. We are working on a detailed description of the network configuration of the Nachi controller. For the time being, information on the network configuration of the controller can be found in the manufacturer’s user manual.

Warning

Make sure that the IP addresses of the Mikado Controller and Nachi Controller are in the same address space and that the subnet masks match.

Then enter the IP address of the robot controller in the Mikado Assistant under “Parameters” -> “Robot” in the corresponding field and save the settings.

Preparation

This description was created for a Nachi Controller Ver. 4 63 05-30-2019. The instructions may be incomplete for other versions. If you have any problems, please contact Mikado Support.

The preparation for transferring the programs and user tasks is described so that it can be implemented with the help of the Teach Panel. First of all, it is recommended to press the R key and then enter 314 in the field that opens. The controller then asks for the password for the Specialist authorization, which is required for parts of the Nachi setup. Enter 12345 as the password and then press the Enter button. On the teach panel, you can go back one step in the menu by pressing the R button. Most of the buttons on the teach panel are assigned twice for reasons of space. If Enable and another button are pressed at the same time, the green function on the button is executed. If, for example, the 0 button is pressed together with Shift, the result is a + (plus sign) and without a 0 (scalar).

Picture Nachi Panel

Photo of a Nachi Teach Panel in which the double assignment of the buttons can be seen

Copying the programs/user tasks

In order for the Nachi robot to be controlled by Mikado, the corresponding programs must be copied to the robot controller and compiled there. You will find the required programs on the Mikado controller under

/opt/isys-vision/mikado/robot_programs/nachi/

or directly via the corresponding button in the Mikado Assistant (“Parameters” -> “Robot” -> “Open directory”). Compiling the programs only works if the name of the robot is part of the program name. The example shown here is a MZ07L-01. If you have a different robot, please change the name of the robot programs. Now copy the programs from the above-mentioned directory to a USB stick for transfer to the Nachi. There are 2 USB interfaces on the Nachi where data can be transferred. One on the teach panel and one on the controller itself. Experience has shown that the port on the teach panel is unreliable, which is why we recommend transferring data to the controller.

To copy the files, please click on the Teach Panel:

Service Utilities → 7 File Manager → 1 File Copy → select your USB stick under Device (src) and click on the right arrow on the Teach Panel → select the programs on the right side by clicking on Enter → Execute.

Compiling the programs/user tasks

The driver consists of 2 robot programs that are called one after the other and two user tasks that run in parallel:

  • MZ07L-01-A.008 → Robot program for resetting the variables

  • MZ07L-01-A.012 → Robot program for controlling the robot

  • USERTASK-A.000 → Usertask to receive the data from Mikado

  • USERTASK-A.001 → User task for sending the data to Mikado

  • VAR.INC → List of required variables

The list with additional variables only needs to be copied, but not compiled. To compile the other files, please proceed as follows:

Service Utilities → 15 ASCII File Edit → Select/mark file and open with Execute → Complete → Confirm the question whether the file should be compiled. If the query does not appear after confirming, you must check whether the name of the file is correct (is the name of the robot correct, is the extension correct, …).

Setting the priority of the user tasks

The user tasks run in parallel to each other. By changing the priority, the receiving of data can be given a higher priority than the sending of data. As trajectories in Mikado often contain over 100 joint poses, the receiving of data must be assigned a higher priority. This works as follows:

Service Utilities → 4 Monitor 2 → 37 User Task → 1 User Task Monitor.

The priority of the user tasks must be changed here. To do this, set the priority of Prog 0 to 6 and that of Prog 1 to 4. To do this, the number in the Priority field must be marked and can now be changed by clicking the button with the sheet and pen (next to the FN button) on the Teach Panel. After changing the priorities, exit the editing mode by clicking the button with the pen and paper again.

If you want to stop a user task, you must press the Enable button and Off (located on the digit 2), as the Off function is highlighted in green. After starting the controller, user tasks are started automatically.

Starting the robot program

After switching the lever on the teach panel and controller to Playback mode, the program can be started. The correct program can be selected by clicking the program button on the teach panel. This can also be used to reset the program after a stop due to an emergency stop, for example. The robot can be switched on by clicking Enable and Motor ON. Once the correct program has been selected and the robot is energized, the program can be started by simultaneously pressing Enable + Shift + GO. The Nachi can now be controlled by Mikado.

The gripper (or suction cup) is controlled via outputs, which you set in the Mikado cell directory in the file config/gripper.yaml:

open_hand_signal_number: 23
close_hand_signal_number: 24