Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

LK-TECH MGv2 Servo Motor System Complete Guide

F: | Au:FANS | DA:2026-05-15 | 272 Br: | 🔊 点击朗读正文 ❚❚ | Share:

Complete Guide to LK-TECH MGv2 Servo Motor and Drive System

Introduction: High performance integrated servo solution

The MGv2 series brushless servo motor launched by Shanghai Lingkang Technology (LK-TECH), combined with the DG80 series driver, is designed specifically for high-precision, high response, and high torque applications. This series of motors adopts a 32-bit high-performance MCU combined with optimized FOC (Field Oriented Control) technology, as well as a low internal resistance MOSFET flat structure, achieving compact electromechanical integration design. The motor and driver are highly integrated, supporting absolute value encoders and built-in dual closed-loop control, significantly improving the accuracy of torque, position, and speed feedback.

The MGv2 series covers multiple sub series such as MS, MF, MG, MH, etc., suitable for scenarios such as gimbal, pod, turntable, power inspection robot, robotic arm, LiDAR, quadruped robot, exoskeleton, etc. This article is based on the official manual V2.33, providing engineers with a systematic technical guide for selection comparison, hardware connection, software debugging, parameter configuration, encoder alignment, and common troubleshooting.


Comparison of Product Series Selection

Series Input Voltage Current Range Speed Range Drive Type Encoder Accuracy Communication Typical Scenarios

MS 7.4-24V 0-4A 0-1000 rpm SVPWM 12/18 bit RS-485/CAN gimbal, pod

MF 12-36V 0-9A 0-3000 rpm FOC 14/18 bit RS-485/CAN turntable, power inspection

MG 24-48V 0-14A 0-2000 rpm FOC 18 bit RS-485/CAN robotic arm, LiDAR

MH 12-24V 0-4A 0-3000 rpm FOC 18 bit RS-485/CAN quadruped robot, exoskeleton

Selection criteria: Choose based on load inertia, maximum speed, and supply voltage. The MG series has the highest torque (14 A) and is suitable for heavy-duty joints; The MF series has a high rotational speed (3000 rpm), suitable for quick positioning; MS series low voltage, low speed, suitable for portable gimbal; MH series medium voltage and speed, suitable for exoskeletons. Note that all series support three control modes: speed, position, and torque.


Driver parameters and interfaces

3.1 DG80 Driver Core Specifications

Parameter values

Input voltage DC 12-60 V (DG80R/C7)

Rated/peak current 10 A/20 A (peak duration 10 seconds)

Control loop torque 32 kHz, speed 8 kHz, position 8 kHz

PWM frequency 32 kHz

Torque ring width 0.4-2.8 kHz (depending on motor and load)

Encoder 18 bit absolute value

Communication RS-485 or CAN

3.2 Interface Definition

The driver provides the following key interfaces:

A/H, B/L: RS-485 A+/B - or CAN-H/L

V+, V ---: Positive and negative poles of the power supply

T. R: UART send/receive (for serial port debugging)

G: Signal Ground

Important: The 120 Ω terminal resistor needs to be connected to both ends of the bus (controlled by dip switch S-4). For long-distance or multi node networks, terminal resistors must be enabled to avoid signal reflection.


Hardware connection and debugging environment setup

4.1 Power Connection

Connect the driver to the power supply using XT30 cable. Be sure to confirm that the positive and negative poles are correct, and select the appropriate voltage range and output power (it is recommended that the power supply capacity be no less than 1.5 times the peak power of the motor). The MG series has a maximum voltage of 48V, please note that overvoltage may cause damage to the driver.

4.2 USB-UUART Connection

Connect the PC to the driver through a USB-UUART conversion module (such as CP2102). CP210x virtual serial port driver needs to be installed (official Baidu Netdisk link provided). After successful connection, confirm the COM port number in the device manager.

4.3 Upper computer software

LingKong Motor Tool V2.33 "is an official debugging tool that does not require installation and can be run by double clicking. Supports WIN7 and above systems. The interface includes:

Connection settings (COM port, baud rate ID)

Basic settings (ID, bus type, direction, braking resistance)

Protection settings (undervoltage, overvoltage, motor temperature, etc.)

Limiting settings (maximum speed, acceleration, torque current)

PID settings (position loop, speed loop, current loop)

