Homing

Homing refers to an axis initialisation run during which the correct actual position is determined by means of a reference signal. This procedure is referred to as homing, referencing or calibration. A switch that is triggered at a known, unique position along the travel path serves as reference signal. Further signals such as the encoder zero track can be analysed in order to increase the precision.

In general a distinction is made between drive-controlled homing and NC-controlled homing. Drive-controlled homing is carried out automatically by a suitable drive without input from the control system and is not discussed in detail in this documentation. NC-controlled homing is fully controlled by the control system and supports a wide range of drive types. The different NC-controlled homing mechanisms are described below.

Position reference systems and encoder systems

A distinction is made between different position reference systems (measurement systems), depending on which position measuring system is used. An absolute measurement system provides an absolute position (directly after switching on) that is unique over the whole travel path. Such a measurement system is calibrated once and set via a persistently stored position offset. In this case homing is not required even after a system restart. In contrast, relative measurement systems provide a non-unambiguous position value (after switching on) that must be calibrated through homing. Relative measurement systems are subdivided further into purely relative systems (incremental encoders) and part-absolute systems, which only provide a unique position during a motor or encoder revolution.

General description of a homing procedure

Figure A shows a schematic diagram of a homing procedure with individual velocity profile phases.

  1. When the machine is switched on the axis is in a random position (1).
  2. Homing is initiated, and the axis travels towards the reference cam.
  3. Once the reference cam is detected, the axis stops and reverses.
  4. The axis moves away from the reference cam and detects the falling edge of the reference cam signal.
  5. The axis continues and searches for a sync pulse or another distinctive event, depending on the reference mode setting. This step may be omitted where appropriate.
  6. The occasion is detected and the specified reference position is set.
  7. The axis stops at a certain distance from the reference position, which was set shortly beforehand with maximum precision.

Figures B and C show the position and velocity profile during homing.

Homing 1:

Referencing modes

The NC system supports different referencing modes, depending on the encoder system type.

 

Absolute encoder system

Part-absolute encoder system

Relative encoder system

NC

Referencing not required

 Recommended reference mode SoftwareSync
(also possible: PlcCam, HardwareSync)

Recommended reference mode HardwareSync
(also possible: PlcCam)

Drive

Referencing not required

Drive setting not required

Drive parameterisation required
(for Sercos/SoE see Probe Unit)

Parameterization in the System Manager

Homing 2:

Reference system: The encoder parameters reference system determines whether the encoder system used is incremental or absolute. In an absolute encoder system, the encoder value is taken from the control system without modification.

Not all NC encoders support this optional parameter, i.e., only those types that offer a choice between absolute and incremental encoder reference system (measurement system) support it (e.g., SERCOS, KL5001, M3000, ProfiDrive, Universal). This choice determines whether the actual encoder position is interpreted and evaluated as an absolute or incremental position, based on an absolute or incremental reference system (measurement system).

In an absolute reference system, no further processing takes place regarding encoder counter value overflow or underflow. It is assumed that the counter value is unique within the axis traversing range and no encoder counter value overflow or underflow occurs. Otherwise, there would be a discontinuity in the actual position, resulting in a position following error. Axis referencing via MC_Home is not possible. Instead, the actual position is calibrated once via the Position Biasparameter (zero offset / position offset).

In an incremental reference system axis referencing via MC-Home is generally required. In addition, the NC automatically detects and accounts for encoder counter value overflow or underflow events, so that continuous axis operation is possible over many months ("infinite range").

Encoder Mask (maximum value): The encoder mask determines the bit width for the incremental encoder position. The encoder mask is used for detecting and counting in range overflow events.

Scaling Factor: The scaling factor is multiplied with the incremental encoder position (including all overflows) and used as the basis for calculating an absolute axis position with the parameterized physical unit.

Position Bias (zero offset): Position offset; moves the axis coordinate system relative to the encoder coordinate system. This value is mainly used in absolute encoder systems. In relative systems an offset is usually not required since the system moves to a parameterized reference position after homing.

Invert Encoder Counting Direction: The encoder count direction can be inverted if it does not match the required logical count and travel direction.

 

Homing 3:

Reference Mode: Referencing mode as described above (Plc CAM, Hardware Sync, Hardware Latch Pos, Hardware Latch Neg, Software Sync). The default mode corresponds to Plc CAM mode.

The Reference Mode parameter is used to specify the type of reference event (physical or logical event) for the referencing process. Depending on which referencing mode is parameterized the referencing procedure is either based on the hardware characteristics of the drive/encoder (e.g., hardware latch), or the reference event is only detected within the control system, i.e. without additional hardware reference.

Reference Mask: The reference mask parameterizes overflow detection for Software Sync reference mode. It is less or equal the encoder mask and defines an encoder value range, which is part absolute. Examples include the bit width of a motor revolution or the bit width of a sine period in a sine/cosine encoder. Software Sync therefore always detects the same overflow position in a part-absolute encoder system.

Calibration Value: Reference position to which the axis position is set after homing.

Invert Direction for Calibration Cam Search: The parameter inverts the axis travel direction for searching the referencing cam during homing. The standard direction is negative, i.e., towards the axis coordinate system origin.

Invert Direction for Sync Impulse Search: The parameter inverts the axis travel direction for searching the sync pulse during homing.

Referencing of coupled axes

TwinCAT enables axis coupling during referencing. The coupled axes do not necessarily have to be referenced. Axis coupling enables referencing of gantry axes, for example, provided the system can ensure that the two axes are suitably oriented relative to each another before homing. In this case the procedure is as follows:

Programming a homing procedure in the PLC

MC_Home

The MC_Home function block is used to initiate homing from the PLC. The reference mode and further parameters are configured in the System Manager as described above. Only the reference cam signal (bCalibrationCam) is fed into the block.

Homing 4:

Drive types and I/O interface

Homing is largely independent of the drive types used. In some cases, the drive has to be parameterised, particularly if a drive latch function is used. The following section describes the AX5000 version.