User Manual

Table Of Contents
PD-1160 TMCL
Firmware Manual Firmware Version V1.42 | Document Revision V1.06 2018-JAN-09
93 / 113
The motor can be stopped automatically if motor position and encoder position dier too much
(deviation error). This can be set using axis parameter #212 (maximum deviation). Setting this
parameter to 0 turns o this feature.
As the built-in encoder is a magnetic encoder, the absolute position value can also be read. Use GAP
215, 0 to read the absolute (single-turn) position value. This always is a value between 0 and 1023
(independent of the prescaler setting).
6.2.1 Matching Encoder Resolution and Motor Resolution
When choosing a dierent microstep resolution than the factory default setting, the encoder prescaler also
has to be adapted so that functions using the built-in encoder still work properly. Table 20 shows which
prescaler settings are to be used with which microstep resolution settings. The factory default setting is
256 microsteps and prescaler 50.
Internal Encoder Settings
Microstep Encoder
Resolution SAP command Prescaler SAP command
256 SAP 140, 0, 8 50 SAP 210, 0, 25600
128 SAP 140, 0, 7 25 SAP 210, 0, 12800
64 SAP 140, 0, 6 12.5 SAP 210, 0, 6400
32 SAP 140, 0, 5 6.25 SAP 210, 0, 3200
16 SAP 140, 0, 4 3.125 SAP 210, 0, 1600
8 SAP 140, 0, 3 1.5625 SAP 210, 0, 800
4 SAP 140, 0, 2 0.78125 SAP 210, 0, 400
2 SAP 140, 0, 1 0.390625 SAP 210, 0, 200
Table 20: Internal Encoder Settings
Other encoder prescalers than those shown in table 20 can also be used, but are mostly not needed for
the internal encoder. The formula for the prescaler setting is
p
=
prescaler ·
512 where <p> is the value
passed to axis parameter #210. Hence, a setting of SAP 210, 0, 512 would for example result in a prescaler
of 1. The lower four bits of the <p> value must not be used for the prescaler setting as they are reserved
for activating special encoder functions.
6.2.2 Special Encoder Functions
The only special function of the internal sensOstep
encoder is the clear-on-null function. This will clear
the encoder position each time the encoder passes its absolute zero point. This can be useful for nding a
reference position. To activate this function, add the value of 4 to the value passed to axis parameter #210.
6.3 External Encoders
External encoders with ABN interface can also be attached to the PD-1160 module. Please see the
Hardware Manual on how to connect an external encoder. Consider the following things when using an
external ABN encoder:
The encoder counter can be read by software and can be used to monitor the current position of the
motor.
©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