Makerbase SERVO42ES

Contents

MKS SERVO42ES Closed-Loop Stepper Motor Driver User Manual

Model: SERVO42ES | Brand: Makerbase

1. Overview

The MKS SERVO42ES closed-loop motor driver is a product independently developed by Makerbase to meet market demand. It features both pulse and bus interfaces, incorporating an efficient FOC vector algorithm. A high-precision encoder is utilized to effectively prevent the motor from losing steps through continuous position feedback. This driver is suitable for a wide range of applications including small robotic arms, 3D printers, engraving machines, non-standard automation products, and electronic competitions.

Key Features:

  • Supports 6 working modes: pulse interface (pulse-pulse, pulse-direction mode), serial interface (open loop, closed loop).
  • High-performance FOC vector control algorithm for torque, speed, and position three-loop control.
  • Supports curve acceleration and deceleration for smoother motor start and stop.
  • Supports relative position and absolute position control mode.
  • Built-in 256-step subdivision interpolation algorithm ensures ultra-quiet and low-vibration motor operation.
  • Maximum input pulse frequency of 300KHz and a maximum speed of 3000RPM.
  • Motor angle information is updated in real time (whether the motor is enabled or disabled).
  • Supports MODBUS-RTU communication protocol (RS485 version).
  • Onboard RS485 interface with 256 slave addresses, supporting broadcast and group addresses.
  • Onboard CAN interface with 2048 slave addresses, supporting broadcast and group addresses (CAN version).
  • Built-in stall protection function.
  • Quickly restore factory configuration.
  • Stable high-speed performance, smooth running without jitter, and emergency stop capability.
  • Integrated aluminum alloy shell for effective heat dissipation, ensuring stable continuous high current operation.
  • Provides host computer (open source), STM32/Arduino usage routines.
  • Supports left and right limit functions.
  • Onboard industrial-grade high-precision magnetic encoder.
  • Onboard high-power MOSFET, 60V/56A.
  • Designed according to industrial standards for stable and reliable performance.
  • Working voltage range: 20V-48V.
MKS SERVO42ES main product image

Figure 1.1: MKS SERVO42ES Closed-Loop Stepper Motor Driver

2. Specifications

Product parameter table comparing MKS SERVO42ES_RS485 and MKS SERVO42ES_BUS

Figure 2.1: Product Parameter Comparison Table

Table 2.1: MKS SERVO42ES Product Parameters
Parameter MKS SERVO42ES_RS485 MKS SERVO42ES_BUS
Board type MKS SERVO42ES_RS485 MKS SERVO42ES_BUS
MCU STM32F302RBT6
MOSFET HYG090ND06LS1C2
Magnetic Encoder MT6826S (15-Bit)
Operating Voltage 20V-48V
Operating Current 0-5200mA
Closed-loop Feedback Frequency Torque loop 20KHz, Speed loop 10KHz, Position loop 10KHz
Maximum Speed 3000RPM
Microstepping Support 2/4/8/16/32/64/128/5/10/20/25/40/50/100/200/256
Control Method RS485 bus + Pulse control RS485 + CAN bus control
Wiring Method Common anode, Common cathode, Differential, Dual pulse, Pulse + Direction /
Pulse Signal Frequency Up to 300KHz
Input Signal Level 3.3V~24V
Interface Transceiver RS485: SP485EEN-L/TR RS485: SP485EEN-L/TR, CAN: TJA1051T/3/1J
Interface Speed RS485: 9600/19200/.../115200/256000 RS485: 9600/19200/.../115200/256000, CAN: 125K/250K/500K/1M
Interface Address 1 broadcast address, 255 slave addresses 1 broadcast address, 207 slave addresses
Downloader Remote Upgrade Supported
IAP Online Upgrade Supported

Product Dimensions:

MKS SERVO42ES MB Product Size and MKS SERVO42E MT (40mm) Product Size diagrams

Figure 2.2: MKS SERVO42ES MB and MT Product Dimensions

3. Package Contents

Shipping List table for various MKS SERVO42ES packages

Figure 3.1: Shipping List

