User Manual

TMCC160 CoE Firmware Manual Firmware Version V4.01 | Document Revision V1.01 2018-Jan-04
73 / 88
10.2 How to move a Motor in csv Mode
Here is a little example that shows how to get a motor running in csv mode. In this little example we
assume that the module has been reset (and then switched to pre-operational or operational) by NMT
commands before.
Select csv mode by writing 9 to object 6060
h
(Modes_of_Operation).
Write 6 to object 6040
h
(Controlword) to switch to READY_TO_SWITCH_ON state.
Write 7 to object 6040
h
to switch to SWITCHED_ON state.
Write the desired target velocity (e.g. 2000) to object 60FF
h
(Target_Velocity).
Write 15 to object 6040
h
to switch to OPERATION_ENABLED state. The motor now accelerates to the
target velocity.
Stop the motor by writing 0 to object 60FF
h
.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com