Standard Interface Programming for JAKA

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 section introduces how to write a Standard Interface program with JAKA’s programming function. You can apply the example program with a little modification. There is no requirement on the version of the robot controller when using the example programs provided in this section.

Load the Program

The example program is in`Communication Component\Robot_Interface\JAKA`from the installation directory of the Mech-Mind Software Suites. Please refer to Load the Example Programs to load the example programs.

Calibrate the Example Program

In the Programming control window, open the loaded mmCali program.

jaka program implementation1

Program Description

You will only need to make the following two modifications:

  • Step 1: Modify the IP address and port number in the Open SOCKET instruction. The IP address set here is the IP address of the IPC, which should be on the same subnet as that of the robot.

  • Step 9: You can select the Linear movement, and set the Start subscript to 3 and the End subscript to 9.

Obtain Vision Result from Mech-Vision

In the Programming control window, open the loaded mmVis program.

jaka program implementation2

Program Description

  • Step 1: Establish TCP/IP Socket connection between the robot and the IPC. The IP address set here is the IP address of the IPC, which should be on the same subnet as that of the robot.

  • Step 2: Obtain the robot’s current joint positions and store them in the current_jps variable.

  • Step 3: Obtain the robot’s current flange pose and store them in the current_fpose variable.

  • Step 4: Send the command to start the Mech-Vision project. Please refer to Command 101 for detailed descriptions of parameter settings.

  • Step 5: Receive the status code returned from Command 101, and store it in the res variable.

  • Step 6: Send the command to obtain the vision result. Please refer to Command 102 for detailed descriptions of parameter settings.

  • Step 7: Receive the data returned from Command 102, and store it in the res variable.

  • Step 8: Convert the data received in Step 7 from strings to array and store the data in the vis_recv variable.

  • Step 9: Print the log.

  • Step 10: Determine whether the value of vis_recv’s Access subscript 1 is 1100. 1100 indicates that the vision result is obtained successfully.

  • Step 11: Move to the first vision point in linear movement.

    For JAKA robot’s linear movement, the software should send TCP to the robot; and for joint movement, the software should send joint positions.

Obtain Planned Path from Mech-Viz

In the Programming control window, open the loaded mmViz program.

jaka program implementation3

Program Description

  • Step 1: Establish TCP/IP Socket connection between the robot and the IPC. The IP address set here is the IP address of the IPC, which should be on the same subnet as that of the robot.

  • Step 2: Obtain the robot’s current joint positions and store them in the current_jps variable.

  • Step 3: Obtain the robot’s current flange pose and store them in the current_fpose variable.

  • Step 4: Send the command to start the Mech-Viz project. Please refer to Command 201 for detailed descriptions of parameter settings.

  • Step 5: Receive the status code returned from Command 201, and store it in the res variable.

  • Step 6: Send the command to obtain the planned path. Please refer to Command 205 for detailed descriptions of parameter settings.

  • Step 7: Receive the data returned from Command 205, and store it in the res variable.

  • Step 8: Convert the data received in Step 7 from strings to array and store the data in the viz_recv variable.

  • Step 9: Determine whether the value of viz_recv’s Access subscript 1 is 2100. 2100 indicates that the planned path is obtained successfully.

  • Step 10: Move to the first waypoint in linear movement.

    For JAKA robot’s linear movement, the software should send TCP to the robot; and for joint movement, the software should send joint positions.

Obtain Planned Path from Mech-Vision

In the Programming control window, open the loaded mmVisPath program.

jaka program implementation4

Program Description

  • Step 1: Establish TCP/IP Socket connection between the robot and the IPC. The IP address set here is the IP address of the IPC, which should be on the same subnet as that of the robot.

  • Step 2: Obtain the robot’s current joint positions and store them in the current_jps variable.

  • Step 3: Obtain the robot’s current flange pose and store them in the current_fpose variable.

  • Step 4: Send the command to start the Mech-Vision project. Please refer to Command 101 for detailed descriptions of parameter settings.

  • Step 5: Receive the status code returned from Command 101, and store it in the res variable.

  • Step 6: Send the command to obtain the planned path from Mech-Vision. Please refer to Command 105 for detailed descriptions of parameter settings.

  • Step 7: Receive the data returned from Command 105, and store it in the res variable.

  • Step 8: Convert the data received in Step 7 from strings to array and store the data in the vis_recv variable.

  • Step 9: Print the log.

  • Step 10: Determine whether the value of vis_recv’s Access subscript 1 is 1103. 1103 indicates that the planned path is obtained successfully from Mech-Vision.

  • Step 11: Move to the first waypoint in linear movement.

    For JAKA robot’s linear movement, the software should send TCP to the robot; and for joint movement, the software should send joint positions.

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.