TMCM-1160 Hardware Manual

MODULE FOR STEPPER MOTORS
MODULE
Hardware Version V1.1
HARDWARE MANUAL
+
+
TMCM-1160
1-Axis Stepper
Controller / Driver
2.8 A / 48 V
USB, RS485, and CAN
Step/Dir Interface
sensOstep™ Encoder
+
UNIQUE FEATURES:
TRINAMIC Motion Control GmbH & Co. KG
Hamburg, Germany
www.trinamic.com
+
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
Table of Contents
1
2
3
Features........................................................................................................................................................................... 3
Order Codes ................................................................................................................................................................... 5
Mechanical and Electrical Interfacing ..................................................................................................................... 6
3.1
Dimensions and Mounting Holes ................................................................................................................... 6
3.2
Connectors of TMCM-1160 ................................................................................................................................. 7
3.2.1 Power Connector ........................................................................................................................................... 8
3.2.1.1 Power Supply .......................................................................................................................................... 8
3.2.2 Serial Communication Connector ............................................................................................................. 9
3.2.2.1 RS485 ......................................................................................................................................................... 9
3.2.2.2 CAN ........................................................................................................................................................... 10
3.2.3 Multipurpose I/O Connector ..................................................................................................................... 11
3.2.3.1 Digital Inputs STOP_L, STOP_R, and HOME ................................................................................... 11
3.2.3.2 General Purpose Inputs IN_0 and IN_1 ......................................................................................... 12
3.2.3.3 Outputs OUT_0, OUT_1 ........................................................................................................................ 12
3.2.4 Step/Direction Connector .......................................................................................................................... 12
3.2.4.1 Step / Direction / Enable Inputs ...................................................................................................... 13
3.2.5 Encoder Connector ...................................................................................................................................... 14
3.2.5.1 Encoder Inputs ...................................................................................................................................... 14
3.2.6 Motor Connector .......................................................................................................................................... 15
3.2.7 Mini-USB Connector .................................................................................................................................... 16
4
Jumpers ......................................................................................................................................................................... 17
4.1
RS485 Bus Termination .................................................................................................................................... 17
4.2
CAN Bus Termination ....................................................................................................................................... 17
5
Reset to Factory Defaults ......................................................................................................................................... 18
6
On-Board LED .............................................................................................................................................................. 19
7
Operational Ratings ................................................................................................................................................... 20
8
Functional Description .............................................................................................................................................. 22
9
TMCM-1160 Operational Description ..................................................................................................................... 23
9.1
Calculation: Velocity and Acceleration vs. Microstep and Fullstep Frequency ................................ 23
10 Life Support Policy ..................................................................................................................................................... 25
11 Revision History .......................................................................................................................................................... 26
11.1 Document Revision ........................................................................................................................................... 26
11.2 Hardware Revision ............................................................................................................................................ 26
12 References .................................................................................................................................................................... 26
www.trinamic.com
2
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
3
1 Features
The TMCM-1160 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 23 (57mm flange size) or
NEMA 24 (60mm flange size) stepper motors and has been designed for coil currents up to 2.8 A RMS and
12, 24 or 48 V DC supply voltage. With its high energy efficiency from TRINAMIC’s coolStep™ technology
cost for power consumption is kept down. The TMCL™ firmware allows for both, standalone operation
and direct mode.
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
Bipolar stepper motor driver
Up to 256 microsteps per full step
High-efficient operation, low power dissipation
Dynamic current control
Integrated protection
stallGuard2 feature for stall detection
coolStep feature for reduced power consumption and heat dissipation
Encoder
sensOstep magnetic encoder (1024 increments per rotation) e.g. for step-loss detection under all
operating conditions and positioning supervision
Interface for connection of external incremental a/b/n encoder
Interfaces
RS485 interface
CAN (2.0B up to 1Mbit/s) interface
USB full speed (12Mbit/s) interface
Step/Direction interface (optically isolated)
3 inputs for stop switches and home switch (+24V compatible) with programmable pull-up
2 general purpose inputs (+24V compatible) and 2 general purpose outputs (open collector)
Incremental a/b/n encoder interface (TTL and open-collector signals supported directly)
Safety features
Shutdown input – driver will be disabled in hardware as long as this pin is left open or shorted to
ground
Separate supply voltage inputs for driver and digital logic – driver supply voltage may be switched
off externally while supply for digital logic and therefore digital logic remains active
Software
TMCL:
-
standalone operation or remote controlled operation,
program memory (non volatile) for up to 2048 TMCL commands, and
PC-based application development software TMCL-IDE available for free.
Ready for CANopen
Electrical and mechanical data
Supply voltage: common supply voltages +12 V DC / +24 V DC / +48 V DC supported (+9 V… +51 V DC)
Motor current: up to 2.8 A RMS (programmable)
Refer to separate TMCL Firmware Manual, too.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
4
TRINAMICS UNIQUE FEATURES – EASY TO USE WITH TMCL
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
[Nm]
stallGuard2
Initial stallGuard2
(SG) value: 100%
Max. load
stallGuard2 (SG) value: 0
Maximum load reached.
Motor close to stall.
Motor stalls
Figure 1.1 stallGuard2 load measurement SG as a function of load
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]
Figure 1.2 Energy efficiency example with coolStep
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
2
5
Order Codes
Order code
TMCM-1160-option
Size (mm3)
Description
Single axis bipolar stepper motor controller / driver 60 x 60 x 15
electronics with integrated sensOstep encoder and
coolStep feature
Table 2.1 Order codes
The following options are available:
Firmware option
-TMCL
Description
Module pre-programmed with TMCL firmware
Order code example
TMCM-1160-TMCL
Table 2.2 Firmware options
A cable loom set is available for this module:
Order code
TMCM-1160-CABLE
Description
Cable loom for TMCM-1160:
1x cable loom for power connector (length 200mm)
1x cable loom for communication connector (length 200mm)
1x cable loom for multi-purpose I/O connector (length 200mm)
1x cable loom for S/D connector (length 200mm)
1x cable loom for encoder connector (length 200mm)
1x cable loom for motor connector (length 200mm)
1x USB type A connector to mini-USB type B connector cable (length 1.5m)
Table 2.2 Cable loom order codes
Please note that the TMCM-1160 is available with NEMA23 or NEMA24 stepper motors, too. Refer to the
PD-1160 documents for more information about these products.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
3
6
Mechanical and Electrical Interfacing
3.1 Dimensions and Mounting Holes
-
The dimensions of the TMCM-1160 controller/driver board are approx. 60 mm x 60 mm in order to fit
on the back side of the 60 mm stepper motor.
Maximum component height above PCB level without mating connectors is around 10.5 mm
(jumpers for RS485 / CAN termination included).
Maximum component height below PCB level is around 4 mm.
There are four mounting holes for M3 screws for mounting the board either to a NEMA23 (two
mounting holes at opposite corners) or a NEMA24 (other two mounting holes at opposite corners)
stepper motor.
60
56.75
49.5
10.5
4.59
46.25 60
45.95
13.75
14.05
3.25
10.5
55.41
Figure 3.1 Dimensions and mounting holes
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
7
3.2 Connectors of TMCM-1160
The TMCM-1160 offers seven connectors including the motor connector which is used for attaching the
motor coils to the electronics. In addition to the power connector there are two connectors for serial
communication (mini-USB connector and 5pin connector for RS485 and CAN) and three connectors for
Step/Direction, multipurpose input/output signals, and for an external encoder.
The multipurpose connector offers two general purpose outputs, two general purpose inputs, two inputs
for stop switches and one for an additional home switch.
The power supply connector offers separate inputs for driver and for logic power supply plus hardware
shutdown input. Leaving the shutdown input open or tying it to ground will disable the motor driver
stage in hardware. For operation, this input should be tied to supply voltage.
Step /
Serial
USB
Direction
communication
5
4 1
1
1
Encoder
Power
5
1
8
4
1
4
Multi-purpose
I/O
1
Motor
Figure 3.2 Overview connectors
Label
Power
Connector
Serial
communication
Connector
Multi-purpose
I/O Connector
Step/Direction
Connector
Encoder
Connector
Motor
Connector
Mini-USB
Connector
Connector type
JST B4B-EH-A
(JST EH series, 4pins, 2.5mm pitch)
JST B5B-PH-K-S
(JST PH series, 5pins, 2mm pitch)
JST B8B-PH-K-S
(JST PH series, 8pins, 2mm pitch)
JST B4B-PH-K-S
(JST EH series, 4pins, 2mm pitch)
JST B5B-PH-K-S
(JST EH series, 5pins, 2mm pitch)
JST B4B-EH-A
(JST PH series, 4pins, 2.5mm pitch)
Molex 500075-1517
Mini USB Type B vertical receptacle
Mating connector type
Connector housing: JST EHR-4
Contacts: JST SEH-001T-P0.6
Wire: 0.33mm2, AWG 22
Connector housing: JST PHR-5
Contacts: JST SPH-002T-P0.5S
Wire: 0.22mm2, AWG 24
Connector housing: JST PHR-8
Contacts: JST SPH-002T-P0.5S
Wire: 0.22mm2, AWG 24
Connector housing: JST PHR-4
Contacts: JST SPH-002T-P0.5S
Wire: 0.22mm2, AWG 24
Connector housing: JST PHR-5
Contacts: JST SPH-002T-P0.5S
Wire: 0.22mm2, AWG 24
Connector housing: JST EHR-4
Contacts: JST SEH-001T-P0.6
Wire: 0.33mm2, AWG 22
Any standard mini-USB plug
Table 3.1 Connectors and mating connectors, contacts and applicable wire
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
8
3.2.1 Power Connector
This module offers separate power supply inputs for digital logic (pin 2) and driver/power stage (pin 1).
Both supply inputs use common ground connections (pin 4). This way, power supply for the driver stage
may be switched off while still maintaining position and status information when keeping digital logic
supply active. Due to internal diode the digital logic supply has to be equal or higher than the
driver/power stage supply. Otherwise the diode between driver/power stage supply and digital logic
supply might short the separate supplies.
+UDRIVER SUPPLY ONLY
In case power supply is provided only to the power section (pin 1) an internal diode will distribute
power to the logic section. So, when separate power supplies are not required it is possible to just use
pin 1 and 4 for powering the module. If so, pin 2 (logic supply) and pin 3 (/SHUTDOWN input) can be
connected together in order to enable the driver stage.
ENABLING THE DRIVER STAGE
Connect /SHUTDOWN input to +UDriver or +ULogic in order to activate the driver stage. Leaving this input
open or connecting it to ground will disable driver stage.
A 4-pin JST EH series B4B-EH connector is used as power connector on-board.
1
4
Pin
Label
Description
1
+VDriver
Module + driver stage power supply input
2
+VLogic
(Optional) separate digital logic power supply input
3
/SHUTDOWN
Shutdown input. Connect this input to +VDriver or +VLogic in order
to activate driver stage. Leaving this input open or connecting it
to ground will disable driver stage
4
GND
Module ground (power supply and signal ground)
Table 3.2 Connector for power supply
3.2.1.1 Power Supply
For proper operation care has to be taken with regard to the power supply concept and design. Due to
space restrictions the TMCM-1160 includes about 20 µF / 100 V of supply filter capacitors. These are
ceramic capacitors which have been selected for high reliability and long life time.
HINTS FOR POWER SUPPLY CABLES
-
Keep power supply cables as short as possible.
Use large diameters for power supply cables.
CAUTION!
Add external power supply capacitors!
It is recommended to connect an electrolytic capacitor of significant size (e.g. 2200 µF / 63
V) to the power supply lines next to the TMCM-1160 especially if the distance to the power
supply is large (i.e. more than 2-3m)!
Rule of thumb for size of electrolytic capacitor:
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 slewrate of power supply voltage at the module. The low ESR of ceramic-only filter capacitors
may cause stability problems with some switching power supplies.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
9
Do not connect or disconnect motor during operation!
Motor cable and motor inductivity might lead to voltage spikes when the motor is
disconnected / connected while energized. These voltage spikes might exceed voltage
limits of the driver MOSFETs and might permanently damage them. Therefore, always
disconnect power supply before connecting / disconnecting the motor.
Keep the power supply voltage below the upper limit of 51V!
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.2 Serial Communication Connector
The module supports RS485 and CAN communication via this connector.
CAN interface will be de-activated in case USB is connected due to internal sharing of hardware
resources.
A 2mm pitch 5-pin JST B5B-PH-K connector is used for serial communication.
1
5
Pin
Label
1
2
3
4
5
CAN_H
CAN_L
GND
RS485+
RS485-
Description
CAN bus signal (dominant high)
CAN bus signal (dominant low)
Module ground (system and signal ground)
RS485 bus signal (non inverted)
RS485 bus signal (inverted)
Table 3.3 Connector for serial communication
3.2.2.1 RS485
For remote control and communication with a host system the TMCM-1160 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
c:>
Slave
Slave
Slave
node
1
node
n-1
node
n
}
termination
resistor
(120 Ohm)
RS485
termination
resistor
(120 Ohm)
keep distance as
short as possible
Figure 6.4 Bus structure
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-1160
does offer on-board termination resistors which can be activated with the help of a jumper. The
jumper has to be removed for units not connected to one end of the bus!
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
3.
4.
10
NUMBER OF NODES:
The RS485 electrical interface standard (EIA-485) allows up to 32 nodes to be connected to a
single bus. The bus transceiver used on the TMCM-1160 units (SN65HVD485ED) has 1/2 of the
standard bus load and allows a maximum of 64 units to be connected to a single RS485 bus.
NO FLOATING BUS LINES:
Avoid floating bus lines while neither the host/master nor one of the slaves along the bus line is
transmitting data (all bus nodes switched to receive mode). Floating bus lines may lead to
communication errors. In order to ensure valid signals on the bus it is recommended to use a
resistor network connecting both bus lines to well defined logic levels. In contrast to the
termination resistors this network is normally required just once per bus. Certain RS485 interface
converters available for PCs already include these additional resistors (e.g. USB-2-485).
Slave
Slave
node
n- 1
node
n
+5V
pull-up (1k)
RS485+ / RS485A
termination
resistor
(120 Ohm)
RS485- / RS485B
pull-down (1k)
GND
Figure 3.5 Bus lines with resistor network
3.2.2.2 CAN
For remote control and communication with a host system the TMCM-1160 provides a CAN bus interface.
Please note that the CAN interface is not available in case USB is connected. For proper operation the
following items should be taken into account when setting up a CAN network:
5. 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
c:>
Slave
Slave
Slave
node
1
node
n-1
node
n
}
termination
resistor
(120 Ohm)
CAN
termination
resistor
(120 Ohm)
keep distance as
short as possible
Figure 3.6 CAN bus structure
6.
7.
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-1160
does offer on-board termination resistors which can be activated with the help of a jumper (see
chapter 7). The jumper has to be removed for units not connected to one end of the bus!
NUMBER OF NODES:
The bus transceiver used on the TMCM-1160 units (TJA1050T or similar) supports at least 110
nodes under optimum conditions. Practically achievable number of nodes per CAN bus highly
depends on bus length (longer bus -> less nodes) and communication speed (higher speed ->
less nodes).
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
11
3.2.3 Multipurpose I/O Connector
A 2mm pitch 8-pin JST B8B-PH-K connector is used for connecting general purpose inputs, home and stop
switches and outputs to the unit:
Pin
Label
1
OUT_0
2
OUT_1
3
IN_0
4
IN_1
5
STOP_L
6
STOP_R
7
HOME
8
GND
1
8
Description
General purpose output, open drain (max. 1A)
Integrated freewheeling diode connected to +VLogic
General purpose output, open drain (max. 1A)
Integrated freewheeling diode connected to +VLogic
General purpose input (analog and digital), +24V compatible
Resolution when used as analog input: 12bit (0..4095)
General purpose input (analog and digital), +24V compatible
Resolution when used as analog input: 12bit (0..4095)
Left stop switch input (digital input), +24V compatible,
programmable internal pull-up to +5V
Right stop switch input (digital input), +24V compatible,
programmable internal pull-up to +5V
Home switch input (digital input), +24V compatible, programmable
internal pull-up to +5V
Module ground (system and signal ground)
Table 3.4 Multipurpose I/O connector
All inputs have resistor based voltage dividers with protection diodes. These resistors also ensure a valid
GND level when left unconnected.
For reference switch inputs (STOP_L, STOP_R, HOME) a 1k pull-up resistor to +5V can be activated
(separately for each input). Then these inputs have a default (unconnected) logic level of “1” and an
external switch to GND can be connected.
3.2.3.1 Digital Inputs STOP_L, STOP_R, and HOME
The eight pin connector of the TMCM-1160 provides three reference switch digital inputs STOP_L, STOP_R
and HOME. All three inputs accept up to +24 V input signals. They are protected against these higher
voltages using voltage resistor dividers together with limiting diodes against voltages below 0 V (GND)
and above +3.3 V DC.
+5V
programmable in software
1k
+3.3V
STOP_L
STOP_R
HOME
10k
microcontroller (all)
and TMC429 (STOP_L, STOP_R)
22k
100nf
GND
GND
GND
Figure 3.6 STOP_L, STOP_R and HOME inputs (simplified input circuit)
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
12
All three digital inputs are connected to the on-board processor and can be used as general purpose
digital inputs!
3.2.3.2 General Purpose Inputs IN_0 and IN_1
The eight pin connector of the TMCM-1160 provides two general purpose inputs which may be used as
either digital or analog inputs.
GENERAL PURPOSE INPUTS AS ANALOG INPUTS
As analog input they offer a full scale input range of 0… +10 V with a resolution of the internal analog-todigital converter of the microcontroller of 12bit (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.
+3.3V
IN_0,
IN_1
22k
ADC input
(microcontroller)
10k
100nF
GND
GND
GND
Figure 3.7 General purpose inputs (simplified input circuit)
3.2.3.3 Outputs OUT_0, OUT_1
The eight pin connector of the TMCM-1160 offers two general purpose outputs OUT_0 and OUT_1. These
two outputs are open-drain outputs and can sink up to 1 A each. The outputs of the N-channel MOSFET
transistors are connected to freewheeling diodes each for protection against voltage spikes especially
from inductive loads (relays etc.) above supply voltage.
-
In case free-wheeling diodes are connected to VDD supply voltage: none of the two outputs should
be connected to any voltage above supply voltage of the module.
-
It is recommended to connect +Vlogic of the power connector to the power supply output in case the
outputs OUT_0/1 are used to switch inductive loads (e.g. relays etc.).
+VLogic
microcontroller
GND
Figure 3.8 General purpose outputs
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
13
3.2.4 Step/Direction Connector
A 2mm pitch 4-pin JST B4B-PH-K connector is used for step and direction input signals. This is an option
in case the on-board controller is used for configuration of the driver stage, only. The Step/Direction
input is optically isolated and will allow direct control of the driver stage.
Please do not attach any signal to this input if the on-board motion controller is used! Otherwise step or
direction signal connected here might interfere with signals generated on-board.
Pin
Label
1
COM
2
ENABLE
3
STEP
4
DIRECTION
1
4
Description
Common supply for the opto-coupler inputs (+5V… +24V)
Enable signal input
(function depends on firmware)
Step signal input
(connected to step input of TMC262 driver IC)
Direction signal
(connected to direction input of TMC262 driver IC)
Table 3.4 Connector for step/direction signals
3.2.4.1 Step / Direction / Enable Inputs
The inputs Step, Direction and Enable are electrically (optically) isolated from the power supply and all
other signals of the TMCM-1160 module. These inputs have one common reference input COMMON.
The COMMON input should be connected to a positive supply voltage between +5 V and +24 V. Step /
Direction / Enable signals might be driven either by open-collector / open-drain outputs or by push-pull
outputs.
In case of push-pull outputs the COMMON supply voltage should be equal / similar to the high signal
voltage level of the push-pull drivers.
+3.3V
Common
(5… 24V)
microcontroller
8mA
Enable
TMC262
8mA
Step
TMC262
8mA
Direction
GND
Figure 3.9 Step / Direction / Enable inputs
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
14
3.2.5 Encoder Connector
The module supports an external incremental a/b/n encoder via this connector. The external encoder may
be used in addition or as an alternative to the internal / on-board sensOstep encoder.
A 2mm pitch 5-pin JST B5B-PH-K connector is used for connecting an external encoder with TTL (+5 V
push-pull) or open-collector signals directly:
1
5
Pin
1
2
3
4
5
Label
GND
+5V
ENC_A
ENC_B
ENC_N
Description
Module ground (system and signal ground)
+5V supply output for external encoder circuit (100 mA max.)
Encoder a channel input (internal pull-up)
Encoder b channel input (internal pull-up)
Optional encoder n / index channel input (internal pull-up)
Table 3.5 Connector for an external incremental encoder
3.2.5.1 Encoder Inputs
The TMCM-1160 offers a dedicated encoder input for incremental a/b encoders with optional n / indexchannel.
Encoders with +5 V push-pull (TTL) signals or open-collector signals (on-board pull-ups) might be
connected directly. This connector offers a +5 V supply output for supply of the encoder circuit. Up to
100mA might be drawn from this output.
Connecting an external encoder is an option. An external encoder might be used in addition or as
alternative to the internal sensOstep encoder.
+5V
2k7
2k7
2k7
ENC_A
ENC_B
ENC_N
Figure 3.9 Encoder a/b/n inputs
www.trinamic.com
1
1
1
microcontroller
microcontroller
microcontroller
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
3.2.6
15
Motor Connector
Both motor coil windings (bipolar stepper motor) are connected to the motor connector.
1
4
Pin
1
2
3
4
Label
OA1
OA2
OB1
OB2
Description
Motor coil A
Motor coil A
Motor coil B
Motor coil B
Figure 3.3 Motor connector
www.trinamic.com
Description
Motor coil A
Motor coil A
Motor coil B
Motor coil B
M
A
pin
pin
pin
pin
1
2
1
2
green
blue
Coil
A
AB
B-
B
Motor connector pin Cable colour
1
Black
2
Green
3
Red
4
Blue
black
Q5718 motor
red
TMCM-1160
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
16
3.2.7 Mini-USB Connector
A 5-pin standard mini-USB connector is available on board. This module supports USB 2.0 full-speed
(12Mbit/s) connections.
Please note:
On-board digital core logic (mainly processor and EEPROM) will be powered via USB in case no
other supply is connected. The USB connection might be used to set parameters / download
TMCL programs or perform firmware updates while power supply for the module (and the rest of
the machine) has been switched off or is not connected.
CAN interface will be de-activated as soon as USB is connected due to internal sharing of
hardware resources.
5
1
Pin
1
2
3
4
5
Label
VBUS
DD+
ID
GND
Description
+5V supply from host
Data –
Data +
Not connected
Module ground (system and signal ground)
Table 3.6 Mini USB connector
For remote control and communication with a host system the TMCM-1160 provides a USB 2.0 full-speed
(12Mbit/s) interface (mini-USB connector). As soon as a USB-Host is connected the module will accept
commands via USB.
USB BUS POWERED OPERATION MODE
The TMCM-1160 supports both, USB self powered operation (when an external power is supplied via the
power supply connector) and USB bus powered operation, (no external power supply via power supply
connector).
On-board digital core logic will be powered via USB in case no other supply is connected (USB bus
powered operation). The digital core logic comprehends 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 +5 V bus supply even in USB self powered
operation depending on the voltage level of this supply.
Motor movements are not possible in this operation mode. Therefore, connect the power connector and
change to USB self powered operation mode.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
4
17
Jumpers
Most settings of the board are done through the software. Nevertheless, two jumpers are available for
configuration.
CAN bus
termination
RS485 bus
termination
Figure 4.1 RS485 and CAN bus termination
4.1 RS485 Bus Termination
The board includes a 120 Ohm resistor for proper bus termination of the RS485 interface. When this
jumper is closed, the resistor will be placed between the two differential bus lines RS485+ and RS485-.
4.2 CAN Bus Termination
The board includes a 120 Ohm resistor for proper bus termination of the CAN interface. When this
jumper is closed, the resistor will be placed between the two differential bus lines CAN_H and CAN_L.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
5
18
Reset to Factory Defaults
It is possible to reset the PD-1160 to factory default settings without establishing a communication link.
This might be helpful in case communication parameters of the preferred interface have been set to
unknown values or got accidentally lost.
For this procedure two pads on the bottom side of the board have to be shortened (see Figure 5.1).
Short these two pads.
PERFORM THE FOLLOWING STEPS:
1.
2.
3.
4.
5.
6.
7.
Figure 5.1 Reset to factory default settings
www.trinamic.com
Power supply off and USB cable disconnected
Short two pads as marked in Figure 5.1
Power up board (power via USB is sufficient for this
purpose)
Wait until the on-board red and green LEDs start
flashing fast (this might take a while)
Power-off board (disconnect USB cable)
Remove short between pads
After switching on power-supply / connecting USB
cable all permanent settings have been restored to
factory defaults
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
6
19
On-board LED
The board offers two LEDs in order to indicate board status. The function of both LEDs is dependent on
the firmware version. With standard TMCL firmware the green LED should be flashing during operation
and the red LED should be off.
When there is no valid firmware programmed into the board or during firmware update the red and
green LEDs are permanently on.
BEHAVIOR OF LEDS WITH STANDARD TMCL FIRMWARE
Status
Red LED
Green LED
Figure 6.1 On-board LEDs
www.trinamic.com
Label
Description
Heartbeat
Run
The green LED flashes during operation.
Error
Error
The red LED lights up if an error occurs.
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
7
20
Operational Ratings
The operational ratings show the intended or the characteristic ranges and should be used as design
values.
In no case shall the maximum values be exceeded!
GENERAL OPERATIONAL RATINGS OF THE MODULE
Symbol
Parameter
+VDriver / +VLogic Power supply voltage for operation
IUSB
USB supply current when USB bus powered
(+5V USB supply)
ICOIL_peak
Motor coil current for sine wave peak
(chopper regulated, adjustable via software)
ICOIL_RMS
Continuous motor current (RMS)
ISUPPLY
Power supply current
TENV
Environment temperature at +48V supply and
rated current (100% duty-cycle, no forced
cooling required)
TENV
Environment temperature at +24V supply and
rated current (100% duty-cycle, no forced
cooling required)
Min
9
Typ
12, 24, 48
Max
51
Unit
V DC *)
mA
4
A
2.8
1.4 * ICOIL
40
A
A
°C
50
°C
70
0
0
<< ICOIL
Table 7.1 General operational ratings of module
*) Attention: due to the internal diode between VDriver and VLogic VLogic should be always equal or higher
than VDriver.
GENERAL OPERATIONAL RATINGS OF STEP/DIRECTION INPUT
Symbol
VCOMMON
VSTEP/DIR/ENABLE_ON
VSTEP/DIR/ENABLE_OFF
VSTEP/DIR/ENABLE_ON
fSTEP
Parameter
Supply voltage for common supply input for
step, direction and enable (inputs have
negative logic)
Signal voltage at step, direction and enable
input (active, opto-coupler on)
Signal voltage at step, direction and enable
input (inactive, opto-coupler off)
Opto-coupler current when switched on
(internally regulated)
Step frequency
Min
Type
5… 24
Max
27
Unit
V
3.5
4.5… 24
30
V
-5.5
0
2
V
Table 7.2 Operational ratings of Step/Direction input
*) Maximum frequency for +5 V TTL level step signals is with 50 % duty cycle.
www.trinamic.com
6… 8
mA
1 *)
MHz
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
21
OPERATIONAL RATINGS OF THE GENERAL PURPOSE INPUTS/OUTPUTS
Parameter
Min
Input voltage for STOP_L/R/HOME
Low level voltage for STOP_L/R/HOME
High level voltage for STOP_L/R/HOME
(internal programmable 1k pull-up to +5V)
Input voltage for IN_0 and IN_1 when used
as digital input
Full range input voltage for IN_0 and IN_1
when used as analog input
Low level voltage for IN_0 and IN_1 when
used as digital input
(internal 10k pull-down)
High level voltage for IN_0 and IN_1 when
used as digital input
Symbol
VSTOP_L/R/HOME
VSTOP_L/R/HOME_L
VSTOPL/R/HOME_H
VIN_0/1_digital
VIN_0/1_analog
VIN_0/1_L
VIN_0/1_H
VOUT_0/1
IOUT_0/1
Voltage at open collector output
Output sink
outputs
current
at
open
Max
Unit
0
0
3
24
1.3
24
V
V
V
0
24
V
0
10
V
0
1.3 *)
V
3 *)
24
V
0
VLOGIC +
0.5 **)
1
V
collector
Type
A
Table 7.3 Operational ratings of the general purpose inputs/outputs
*) this voltage is programmable (internal 12bit ADC)
**) limited to module supply voltage + 0.5V due to integrated freewheeling diode between general
purpose output and module supply voltage
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
8
22
Functional Description
The TMCM-1160 is a highly integrated controller/driver module 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. Common supply voltages are +12VDC / +24VDC / +48VDC. 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 any of the serial interfaces.
In Figure 8.1 the main parts of the TMCM-1160 are shown:
-
the
the
the
the
the
microprocessor, which runs the TMCL operating system (connected to TMCL memory),
motion controller, which calculates ramps and speed profiles internally by hardware,
power driver with stallGuard2 and its energy efficient coolStep feature,
MOSFET driver stage, and
sensOstep encoder with resolutions of 10bit (1024 steps) per revolution.
TMCM-1160
Stop
+5V
switches
TMCL
Memory
SPI
SPI
USB
Power
Energy
Efficient
Driver
Driver
TMC262
RS485
µC
CAN
I/Os
SPI
TMC429
Motion
Controller
7
Encoder
a/b/n
S/D
TMC262
with
coolStep™
MOSFET
Driver
Stage
Step
Motor
S/D
S/D
SPI
9… 51V DC
sensOstep™
Encoder
Figure 8.1 Main parts of the TMCM-1160
The TMCM-1160 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-1160 Firmware Manual for more information about TMCL commands.
www.trinamic.com
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
9
23
TMCM-1160 Operational Description
9.1 Calculation: Velocity and Acceleration vs. Microstep and
Fullstep Frequency
The values of the parameters sent to the TMC429 do not have typical motor values like rotations per
second as velocity. But these values can be calculated from the TMC429 parameters as shown in this
section.
PARAMETERS OF TMC429
Signal
fCLK
velocity
a_max
Description
clock-frequency
maximum acceleration
divider for the velocity. The higher the value is, the less is
the maximum velocity
default value = 0
divider for the acceleration. The higher the value is, the
less is the maximum acceleration
default value = 0
microstep-resolution (microsteps per fullstep = 2usrs)
pulse_div
ramp_div
Usrs
Range
16 MHz
0… 2047
0… 2047
0… 13
0… 13
0… 8
Table 9.1 TMC429 velocity parameters
MICROSTEP FREQUENCY
The microstep frequency of the stepper motor is calculated with
usf [ Hz ] 
f CLK [ Hz ]  velocity
2 pulse_ div  2048  32
with usf: microstep-frequency
FULLSTEP FREQUENCY
To calculate the fullstep frequency from the microstep frequency, the microstep frequency must be
divided by the number of microsteps per fullstep.
fsf [ Hz] 
usf [ Hz]
2usrs
with fsf: fullstep-frequency
The change in the pulse rate per time unit (pulse frequency change per second – the acceleration a) is
given by
a
f CLK 2  a max
2 pulse_ div ramp _ div 29
This results in acceleration in fullsteps of:
a
af 
2
usrs
www.trinamic.com
with af: acceleration in fullsteps
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
EXAMPLE:
Signal
f_CLK
velocity
a_max
pulse_div
ramp_div
usrs
msf 
16 MHz 1000
 122070.31 Hz
