beckhoff TwinCAT 2 — 5.3 Controller

TwinCAT NC Axis components Acceleration feed forward In addition to proportional feedback of the following error, nearly all position controllers contain a proportional acceleration feed forward (the K a factor). This should normally be used only in association with the proportional component (K v factor) of the position controller. It is necessary that the axis is adjusted for strict symmetry: when stationary, the following error is symmetrical about 0 (DAC offset). when moving steadily the following error is symmetrical about 0 (reference velocity). Set K v .

Measure the extreme value of the acceleration (deceleration) a +max ( a -max ), and the associated following error d +max ( d -max ) in the middle of the accelerating/braking phase. K a+ = K v · d +max / a +max K a- = K v · d -max / a -max K a = (K a+ + K a- ) / 2 Global parameters for a controller Controller parameters Position P controller Controller parameters Numerical Control (NC) Basics 37 Version: 1.2 Parameter Data type Unit Description CONTROLLER mode ENUM Controller mode: only STANDARD is possible. Weighting of the pre-control float >=0 Relative weighting of the pre-control. OPERATION MODE:

position lag monitoring BOOL The default value of 1.0 corresponds to 100 % pre- control weighting. Maximum position lag float >=0 mm Maximum permitted position lag. Maximum position lag error filter time float >=0 s If the position lag exceeds the maximum permitted position lag error for a period of time that is longer than the maximum lag error filter time, and if the monitoring is active, the axis will be stopped instantaneously through a voltage output of 0 V and placed in the logical "error" state. Parameter Data type Unit Description Position control: proportional factor Kv float >=0 [mm/s]/mm Proportional gain of the P component. Output velocity = pre-control velocity + Kv· lag error.

OPERATION MODE: automatic offset calibration BOOL Activation or deactivation of the automatic offset calibration. The automatic offset calibration is only active in the range of the relative pre-control velocity defined by [-Offsetlimit,+Offsetlimit]. It calculates and activates a DAC offset that minimizes the lag error in the position control. Offset filter time float >=0 s Integrator time constant. Offset limit float >=0 The upper limit of the active range of the offset calibration as a relative proportion of the output magnitude.