In systems where precise positioning accuracy is required, it is often necessary to position within one encoder count. The Proportional gain is not normally able to achieve this because a very small following error will only produce a small demand for the amplifier which may not be enough to overcome mechanical friction (this is particularly so for current controlled systems). This error can be overcome by applying some integral gain. The integral gain, KINT, works by accumulating following error over time to produce a demand/command sufficient to move the motor into the zero following error position. KINT can therefore also overcome errors caused by gravitational effects, such as vertically moving linear tables, where with current controlled drives a non-zero demand output is required to achieve zero following error.

A.1.2 Position loop

The position loop uses a Proportional, Integral, Derivative, Velocity Feedback, Velocity Feed-forward and Acceleration Feed-forward (PIDVFA) algorithm. Every servo tick, the measured position and velocity are sampled. The profiler generates a new demand position, speed and acceleration according to the move type requested and the specified parameters (e.g. the acceleration and deceleration rates). Both the demanded and measured values are fed into the PIDVFA algorithm, which generates an input term (demand signal) to either the Speed loop or Current loop (depending upon the configuration).

The PIDVFA algorithm is as follows:

 

(∆e)

 

V

 

Command = KP.e + KD.

 

KV

v

+ KF

+ KI.Σe + KA.A

(∆τ)

16

16

where:

Proportional position loop gain

 

 

 

KP

 

 

 

KD

Derivative position loop gain

 

 

 

KV

Velocity feedback gain

 

 

 

KF

Velocity feed forward gain

 

 

 

KI

Integral gain

 

 

 

KA

Acceleration feed forward gain

 

 

 

eFollowing error (quad counts)

τServo update period (sample time)

vActual axis velocity (quad counts/sample time)

VDemand axis velocity (quad counts/sample time)

ADemand axis acceleration (quad counts/sample time2)

Tuning the position loop involves selecting values for some or all of the terms KP, KD, KI, KV, KF and KA to provide the best performance for a particular motor/encoder combination and load inertia. In view of the diversity of applications, these values all default to zero.

100

Page 112
Image 112
Baldor MN1274 06/2001 installation manual Position loop, 100