IB IL INC-IN ...
6390_en_07 PHOENIX CONTACT 9
7.2 Position detection
In order to start position detection after switching on the
terminal, the control bits for the encoder type and the
evaluation of OUT process data word OUT[0] are written to
the terminal. The terminal then starts position detection with
a random value in the positioning counter. As long as
operating mode 0 ("Read actual position value") is not
exited the actual position value only gives relative position
values (without homing).
The control bits for the encoder type and evaluation must
remain set as long as position detection is carried out.
Changing the evaluation also requires new homing.
The terminal can only output an absolute position value if
homing has been carried out on the terminal before. The
homing function is used to set the positioning counter to the
reference point value determined by OUT process data
word OUT[0] on a specific point of an axis.
This homing process can be carried out by setting the
reference point via the local bus (operating mode 1). During
this process, the axis remains as still as possible or moves
so slowly that the time delay, with which the signals are
transmitted via the local bus, does not cause any major
deviations.
Dynamic homing is also possible. In many applications, a
higher level of precision is achieved through dynamic
homing using a homing process.
The IB IL INC-IN ... terminal provides five different types of
homing (operating modes 2 to 6) for dynamic homing. The
terminal responds directly to the connected limit switch or
home position switch signals or the Z signal (index pulse
from the encoder) with a hardware circuit.
Homing function sequence:
1. Start homing
The reference point value is written to OUT[0] and
OUT[1]. Next, homing is started by means of writing
one of the control codes for operating modes 1 to 5 to
OUT[0].
If the terminal has been homed the message code
switches to "Device not homed".
2. Wait for acknowledgment (status bit A)
The time it takes to receive acknowledgment varies
depending on the homing mode. In operating mode 1,
the acknowledgment bit (status bit A) appears
immediately, in operating modes 2 to 6 the time it takes
depends on the distance to the reference point and the
speed at which the axis runs during homing (see
page 14).
The "Homed" acknowledgment bit is present until an
error occurs or a new homing process is initialized.
3. Read adjustment value (only for the homing types in
operating modes 4 and 5)
In operating modes 4 and 5, the delta value
(adjustment value) can be read in the "Actual position
value" data field. This value indicates the distance
between the position of the home position switch edge
and the position of the Z pulse.
This value is present in the "Actual position value" data
field until switching to operating mode 0 ("Read actual
position value"). Beginning from the Z pulse position
the positioning counter internally starts position
detection.
4. Switch back to "Read actual position value"
Operating mode 0 ("Read actual position value") is
selected in OUT[0]. The relevant positions can be read
from the "Actual position value" data field in IN[0] and
IN[1] (value range 0 to 225 ... 1).