corndog2000 / TCP-IP-4Axis-Python-CMD

Demo of MG400/M1Pro, Python package based on TCP/IP protocol, command line operation mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chinese version of the README -> please click here

Readme

1. The following steps are required to run Demo

  1. 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 robots (such as MG400, etc.) When wired connection is connected to LAN1: ip is 192.168.1.6, when wired connection is connected to LAN2: ip is 192.168.2.6, wireless connection: ip is 192.168.9.1 .
    • Six-axis robot (such as CR series, etc.) Wired connection: ip is 192.168.5.1 ,Wireless connection: ip is 192.168.1.6 .
  2. Try to ping the controller IP to make sure it is in the same network segment.

  3. Numpy is required for the Python environment: pip install numpy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

2. File description

  1. main.py: The entry point of the program.

  2. dobot_api.py: It mainly encapsulates the robot interface, according to the robot TCP/IP remote control scheme (https://github.com/Dobot-Arm/TCP-IP-Protocol), modify it by yourself.

  3. files: Stores alarm ID related information

3. Run Demo

Method 1: If you need to detect and search the dynamic library, you need to open the entire directory in VsCode, and then run main.py directly.

Method 2: To detect and search the dynamic library, you need to open the entire directory in PyCharm, and then run main.py directly.

4. Test environment

  • language: Python 3.8 64-bit
  • os: Windows 10 64-bit

5. Controller version

The controller versions that can use the TCP/IP protocol are as follows:

  • MG400: 1.5.4.0 and above
  • CR: 3.5.1.9 and above

About

Demo of MG400/M1Pro, Python package based on TCP/IP protocol, command line operation mode

License:MIT License


Languages

Language:Python 100.0%