beckhoff TwinCAT 2 — 6.2 Encoders and actual values

Axis commissioning associated motor coils on. A particular mask is output when the motor is stationary, and has the purpose of switching on the holding current. The masks depend on the motor drive unit in use and on the wiring of the control cabinet, which means that a universally valid version cannot be given. Find the bit combinations from the documentation provided by the drive manufacturer or by the electrical constructors, and enter them on the drive's stepper motor tab. If, during later commissioning steps, the axis behaves incorrectly, these masks a should be checked first. The mask is entered in the form of a decimal number.

In order to convert a bit pattern into the value that must be entered, the weighting must be determined for each bit that is set. Table 3: Bit patterns Example: In the bit pattern 00101011, bits 0, 1, 3 and 5 are set to "1". The associated weights are 1, 2, 4 and 32, so the total to be entered is 39. 6.2 Encoders and actual values Determination and setting the most important encoder parameters: encoder polarity, scaling (increments per mm), position offset (zero offset shift). Interface The encoder parameters are accessed via the System Manager. Determining actual values:

determining the direction (encoder polarity) Without correctly determining the actual value, an axis is "blind", and cannot behave in a coordinated manner. Commissioning, therefore, must begin here. This requires two items of information to be found or checked: the direction of the counting, and the value of the increment. 1. Determine or specify which direction of the axis movement is to be considered "positive", "rising", or "upwards". When moving in this direction, the actual value acquisition system must report rising values. 2.

If you can disconnect the drive electrically and to move the axis manually, turn the drive in such a way that the machine, for instance, moves in the "positive" direction, and observe the display of the actual value in the online image of the axis. 3. If this is not possible, it will be necessary for you to turn the axis using the drive. This means that you will be starting operation of an axis that has not been parameterized. Special care is required because this procedure will disable all the controls and monitors. The axis will be operated with nothing but the feed forward and fictional data. Proceed as follows: ◦If it is possible to separate the load from the drive (e.g.

by removing belts or other transmission media) without disconnecting the encoder at the same time, this is undoubtedly what you should do! ◦On the controller's global tab, set a value of 1.0 for the feed forward weighting. ◦If the controller has a PID tab, set the position control factor Kp (and all other control factors) to zero. Deactivate the automatic offset adjustment. ◦On the drive's global tab, adjust the output limit to +0.1 or -0.1. ◦If the drive has an analog tab, set the reference speed to a fictional value (not too small) and set the reference output to 1.0. Set the drift compensation to zero.

◦On the global tab for the axis, set the same value for the maximum permitted speed as for the drive's reference speed. Set one tenth of the same value under manual speed max and manual speed min . Deactivate all the end position monitors, following error monitors and other checks. ◦Make sure that there is nobody in the hazardous area. Numerical Control (NC) Basics 59 Version: 1.2 Bit 0 1 2 3 4 5 6 7 Weight 1 2 4 8 16 32 64 128