TMCL: Use of X-Register

TMCL is the simple way to implement your motion control application. With this series of simple coding examples we want to provide you an easy start.

This program demonstates the usage of the X-register. The motor 0 is performing 10 rotations with velocity 1000 then the program will be stopped.

Before use: Restore Factory Defaults

For more details look at TMCL_reference.pdf  at

This sample is tested with TMCM-1140, TMCM-1161, TMCM-6110.


  • Mownika

    Hi…How is 1 roation caluculated as 51200?? is it constant for all or what is the logic behind it??

    Thank you

  • Lars Jaskulski

    Hi Mownika,

    This number is calculated by the full steps per revolution of the used stepper motor and the micro step resolution set in the controller. In this example a 200 full step motor is used with a micro step resolution of 256.
    200 multiplied by 256 equals 51200.

    I hope that help.

    Best regards,

  • Mownika


Leave a Reply

Your email address will not be published. Required fields are marked *