beckhoff TwinCAT 2 — 6.2 Encoders and actual values

Axis commissioning ◦Using extreme care (with your hand by the emergency off switch) switch the axis on electrically. There should not be any drift movement. ◦Now use the and keys in the online image of the axis to move in the "smaller" and "larger" directions, and observe the machine. If, when the key is pressed the machine moves in the "larger" direction, and when the key is pressed it moves in the "smaller" direction, alter the motor polarity on the drive's global tab, and repeat this step. ◦Now compare the direction of the machine's movement with the counting direction of the actual position display in the online image. 4.

If the counting direction is supposed to the specified movement direction, change the inverse transducer counting direction (polarity) parameter on the encoder's global tab. Then you should remove all current from the drive and reset the axis in the online image . Determining actual values: increment evaluation (scaling) After the drive's counting direction has been determined, it is necessary to set the value of the increment. This value is to be set in the scaling factor on the encoder's global tab. 1. The value can be calculated if the feed rate per rotation and the number of increments (not the number of impulses!) are known. Nevertheless, you should check the value as follows. 2.

If you still do not know any value for the increment, at least set an estimated value. If you have no information at all about the value to be set, select a fictional value such as 0.01 mm. 3. If you are performing a check later, then of course you start with values that have been determined beforehand. 4. It is now necessary to travel over a known distance as a test movement (as in the determination of direction). The correct value is now calculated from the currently set scaling factor multiplied by the actual travel divided by the indicated travel. Determining actual values: zero offset shift This section is only to be carried out for absolute encoders .

In incremental systems at this point you should set the actual value to a reasonable figure (with the drive switched off and followed by a reset through in the online image for the axis). You will find the input boxes and function keys for this purpose on the function tab for the axis. Enter the value 0 for the zero correction. To adjust the axis measurement system to the machine, the calibration function of these encoders is used, the parameters for which will be determined at a later stage. 1. Determine the position of the axis within the machine. The rules for this cannot be generally stated and can only be specified by the machine constructor.

In many cases, the distance of a reference point on the moving part of the machine to a reference point on the fixed part of the machine body is chosen. 2. If it is not possible to determine the position in this way with the necessary precision, make a preliminary adjustment, and repeat this step again later. 3. Find the difference between the determined position and the displayed position and enter this with the opposite arithmetic sign in the zero-offset shift of the encoder's global tab. If a value has already been entered there, modify the existing value by adding the new value to it.

If (when repeating this step later) the position control is already active, you should electrically halt the drive and reset the axis before switching on again . 4. Example: The position is determined to be 752.0 mm, while the displayed position is 1983.52 mm. The difference, in other words, is 1231.52 mm. If no value has yet been entered in the zero-offset shift, you can simply enter -1231.52. If a zero offset has already been entered, add the new value to it. In this example, an existing value of +150.0 would yield the new value -1081.52 mm. Further encoder parameters The encoders offer a range of working modes for optional setting.

These include, for instance, determination of the actual speed or of the actual acceleration. If necessary, these measurements can be activated on the encoder's global tab. If these values are not interesting, they should be specifically deselected, since determination of the values increases the real-time loading. It is also possible to set a modulo factor. This is of particular interest for rotating axes, since it allows the relative position within one rotation and the number of rotations to be found automatically. Numerical Control (NC) Basics 60 Version: 1.2