Profibus user manual – BEI Sensors PHU9 Absolute Hollow Shaft Encoder User Manual
Page 23

PROFIBUS USER MANUAL
Preliminary
23
BEI IDEACOD SAS
Espace Européen de l’Entreprise
9, rue de Copenhague
B.P. 70044 Schiltigheim
F 67013 Strasbourg Cedex
Tél
: +33 (0)3 88 20 80 80
Fax : +33 (0)3 88 20 87 87
Mail :
Web : www.bei-ideacod.com
5.3 Commissioning mode
If the commissioning mode is activated in the
encoder parameters, the scaling factor can
be determined directly in the machine by a
„Teach-In“.
The commissioning mode is indicated by the
flashing green LED and bit 26 in the input
double word (bit 26 set to 0).
If the encoder starts up in commissioning
mode the parameters in the system
configuration (code sequence, scaling) are
ignored. Parameters stored in an internal
EEPROM are used instead. If code sequence
or
scaling
factor
are
modified
in
commissioning mode, the new values will be
stored non-volatile and the encoder works
with this new parameters.
The proceeding in commissioning mode is as
follows:
-
The encoder is installed in the machine /
system.
-
The commissioning mode is activated
(parameter settings, cp. 5.1.4)
-
The counting direction is changed (if
necessary).
-
Machine / system is to be moved to the
start position.
-
The
Teach-In-Start
command
is
transmitted to the encoder.
-
Machine / system is to be moved to the
stop position.
-
With the Teach-In-Stop command the
desired number of steps is transferred to
the encoder.
-
Set the preset value.
-
The
parameters
in
the
system
configuration are set to the values
determined with the Teach-In procedure.
-
Commissioning mode is deactivated
(parameter settings).
5.3.1 Setting the counting direction
If the encoder is operating in commissioning
mode,
the
counting
direction
(code
sequence) can be changed online. The
current code sequence is indicated with bit 28
in the 32-bit-process value (0: increasing
clockwise / 1: increasing counter clockwise).
With bit 28 in the output double word the
counting direction can be changed.
Status bits
Data bits
Bit
31 30 29
28
27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Master
slave
0 0 0
1
0 0 0 Changing the counting direction by setting bit 28
Slave
Master
0 0 0
0/1 0 0 1 Encoder sends acknowledgement (new counting direction) in bits 0
and 28
0/1
Master
slave
0 0 0
0
0 0 0 Changeover is completed by reset bit 28
slave
Master
0 0 0
0/1 X 0 1 Output process value with changed counting direction
The counting direction is stored non-volatile in an internal EEPROM.