Browse
 
Tools
Rss Categories

Absolute position reading on the iMOT intelligent motors (CAN version)

Author: AM Reference Number: AA-15443 Views: 2178 Created: 22-05-2018 17:05 Last Updated: 16-10-2019 18:07 0 Rating/ Voters

The iMOT-CAN intelligent motors use a magnetic encoder that outputs quadrature signals but additionally, it can also output the motor absolute position, on one mechanical turn.

The absolute position is saved in the controller RAM memory, at the address 0x222 and goes from 0 to 4095. To read it, the following TML code sequence can be used.

/* User variables declaration and initialization. */
   int abs_pos_address; // Define integer variable abs_pos_address
   long abs_pos; // Define long integer variable abs_pos
   abs_pos = 0;

/* Read the motor absolute position. */
   abs_pos_address = 0x222;
   abs_pos(L) = (abs_pos_address), dm;


After running the code above, the "abs_pos" variable will contain the absolute position of the motor (on on turn).

In CANopen, the absolute position can be read using the object 2064h (Read/Write Configuration Register) and the object 2066h (Read 16/32 bits data from address set in Read/Write Configuration Register).

Rss Comments
  • There are no comments for this article.