User Manual: Digital Microstep Drive
User Manual: Digital Microstep Drive
User Manual: Digital Microstep Drive
EM542S
Digital Microstep Drive
Revision 3.0
©2019 Leadshine Technology Co., Ltd.
Address: 15-20/F, Block B, Nanshan I Valley, No.3185, Shahe West Road, Nanshan District,
Support: tech@leadshine.com
EM542S Digital Stepper Drive User Manual
Important Notice
Read this manual carefully before any assembling and using. Incorrect handling of products in this manual can result
in injury and damage to persons and machinery. Strictly adhere to the technical information regarding installation
requirements.
This manual is not for use or disclosure outside of Leadshine except under permission. All rights are reserved. No part
of this manual shall be reproduced, stored in retrieval form, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise without approval from Leadshine. While every precaution has been taken in
the preparation of the book, Leadshine assumes no responsibility for errors or omissions. Neither is any liability
assumed for damages resulting from the use of the information contained herein.
This document is proprietary information of Leadshine that is furnished for customer use ONLY. Information in this
document is subject to change without notice and does not represent a commitment on the part of Leadshine.
Therefore, information contained in this manual may be updated from time-to-time due to product improvements,
etc., and may not conform in every respect to former issues.
Record of Revisions
Revision Date Description of Release
1.0 Oct, 2017 Initial Release
3.0 Jan, 2019 Add Brake, control signal circuit, etc.
3.1 Sep, 2019 Modified the description of filter time setting in Chapter 7.4, delete motor
cable error
EM542S Digital Stepper Drive User Manual
Table of Contents
1.Introduction......................................................................................................................................................................1
1.1 Features...................................................................................................................................................................1
1.2 Applications............................................................................................................................................................ 1
2.Specifications....................................................................................................................................................................2
2.1 Electrical Specifications......................................................................................................................................... 2
2.2 Environment............................................................................................................................................................2
2.3 Mechanical Specifications......................................................................................................................................2
2.4 Elimination of Heat.................................................................................................................................................3
3. Connection Pin Assignments and LED Indication...................................................................................................... 3
3.1 P1 - Control Connector Configurations..................................................................................................................3
3.2 P2 - Fault and Brake Output Connector................................................................................................................. 4
3.3 P3 - Power Connector.............................................................................................................................................4
3.4 P4 - Motor Connector............................................................................................................................................. 4
3.5 P5 - Tuning Port......................................................................................................................................................4
3.6 Status LED Lights...................................................................................................................................................4
4. Control Signal and Fault Output.................................................................................................................................. 5
4.1 Control Signal Connection..................................................................................................................................... 5
4.2 Fault and Brake Output Connection....................................................................................................................... 5
5. Stepper Motor Connections........................................................................................................................................... 6
5.1 4-lead Motor Connection (recommended)............................................................................................................. 6
5.2 6-lead Motor Connection........................................................................................................................................6
5.3 8-lead Motor Connection........................................................................................................................................7
6.Power Supply Selection................................................................................................................................................... 7
6.1 Regulated or Unregulated Power Supply............................................................................................................... 7
6.2 Power Supply Sharing............................................................................................................................................ 8
6.3 Selecting Supply Voltage........................................................................................................................................8
7.DIP Switch Configurations............................................................................................................................................. 8
7.1 Output Current Configuration (SW1-3).................................................................................................. 8
7.2 Idle Current Configuration (SW4).................................................................................................. 9
7.3 Micro Step Configuration (SW5-8).................................................................................................. 9
7.4 Smoothing Filter Time Configuration (SW9-10)................................................................................................. 10
7.5 No Auto Tuning Configuration (SW11).........................................................................................10
7.6 Alarm Output Configuration (SW12)................................................................................................ 10
7.7 Activated Pulse Edge Configuration (SW13).......................................................................................................10
7.8 Control Mode Configuration (SW14).................................................................................................................. 10
7.9 Shaft Lock Configuration (SW15)....................................................................................................................... 10
7.10 Self-Test Configuration (SW16)........................................................................................................ 10
8. Wiring Notes.................................................................................................................................................................. 11
9. Typical Connection....................................................................................................................................................... 11
10. Sequence Chart of Control Signals........................................................................................................................... 11
11. Protection Functions................................................................................................................................................... 12
12. Troubleshooting...........................................................................................................................................................13
13. Warranty......................................................................................................................................................................14
EM542S Digital Stepper Drive User Manual
1. Introduction
The EM542S is a new digital stepper drive based on Leadshine’s widely implemented DM stepper drives (10+ millions
of units in field). While retaining features of simple design, easy setup, high precision and reliability, Leadshine has
also upgraded it by adopting the latest stepper control technology and added additional advanced features for better
torque (10-25%), quicker response time, control command smoothing, easy self-test, etc.
The EM542S is able to power 2 phase (1.8°) and 4 phase (0.9°) stepper motors smoothly with very low motor heating
& noise. It can take 20-50VDC supply voltage and output 0.5 to 4.2A current. All the micro step and output current
configurations can be easily done via built in DIP switches. Its control type (step & direction or CW/CCW) and
command smooth filtering can also be configured via DIP switches. Therefore, the EM542S is an ideal choice for
many applications requiring simple step & direction or CW/CCW control of NEMA 17, 23, and 24 stepper motors.
1.1 Features
1.2 Applications
The EM542S stepper drive is designed to power 2 phase (1.8°) or 4-phase (0.9°) NEMA17, 23 and 24 hybrid stepper
motors. It can be adopted in many industries (CNC machinery, electronics, medical, automation, packaging…) for
applications such as CNC routers, mills, plasma, laser cutters, factory assembly lines, vending machines, etc. Its
excellent performance, simple design, and easy setup features make EM542S ideal for many step & direction control
type applications.
Page | 1
EM542S Digital Stepper Drive User Manual
2. Specifications
2.2 Environment
(unit: mm [1inch=25.4mm])
The EM542S has 5 connectors P1, P2, P3, P4 and P5, 3 DIP switches S1, S2 and S3. P1 is for control signal
connections, P2 is for fault output, P3 is for power connection, P4 is for motor connection and P5 is for fine tuning.
PIN Details
Pulse and Direction Connection:
PUL+ (CW+)
(1) Optically isolated, high level 4.5-5V or 24V, low voltage 0-0.5V
(2) Maximum 200 KHz input frequency, 500KHz customized model is available
PUL- (CW-)
(3) The width of PUL signal is at least 2.5μs, duty cycle is recommended 50%
(4) Single pulse (step & direction) or double pulse (CW/CCW) is set by DIP Switch SW14
DIR+ (CCW+)
(5) DIR signal requires advance PUL signal minimum 5 μs in single pulse mode
(6) The activated edge of PUL and DIR is set by DIP Switch SW13
DIR- (CCW-)
(7) The factory setting of control signal voltage is 24V, must need to set S3 (figure 2) if it is 5V
Enable Connection: Optional.
ENA+ (1) Optically isolated, differential.
(2) Disable the drive by 4.5-5.0V or 24V input connection; enable the drive by 0-0.5V
connection(default no connection)
(3) ENA signal requires advance DIR signal minimum 5μs in single pulse mode
ENA- (4) The default control signal voltage is 24V, to set S3 (figure 2) if it is 5V
(5) Enable time to be at least 200ms
!
Notice
Notes: (1) shield cables are required for P1; (2) don’t tie P1/P2 cables and P3/P4 cables together.
Page | 3
EM542S Digital Stepper Drive User Manual
3.2 P2 - Fault and Brake Output Connector
Pin Details
Output Connection: Optional.
ALM
(1) Maximum 30V/100mA output
(2) Sinking or sourcing
BR
(3) The resistance between ALM and COM- is low impedance as default (configurable by DIP
switch SW12), and will change to high when the drive goes into error protection.
COM-
(4) Fault and Brake connection refer to chapter 4.2
Pin Details
GND Connect to power supply ground connection.
+VDC Connect to power supply positive connection. Suggest 24-48VDC power supply voltage
!
Warning
Warning: Don’t plug/unplug P3 or P4 connector to avoid drive damage or injury while powered on.
PIN Details
A+ Connect to motor A+ wire
A- Connect to motor A- wire
B+ Connect to motor B+ wire
B- Connect to motor B- wire
EM542S has a tuning port with RS232 to modify the drive parameters, it’s only for tuning, not for equipment control
because neither precision nor stability is sufficient. If you need a field bus drive, use a Leadshine RS485 or EtherCAT
type drives:
(http://www.leadshine.com/ProductSubType.aspx?type=products&category=stepper-products&producttype=stepper-dr
ives&subtype=network-stepper-drives
The interface definition is as follows:
There are two LED lights for EM542S. The GREEN one is the power indicator which should be always on in normal
circumstance. The RED one is a drive status indication light, which will be OFF while working normally but ON and
flash 1 or 2 times in a 3-second period in the case of enabled over-current or over-voltage protection.
Page | 4
EM542S Digital Stepper Drive User Manual
The EM542S can accept differential or single-ended control signals (pulse, direction, and enable) in open-collector or
PNP connection through the P1 connector (figure 2). It is recommend to add an EMI line filter between the power
supply and the drive to increase noise immunity for the drive in interference environments.
Fault Output
When over voltage or over current protection happens, EM542S red status LED light will blink and the impedance
state between ALM and COM- will change (from low to high or high to low depending on configuration) and can thus
be detected. Fault output connection is optional, and it can be connected either in sinking or sourcing.
It is recommended to connect a fly-wheel diode in parallel to a 24VDC relay and brake coil connection. Refer to the
following figure for brake connection.
Page | 5
EM542S Digital Stepper Drive User Manual
EM542S can drive 2-phase and 4-phase bipolar hybrid stepper motors with 4, 6, or 8 leads, Leadshine also offers
easy-to-use and good-performance motors with 4-lead that have been tested with EM542S:
(http://www.leadshine.com/series.aspx?type=products&category=stepper-products&producttype=stepper-motors&subt
ype=hybrid-stepper-motors&series=cm)
4-lead motor is easy to use with excellent performance. Refer to figure 8 for how to connect a 4-lead stepper motor.
EM542S can power 6-lead stepper motors through half coil connection (half chopper) or full coil (full copper)
connection. The half coil connection only uses one half of the motor’s winding and is usually selected in applications
requiring high speed but lower torque. The full coil connection uses the full coil winding and is usually selected in
high-torque required applications. Refer to figure 9 and 10 for those two connections.
Figure 9 6-lead motor half coil connection Figure 10 6-lead motor full coil connection
Page | 6
EM542S Digital Stepper Drive User Manual
5.3 8-lead Motor Connection
Series connected 8-lead stepper motors are typically implemented in applications which higher torque at lower speed
movement is required. Because a stepper motors under series connection has the most inductance, the performance will
start to degrade when the motor runs at higher speed. For this connection, it is suggested to set an EM542S’s output
RMS current to no more than 70% of the stepper motor’s phase current to prevent overheating. See the figure 11 for
how to connect an 8-lead stepper motor for series connection.
Parallel connected 8-lead stepper motors are typically implemented in applications which higher torque at high speed
movement is required. Compared with series connection, a parallel connected stepper motor has lower inductance and
therefore have better torque performance at higher speed movement. Although setting the drive output current to 1.4
times of driven motor phase current will get the most torque, it is suggested to set an EM542S’s output current (peak of
sinusoidal) to no more than 1.2 times the stepper motor’s phase current to prevent overheating. Refer to the figure 12
for how to connect an 8-lead stepper motor for parallel connection.
Figure 11 8-lead motor series connection Figure 12 8-lead motor parallel connection
EM542S is designed to power stepper motors (frame sizes NEMA 17 to 24) made by Leadshine or other motor
manufacturers. To get optimal performances, it is important to select proper power supply type, voltage, and supply
output current. In general power supply voltage determines the high speed performance of a stepper motor, while drive
output current determines the driven motor torque output. Higher supply voltage can increases motor speed torque
performance, but at the same time result in more noise and motor heating. For low motor speed applications, it is
suggested to use lower supply voltage power supplies.
Both regulated and unregulated power supplies can be used to power an EM542S. Theoretically unregulated power
supplies are preferred due to their ability to withstand back EMF current surge and faster response for current change.
If you prefer to use a regulated power supply instead, it is suggested to choose one specially designed for stepper or
servo controls such as one Leadshine RPS series power supply:
http://www.leadshine.com/ProductSubType.aspx?type=products&category=other-products&producttype=power-suppli
es&subtype=regulated-switching-power-supplies.In the case when only general purpose switching power supplies are
available, choose one with “OVERSIZED” current output rating (for example, using a 4A power supply for 3A stepper
motor) to avoid current clamp. On the other hand, if unregulated supply is used, one may use a power supply of lower
current rating than that of motor (typically 50% - 70% of motor phase current). The reason is that the drive only draws
current from an unregulated power supply during the ON duration of the PWM cycle, but not during the OFF duration.
Page | 7
EM542S Digital Stepper Drive User Manual
6.2 Power Supply Sharing
Multiple EM542S drives can share the same power supply, if that power supply has enough capacity. To avoid cross
interference, connect each EM542S DIRECTLY to that shared power supply separately instead of connecting those
power connectors of drives in daisy-chain connection.
EM542S’s operating voltage is 20-50 VDC. Because of voltage increasing from potential power line voltage
fluctuation and back EMF voltage generated during motor deceleration, it is suggested to use a 24-48 VDC power
supply.
The EM542S has two 8-bit and one 1-bit DIP switch selector. “Default” means that parameters can be modified by
Leadshine ProTuner software.
The first 8-bit is located on the side (DIP switch selector 1 in Figure 2) and used to configure settings of micro step
resolution, output current, and motor standstill current as shown below, the factory setting of SW1-SW8 is ON, ON,
ON, OFF, OFF, OFF, ON, ON.
The second 8-bit DIP switch is located on the top (DIP switch selector 2 in figure 2), and used to configure settings of
control command filtering time, motor auto-configuration, fault output impedance, pulse active edge, control mode,
lock shaft, and self-test as shown below, the factory setting of SW1-SW8 is OFF, OFF, OFF, OFF, OFF, OFF, OFF,
OFF.
The Third 1-bit selector is located on the top (DIP switch selector 3 in figure 2), used to configure the voltage of
control signals. For the safety of optically coupled, the factory setting is 24V, which no need to connect 2K resistors
like the old drives, making it easier to use. When the voltage of the control signal is 5V, the S3 must be set to 5V,
otherwise, the motor won't work.
The EM542S has 8 output current settings which can be configured through DIP switch SW1, SW2 and SW3.
For a given stepper motor, as normal setting the output current to 1.4 times of motor phase current, will make it output
larger torque, but at the same time cause more heating for both the motor and drive. Therefore, it is suggested to set a
output current (peak of sinusoidal) to no more than 1.2 times the stepper motor’s (for 4-lead motor) phase current to
prevent overheating.
Page | 8
EM542S Digital Stepper Drive User Manual
The SW1, SW2 and SW3 are used to set the dynamic current. Select a setting closest to your motor’s required current.
When they are set to ON, ON, ON, the output current can be set by Leadshine ProTuner.
The SW4 of an EM542S is used to set output current percentage when motor is standstill. Idle current percentage will
be set to 50% at OFF position, and 90% at ON position. When the driven stepper motor is idle (no movement) for 0.4
second, the output current of EM542S will be automatically reduced to the configured percentage.
Each EM542S has 16 micro step settings which can be configured through DIP switch SW5, SW6, SW7 and SW8. See
the following table for detail. When they are set to ON, ON, ON,ON, the microstep can be set via Leadshine ProTuner.
Page | 9
EM542S Digital Stepper Drive User Manual
7.4 Smoothing Filter Time Configuration (SW9-10)
EM542S has an advanced feature called control command smoothing to make the input pulse from pulse generator
(controller, PLC, etc.) S-curve acceleration, to improve motion smoothness and high-speed start frequency in many
circumstances.
This is achieved through adding filtering time which is configured SW9-SW10. See the following table for how to
configure.
Filter Time SW9 SW10
0 ms (disabled) ON ON
6 ms OFF ON
12 ms ON OFF
25 ms OFF OFF
!
Warning
The Filter Time value must be set to the same for each EM542S in multi-axis applications
EM542S can configure itself with the best match to the driven stepper motor. This feature may need to be disabled for
some applications or when it is used to drive a specially designed stepper motor. To do that, set the DIP switch SW11
to ON position and the drive will be set to its default settings.
DIP switch SW12 is used to configure the impedance state of alarm output (fault output). At OFF position (factory
setting) the resistance between ALM and COM- is set to low impedance in normal operation, and will change to high
impedance when the drive goes into fault. When SW12 is set to ON position, that resistance will be set to high
impedance in normal condition and changed to low impedance under error protections.
DIP switch SW13 is used to configure pulse edge. Set it to OFF position (factory setting) means that a pulse is
activated at voltage rising edge, and ON position means a pulse is activated at falling edge. Make sure this setting will
match the pulse generator (controller, PLC, etc.). When the stepper motors loss step, first reverse the SW13 for a test.
DIP switch SW14 is used to configure the control mode. Factory setting is single pulse (step & direction, or pulse &
direction) control. Setting to ON to change the control model to double pulse (CW/CCW) control type.
Use DIP switch SW15 to set shaft lock mode when EM542S is disabled (read ENA+ and ENA- explanation of control
connector for how to disable EM542S). Set it to OFF position (default) for no motor shaft lock (free spin) when drive
disabled. Set it to ON position for motor shaft lock.
For test and system diagnosis purpose, EM542S is featured with Self-Test. Anytime SW16 is switched to ON position,
the drive will automatically rotate the driven stepper motor back and forth for one round in each direction. Set this
Page | 10
EM542S Digital Stepper Drive User Manual
switch position to OFF for normal operation.
8. Wiring Notes
In order to improve anti-interference performance of the drive, it is recommended to use twisted pair shield cable.
To prevent noise incurred in PUL/DIR signal, pulse/direction signal wires and motor wires should not be tied up
together. It is better to separate them by at least 10 cm; otherwise the disturbing signals generated by motor will
easily disturb pulse direction signals, causing motor position error, system instability and other failures.
If only one power supply serves multiple EM542S drives, separately connecting the drives to the power supply is
recommended instead of daisy-chaining.
It is prohibited to pull and plug connector P3&P4 while the drive is powered ON, because there is high current
flowing through motor coils (even when motor is at standstill). Pulling or plugging connector P4 with power on
will cause extremely high back-EMF voltage surge, which may damage the drive.
9. Typical Connection
A complete stepping system should include stepping motor, stepping drive, power supply and controller (pulse
generator). A typical connection is shown as figure 12.
Page | 11
EM542S Digital Stepper Drive User Manual
EM542S incorporates are built with over-voltage and over-current error protections. When it is under error
protection, the red LED light will blink for 1 or 2 or 4 times in a period of 3 seconds. If fault output connection is
connected, the impedance mode between ALM+ and ALM- will be changed (See “Fault Output Configuration”
section for detail).
Time(s) of
Priority Sequence wave of red LED Description
Blink
When over-current and over-voltage protections are activated, the motor shaft will be free or the red LED blinks. Reset
the drive by restart it to make it function properly after removing above problems.
Page | 12
EM542S Digital Stepper Drive User Manual
12. Troubleshooting
In the event that your drive doesn’t operate properly, the first step is to identify whether the problem is electrical or
mechanical in nature. The next step is to isolate the system component that is causing the problem. As part of this
process you may have to disconnect the individual components that make up your system and verify that they operate
independently. It is important to document each step in the troubleshooting process. You may need this documentation
to refer back to at a later date, and these details will greatly assist our Technical Support staff in determining the
problem should you need assistance.
Many of the problems that affect motion control systems can be traced to electrical noise, controller software errors, or
mistake in wiring.
Page | 13
EM542S Digital Stepper Drive User Manual
13. Warranty
Page | 14