User Manual

Table Of Contents
PD42-x-1670 CANopen Firmware Manual Firmware Version V2.0 | Document Revision V1.0 2018-Nov-07
62 / 86
7.2 How to move a Motor in pv Mode
Here is a little example that shows how to get a motor running in pv 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 pv mode by writing 3 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