21  2048  32
122070.31
fsf [ Hz ] 
a
value
16 MHz
1000
1000
1
1
6
26
(16Mhz ) 2 1000
11 29
2
 1907.34 Hz
 119.21
MHz
s
MHz
s  1.863 MHz
6
s
2
119.21
af 
CALCULATION OF THE NUMBER OF ROTATIONS
A stepper motor has e.g. 72 fullsteps per rotation.
RPS 
RPM 
fsf
1907.34

 26.49
fullsteps per rotation
72
fsf  60
1907.34  60

 1589.46
fullsteps per rotation
72
www.trinamic.com
24
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
10 Life Support Policy
TRINAMIC Motion Control GmbH & Co. KG does not
authorize or warrant any of its products for use in life
support systems, without the specific written consent of
TRINAMIC Motion Control GmbH & Co. KG.
Life support systems are equipment intended to support
or sustain life, and whose failure to perform, when
properly used in accordance with instructions provided,
can be reasonably expected to result in personal injury
or death.
© TRINAMIC Motion Control GmbH & Co. KG 2013
Information given in this data sheet is believed to be
accurate and reliable. However neither responsibility is
assumed for the consequences of its use nor for any
infringement of patents or other rights of third parties,
which may result from its use.
Specifications are subject to change without notice.
www.trinamic.com
25
TMCM-1160 V1.01 Hardware Manual (Rev. 1.02 / 2013-JUL-23)
26
11 Revision History
11.1 Document Revision
Version
Date
Author
Description
GE - Göran Eggers
SD - Sonja Dwersteg
0.91
2012-MAY-03
GE
1.00
2012-JUN-13
SD
1.01
1.02
2012-JUL-27
2013-JUL-23
SD
SD
Initial version
First complete version including the following chapters:
Reset to factory defaults,
LEDs
Figure 3.6 (general purpose inputs) corrected.
Chapter 3.2.1.1 updated
Table 11.1 Document revision
11.2 Hardware Revision
Version
TMCM-1160_V10
Date
2011-JUL-20
TMCM-1160_V11
2012-JAN-24
Description
Initial version
- Inputs IN_0 and IN_1 can be used as analog
inputs, also
Table 11.2 Hardware revision
12 References
[TMCM-1160 TMCL]
[TMC262]
[TMC429]
[TMCL-IDE]
[QSH5718]
[QSH6018]
TMCM-1160 TMCL Firmware Manual
TMC262 Datasheet
TMC429 Datasheet
TMCL-IDE User Manual
QSH5718 Manual
QSH6018 Manual
Please refer to www.trinamic.com.
www.trinamic.com