PD42-x-1370 Hardware Manual • Hardware Version V1.10 | Document Revision V1.10 • 2018-AUG-18
7 / 27
3.3 Integrated Encoder
The PD42-x-1370 line of PANdrives™offers an integrated encoder based on hall sensor technology with
a resolution of 12bit per rotation. When comparing with our sensOstep™solutions which are also hall
sensor based this encoder offers superior performance with comparatively high update rates and low
latency.
In combination with our latest generation of hardware motion controller ICs this architecture offers cost
optimized closed-loop support. In order to enable closed-loop operation the following sequence of TMCL
commands may be used:
1
SAP 6, 0, 255 // set run c urrent to 2 A ( RMS)
3
// closed loop field w e akening settings
SAP 108, 0, 300000 // gamma Vmin
5
SAP 109, 0, 600000 // gamma Vmax
7
SAP 115, 0, 2000 // set closed loop correction veloc ity P
SAP 116, 0, 20 //set closed loop correction veloc ity I
9
SAP 117, 0, 2000 // set closed loop correction veloc ity I cli pping
11
SAP 118, 0, 0 // set closed loop correction veloc ity DV clock
SAP 119, 0, 200000 //set closed loop correctio n veloc ity DV clipping
13
SAP 129, 0, 1 // Turn on closed loop
15
Wait Init :
17
GAP 133, 0 // Wait until closed loop init finishe d
JC ZE, WaitInit
19
// accelerat ion , velocit y sett ings (e xample)
21
SAP 4, 0, 600000
SAP 5, 0, 800000 // set acceleration
23
SAP 17, 0, 800000 // set deceleration
Stop
Please note that this code snippet should be regarded as starting point for application specific optimizations of regulation parameters.
Field weakening is mandatory for higher speed operation in closed loop mode. As torque curve decreases
earlier when ramping up speed for the longer motors with higher holding torque field weakening may
be applied earlier, already. Therefore, for the PANdrive™with the longest motor (PD42-4-1370) the field
weakening parameters should be adjusted accordingly:
SAP 6, 0, 255 // set run c urrent to 2 A ( RMS)
2
// closed loop field w e akening settings
4
SAP 108, 0, 110000 // gamma Vmin
SAP 109, 0, 400000 // gamma Vmax
6
SAP 115, 0, 2000 // set closed loop correction veloc ity P
8
SAP 116, 0, 20 //set closed loop correction veloc ity I
10
SAP 117, 0, 2000 // set closed loop correction veloc ity I cli pping
SAP 118, 0, 0 // set closed loop correction veloc ity DV clock
12
SAP 119, 0, 200000 //set closed loop correctio n veloc ity DV clipping
14
SAP 129, 0, 1 // Turn on closed loop
©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