CL3-E CANopen/USB Technical Manual

Homing

Overview

Description

The purpose of the reference run (homing method) is to synchronize the motor controller with the encoder index of the motor or position switch in a system.

Activation

To activate the mode, the value "6" must be set in object 6060h(Modes Of Operation) (see "DS402 Power State machine").

If a reference and/or limit switch is used, these special functions first need to be activated in the I/O configuration (see "Digital inputs and outputs").

When using the motor in "Open Loop" mode the object 320Ah:04 needs to be set to the value "1" before starting the homing mode.

Control word

The following bits in object 6040h(control word) have a special function:

  • Bit 2 is used to trigger an quick stop. If it is set to "0", the motor carries out a quick stop with the ramp set in object 6085h. The motor then goes into "Switch on disabled" mode (see the "DS402 Power State machine" section).
  • Bit 4: If the bis is set to "1", the referencing is started. This is set forth until either the reference position is reached or bit 4 is set to "0" again.

Status word

The following bits in object 6041h(status word) have a special function:


Bit 13 Bit 12 Bit 10 Description
0 0 0 Homing procedure is in progress
0 0 1 Homing procedure is interrupted or not started
0 1 0 Homing is attained, but target is not reached
0 1 1 Homing procedure is completed successfully
1 0 0 Homing error occurred, velocity is not 0
1 0 1 Homing error occurred, velocity is 0

Object entries

The following objects are required to control this mode:

  • 607Ch (Home Offset): Specifies the difference between the zero position of the application and the reference point of the machine.

  • 6098h(Homing Method):

    Method used for referencing (see "Reference run method")

  • 6099h:01h (Speed During Search For Switch):

    The speed for the search for the switch

  • 6099h:02h (Speed During Search For Zero):

    The speed for the search for the index

  • 609Ah(Homing Acceleration):

    Acceleration and deceleration for the reference run

  • 2056h(Limit Switch Tolerance Band):

    After moving to the positive or negative limit switch, the motor controller permits a tolerance range that the motor may not further travel. If this tolerance range is exceeded, the motor stops and the motor controller changes to the "Fault" state. If limit switches can be activated during the reference run, the tolerance range selected should be sufficiently large so that the motor does not leave the tolerance range when braking. Otherwise, the reference run cannot be completed successfully. After completion of the reference run, the tolerance range can be set back to "0" if this is required by the application.

  • 203Ah:01h (Minimum Current For Block Detection):

    Minimum current threshold that, when exceeded, detects blocking of the motor at a block.

  • 203Ah:02h (Period Of Blocking):

    Specifies the time in ms that the motor is nevertheless still to travel against the block after block detection.

  • 203Ah:03h (Block Detection Time)

    Specifies the time in ms that the current has to be at least above the minimum current threshold in order to detect a block

Speeds of the reference run

The figure shows the speeds of the reference run using method 4 as an example:



Tolerance bands of the limit switches

The previous image displays the setup of the tolerance areas next to the limit switches:
  • The tolerance zone begins immediately after the limit switch. It is possible to drive free in this area. The length of the zone can be set in the object 2056h.
  • If the controller drives into the forbidden area, it will execute a deceleration with a quick stop ramp and set an error.

Reference run method

Description

The reference run method is written into object 6098h as a number and defines whether referencing should be performed on a switch flank (rising/falling), a current threshold for block detection or an index pulse is referenced, or in which direction the reference run should start. Methods that use the index pulse of the encoder are within the number range 1 to 14, 33 and 34. Methods that do not use the index-pulse of the encoder are between 17 and 30, but their travel profiles are identical with those of the methods 1 to 14. These numbers are shown in circles in the following figures. Methods that do not use a limit switch, and instead travel against a block is to be detected, must be called up with a minus in front of the method number.

For the following diagrams, the negative movement direction is to the left. The limit switch is located in front of the mechanical block in each case, and the reference switch (home switch) is between the two limit switches. The index pulses come from the encoder, which is connected with the motor shaft and motor controller.

For methods that use homing on block, the same illustrations apply as for the methods with limit switch. New illustrations are not shown as nothing changes except for the missing limit switches. In this case, the limit switches have to be replaced by a mechanical block in the illustrations.

Homing on block

Homing on block is currently working in Closed-Loop only.

"Homing on block" works like every other homing method except for positioning, a block (mechanical end stop) is used instead of a limit switch. Two settings need to be set:

  1. Level of blocking current: in object 203Ah:01 the current is defined, on which a drive on the block is detected.
  2. Blocking time: in object 203Ah:02 the duration of blocking - in which to motor drives against the block - is defined.

Methods overview

Methods 1 to 14, and 33 and 34 use the index pulse of the encoder.

Methods 17 to 32 are identical with the methods 1 to 14 with the exception that referencing is only performed on the limit or home switch and not on the index pulse.

  • Methods 1 to 14 contain an index pulse
  • Methods 15 and 16 do not exist
  • Methods 17 to 30 do not have an index pulse
  • Methods 31 and 32 do not exist
  • Methods 33 and 34 reference only to the next index pulse
  • Method 35 references to the actual position

The following methods can be used for homing on block:

  • Methods -1 to -2 and -7 to -14 contain an index pulse
  • Methods -17 to -18 and -23 to -30 do not have an index pulse

Methods 1 and 2

Reference the limit switch and index pulse.

Method 1 references a negative limit switch and index pulse:

Method 2 references a positive limit switch and index pulse:

Methods 3 to 6

These methods reference the switch flank of the reference switch and index pulse.

In the methods 3 and 4, the left switch flank of the reference switch is used as a reference:

In the methods 5 and 6, the right switch flank of the reference switch is used as a reference:

Methods 7 to 14

These methods reference the home switch and index pulse (with limit switches).

For these methods, the actual position relative to the reference switch is unimportant. With method 10, referencing is for instance always to the index pulse on the right next to the right flank of the reference switch.

The methods 7 to 10 take the positive limit switch into account:

The methods 11 to 14 take the negative limit switch into account:

Methods 17 and 18

These methods reference the limit switch without the index pulse.

Method 17 references the negative limit switch:

Method 18 references the positive limit switch:

Methods 19 to 22

These methods reference the switch flank of the reference switch without the index pulse.

In the methods 19 and 20 (equivalent to methods 3 and 4), the left switch flank of the reference switch is used as a reference:

In the methods 21 and 22 (equivalent to methods 5 and 6), the right switch flank of the reference switch is used as a reference:

Methods 23 to 30

These methods reference the home switch without the index pulse (with limit switches).

For these methods, the actual position relative to the reference switch is unimportant. With method 26, referencing is for instance always to the index pulse on the right next to the right flank of the reference switch.

The methods 23 to 26 take the positive limit switch into account:

The methods 27 to 30 take the negative limit switch into account:

Methods 33 and 34

Reference the next index pulse.

For these methods, referencing is only to respective next index pulse:

Method 35

References to the actual position.

Note
For the mode 35 it is not necessary to switch the DS402 Power state machine up to the status "Operation Enabled", the status "Switched on" is sufficient.
▶   next

Contents