TMCL: Read Analog Value

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 demonstrates how to read an analog value and adjust the velocity of motor 0. The velocity depends on the analog value obtained at Port AIN_0. In the easiest case connect a pontiometer to Port AIN_0.

Before use: Restore Factory Defaults

For more details look at TMCL_reference.pdf  at http://www.trinamic.com/software-tools/tmcl-ide

This sample is tested with TMCM-1161 and is compatible with Modules with 12-Bit Analog input. Modules with 10Bit analog input are not compatible.

Leave a Reply

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