User Manual

TMCC160 CoE Firmware Manual Firmware Version V4.01 | Document Revision V1.01 2018-Jan-04
58 / 88
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 17 (left end switch) (or 18 (right end switch)) by writing 17 (or 18) 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