Datasheet
TMC5041 DATASHEET (Rev. 1.13 / 2017-MAY-16) 22
www.trinamic.com
5.2 Ramp Generator Registers
Addresses Addr are specified for motor 1 (upper value) and motor 2 (second address).
5.2.1 Ramp Generator Motion Control Register Set
RAMP GENERATOR MOTION CONTROL REGISTER SET (MOTOR 1: 0X20…0X2D, MOTOR 2: 0X40…0X4D)
R/W
Addr
n
Register
Description / bit names
Range [Unit]
RW
0x20
0x40
2
RAMPMODE
RAMPMODE:
0: Positioning mode (using all A, D and V
parameters)
1: Velocity mode to positive VMAX (using
AMAX acceleration)
2: Velocity mode to negative VMAX (using
AMAX acceleration)
3: Hold mode (velocity remains unchanged,
unless stop event occurs)
0…3
RW
0x21
0x41
32
XACTUAL
Actual motor position (signed)
Hint: This value normally should only be
modified, when homing the drive. In
positioning mode, modifying the register
content will start a motion.
-2^31…
+(2^31)-1
R
0x22
0x42
24
VACTUAL
Actual motor velocity from ramp generator
(signed)
The sign matches the motion direction. A
negative sign means motion to lower
XACTUAL.
+-(2^23)-1
[µsteps / t]
W
0x23
0x43
18
VSTART
Motor start velocity (unsigned)
Set VSTOP ≥ VSTART!
0…(2^18)-1
[µsteps / t]
W
0x24
0x44
16
A1
First acceleration between VSTART and V1
(unsigned)
0…(2^16)-1
[µsteps / ta²]
W
0x25
0x45
20
V1
First acceleration / deceleration phase
threshold velocity (unsigned)
0: Disables A1 and D1 phase, use AMAX, DMAX
only
0…(2^20)-1
[µsteps / t]
W
0x26
0x46
16
AMAX
Second acceleration between V1 and VMAX
(unsigned)
This is the acceleration and deceleration value
for velocity mode.
0…(2^16)-1
[µsteps / ta²]
W
0x27
0x47
23
VMAX
Motion ramp target velocity (for positioning
ensure VMAX ≥ VSTART) (unsigned)
This is the target velocity in velocity mode. It
can be changed any time during a motion.
0…(2^23)-512
[µsteps / t]
W
0x28
0x48
16
DMAX
Deceleration between VMAX and V1 (unsigned)
0…(2^16)-1
[µsteps / ta²]
W
0x2A
0x4A
16
D1
Deceleration between V1 and VSTOP
(unsigned)
Attention: Do not set 0 in positioning mode,
even if V1=0!
1…(2^16)-1
[µsteps / ta²]