-
电脑可用网线连接控制器的网口,然后设置固定 IP,与控制器 IP 在同一网段下。也可无线连接控制器。
- 四轴机器人(如MG400等) 有线连接时连接LAN1:ip为192.168.1.6 , 有线连接时连接LAN2:ip为192.168.2.6
- 六轴机器人(如CR系列等) 有线连接:ip为192.168.5.1 , 无线连接:ip为192.168.1.6
-
尝试 ping 通控制器 IP,确保在同一网段下。
-
demo.py: 程序运行入口。
-
dobot_api.py:根据机器人TCP/IP远程控制方案(https://github.com/Dobot-Arm/TCP-IP-Protocol)自行修改。
方法一: 需要检测搜索到动态库,需在VsCode中打开整个目录,再直接运行 demo.py。
方法二: 需要检测搜索到动态库,需在PyCharm中打开整个目录,再直接运行 demo.py。
- language: Python 3.7 64-bit
- os: Windows 10 64-bit
-
The computer can be connected to the network port of the controller with a network cable, and then set a fixed IP, which is in the same network segment as the controller IP. The controller can also be connected wirelessly.
- Four-axis robot (such as MG400, etc.) When wired connection, connect to LAN1: ip is 192.168.1.6 , When wired connection, connect to LAN2: ip is 192.168.2.6 .
- Six-axis robot (such as CR series, etc.) Wired connection: ip is 192.168.5.1 ,Wireless connection: ip is 192.168.1.6 .
-
Try to ping the controller IP to make sure it is in the same network segment.
-
demo.py: The entry point of the program.
-
dobot_api.py: According to the robot TCP/IP remote control scheme (https://github.com/Dobot-Arm/TCP-IP-Protocol), modify it by yourself.
Method 1: If you need to detect and search the dynamic library, you need to open the entire directory in VsCode, and then run demo.py directly.
Method 2: To detect and search the dynamic library, you need to open the entire directory in PyCharm, and then run demo.py directly.
- language: Python 3.7 64-bit
- os: Windows 10 64-bit