TMCM-1141 Hardware Manual hw1.30 Rev1.07
TMCM-1141 Hardware Manual hw1.30 Rev1.07
HARDWARE MANUAL
+ +
TMCM-1141
1-Axis Stepper
Controller / Driver
24 V DC
up-to 1.1 A / 2A RMS
USB, RS485, and S/D Interface
+ +
UNIQUE FEATURES
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 2
Table of Contents
1 Features........................................................................................................................................................................... 3
2 Order Codes ................................................................................................................................................................... 5
3 Mechanical and Electrical Interfacing ..................................................................................................................... 6
3.1 Dimensions and Mounting Holes ................................................................................................................... 6
3.2 Connectors of TMCM-1141 ................................................................................................................................. 7
3.2.1 Power and RS485 Connector ..................................................................................................................... 8
3.2.2 Mini-USB Connector .................................................................................................................................... 10
3.2.3 Multipurpose I/O Connector ..................................................................................................................... 11
3.2.4 Step/Direction Connector .......................................................................................................................... 15
3.2.5 Motor Connector .......................................................................................................................................... 16
4 Motor driver current .................................................................................................................................................. 17
5 Reset to Factory Defaults ......................................................................................................................................... 20
6 On-Board LED .............................................................................................................................................................. 20
7 Operational Ratings ................................................................................................................................................... 21
8 Functional Description .............................................................................................................................................. 23
9 TMCM-1141 Operational Description ..................................................................................................................... 24
9.1 Calculation: Velocity and Acceleration vs. Microstep and Fullstep Frequency ................................ 24
10 Life Support Policy ..................................................................................................................................................... 26
11 Revision History .......................................................................................................................................................... 27
11.1 Document Revision ........................................................................................................................................... 27
11.2 Hardware Revision ............................................................................................................................................ 27
12 References .................................................................................................................................................................... 28
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 3
1 Features
The TMCM-1141 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 NEMA 17 (42mm flange size)
stepper motors and has been designed for coil currents up to 1.1 A RMS RMS (low current range,
programmable) or 2A RMS (high current range, programmable, new additional range since hardware
version 1.3) 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-1141 itself).
MAIN CHARACTERISTICS
Motion controller
- 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
Interfaces
- RS485 2-wire communication interface
- USB full speed (12Mbit/s) device interface
- Step/Direction/Enable interface (optically isolated) for external control of driver circuit
- 4 multipurpose inputs:
- 3x general-purpose digital inputs
(Alternate functions: STOP_L / STOP_R / HOME switch inputs)
- 1x dedicated analog input
- 2 general purpose outputs
- 2x open-drain 100 mA max.
Software
- TMCL: standalone operation or remote controlled operation,
program memory (non volatile) for up to 1024 TMCL commands, and
PC-based application development software TMCL-IDE available for free.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 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-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 5
2 Order Codes
Order code Description Size (mm3)
TMCM-1141-option Single axis bipolar stepper motor controller / driver electronics with 37 x 37 x 11.5
coolStep feature
Table 2.1 Order codes
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 6
37
34
3
2xM3
37
3
34
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 7
1 4
1
Multi-
purpose
I/O
8
4 1 5 1
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 8
CAUTION!
Add external power supply capacitors!
It is recommended to connect an electrolytic capacitor of significant size (e.g. 1000µF/35V)
to the power supply lines next to the TMCM-1141 especially if the distance to the power
supply is large (i.e. more than 2-3m)! In larger systems a zener diode circuitry might be
required in order to limit the maximum voltage when the motor is operated at high
velocities.
μ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.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 9
3.2.1.2 RS485
For remote control and communication with a host system the TMCM-1141 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-1141
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:
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-1141 units (hardware V1.2: SN65HVD3082ED,
since hardware V1.3: 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-1141 is 115200 bit/s for
hardware version 1.2 and 1Mbit/s for hardware version 1.3. Factory default is 9600 bit/s. Please
see separate TMCM-1141 TMCL firmware manual for information regarding other possible
communication speeds.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 10
Slave Slave
node node +5V
n- 1 n
pull-up (680R)
pull-down (680R)
GND
Figure 3.4: 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.5: Bus lines with resistor (Bias) network at both ends
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 11
During USB bus powered operation the on-board digital core logic will be powered, only. The digital core
logic consists of the microcontroller itself and also the EEPROM. The USB bus powered operation mode
has been implemented to enable configuration, parameter settings, read-outs, firmware updates, etc. by
just connecting an USB cable between module and host PC. No additional cabling or external devices
(e.g. power supply) are required.
Please note that the module might draw current from the USB +5V bus supply even in USB self powered
operation depending on the voltage level of this supply.
Motor movements are not possible during USB bus powered operation! Apply power to the power
connector (USB self powered operation) in order to be able to move the motor.
Note:
- All inputs have resistor based voltage input dividers with protection diodes. These resistors
also ensure a valid GND level when left unconnected.
- For all digital inputs (IN_1, IN_2, IN_3) a 1k pull-up resistor to +5V can be activated. In this case
these inputs have a default (unconnected) logic level of 1 and an external switch to GND can
be connected. This might be especially interesting in case these inputs are used as STOP_L /
STOP_R and HOME switch inputs (alternate function).
With TMCL firmware command SIO 0, 0, 0 will switch-off the pull-ups and command SIO 0, 0, 1
will switch them on (see separate TMCL firmware manual, command SIO for more detailed information).
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 12
1k
IN_1 +3.3V
IN_2
IN_3
10k
microcontroller (all)
and TMC429 (IN_0, IN_1)
22k
1nf
The three digital inputs have alternate functionality depending on configuration in software. The
following functions are available:
Label
Default function Alternate function 1
(pin)
IN_1 (6) General purpose digital input STOP_L - left stop switch input
connected to processor and TMC429 REF input
TMCL: GIO 1, 0 // get digital (supporting left stop functionality in hardware)
value of input IN_1
TMCL: GAP 11, 0 // get digital value of STOP_L input
IN_2 (7) General purpose digital input STOP_R - right stop switch input
connected to processor and TMC429 REF input
TMCL: GIO 2, 0 // get digital (supporting right stop switch functionality in hardware)
value of input IN_2
TMCL: GAP 10, 0 // get digital value of STOP_R input
IN_3 (8) General purpose digital input HOME - home switch input
(connected to processor)
TMCL: GIO 3, 0 // get digital
value of input IN_3 TMCL: GAP 9, 0 // get digital value of HOME input
Table 3.5 Multipurpose inputs / alternate functions
- All three digital inputs are connected to the on-board processor and can be used as general
purpose digital inputs.
- In order to use IN_1 and IN_2 as STOP_L and STOP_R inputs, this function has to be enabled
explicitly in software (factory default: switched off). With TMCL firmware the stop switch
functionality can be enabled using SAP 12, 0, 0 (STOP_R / right limit switch) and SAP 13,
0, 0 (STOP_L / left limit switch). As the names already indicate: the status of the left limit
switch (STOP_L) will be significant during motor left turns and the status of the right limit switch
during motor right turns (positive direction), only. Reading out input values using the GAP
commands as listed in the table above is possible at any time. Please see separate TMCL
firmware manual for additional information.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 13
This dedicated analog input offers a full scale input range of 0… +10V (0..+10.56V nom.) with a resolution
of the internal analog-to-digital converter of the microcontroller of 12 bit (0… 4095).
The input is protected against higher voltages up-to +24 V using voltage resistor dividers together with
limiting diodes against voltages below 0 V (GND) and above +3.3 V DC (see figure below).
+3.3V
IN_0
22k
ADC input
(microcontroller)
10k
10nF
With TMCL firmware the analog value of this input may be read using command GIO 0, 1. The
command will return the raw value of the 12bit analog-to-digital converter between 0 .. 4095. It is also
possible to read the digital value of this input using TMCL command GIO 0, 0. The trip point (between
0 and 1) will be at approx. +5V input voltage (half the analog input range).
OUT_0 and OUT_1 should not be connected to any voltage above supply voltage of the module due to
the internal freewheeling diodes.
VDD
microcontroller
GND GND
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 14
Since hardware version 1.3 the gate inputs of the MOSFETs are pulled-low during power-up and while
the processor is still in reset / output pins not initialized. This way, the outputs will not briefly switch on
at power-up.
With TMCL firmware OUT_0 can be switched on (OUT_0 pulled low) using command SIO 0, 2, 1 and
off again (OUT_0 floating) using command SIO 0, 2, 0. Quite similar OUT_1 can be switched on
(OUT_1 pulled low) using command SIO 1, 2, 1 and off again (OUT_1 floating) using command SIO
1, 2, 0. Factory default setting for both outputs is off (floating). In case a floating output is not
desired in the application an external resistor to e.g. supply voltage may be added.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 15
All three Step/Dir/Enable signals are optically isolated. Therefore, an additional supply input (COMMON) is
available which has to be connected to a supply voltage between +5 V and +24 V for proper operation.
+3.3V
Common
(5..24V)
microcontroller
8mA
Enable
TMC262
8mA
Step
TMC262
8mA
Direction
GND
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 16
red
Please note: there are other possibilities of connecting the motor
that will lead to same direction of rotation. Exchanging connection
cables for one coil, only will invert motor direction. Please make
always sure that one coil is connected to motor connector pin 1+2
while the other is connected to 3+4 – do not mix them (e.g. one
coil to pin 1+3) as this might damage motor and driver electronics.
.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 17
Please note: the high current range is available with hardware revision V1.3, only and should not be
activated / used with hardware revision V1.2! The high current range should not be used with motor
currents above 2A RMS – this will violate specification of the module - please note limitations at the
end of this chapter!
Motor current These are the values for TMCL axis parameter 6 (motor run current) and 7 (motor
setting in standby current). They are used to set the run / standby current using the following
software TMCL commands:
(TMCL)
SAP 6, 0, <value> // set run current
(read-out value with GAP instead of SAP. Please see separate TMCM-1141 firmware
manual for further information)
Range setting This is the value for TMCL axis parameter 179 (Vsense). This value defines the current
in software range. 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.3. For hardware revision V1.2 this parameter should
not be changed to any value other than “1” (low current range).
(read-out value with GAP instead of SAP. Please see separate TMCM-1141 firmware
manual for further information)
Motor current Resulting motor current based on range and motor current setting
IRMS [A]
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 18
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 19
The settings marked red in the table above from the high current range (above 2A RMS motor current)
should not be used as they will violate specification of the module!
In addition to the settings in the table the motor current may be switched off completely (free-wheeling)
using axis parameter 204 (see TMCM-1141 firmware manual).
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 20
For this procedure two pads on the bottom side of the board have to be shortened.
Now, perform the following steps:
1. Power supply off and USB cable disconnected
2. Short two pads as marked in Figure 5.1
3. Power up board (power via USB is sufficient for this purpose)
4. Wait until the on-board red and green LEDs start flashing fast (this might take a while)
5. Power-off board (disconnect USB cable)
6. Remove short between pads
7. After switching on power-supply / connecting USB cable all permanent settings have been
restored to factory defaults
6 On-Board LED
The board offers an 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 should be flashing 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-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 21
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.3 – not with
hardware revision V1.2. Please note: motor coil currents above 2A RMS are not recommended and will
violate specification of the module.
*) approx. 0…+10.56V at the analog input IN_0 is translated to 0..4095 (12bit ADC, raw values). Above
approx. +10.56V the analog input will saturate but, not being damaged (up-to VDD).
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 22
*) hardware revision V1.2: max. 115200 bit/s, hardware revision V1.3: max. 1Mbit/s
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 23
8 Functional Description
The TMCM-1141 is a highly integrated mechatronic device which can be controlled via several serial
interfaces. Communication traffic is kept low since all time critical operations, e.g. ramp calculations are
performed on board. Nominal supply voltage of the unit is 24V DC. The PANdrive is designed for both:
direct mode and standalone operation. Full remote control of device with feedback is possible. The
firmware of the module can be updated via any of the serial interfaces.
- the microprocessor, which runs the TMCL operating system (connected to TMCL memory),
- the motion controller, which calculates ramps and speed profiles internally by hardware,
- the power driver with stallGuard2 and its energy efficient coolStep feature, and
- the MOSFET driver stage
TMCL™
Memory
TMCM-1141
SPI
SPI
USB
Step
RS485 Power MOSFET
SPI
6 µC Driver
Energy Efficient Driver
I/Os TMC429 Driver
TMC262 Stage
Motion TMC262
with
Controller Motor
coolStep™
S/D
S/D
S/D
9… 28V DC Stop
switches
+5V
Remark: stop switches are an alternate function of two out of three digital inputs.
The TMCM-1141 comes with the PC based software development environment TMCL-IDE for the Trinamic
Motion Control Language (TMCM). 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-1141 Firmware Manual for more information about TMCL commands.
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 24
PARAMETERS OF TMC429
Signal Description Range
fCLK clock-frequency 16 MHz
velocity - 0… 2047
a_max maximum acceleration 0… 2047
divider for the velocity. The higher the value is, the less is
pulse_div the maximum velocity 0… 13
default value = 0
divider for the acceleration. The higher the value is, the
ramp_div less is the maximum acceleration 0… 13
default value = 0
0… 8 (a value of 7 or 8 is internally
Usrs microstep-resolution (microsteps per fullstep = 2usrs)
mapped to 6 by the TMC429)
Table 9.1 TMC429 velocity parameters
MICROSTEP FREQUENCY
The microstep frequency of the stepper motor is calculated with
f CLK [ Hz ] velocity
usf [ Hz ] with usf: microstep-frequency
2 pulse _ div 2048 32
FULLSTEP FREQUENCY
To calculate the fullstep frequency from the microstep frequency, the microstep frequency must be
divided by the number of microsteps per fullstep.
usf [ Hz ]
fsf [ Hz ] with fsf: fullstep-frequency
2usrs
The change in the pulse rate per time unit (pulse frequency change per second – the acceleration a) is
given by
f CLK 2 a max
a
2 pulse _ div ramp _ div 29
a
af usrs
with af: acceleration in fullsteps
2
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 25
EXAMPLE:
Signal value
f_CLK 16 MHz
velocity 1000
a_max 1000
pulse_div 1
ramp_div 1
usrs 6
16 MHz 1000
msf 122070 .31 Hz
21 2048 32
122070 .31
fsf [ Hz ] 1907.34 Hz
26
MHz
119.21
af s 1.863 MHz
6 s
2
fsf 1907.34
RPS 26.49
fullsteps per rotation 72
fsf 60 1907.34 60
RPM 1589.46
fullsteps per rotation 72
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 26
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 27
11 Revision History
11.1 Document Revision
Version Date Author Description
0.90 2011-DEC-19 GE Initial version
0.91 2011-DEC-23 GE Connector pin assignment corrected
First complete version including the following chapters:
1.00 2012-JUN-12 SD - Reset to factory defaults,
- LEDs
1.01 2012-JUL-23 SD Information about sensOstep deleted.
Figure 3.5 (general purpose inputs) corrected.
1.02 2012-JUL-27 SD
- Names of inputs changed:
AIN_0 IN_0
IN_0 IN_1
IN_1 IN_2
1.03 2013-MAR-05 SD
IN_2 IN_3
- Names of outputs changed:
OUT_1 = OUT_0
OUT_0 = OUT_1
- Connector description updated
1.04 2013-JUL-23 SD
- Information about power supply updated
1.05 2014-OCT-18 GE Hardware revision 1.3 added.
- Minor addition / corrections.
1.06 2015-JAN-09 GE
- TMCL commands for accessing I/Os added.
Same label and label corrected for motor connection and motor
1.07 2017-JUN-26 GE
connector pin assignment (chapter 3.2.5)
Table 11.1 Document revision
www.trinamic.com
TMCM-1141 Hardware Manual (Rev. 1.07 / 2017-JUN-26) 28
12 References
[TMCM-1141 TMCL] TMCM-1141 TMCL Firmware Manual
[TMC262] TMC262 Datasheet
[TMC429] TMC429 Datasheet
[TMCL-IDE] TMCL-IDE User Manual
[QSH4218] QSH4218 Manual
www.trinamic.com