Device description / start-up
Printed in the Federal Republic of Germany © TR-Electronic GmbH 1997, All Rights Reserved
03/04/2010 TR - ECE - BA - GB - 0009 - 08 Page 33 of 45
3.10.2 Teach-in procedure
The teach-in procedure takes place in several stages which are described below. It is
assumed that the PROFIBUS is in operation, that the PLC is in its cycle, and that its
process image is continuously updated. The inputs and outputs assigned by the
encoder in the PLC must be able to be controlled via a programming device (e.g.
"Control variables" function in SIMATIC-S5 system), or alternatively by a PLC
handling facility.
1. After selecting manual or set-up mode, move the machine by hand to the starting
position of the distance to be measured.
2. Find out whether the present adjusted counting direction is correct for the
application. If not, first the counting direction must be inverted with setting the
"
Change counting direction" bit in the control byte. The encoder displays
the present counting direction in the status byte.
3. Set the "
Start Teach-In" bit in the control byte
The encoder then re-programs its measuring length in increments to the maximum
resolution, memorizes its current position and acknowledges this process by
setting the "
Teach In Function Started" bit in the status byte.
4. Reset the "
Start Teach-In" bit in the control byte
The "
Teach-In Started" bit remains set furthermore!
5. In manual or set-up mode, move the machine by hand to the ending position of
the distance to be measured. Measure the distance between initial and ending
position with a measuring tape of arbitrary measurement unit.
6. Enter the real distance in measured units according to the tape measure in data
bytes D0 and D1 of the outputs.
7. Set the "Takeover of the drive distance" bit in the control byte
The encoder then calculates the measuring length in increments from the
requested travelling distance in measured units, enters the calculated measuring
length in increments in data bytes D0 .. D2 of the inputs and acknowledges this
process by setting the "
Teach-In, drive distance taken" bit of the status
byte.
8. Make a note of the measuring length in increments!
9. Reset the "
Takeover of the drive distance" bit in the control byte
The encoder then accordingly resets the "
Teach-In started" and "Teach-In,
drive distance taken
" bits in the status byte. Thus the Teach-In process is
completed.
10. Carry out presetting or adjustment.
If one of the steps was omitted or incompletely executed, the entire procedure must
be repeated.
During the teach-in process, the encoder must not be adjusted and no presettings
may be performed.
Once all axes have been set up with the teach-in function, the noted measuring
lengths in increments must be entered in the parameterization file of the encoder
using the configuration program for the PROFIBUS master (e.g. COM-ET-200 or COM
PROFIBUS), and the teach-in mode must be deactivated. This ensures that the teach-
in process does not have to be repeated should the encoder be exchanged.