Trinamic TMCM-170 Programming And Reference Manual Download Page 15

TMCM-170 and TMCM-171 MODULE – Reference and Programming Manual 

  15 

 

Copyright © 2005, TRINAMIC Motion Control GmbH & Co. KG 

 

List of Set Axis Parameter Commands:

 

 

Type 

Axis Parameter 

Value Range 

Description 

Actual position 

32 bit signed 

Change the position and encoder counter without 
moving the motor  

Max. positioning 
velocity 

16 bit unsigned 
1…65535 

The maximum velocity used for MVP command when 
executing a ramp to a position. 

PWM limit 

8 bit unsigned 
0…255 

Set PWM limit, 0…255 

Ù

 0%…100% 

Max. current 

8 bit unsigned 
0…250 

Max. current setting, refer to 3.2.1.1 
 

MVP Target 
reached  velocity 

16 bit unsigned 

Maximum velocity at which POS_END can be set. 
Prevents issuing of POS_END when the target is 
passed at high velocity. 

Min. speed for 
velocity PID 

16 bit unsigned 

Adjusts the limit to switch between velocity PID 
controller and mixed position/velocity PID controller. 
Default = 1000RPM, refer to 1.4 

Clear Target 
distance 

16 bit unsigned 

Velocity is set to 0 if actual position differs from motor 
position for more than value*256, until the motor 
catches up. Prevents velocity overshoot if the motor 
can’t follow the velocity ramp. Default = 160 

10 

MVP 
Target reached 
distance 

16 bit unsigned 

Maximum distance at which the Flag POS_END is set. 
In hall sensor only mode, the regulation algorithm is 
stopped within this distance to the target position. 

11 

Acceleration 

16 bit unsigned 
0, 1 … 65535 

Acceleration parameter for MVP, ROL and ROR. Value 
in RPM/s

2

, 0 = max. acceleration (i.e. no ramp) 

128 

Standalone Mode  0, 1, 2, 3 

0:  Normal operation 
1:  In this mode the motor velocity is controlled by the 

setting Power on velocity (157) scaled by the input 
voltage on the analog input 

2: Velocity after power up is initialized by Power on 

Velocity setting (157) 

3: Step-/Direction mode (not on TMCM-170): In this 

mode, the target position is controlled by the 
external step pulse. Scaling is set by Power On 
Velocity setting (157): One pulse increases the 
target position by 1/256 of parameter 157. To 
enable the motor, use an MVP command first, e.g. 
issue MVP 0,0 in TMCL using Autostart.  

130 

Position P – 
Parameter 

16 bit unsigned 
1 … 32767 

P – Parameter of PID regulator, refer to 1.4  

131 

Position I – 
Parameter 

16 bit unsigned 
1 … 32767 

I – Parameter of PID regulator, refer to 1.3 

132 

Position D – 
Parameter 

16 bit unsigned 
1 … 32767 

D – Parameter of PID regulator, refer to 1.4 

133 

PID regulation 
loop delay 

8 bit unsigned  
1 ... 255 

PID calculation delay (0-255 * 1ms): Set operational 
frequency PID 

134 

Current 
regulation loop 
delay 

8 bit unsigned 
0…254 

Delay of current limitation algorithm (0 - 254 * 1ms) 
Default = 10 

135 

Position  
I – Clipping – 
Parameter 

16 bit unsigned 
1 … 32767 

Adjust in stand still to lowest possible value at which 
the motor keeps its position. A too high value causes 
overshooting at positioning mode. (0 … 2^15) 
Typical: 20*256< I-Param. * I-Clip-Param. < 1024*256 

136 

PWM - 
Hysteresis 

16 bit unsigned 
0 … 100 

Compensates dead time of PWM and motor friction. 
Default = 20 

137 

PID opt Clear I – 
Max 

Boolean 

1: Clears I - Sum if PWM reaches maximum value of 
100%, default = 1 

138 

PID opt Clear I-
Sign 

Boolean 

1: Clears I - Sum if the position overshoots the target 
value, default = 0 

Summary of Contents for TMCM-170

Page 1: ...TMCM 170 and 171 BLDC module Reference and Programming Manual Version 1 14 Dec 20h 2007 Trinamic Motion Control GmbH Co KG Sternstra e 67 D 20357 Hamburg Germany http www trinamic com...

Page 2: ...11 3 1 3 MST Motor Stop 12 3 1 4 MVP Move to Position 13 3 2 TMCL Axis Parameter Commands 14 3 2 1 SAP TMCL Set Axis Parameter 14 3 2 2 GAP TMCL Get Axis Parameters 18 3 2 3 STAP Store Axis Parameter...

Page 3: ...re trying to operate the motor The changes become effective after a full restart power off on You can use the demonstration application and or the TMCL development environment to make these settings P...

Page 4: ...regulator for a given motor first modify the P parameter with all other parameters set to 0 starting from a low value and going to a higher value until fastest response with minimum oscillation aroun...

Page 5: ...ed for velocity PID As you can see in the default value table the positioning and velocity mode PID parameters in this example have a relationship of about 4 to 1 But the I Clipping parameter typicall...

Page 6: ...END flag In order to minimize the time until this flag becomes set a positioning tolerance MVP_target_reached_distance can be chosen Since the motor typically is assumed not to signal target reached w...