Motor/encoder alignment

Test interface (torque, speed, multi turn position, single turn position control)

Communication configuration and ID allocation

5.1 ID Setting Method

The ID of MGv2 driver can be set in two ways:

DIP switch (ID=0): Binary selection of 1-8 from DIP switches SW1-SW3. Corresponding relationship:

1#:OFF OFF OFF

2#:OFF OFF ON

3#:OFF ON OFF

4#:OFF ON ON

5#:ON OFF OFF

6#:ON OFF ON

7#:ON ON OFF

8#:ON ON ON

Software settings (ID=1-32): Set the ID to a non-zero value on the "Basic Settings" page, save and restart the power to take effect. At this time, the fourth position (S-4) of the dip switch is specifically used to control the 120 Ω terminal resistor (ON indicates connection).

Engineering experience: It is recommended to use software IDs (1-32) for multi axis systems to avoid limiting the number of dip switches; Ensure that each axis ID is unique. After changing the ID, it must be powered on again.

5.2 Bus type and baud rate

RS-485: Supports 9600 bps to 2 Mbps. The factory default is 115200 bps.

CAN: Supports 125 kbps, 250 kbps, 500 kbps, and 1 Mbps. The factory default is 1 Mbps.

Broadcast mode: Can control 4 motors (ID 1-4) simultaneously, with baud rate set to 1M or 2M (RS-485) or 500K/1M (CAN), and only supports torque control mode. This mode is suitable for scenarios where multiple motors output synchronously but do not require independent position feedback.

5.3 Rotation direction

