Set up Standard Interface Communication with Kawasaki
This guide shows how to load the Standard Interface program files to a Kawasaki 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
-
Controller: E-series or F-series
-
Controller system software version: no requirement
-
Additional controller software options: no requirement
Set up the Network Connection
Connect the Hardware
Use an Ethernet cable (prepared by yourself) to connect the Ethernet ports on the IPC and that inside the accessory panel on the front of the controller.
Two Ethernet ports are provided by the CPU board of the robot controller. The IP addresses of the two ports must reside in different subnets. In most cases, Ethernet port 1 (the upper one) is used to connect the front panel of the controller, while Ethernet port 2 (the lower one) is reserved.
Set IP Addresses
-
Press the Aux. button on the teach pendant, and then select
to set the IP address of the robot Ethernet port. -
Set the IP address and subnet mask of port 1 on the Port 1 network setting page. The IP addresses of the robot and the IPC must reside in the same subnet. If a network gateway is used, set the Gateway parameter.
If port 2 on the robot is used for network connection, press the Next Page button on the bottom of the Port 1 network setting page to go to the Port 2 network setting page and set the IP address.
After you set the IP address, press the ENTER key on the teach pendant to confirm.
-
Restart the controller.
Set up Communication with Robot
-
Run Mech-Vision, and 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 area, 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.
-
(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.
Prepare Program Files
Navigate to Mech-Center\Robot_Interface\KAWASAKI
from the installation directory of Mech-Vision and Mech-Viz, copy the mm_module.as file to the root directory of your flash drive, and then plug the flash drive to the USB port of the accessory panel on the controller.
Precautions
-
Save user programs.
If user programs exist in the program list on the teach pendant, save them before you load program files. If no user programs exist on the teach pendant, skip this step. Click here for instructions
-
Press the Aux. button, and select
. -
On the Save page, press Input File name to enter the file name, and then press the SAVE button. After the file is saved, press the R key on the teach pendant to return to the main page.
-
-
Before you load files, check if registered programs exist in the Program area on the teach pendant. If yes, deregister these programs by following instructions as shown below.
-
Before you load files, check to make sure that the robot is in teach mode. After above checks, the interface of the teach pendant is shown as below.
Load the Program Files to the Robot
-
Press the Aux. button on the teach pendant.
-
Select
. -
Double-click the program file mm_module.as to allow mm_module.as to be displayed in the File Name field. Then, select LOAD.
-
After you load the files, check to make sure that no errors occurred during the loading process. Press the R key on the teach pendant to exit.
Test Standard Interface Communication
Select and Modify the Program Used for the Communication Test
-
Press the program area on the teach pendant. In the pop-up menu, select Directory.
-
Select the foreground program mm_comtest in the Directory list. Then, press the ENTER key on the teach pendant to confirm the selection.
The following figure shows the interface after the program is added.
-
Reset the parameters of the mm_init_skt function in the mm_comtest program by performing the following steps.
-
Press J/E on the teach pendant, select Program Edit in the pop-up menu, and then press ENTER to confirm.
-
Select mm_comtest in the program menu and press the ENTER key to confirm.
-
Move the red selection frame to line 5 on the teach pendant by using the arrow keys to select call mm_init_skt(127,0,0,1,50000). Then, press the ENTER key to confirm.
-
Use the arrow keys and number keys on the teach pendant to change 127,0,0,1 to the IP address of the IPC and “50000” to the host port number set in Mech-Vision. After you modify the settings, press ENTER to confirm and press R to exit.
-
In the prompted confirm window, press Yes and then Close.
-
Run the Program and Test Connection
-
Switch Teach/Repeat on the controller to REPEAT, and switch the teach lock on the teach pendant to OFF. After these operations, the robot should be in REPEAT mode.
-
Switch to the STEP CONT. REP. ONCE mode on the screen, and reset REP. SPD to 10%.
-
Hold the A key on the keypad and press MOTOR on the screen to make MOTOR lit. Hold the A key on the keypad and press CYCLE on the screen to make CYCLE lit. If RUN is not lit, press A and RUN/HOLD together on the teach pendant.
When RUN, MOTOR, CYCLE are all lit, the communication test program starts to run. -
If the communication between the robot and the vision system is set up, a log will be recorded on the Console tab of the Log panel of Mech-Vision.