Master-Control Communication Setup
This guide shows you how to set up master-control communication with a DOBOT robot.
Preparation
Set up the Network Connection
Connect the Hardware
Plug one end of the Ethernet cable into the network port of the IPC and the other end into the network port of the robot controller.
① is the network port of the robot controller.
Set the IP Address
To allow communication between the IPC and the robot controller, the IP addresses of the IPC and robot controller must reside in the same subnet. This means that the network portions and subnet masks of the IP addresses should be the same. For example, 192.168.100.2/255.255.255.0 and 192.168.100.3/255.255.255.0 are in the same subnet.
-
Set the IP address of the IPC.
-
Set the IP address of the robot.
-
If the robot controller software is DobotSCStudio, set the IP address by performing the following operations.
In DobotSCStudio, go to
.If the robot IP address does not reside in the same subnet as the IPC, select Manual IP Address, set the IP address manually, and then save the settings. -
If the robot controller software is DobotStudio, set the IP address by performing the following operations.
In DobotStudio, go to
, enter the IP address, netmask and default gateway, and click Apply.
-
Switch to Remote Control Mode (required only by DobotStudio)
In DobotStudio, select
, select TCP/IP Secondary development for Current mode, and then click Apply.Precautions
-
Do NOT use Mech-Viz and DobotSCStudio or DobotStudio at the same time. Otherwise, Mech-Viz may be unable to communicate with the robot.
-
Do not use Mech-Viz when operating the teach pendant.
-
It is suggested to remove the Wi-Fi USB device connected to the controller since the device may affect remote control.
-
When master-controlling the DOBOT robot, Mech-Viz does not support setting the robot’s TCP during program runtime. Therefore, please make sure that the TCP value on the robot side is consistent with the TCP set in Mech-Viz. Otherwise, the real robot’s linear motion path will differ from the planned path of Mech-Viz. You can perform the following operations to make the TCP values consistent:
-
Modify the TCP value on the robot side manually to match the TCP set in Mech-Viz.
-
Move the robot.
-
Reconnect the robot to Mech-Viz.
-
-
The DI value of the DOBOT robot is one greater than that in Mech-Viz. For example, DI1 of the real robot corresponds to DI0 in Mech-Viz.
-
If the robot suddenly stops when moving and SafeSkin is enabled, it indicates that collisions are detected. The collisions may be caused by cables wrapping around the robot arms. Disable SafeSkin to prevent false collision detection.
Test Master-Control Communication
Create a Mech-Viz Project
-
Open Mech-Viz, press Ctrl+N on the keyboard to create a new project. Select the robot model corresponding to your real robot brand and model on the interface as shown below.
-
Press Ctrl+S and create or select a folder to save the project.
-
Right-click the project name in the left panel in Mech-Viz and select Autoload Project.
Connect to the Robot
-
Click Master-Control Robot on the toolbar of Mech-Viz.
-
Input the IP address of the real robot in Robot IP address (the IP address in the picture is only an example). Click Connect the robot.
If Mech-Viz successfully connects the real robot, the current status will change to Connected. Meanwhile, the icon in the toolbar will turn from blue to green.
If the connection fails, please double-check the robot IP address.
Move the Robot
-
In the toolbar of Mech-Viz, change the “Vel.” (velocity) and “Acc.” (acceleration) parameters to 5%.
-
Click Sync Robot in the toolbar, and you can synchronize the poses of the simulated robot in the 3D simulation space with the poses of the real robot. Then click Sync Robot again to unselect it.
-
In the Robot tab, slightly adjust the value of “J1”, for example, from 0˚ to 3˚. This operation will move the simulated robot.
-
Click Move real robot and check if the real robot has moved. If the real robot has reached the JPs set for the simulated robot, the master-control communication is working.
When moving the robot, please ensure the safety of personnel. In the case of an emergency, press the emergency stop button on the teach pendant!