TMCM-1021 Hardware Manual hw1.40 Rev1.04
TMCM-1021 Hardware Manual hw1.40 Rev1.04
HARDWARE MANUAL
+ + TMCM-1021
1-Axis Stepper
Controller / Driver
24V DC
up-to 0.7A RMS / 1.4A RMS
RS485 Interface
sensOstep™ Encoder
+ +
UNIQUE FEATURES:
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
2
Table of Contents
1 Features ........................................................................................................................................................... 3
2 Order Codes ..................................................................................................................................................... 5
3 Mechanical and Electrical Interfacing .............................................................................................................. 6
3.1 Size of Board ............................................................................................................................................ 6
3.1.1 Board mounting considerations ......................................................................................................... 6
3.2 Connectors ............................................................................................................................................... 7
3.2.1 Power, Communication and I/O Connector ....................................................................................... 8
3.2.2 Motor Connector ..............................................................................................................................13
4 Motor driver current ......................................................................................................................................13
5 Reset to Factory Defaults ...............................................................................................................................16
6 On-board LED .................................................................................................................................................16
7 Operational Ratings........................................................................................................................................17
8 Functional Description ...................................................................................................................................19
9 Life Support Policy..........................................................................................................................................20
10 Revision History..............................................................................................................................................21
10.1 Document Revision ................................................................................................................................21
10.2 Hardware Revisions................................................................................................................................21
11 References .....................................................................................................................................................22
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
3
1 Features
The TMCM-1021 is a single axis controller/driver module for 2-phase bipolar stepper motors with state of the art feature
set. It is highly integrated, offers a convenient handling and can be used in many decentralized applications. The module
can be mounted on the back of NEMA11 (28mm flange size) and has been designed for coil currents up to 0.7A RMS
(low current range, programmable) or 1.4A RMS (high current range, programmable, new additional range since
hardware version 1.4) and 24V DC supply voltage. With its high energy efficiency from TRINAMIC’s coolStep™ technology
cost for power consumption is kept down. The TMCL™ firmware supports remote control (direct mode) and standalone
operation (with TMCL program being executed on the TMCM-1021 itself).
MAIN CHARACTERISTICS
Highlights
- Motion profile calculation in real-time
- On the fly alteration of motor parameters (e.g. position, velocity, acceleration)
- High performance microcontroller for overall system control and serial communication protocol handling
- For position movement applications, where larger motors do not fit and higher torques are not required
Encoder
- sensOstep magnetic encoder (max. 1024 increments per rotation) e.g. for step-loss detection under all operating
conditions and positioning supervision
Interfaces
- Up to 4 multi-purpose inputs (2 shared with general purpose outputs)
- 2 general purpose outputs
- RS485 2-wire communication interface
Software
- TMCL: standalone operation or remote controlled operation,
program memory (non volatile) for up to 876 TMCL commands, and
PC-based application development software TMCL-IDE available for free.
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
4
stallGuard2™ stallGuard2 is a high-precision sensorless load measurement using the back EMF on the coils. It can be
used for stall detection as well as other uses at loads below those which stall the motor. The
stallGuard2 measurement value changes linearly over a wide range of load, velocity, and current
settings. At maximum motor load, the value goes to zero or near to zero. This is the most energy-
efficient point of operation for the motor.
Load stallGuard2
[Nm]
Initial stallGuard2
(SG) value: 100%
Max. load
Motor stalls
coolStep™ coolStep is a load-adaptive automatic current scaling based on the load measurement via stallGuard2
adapting the required current to the load. Energy consumption can be reduced by as much as 75%.
coolStep allows substantial energy savings, especially for motors which see varying loads or operate
at a high duty cycle. Because a stepper motor application needs to work with a torque reserve of 30%
to 50%, even a constant-load application allows significant energy savings because coolStep
automatically enables torque reserve when required. Reducing power consumption keeps the system
cooler, increases motor life, and allows reducing cost.
0,9
Efficiency with coolStep
0,8 Efficiency with 50% torque reserve
0,7
0,6
0,5
Efficiency
0,4
0,3
0,2
0,1
0
0 50 100 150 200 250 300 350
Velocity [RPM]
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
5
2 Order Codes
Order code Description Size of unit
TMCM-1021 Single axis bipolar stepper motor controller/driver 28mm x 28mm
electronics with integrated encoder electronics
Table 2.1 Order codes
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
6
28mm
27mm
25.5mm R 2mm
PCB outline
28mm x 28mm
25.5mm
28mm
27mm
Motor backbell
R 1.3mm
R 2.5mm
Maximum board height (without mating connectors and cable looms) is about 10mm (approx. 6mm above printed
circuit board level).
Since hardware version 1.4 a second high current range for motor currents up-to 1.4A RMS is available. This makes it
possible to support NEMA11 motors with typical standard coil currents up-to 0.7A RMS using the low current range and
with the same hardware also NEMA17 bipolar stepper motors with coil currents up-to 1.4A RMS using the high current
range.
Example for setup with TMCM-1021_V14 mounted to back side of NEMA17 motor (with sensOstep™ encoder):
Figure 3.2: TMCM-1021 V14 mounted to back side of NEMA17 bipolar stepper motor
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
7
3.2 Connectors
The TMCM-1021 has two connectors, an 8-pin power, communication and I/O (input/output) connector and a 4-pin
motor connector (used to connect the attached motor).
1 8
4 1
Motor
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
8
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
9
Please take the following measures into account in order to avoid serious damage of the device:
μF
Rule of thumb for size of electrolytic capacitor: c = 1000 × ISUPPLY
A
In addition to power stabilization (buffer) and filtering this added capacitor will also reduce any
voltage spikes which might otherwise occur from a combination of high inductance power supply
wires and the ceramic capacitors. In addition it will limit slew-rate of power supply voltage at the
module. The low ESR of ceramic-only filter capacitors may cause stability problems with some
switching power supplies.
Keep the power supply voltage below the upper limit of 28V!
Otherwise the driver electronics will seriously be damaged! Especially, when the selected operating
voltage is near the upper limit a regulated power supply is highly recommended. Please see also
chapter 7, operating values.
There is no reverse polarity protection!
The module will short any reversed supply voltage due to internal diodes of the driver transistors.
3.2.1.2 RS485
For remote control and communication with a host system the TMCM-1021 provides a two wire RS485 bus interface.
For proper operation the following items should be taken into account when setting up an RS485 network:
1. BUS STRUCTURE:
The network topology should follow a bus structure as closely as possible. That is, the connection between
each node and the bus itself should be as short as possible. Basically, it should be short compared to the length
of the bus.
Host
Slave Slave Slave
c:>
node node node
1 n-1 n
termination
} termination
resistor resistor
(120 Ohm) (120 Ohm)
2. BUS TERMINATION:
Especially for longer busses and/or multiple nodes connected to the bus and/or high communication speeds,
the bus should be properly terminated at both ends. The TMCM-1021 does not integrate any termination
resistor. Therefore, 120 Ohm termination resistors at both ends of the bus have to be added externally.
3. NUMBER OF NODES:
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
10
The RS485 electrical interface standard (EIA-485) allows up to 32 nodes to be connected to a single bus. The
bus transceivers used on the TMCM-1021 units (hardware V1.2: SN65HVD3082ED, since hardware V1.4:
SN65HVD1781D) have a significantly reduced bus load and allow a maximum of 255 units to be connected to
a single RS485 bus using TMCL firmware. Please note: usually it cannot be expected to get reliable
communication with the maximum number of nodes connected to one bus and maximum supported
communication speed at the same time. Instead, a compromise has to be found between bus cable length,
communication speed and number of nodes.
4. COMMUNICATION SPEED:
The maximum RS485 communication speed supported by the TMCM-1021 is 115200 bit/s (FW version 1.29
with TMCM-1021 hardware version 1.2 and 1.4). Factory default is 9600 bit/s. Please see separate TMCM-1021
TMCL firmware manual for information regarding other possible communication speeds below 115200 bit/s.
Slave Slave
node node +5V
n- 1 n
pull-up (680R)
pull-down (680R)
GND
Figure 3.5: Bus lines with resistor (Bias) network on one side, only
Or add resistor (Bias) network at both ends of the bus (like Profibus™ termination):
Slave Slave
+5V node node +5V
n- 1 n
pull-up (390R) pull-up (390R)
GND GND
Figure 3.6: Bus lines with resistor (Bias) network at both ends
Certain RS485 interface converters available for PCs already include these additional resistors (e.g. USB-2-485
with bias network at one end of the bus).
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
11
All four inputs are protected using voltage resistor dividers together with limiting diodes against voltages below 0V
(GND) and above +3.3V DC. Input circuit of the first two inputs IN_0 and IN_1 is shown below:
IN_0, +3.3V
IN_1
10k
microcontroller
and stepper
motor driver
10k
1nF
The two inputs have alternate functions depending on configuration in software. The following functions are available:
All four inputs are connected to the on-board processor and can be used as general purpose digital inputs.
Using the alternate function 1 of IN_0 and IN_1 it is possible to control the on-board stepper motor driver with the help
of an external stepper motor controller using step and direction signals (Please see separate TMCL firmware manual /
axis parameter 254 for more details how to enable this mode). For the step and direction signals the signal levels are
the same as for the general purpose digital inputs. Please note that the low-pass filter (for noise rejection) at the inputs
offers a bandwidth of 16kHz (-3dB).
IN_3 can be used as analog input, also. A 12bit analog to digital converter integrated in the microcontroller will convert
any analog input voltage between 0 and +6.6V to a digital value between 0 and 4095 then.
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
12
The inputs are protected using voltage resistor dividers together with limiting diodes against voltages below 0V (GND)
and above +3.3V DC. The circuit of the two outputs and the two inputs connected in parallel to the inputs is shown
below:
VDD
10k
microcontroller
10k
1nF
microcontroller
1k since V1.4
GND GND
Figure 3.8 General purpose outputs OUT_0, OUT_1 and inputs IN_2, IN_3 connected in parallel
The outputs of the N-channel MOSFET transistors (Open-Drain) are connected to freewheeling diodes each for
protection against voltage spikes especially from inductive loads (relais etc.). Please take into account the 20k (2x 10k
in series) resistance to ground (transistor not active) of the input voltage divider (figure 4.8) when designing the external
“load” circuit.
Since hardware version 1.4 the gate inputs of the MOSFETs are pulled-low during power-up and while the processor
might be still in reset / output pins not initialized. This way, the outputs will not briefly switch on at power-up.
The two outputs OUT_0 / OUT_1 and inputs IN_2 / IN_3 have alternate functions depending on configuration in
software:
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
13
Do not apply any voltage above supply voltage to inputs IN_2 and IN_3. Due to the freewheeling
diodes of the outputs connected in parallel they will be shorted to power supply input voltage.
For hardware version 1.2: Do not connect either IN_2 or IN_3 directly to a low resistance supply voltage
(e.g. directly to any power supply voltage). As the output transistors connected in parallel might briefly
switch-on during power-up they might be damaged / destroyed if the current through the transistors
to ground exceeds 100mA.
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
14
Motor current These are the values for TMCL axis parameter 6 (motor run current) and 7 (motor standby
setting in current). They are used to set the run / standby current using the following TMCL commands:
software (TMCL)
SAP 6, 0, <value> // set run current
(read-out value with GAP instead of SAP. Please see separate TMCM-1021 firmware manual
for further information)
Range setting in This is the value for TMCL axis parameter 179 (Vsense). This value defines the current range.
software This value can be set using the following TMCL command:
(TMCL)
SAP 179, 0, <value> // = 0 high current range
// = 1 low current range
For <value> either 0 (high current range) or 1 (low current range) is supported (see table)
since hardware revision V1.4. For earlier hardware revisions (incl. V1.2) this parameter is set
to the fixed value “1” (low current range).
(read-out value with GAP instead of SAP. Please see separate TMCM-1021 firmware manual
for further information)
Motor current Resulting motor current based on range and motor current setting
IRMS [A]
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
15
In addition to the settings in the table the motor current may be switched off completely (free-wheeling) using axis
parameter 204 (see TMCM-1021 firmware manual).
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
16
For this procedure two pads on the bottom side of the board have to be shortened (see Figure 5.1).
6 On-board LED
The board offers one LED in order to indicate board status. The function of the LED is dependent on the firmware
version. With standard TMCL firmware the green LED flashes slowly during operation.
When there is no valid firmware programmed into the board or during firmware update the green LED is permanently
on.
Green LED
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
17
7 Operational Ratings
The operational ratings show the intended or the characteristic ranges and should be used as design values.
*) High current range available as new additional range with hardware revision V1.4 – not with hardware revision V1.2
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
18
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
19
8 Functional Description
The TMCM-1021 is a highly integrated controller/driver module which can be controlled via RS485 interface.
Communication traffic is kept low since all time critical operations (e.g. ramp calculations) are performed on board. The
nominal supply voltage of the unit is 24V DC. The module is designed for both, standalone operation and direct mode.
Full remote control of device with feedback is possible. The firmware of the module can be updated via the serial
interface.
- the microprocessor, which runs the TMCL operating system (connected to TMCL memory),
- the power driver with its energy efficient coolStep feature,
- the MOSFET driver stage, and
- the sensOstep encoder with resolutions of 10bit (1024 steps) per revolution.
TMCL™
Memory TMCM-1021
I 2C
Step
RS485 MOSFET
SPI Pow er
µC Energy Efficient Driver
Driver
add. 4 Driver
TMC262 Stage
I /Os TMC262
w ith Motor
coolStep™
S/D
SPI sensOstep™
9…28V DC Encoder
The TMCM-1021 comes with the PC based software development environment TMCL-IDE for the Trinamic Motion
Control Language (TMCL). Using predefined TMCL high level commands like move to position a rapid and fast
development of motion control applications is guaranteed. Please refer to the TMCM-1021 Firmware Manual for more
information about TMCL commands.
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
20
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
21
10 Revision History
10.1 Document Revision
Version Date Author Description
0.90 2011-AUG-02 GE - Initial version
- Information about left, right, and home switch added.
0.91 2011-AUG-25 SD
- Minor changes
- Motor connector corrected and motor connection added
0.92 2011-NOV-10 GE - General purpose output circuit extended
- Hardware revision list updated
- Rule of thumb for capacitor added.
- Design updated
1.00 2012-MAR-09 SD
- Chapter 6 (on-board LED) new
- Chapter 4 (reset to factory defaults) new
1.01 2012-MAY-20 SD - Minor changes
- Connector types updated.
1.02 2013-JUL-23 SD - Chapter Fehler! Verweisquelle konnte nicht gefunden werden. u
pdated.
- Information regarding new hardware version 1.4 added
1.03 2014-SEP-30 GE
- Several corrections and clarifications included
1.04 2018-JAN-22 GE - Pin reference for inputs and outputs on page 11-13 corrected
Table 10.1 Document revision
www.trinamic.com
TMCM-1021 V1.4 Hardware Manual (Rev. 1.04 / 2018-JAN-22)
22
11 References
[TMCM-1021] TMCM-1021 TMCL Firmware Manual
[QSH2818-32-07-006] NEMA11 / 28mm bipolar stepper motor
[QSH2818-51-07-012] NEMA11 / 28mm bipolar stepper motor
[USB-2-485] USB-2-485 interface converter
www.trinamic.com