User Manual

Table Of Contents
PD42-x-1670 CANopen Firmware Manual Firmware Version V2.0 | Document Revision V1.0 2018-Nov-07
71 / 86
8.3 How to start a Homing in hm Mode
Here is a little example that shows how to home the motor in hm 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. The home switch must be connected to the home switch input. It can be operated manually.
Select hm mode by writing 6 to object 6060
h
.
Write 6 to object 6040
h
to switch to READY_TO_SWITCH_ON state.
Write 7 to object 6040
h
to switch to SWITCHED_ON state.
Write 15 to object 6040
h
to switch to OPERATION_ENABLED state.
Select homing method e.g. 17 (left end switch) by writing 17 (or e.g. 18,-1,-2,-3,-4) to object 6098
h
.
Set the homing speeds by writing e.g. 500 to object 6099
h
sub index 1 and e.g. 200 to object 6099
h
sub index 2.
Write 31 to object 6040
h
to start the homing process.
Press and release the home switch.
When homing has nished, write 15 to object 6040
h
again.
©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