MKS SERVO42ES RS485 MB (Doesn't include motor):

  • MKS SERVO42ES RS485 MB x1
  • Hexagon socket head screw M3*50 (Black) x3
  • ABS gasket (3mm) x3
  • 6*3 Radial Magnet x1
  • Motor cable (PH-2.00-4P single end cable length 30mm) x1
  • Signal cable (PHB2.0-2x11P single head tinned 22 wire length 300mm) x1
  • Aluminum shell x1
  • Heat dissipation silicone pad x1
  • Light guide x1

MKS SERVO42ES RS485 4240 MT:

  • MKS SERVO42ES RS485 MT (NEMA17 motor 40mm long) x1
  • Signal cable (PHB2.0-2x11P single head tinned 22 wire length 300mm) x1

MKS SERVO42ES BUS MB (Doesn't include motor):

  • MKS SERVO42ES BUS MB x1
  • Hexagon socket head screw M3*50 (Black) x3
  • ABS gasket (4mm) x3
  • 6*3 Radial Magnet x1
  • Motor cable (PH-2.00-4P single end cable length 30mm) x1
  • Signal cable (PHB2.0-2x11P single head tinned 22 wire length 300mm) x1
  • Aluminum shell x1
  • Heat dissipation silicone pad x1
  • Light guide x1

MKS SERVO42ES BUS 4240 MT:

  • MKS SERVO42ES BUS MT (NEMA17 motor 40mm long) x1
  • Signal cable (PHB2.0-2x11P single head tinned 22 wire length 300mm) x1

4. Setup

4.1 Product Interfaces

Understanding the pinout for both RS485 and BUS versions is crucial for correct wiring.

MKS SERVO42ES RS485 Interface pinout diagram

Figure 4.1: MKS SERVO42ES RS485 Interface Pinout

MKS SERVO42ES BUS Interface pinout diagram

Figure 4.2: MKS SERVO42ES BUS Interface Pinout

4.2 Limit Switch Wiring

Connect limit switches according to the diagrams below for both RS485 and BUS versions. Ensure correct voltage and output types.

MKS SERVO42ES 485 Interface Introduction, showing wiring for limit switch TP808, T45, and T45-P

Figure 4.3: MKS SERVO42ES RS485 Limit Switch Wiring (TP808, T45, T45-P)

MKS SERVO42ES BUS interface introduction, showing wiring for limit switch TP808, T45, and T45-P

Figure 4.4: MKS SERVO42ES BUS Limit Switch Wiring (TP808, T45, T45-P)

4.3 Magnetic Encoder Alignment

Proper alignment of the magnetic encoder is critical for accurate operation.

  • Keep the magnet and the encoder chip parallel, with a gap between them of 0.5 and 3.0 mm. The smaller the gap, the better, for optimal results (angle error).
  • The center of the magnet should be aligned with the sensing center of the magnetic encoder chip, and the deviation should be within ±0.3mm, otherwise the absolute angle accuracy will be seriously affected.
Distance requirements between magnet and magnetic encoder diagram

Figure 4.5: Magnetic Encoder Alignment Requirements

4.4 Controller Wiring (RS485 Interface)

The RS485 interface uses optocoupler inputs. All input ports have built-in 10mA current limiting and can directly accept 3.3V-24V signals without external current limiting resistors.

MKS SERVO42ES RS485 interface wiring diagram (Controller to Driver)

Figure 4.6: MKS SERVO42ES RS485 Interface Wiring to Controller

4.5 General Wiring Diagrams

Refer to the following diagrams for single and multi-machine wiring configurations for both RS485 and BUS versions.

MKS SERVO42ES RS485 Single-Machine Wiring, Multi-Machine Wiring, BUS Single-Machine Wiring, and BUS Multi-Machine Wiring diagrams

Figure 4.7: MKS SERVO42ES Single and Multi-Machine Wiring

MKS SERVO42ES RS485 Single-Machine Wiring diagram with USB to RS485 converter

Figure 4.8: MKS SERVO42ES RS485 Single-Machine Wiring with USB to RS485

4.6 Motor Phase Line Sequence and LED

Ensure the motor phase lines are connected correctly as shown. The LED indicator provides status feedback.

MKS SERVO42ES Phase line sequence and LED light introduction

Figure 4.9: Motor Phase Line Sequence and LED Location

5. Operating Instructions

5.1 Interface Function Table

This table details the function of each pin on the MKS SERVO42ES driver.

Interface Function Table for MKS SERVO42ES pins

Figure 5.1: MKS SERVO42ES Interface Function Table

Table 5.1: Interface Function Details
PIN I/O Function Description
STP+ (CW+)InputPulse signal (or CW pulse) positive(1) Optocoupler input, falling edge trigger. The pulse goes one step when the pulse goes from high to low.
(2) Positive voltage: 3.3 - 28V.
STP- (CW-)Pulse signal (or CW pulse) negative(3) Negative voltage: High level 3.3 - 28V, Low level 0 - 0.5V.
DIR+ (CCW+)InputDirection signal (or CCW pulse) positive(4) Maximum input frequency 400KHz, pulse duration greater than 2.5us.
DIR- (CCW-)Direction signal (or CCW pulse) negative(5) Single Pulse (Pulse + Dir) or double pulse (CW + CCW) is set by SW6.
EN+InputEnable signal positive(1) Optocoupler input, low level effective. When effective, the motor will be released while clearing the alarm signal.
(2) Positive voltage: 3.3 - 28V.
EN-Enable signal negative(3) Negative voltage: High level 3.3 - 28V, Low level 0 - 0.5V.
IN+InputLimit signal positive(1) Optocoupler input, the effective level is set by command (default low level).
(2) When the level is effective, the motor moves according to the saved limit position.
(3) The bipolar input signal voltage is 3.3 - 28V.
IN-Limit signal negative
ALM+OutputAlarm signal positive(1) When an alarm occurs, the optocoupler output is on.
(2) Maximum voltage +35V, maximum current 50mA.
ALM-Alarm signal negative
PEND+OutputIn Position signal positive(1) When the drive has finished a given pulse, the optocoupler output is on.
(2) Maximum voltage +35V, maximum current 50mA.
PEND-In Position signal negative
EB+InputEncoder B+Connected to encoder
EB-Encoder B-
EA+Encoder A+
EA-Encoder A-
ESVOutputEncoder power supply positiveOutput only
EGNDEncoder power supply negative
A-OutputMotor phase A-Connected to motor phase line
A+Motor phase A+
B-Motor phase B-
B+Motor phase B+
VDCInputDrive power supply positiveOperating Voltage +20 - 48V
GNDDrive power supply negative

5.2 Status LED Indicators

The onboard LED provides visual feedback on the driver's status. Refer to the table below for interpretations.

Status LED table

Figure 5.2: Status LED Table

Table 5.2: Status LED Meanings
LED State Meaning
Green stays onMotor Running
Green flashMotor Stop
1 Green + 1 RedOver Current
1 Green + 2 RedOpen-Phase
1 Green + 3 RedSupply Voltage High
1 Green + 4 RedSupply Voltage Low
1 Green + 5 RedPosition Error
1 Green + 6 RedEncoder Error

Tip: Please ensure that the motor and encoder lines are connected correctly, otherwise a Position Error (1 green + 5 red) will appear after receiving the pulse.

6. Maintenance

The MKS SERVO42ES driver supports firmware upgrades via its RS485 interface. Regularly checking for and applying firmware updates can improve performance, add new features, and resolve potential issues. Refer to the official Makerbase GitHub repository for the latest firmware and upgrade instructions.

GitHub Repository: https://github.com/makerbase-motor/MKS-SERVO42ES-57ES

7. Troubleshooting

Most common issues can be identified and resolved by observing the Status LED indicators (refer to Table 5.2).

  • Position Error (1 Green + 5 Red): This indicates a discrepancy in motor position. The most common cause is incorrect connection of the motor or encoder lines. Double-check all wiring, especially for the motor phases and encoder signals.
  • Over Current (1 Green + 1 Red): This suggests the motor is drawing too much current. Check for mechanical obstructions, ensure the motor is correctly sized for the load, and verify power supply voltage.
  • Open-Phase (1 Green + 2 Red): This indicates a disconnected or faulty motor phase. Inspect motor wiring for loose connections or breaks.
  • Supply Voltage High/Low (1 Green + 3 Red / 1 Green + 4 Red): The input voltage is outside the specified 20V-48V range. Verify your power supply output.
  • Encoder Error (1 Green + 6 Red): This points to an issue with the magnetic encoder. Check encoder wiring, ensure proper alignment (refer to Section 4.3), and inspect the encoder for damage.

If issues persist after checking these points, consult the detailed user manual on GitHub or contact Makerbase support.

8. User Tips

  • Verify Wiring Carefully: Before powering on, always double-check all connections, especially motor phases, encoder lines, and power supply. Incorrect wiring is a frequent cause of errors.
  • Start with Basic Configurations: If you are new to closed-loop systems, begin with a simple setup to ensure basic functionality before integrating into complex projects.
  • Monitor LED Status: Pay close attention to the status LED during operation and troubleshooting. It provides valuable diagnostic information.
  • Refer to GitHub Resources: The Makerbase GitHub repository often contains updated documentation, example code, and community discussions that can be very helpful.
  • Ensure Proper Cooling: While the integrated aluminum shell aids heat dissipation, ensure adequate airflow, especially during continuous high-current operation, to maintain stability and prolong component life.

9. Support and Resources

For further technical support, detailed documentation, firmware updates, and community resources, please refer to the official Makerbase channels:

Video 9.1: MKS SERVO42ES Overview and Setup Guide

© 2023 Makerbase. All rights reserved.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.