Reversible motor rotation direction (Normal: counterclockwise is positive; Reverse: clockwise is positive. After modification, it is necessary to save and restart, and then perform the "Align" operation to recalibrate.


Encoder alignment (core steps)

The MGv2 series uses an 18 bit absolute value encoder, and the motor and encoder must be aligned before use, otherwise the motor cannot operate normally.

6.1 Alignment Preparation

Ensure that the number of motor poles is set correctly (usually default values apply).

The motor is best unloaded (if the load is heavy, the alignment voltage can be appropriately increased).

Click the "Align" button, and the motor will automatically calibrate by swinging in both directions.

6.2 Alignment result judgment

After alignment is completed, the 'Motor/Encoder Align Ratio' is automatically calculated. The value should be close to 1000, the closer it is to 1000, the better the calibration effect. If the deviation is too large, it is necessary to check:

Is the number of motor poles incorrect

Excessive mechanical resistance of the motor (bearing jamming, load not detached)

Poor contact of encoder wiring

Common faults: The motor shakes violently or cannot rotate during the alignment process. Firstly, reduce the alignment voltage, and then manually rotate the motor to feel the resistance. If it still cannot be completed, check if the UVW phase sequence of the motor is reversed.

6.3 Motor Zero Position Setting

After alignment is completed, the current position can be set as the starting zero position of the motor using the "Set" button. For systems with reducers, it is also necessary to set the reduction ratio and reducer zero position in the "Reducer/Encoder Setting" (dual encoder mode).


Protection mechanism and troubleshooting

7.1 Configurable Protection

Protection item status description

Motor temperature protection can be enabled to read the internal temperature sensor of the motor. If it exceeds the limit, an error will be reported and it will stop

Under voltage protection can activate an alarm when the bus voltage is below the threshold

Overvoltage protection can activate an alarm when the bus voltage exceeds the threshold

Input loss protection can enable communication signal loss alarm after exceeding the set time

Overcurrent, short circuit, and stalling have not yet been opened at the hardware level due to limited current. Software protection is pending firmware upgrade

Suggestion for handling: In battery powered applications, it is necessary to enable undervoltage protection to prevent battery damage caused by over discharge. If undervoltage is frequently triggered, it is necessary to check whether the power cord diameter is too thin or the battery internal resistance is too high.

7.2 Indicator light status

Green constantly on: connection is normal, motor is enabled (Motor ON).

Green slow flashing (2 seconds/time): Motor not enabled (Motor OFF).

Green flash (0.3 seconds/time): The motor is in an error state (fault).

When an error occurs, clear it through the "Clear Error" button; If it is an unrecoverable error (such as overvoltage), the power supply needs to be restarted.

7.3 Common Error Codes (Read by Status)

The software provides a "Read State 1/2/3" button, which can read in real-time:

UVP: Undervoltage

OVP: Overvoltage

MTP: Motor Temperature Protection

LIP: Input loss (communication timeout)

Troubleshooting example: The motor suddenly stops and the indicator light flashes rapidly. Clicking on "Read State1" displays "UVP". If the input voltage of the driver is lower than the minimum operating voltage (for example, if the 24V system drops to 18V), check the power supply or replace it with a larger capacity battery.

PID Debugging Guide

The MGv2 driver adopts a three loop control: current loop (torque loop), speed loop, and position loop. The PI parameters (Kp, Ki) of each loop can be independently adjusted through software.

8.1 Debugging sequence

Current loop (default parameters generally apply, unless the motor is replaced or the load inertia is extremely high). Kp affects the torque response speed, while Ki eliminates steady-state errors. If the motor produces high-frequency whistling, Kp should be reduced.

Speed loop: First set smaller Kp and Ki, gradually increase Kp until there is no oscillation in the speed response, and then increase Ki to reduce static error.

Position loop: Based on the adjusted speed loop, adjust the position loop Kp (usually only controlled by P, with Ki set to 0). Increasing Kp can improve the positioning stiffness, but excessive Kp can easily cause overshoot or oscillation.

8.2 Save Parameters

Using the 'SET' button only writes to RAM (lost during power failure), it is necessary to use 'Write to ROM' and restart the power to permanently save.

Experience value: For general gimbal loads, the speed loop Kp can be set to 500-1500, and Ki can be set to 100-300; Set the position ring Kp at 200-800. Specific adjustments need to be made based on the actual mechanical system.


Detailed explanation of control mode (test interface)

On the "Test" page, users can send real-time instructions to verify the motor response.

Mode description range reducer influence

Torque control setting torque current (± 2000), clockwise is positive. 2000~2000 has no impact

Speed control set speed (± 24000 dps). -24000~24000 dps No impact

Multi turn position control 1 sets the absolute angle (± 359999.99 °), and the motor moves at maximum speed. -359999.99~359999.99 ° Actual angle=Set value/i

Multi circle position control 2 is the same as above, but it can limit the movement speed. Same angle, adjustable speed as above

Single turn position control 1 is set to rotate clockwise relative to the zero position from 0 to 359.99 °, with the option to rotate in the opposite direction. 0-359.99 ° actual angle=set value/i

Single circle position control 2 is the same as above, which can limit the speed.  – –

Incremental position control 1 increases the fixed angle (supports positive and negative) with each click. ± 359999.99 ° increments divided by reduction ratio

Incremental position control 2 can limit speed.  – –

Note: All multi turn/incremental position values must be divided by the reduction ratio (i) to obtain the actual motor movement angle. In applications with reducers (such as MG80-16-i6), it is important to pay attention to parameter settings.


Firmware upgrade operation

Hardware/software information can be read through the 'Product' page. Upgrade steps:

Click on 'Open File' and select the firmware file (. bin) that matches the motor model.

Click 'Download' and wait for the writing to complete.

After the upgrade is completed, the motor will automatically recalibrate (alignment needs to be performed again).

Warning: Power off is strictly prohibited during the upgrade process, otherwise the drive may become bricked. The mismatch between firmware and motor model may cause the motor to malfunction, so it is necessary to verify.


Quick Reference Table for Common Malfunctions and Solutions

Possible causes and solutions for the fault phenomenon

Unable to connect to software COM port selection error, baud rate mismatch, driver not installed, check device manager; Ensure the baud rate is 115200 (default); Reinstall CP210x driver

The motor does not rotate, and the LED flash triggering protection (under voltage, over voltage, temperature, communication loss) reads the status and handles it according to the error type; Clear errors or restart

During alignment, the motor experiences severe shaking, excessive load, incorrect number of pole pairs, mechanical jamming, and no-load alignment; Check the pole pair setting; Reduce alignment voltage

Unstable speed control, improper PID parameters, re adjust the speed loop, reduce Kp or increase integration time

Position control overshoot position ring Kp is too large, reduce position ring Kp, or increase speed limit

Communication interference leads to packet loss due to lack of terminal resistance, and unused shielded twisted pair cables are connected to 120 Ω resistors at both ends of the bus; Use twisted pair shielded wires, with the shielding layer grounded at one end

Broadcast mode cannot synchronize ID not set to 1-4, baud rate does not match confirm axis ID 1-4, baud rate 1M/2M (RS-485) or 500K/1M (CAN)

  • Basler SR32A2B05B3E Static Voltage Regulator
  • Basler Electric BE1-59N Ground Fault Overvoltage Relay
  • Basler Electric 9110000113 Excitation Module
  • Basler Electric 90-72300-114 Control Accessory
  • Basler Electric PRS-250 Protection Relay System
  • Basler Electric BE1-50/51M-109 Overcurrent Relay
  • Basler Electric SR4A1B10B3E Static Voltage Regulator
  • Basler Electric CBS 212 Current Boost System
  • Basler Electric SR32A2B05B3E Static Voltage Regulator
  • Basler Electric MOC2207 Motor Operated Potentiometer
  • Basler Electric SR4A1B05A3E Static Voltage Regulator
  • Basler Electric BE1-32R Power Relay B2EE1PA0N1F
  • Basler BEI-81 Underfrequency Relay
  • Basler CBS 212A Current Boost System
  • Basler SSR 63-12 Static Voltage Regulator
  • Basler DGC-2020 Digital Genset Controller
  • Basler BE1-32 Reverse Power Relay
  • Basler BE1-50/51B-207 Overcurrent Relay
  • Basler BE1-951 Overcurrent Protection System
  • Basler 9073800-103 Power Supply
  • Basler SCA1300-32FC CCD Camera
  • Basler 9073800-103 Power Supply
  • Basler SCA1300-32FC CCD Camera
  • Basler L304KC Protective Relay
  • Basler BE3-25-1S1N4 Time Overcurrent Relay
  • Basler 9032300113 Excitation Support System
  • Basler BE1-59N Ground Overvoltage Relay
  • Basler MVC-300 Manual Voltage Control Unit
  • Basler MOC2102 Potentiometer
  • Basler BE1-87G Generator Differential Relay
  • Basler Electric DECS-200 Digital Excitation Control System
  • Basler Electric DECS 125-15-B2C5 Digital Excitation System
  • Basler Electric PLA2400-12GM Power Supply
  • Basler Electric BE1-50/51B-235 Overcurrent Relay
  • Basler Electric BE1-27/59 Undervoltage Overvoltage Relay
  • Basler Electric CEM-2020 Contact Expansion Module
  • Basler Electric BE1-32R Solid State Power Relay
  • Basler Electric BE1-700 Digital Generator Management Relay
  • Basler Electric BE1-59N Ground Fault Overvoltage Relay
  • Basler Electric BE10493002 Protection Module
  • Basler Electric BEI-79A1AA5CA3M1F Digital Annunciator
  • Basler Electric SSR 32-12 Static Voltage Regulator
  • Basler Electric BE1-CDS240 Current Differential System
  • Basler Electric BE1-67 Directional Overcurrent Relay
  • Basler Electric 9121000106 DECS-100 Voltage Controller
  • Basler Electric BEI-871 Interface Module
  • Basler Electric 8650C72 Exciter Control Module
  • Basler Electric RDP-110-S1 Generator Annunciator
  • Basler Electric BE1-32O/U Directional Power Relay
  • Basler Electric BE2000E AVR Voltage Regulator
  • BASLER ELECTRIC BE1-50F2EA1PA0N0F Instantaneous Overcurrent Relay
  • BASLER ELECTRIC BE1-81T1EE1WA0N1F Underfrequency Relay
  • Basler BE1-67 Directional Overcurrent Relay
  • Basler BE1-25/79TR Reclosing Relay
  • Basler CEM-2020 Contact Expansion Module
  • Basler BE1-11 Overcurrent Protection Relay
  • Basler BE1-GPS Generator Protective Relay
  • BASLER ELECTRIC MVC-300 MANUAL VOLTAGE CONTROL UNIT 9121000106
  • Basler Electric KR2FF Voltage Regulator 9 1163 00 109
  • BASLER ELECTRIC BE1-87G-G1E-A1K-A0N0F Generator Differential Relay
  • Basler BE1-47NE3EA1PA0N2F Phase Sequence Relay
  • Basler BE1-81-T1E-E1C-B0N1F Frequency Relay
  • Basler DECS125-15 Excitation Control
  • Basler BE1-25 Sync-Check Relay
  • Basler BE1-50/51B Overcurrent Relay
  • Basler BE1-40Q Loss of Excitation Relay
  • Basler BE1-50/51M-104 Overcurrent Relay
  • Basler SSE-N 250-9 KW Shunt Exciter Assembly
  • Basler BE1-87T Transformer Differential Relay
  • Basler BE1-60 Solid State Protective Relay
  • Basler DECS125-15 Excitation Control System
  • Basler SR4A-2B15B3A Static Voltage Regulator
  • Basler BE150BF Overcurrent Relay
  • BASLER ELECTRIC BE1A1HF1JD1S2F Overcurrent Relay
  • Basler BE1-81O Under/Over Frequency Relay
  • Basler EDM-200 Exciter Diode Monitor
  • Basler DECS125-15-B2C5 Excitation Control
  • Basler 9261402100 PCB Board
  • Basler 9252000107 Overcurrent Relay
  • Basler BE1-87T Solid State Protective Relay
  • Basler Electric Phase Directional Overcurrent Relay BE1-Z2JA0N2F
  • Basler SSR125-12 Static Voltage Regulator
  • Basler Electric KR7F VOLTAGE REGULATOR 9116200100
  • BASLER ELECTRIC BE1-59N-A8E-E1L-N0S1F Ground Overvoltage Relay
  • Basler SR8A2B06B3A Static Voltage Regulator
  • BASLER ELECTRIC BE1-81O/UT3EE1KA7N1F Under/Over Frequency Relay
  • Basler MOC2107 Output Module
  • Basler 9125600102 Control Module
  • BASLER ELECTRIC BE1-81T1EE1EA2N0F
  • Basler BE3-25A Time Overcurrent Relay
  • Basler Electric CBS 212 Current Boost System 9 2650 00 100 120/240 VAC 50/60Hz
  • Basler Electric BE1-27 Under Voltage Relay A3EC1JA0N5F
  • Basler BE1-32R Power Relay B2EE1PA0N1F
  • Basler DECS100-B15 Automatic Voltage Regulator
  • Basler SR8A-2B15B3A Static Voltage Regulator
  • Basler AVC63-4 Analog Voltage Regulator
  • Basler UFOV 260 A Overvoltage Module
  • Basler SR4A-2B16B3A Static Voltage Regulator
  • Basler SR4A-2B16B3E Static Voltage Regulator
  • Basler SCA1300-32GM CCD Camera
  • Basler BE34062001 G18 Transformer
  • Basler BE1-87T Transformer Differential Relay
  • Basler 9 2849 00 101 DECS Power Module
  • Basler RAL6144-16GM Line Scan Camera
  • Basler 9269101107 Voltage Regulator Board
  • Basler BE1-851 Overcurrent Relay
  • Basler SR32A-2B13B3E Static Voltage Regulator
  • Basler 9 2007 00 100 Current Boost System CBS 305
  • Basler DECS-100-B11 Automatic Voltage Regulator
  • Basler BE127 Under Voltage Relay
  • Basler 3300C03B1028-G01 Spike Suppressor
  • Basler SSR 125-12 Static Voltage Regulator
  • Basler SCA1300-32GM CCD Camera Lens Enclosure
  • Basler BE32965001 Transformer Timer Kit
  • Basler D90 96801 100 PCB Card
  • Basler BE1-81-T1E-E1C-A0N1F / 9106400 Underfrequency Relay
  • Pro-Face Basler AGP3600-T1-D24 HMI Touch
  • Basler SR4A2B10B1A Static Voltage Regulator
  • Basler SR8A2B05B3A Static Voltage Regulator
  • Basler BE1-25 Time Overcurrent Relay M1FA6PA4S0F
  • Basler SR4A2B05B3E Static Voltage Regulator
  • Basler DECS-200-2L Digital Excitation Control
  • Basler BE303280001 Control Transformer
  • Basler 9262103004 Voltage Regulator Board For Basler DECS-400
  • Basler ICRM-7 Inrush Current Reduction Module
  • Basler BE1-32R Power Relay
  • BASLER ELECTRIC KR4F VOLTAGE REGULATOR 9042600100 600V 50/60Hz
  • Basler 9222600101 Power Module