Page 7: ...n command As soon as the motor hits the stop switch the encoder position becomes set to zero If at the same time the motor switch is enabled as a stop switch the motor is stopped and the target positi...

Page 8: ...you have received the reply Example Rotate right motor 0 velocity 350 refer to 3 1 1 ROR Rotate Right Byte Index 0 1 2 3 4 5 6 7 8 Function Target address Instruction Number Type Motor Bank Operand By...

Page 9: ...with module address 1 and host address 2 The motor number is always zero for a one axis module Position values x pos are in units of encoder resolution 4x mode i e a 1024 line encoder give a 4096 res...

Page 10: ...ity value is transferred to axis parameter 0 target velocity Mnemonic ROR motor number velocity Value Range 100 000 actual usable value depends on motor Related commands ROL MST SAP GAP Binary represe...

Page 11: ...ferred to axis parameter 0 target velocity Mnemonic ROL motor number velocity Value Range 100 000 actual usable value depends on motor Related commands ROR MST SAP GAP Binary representation INSTRUCTIO...

Page 12: ...the axis parameter target velocity is set to zero Related commands ROL ROR SAP GAP Mnemonic MST motor number Binary representation INSTRUCTION NO TYPE MOT BANK VALUE 3 don t care motor number don t ca...

Page 13: ...t position Related commands SAP GAP MST Mnemonic MVP ABS REL motor number position offset Binary representation INSTRUCTION NO TYPE MOT BANK VALUE 0 ABS absolute motor number position 4 1 REL relative...

Page 14: ...ction 3 2 3 for permanent storage of a modified value Do not set parameters out of the specified range This may lead to undetermined behavior of the module and may not be compatible with future firmwa...

Page 15: ...x acceleration i e no ramp 128 Standalone Mode 0 1 2 3 0 Normal operation 1 In this mode the motor velocity is controlled by the setting Power on velocity 157 scaled by the input voltage on the analog...

Page 16: ...power on Default 0 To enable set Standalone Mode 128 to 2 Step Dir scale Scaling of the Step Direction signals Distance per step pulse Value 256 The sign controls the direction 159 Commutation Mode Bo...

Page 17: ...rent from the measurement of all three coils In block commutation mode the current represents the current of the actually switched on two coils When operating the TMCM 170 in sine commutation mode the...

Page 18: ...rameters i e the actual motor position which counts up down as the motor moves All parameters are extended to 32 bit value for the ease of use Related commands SAP STAP Mnemonic GAP parameter number m...

Page 19: ...rameter 16 bit unsigned See associated SAP command 131 I Parameter 16 bit unsigned See associated SAP command 132 D Parameter 16 bit unsigned See associated SAP command 133 PID regulation loop delay 8...

Page 20: ...Mode Boolean See associated SAP command 160 State Initialization of Sine Commutation Boolean 1 Sine Commutation initialized 161 Encoder Set NULL Boolean This flag is set if a Nulling function via enc...

Page 21: ...g becomes set whenever the following conditions are fulfilled at the same time Distance is within range as defined by parameter 10 and the sum of target velocity and actual velocity is within range as...

Page 22: ...itialization of Sine Commutation refer to 3 2 1 Internal function The specified parameter is copied from its RAM location the configuration EEPROM Related commands SAP GAP Mnemonic STAP parameter numb...

Page 23: ...Byte2 Operand Byte1 Operand Byte0 Checksum Value hex 01 09 ff 00 00 00 00 19 22 List of Global Parameter Commands List of Set Global Parameter Commands Type Axis Parameter Value Range Description 64...

Page 24: ...for mode 1 default 105 Set equal to or lower than Init Sine Current A Refer to motor current setting for value range 249 Init Sine Mode 0 1 2 3 4 0 Motor starts using hall sensors 1 Motor controlled o...

Page 25: ...Rate New setting becomes active after next power on Baud Rate byte value RS232 RS485 CAN SGP type 65 69 0 9600 baud default 1 14400 baud 10kBit s 2 19200 baud 20kBit s 3 28800 baud 50kBit s 4 38400 ba...

Page 26: ...s Instruction Number Type Motor Bank Operand Byte3 Operand Byte2 Operand Byte1 Operand Byte0 Checksum Value hex 01 0a 42 00 00 00 00 00 4d Reply Byte Index 0 1 2 3 4 5 6 7 8 Function Host address Targ...

Page 27: ...ted SGP command 249 Init Sinus Mode Byte See associated SGP command 250 Encoder Steps 16 bit unsigned See associated SGP command 251 Encoder Direction Boolean See associated SGP command 252 Switch Enc...

Page 28: ...Instruction Number Type Motor Bank Operand Byte3 Operand Byte2 Operand Byte1 Operand Byte0 Checksum Value hex 01 88 00 00 00 00 00 00 89 Reply 160V1 03 Note this reply is not in the standard TMCL syn...

Page 29: ...7 HC Documentation Revision started 1 12 04 Oct 07 Dw Added SAP command 147 1 13 10 Oct 07 HC Dw TMCM 171 current information added TMCM 171 Step Direction mode added for SAP 128 1 14 20 Dec 07 Dw Add...

Reviews: