Set up Standard Interface Communication with ROKAE
This guide shows how to set up the Standard Interface communication with a ROKAE robot.
Check Hardware and Software Versions
|
The models and versions listed below are tested and can be used. For other models and versions, you may refer to this guide for operation. If any issues occur, please contact Mech-Mind Technical Support. |
-
The robot in use is a ROKAE industrial robot.
-
The HMI version is 5.0.13.0411 or above, and the RC version is 3.2 or above.
Click here for instructions
Open the Robot Assist software, and select to view the versions of HMI and RC.
-
The Robot Assist software has been installed on the IPC.
Set up the Network Connection
Connect the Hardware
Plug one end of the network cable into the network port of the IPC, and plug the other end into the LAN1 port of the robot controller.
Set the IP Address of the IPC
The default IP address of the LAN1 port of the ROKAE robot is 192.168.2.160. Please set the IP address of the IPC (for example, 192.168.2.222) to ensure that the IP address of the IPC and that of the robot are in the same subnet.
Set up Robot Communication Configuration
-
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.
-
If you have entered the main interface, click on the menu bar.
-
-
Click Robot Communication Configuration on the toolbar of Mech-Vision.
-
In the Robot Communication Configuration window, complete the following configurations.
-
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.
-
In the Communication mode section, select Standard Interface for Interface service type, TCP Server for Protocol, and ASCII for the protocol format.
-
It is recommended to set the port number to 50000 or above. Ensure that the port number is not occupied by another program.
-
Under Robot integration, click Open program folder.
The files needed for subsequent loading will be copied from this folder. Do not close this folder. -
(Optional) Select Auto enable interface service when opening the solution.
-
Click Apply.
-
-
On the main interface of Mech-Vision, make sure that the Robot Communication Configuration switch on the toolbar is flipped and has turned blue.
Load the Program Files to the Robot
| To prevent the loading operations from affecting the robot system, it is recommended to back up the robot system files before loading the program files. If any problem occurs during the operations, you can restore the robot system with the backup files. For detailed operations, please refer to Back up Robot Files. |
-
Open the Robot Assist software, and click the WiFi icon in the lower-right corner. Enter “192.168.2.160” (the IP address of the robot) in the address bar, and then click Connect.
-
Select , select the “System” user level, enter the password “123456”, and then click Login.
-
Select , and then click the Import Task icon.
-
In the Import Task interface, select Import Mod, and then click Open in the Import Mod area.
-
In the file selection window that appears, select the folder that stores the program files to be loaded, and then click Select Folder.
The program files to be loaded are stored in the Communication Component/Robot_Interface/ROKAE/Task_Listfolder in the installation directory of Mech-Vision and Mech-Viz.
-
In the Select Items area, select all the entries, and then click Finish.
-
Click Variable List in the navigation bar. In the Import Variable area, set File Format to “json”, and then click Open. In the dialog box that appears, select the variable file, and then click Select File. In the Select Items area, select all the entries, and then click Finish.
The variable file is the Communication Component/Robot_Interface/ROKAE/Variable_List/var.jsonfile in the installation directory of Mech-Vision and Mech-Viz.
-
Click Points List in the navigation bar. In the Import Point area, set File Format to “json”, and then click Open. In the dialog box that appears, select the point file, and then click Select File. In the Select Items area, select all the entries, and then click Finish.
The point file is the Communication Component/Robot_Interface/ROKAE/Point_List/point.jsonfile in the installation directory of Mech-Vision and Mech-Viz.
-
Click RL Editor in the navigation bar to enter the editing interface. Click
mainto compile the robot program. When “PP_To_Main” is displayed at the top of the software, the program files are loaded without any problem.
Test Standard Interface Communication
-
Select , select the
mechmind_socketvariable, and then click the Edit button.
-
In the variable editing interface that appears, modify the IP address and port number, and then click Finish.
The IP address and port number must be consistent with the settings of the vision system.
-
Click RL Editor in the navigation bar, click
main, select the “MM_Com_Test” program from the drop-down options, and then compile the program.
-
Click the first line of the program, and then click Run. The robot program starts to run.
-
If the communication between the robot and the vision system is successfully established, a related message will be displayed under the Console tab in the log window of Mech-Vision.