Electronic commutation

These modern motors generate the alternating field needed for operation of the motor by means of an electronic circuit which is not subject to either wear or friction. The type of motor and the encoder system in use determine the commutation method.

Absolute encoder system (motor feedback) within one rotation

Samples of this type of encoder system includes: Resolver, EnDat, BiSS and HIPERFACE

Two different commutation methods are involved here:

Mechanical adjustment of the encoder

The motor's encoder system is mechanically adjusted at the factory (the encoder and rotor are matched to one another), but the rotor position is unknown.
The commutation angle is determined once by the P160 command, using the IDN "P0-0-165_Command mode_Static current vector" and the IDN "P-0-057 "Electrical commutation offset". This means that the corresponding mechanical angle coming from the encoder system is displayed and read out in P-0-0058, and is saved in the IDN "P-0-0150_Parameter chanel_Adjustable commutation offset" (motor database). In order for the parameter to be used, the IDN "P-0-0150_Parameter chanel_Commutation mode" (motor database) must be set to 3: "Adjustable offset". The associated value of the IDN "P-0-057 "Electrical commutation offset" is also saved in the motor database.

Electronic adjustment of the encoder system

Electronic commutation 1:

Synchronous motors!

Electronic adjustment is only required for synchronous motors. In the case of a synchronous motor, the magnetic field of the rotor is generated electronically, and therefore can be set appropriately for the electromagnetic field of the winding.

Depending on the encoder system there are, again, two different commutation methods:

  1. The encoder is always attached to the rotor by the manufacturer in the same rotary position, but the rotor position is not known.
    The commutation angle is determined once by the P160 command, using the IDN "P0-0-165_Command mode_Static current vector" and the IDN "P-0-057 "Electrical commutation offset". This means that the corresponding mechanical angle coming from the encoder system is displayed and read out in P-0-0058, and is saved in the encoder system's data store (exceptionally) and in the IDN "P-0-0150_Parameter chanel_Adjustable commutation offset" (motor database). In order for the parameter to be used, the IDN "P-0-0150_Parameter chanel_Commutation mode" (motor database) must be set to 3: "Adjustable offset". The associated value of the IDN "P-0-057 "Electrical commutation offset" is also saved in the motor database. This method requires a encoder system having a data store and a data line.
  2. The angle between the encoder system and the rotor is determined by the motor manufacturer using a command that is specific to the encoder, and is communicated to the encoder system. The encoder system stores this angle, using it for internal calculation, but the rotor position is unknown.
    The commutation angle is determined once by the P160 command, using the IDN "P0-0-165_Command mode_Static current vector" and the IDN "P-0-057 "Electrical commutation offset". This means that the corresponding mechanical angle coming from the encoder system is displayed and read out in P-0-0058, and is saved in the encoder system's data store (exceptionally) and in the IDN "P-0-0150_Parameter chanel_Adjustable commutation offset" (motor database). In order for the parameter to be used, the IDN "P-0-0150_Parameter chanel_Commutation mode" (motor database) must be set to 3: "Adjustable offset". This angle is always included in internal calculation processes. This method requires an intelligent encoder system.

Non-absolute encoder system (feedback) within one rotation

Samples of this type of encoder system includes: SIN / COS 1Vss

In this case, a special commutation procedure (wake&shake) must be run in order to determine the commutation angle. This angle is stored internally, and is taken into account during operation. If the AX5000 is switched off, or if the "EtherCAT-State machine" is switched into "Pre-op" or a lower state, the commutation angle will be lost because the encoder system is not absolute. "Wake&shake" can only operate without error when the drive system is running steadily; in other words there must not be any vibrations affecting the motor from outside. In addition, a stability investigation using the default values of the "IDN P-0-0165" is necessary the first time the system is operated.

Electronic commutation 2:

Oscillatory system!

It is important for this stability investigation to examine the application in advance and to determine the oscillation that is potentially most problematic. This case can occur under load conditions, or may be found when unloaded.

WARNING

Warning, risk of injury from uncontrolled movements!

In the method described below, the motor shaft is brought directly to a certain position. Make sure that your application permits this movement, secure the surroundings to prevent unintentional entry, and make sure that nobody is in the hazardous area.

 

Oscillatory system

It is necessary to analyze the vibration pattern of an oscillating system, and to take appropriate damping measures. Oscillations always have their effect in Phase 2 of "wake&shake"; oscillations are not particularly critical in Phase 1.

Electronic commutation 3:

 

Decaying oscillation
The amplitude (k) and the decay time (l) of this kind of oscillation must be found. The parameters IDN-P-0-0165 "Commutation pos control: Kp" can affect both the amplitude (k) and the decay time (l). The parameter IDN-P-0-0165 " Second phase duration" should be greater than the decay time (l).

Electronic commutation 4:

 

Constant oscillation
This kind of oscillation is unacceptable, as a stable regulation process is not established. The parameters IDN-P-0-0165 "Commutation pos control: Kp" must be checked, and modified if necessary. If this does not achieve the desired result, you must damp the vibration mechanically.

Electronic commutation 5:

 

Rising oscillation
This kind of oscillation is unacceptable, as a stable regulation process is not established. The parameters IDN-P-0-0165 "Commutation pos control: Kp" must be checked, and modified if necessary. If this does not achieve the desired result, you must damp the vibration mechanically.

The motor shaft is brought to freely definable electrical positions by impressing an appropriate current in the course of this investigation. When this injected current is switched off, the motor should remain in the position that it has reached. BECKHOFF recommends positions of 0°, 90°, 180° and 270°. In critical applications, eight positions (0°, 45°, 90°, 135° ...315°) should be selected instead of four. The current injection is parameterized in the IDN P-0-0165 under "Static current vector", while the freely selectable electrical position is set in the IDN P-0-0057. "Wake&shake" should be carried out in each position; stability of the system is only ensured when this has been done successfully.

Wake&shake

Electronic commutation 6:

Oscillating system!

A mechanical remedy must be provided if the application oscillates. You can carry out the commutation up to a degree using wake&shake, but should carefully select the parameters for the IDN "P-0-0165" to make the effect of the oscillation as small as possible, since too much post-pulse oscillation will cause a commutation error. This is because the angle measured after completing the command will be entered as the commutation angle.

WARNING

Warning, risk of injury from uncontrolled movements!

The motor shaft will be moved in steps during the process described below. In Phase 1 the maximum electrical movement is 8 x (the value from "P-0-0-0165_Fist phase position monitoring limit"). In Phase 2 it is 0.5 x (the value from "P-0-0-0165_Fist phase step width"). This formula can only be applied if the previous investigation of stability has been concluded satisfactorily. Make sure that your application permits this movement, secure the surroundings to prevent unintentional entry, and make sure that nobody is in the hazardous area.

The wake&shake commutation function consists of two phases. An approximate determination of the rotor position is carried out in Phase 1, while Phase 2 determines the position more precisely. The aim of the commutation function is to determine the precise position of the rotor with a minimum amount of movement.

Due to the pairs of poles, servomotors exhibit a direct relationship between the electrical and mechanical rotation. One electrical rotation always corresponds to one mechanical rotation divided by the number of pole pairs. A motor with a single pair of poles is illustrated in the following example for the sake of simplifying the calculation.

Parameterization is carried out using the IDN P-0-0165 "Commutation offset calibration parameter". The quoted angles always refer to electrical rotations!

IDN P-0-0165 - Commutation offset calibration parameter

Parameter

Default

Description

Command mode

0: Static current vector

Selection between two commutation methods

Activation

0: manual

Selection of when the commutation process is started

Static current vector

 

Commutation methods

  Current level

Stationary current in %

Current intensity of the current vector (value = 100% x P0-0093 / P0-0092)

Duration

3000 ms

Period for which the parameterized current is maintained so that any oscillations that may be present can settle, allowing an optimum commutation angle to be reached

Wake and shake

 

Commutation methods

  First phase current vector

Stationary current in %

Electronic commutation 7: Current intensity of the current vector (value = 100% x P0-0093 / P0-0092)

First phase ramp up time

100 ms

Electronic commutation 8: Time for the current vector "a" to reach its parameterized magnitude

  Second phase current level

Stationary current in %

Electronic commutation 9: Current intensity of the current vector (value = 100% x P0-0093 / P0-0092)

Second phase ramp up time

500 ms

Time for the current vector "g" to reach its parameterized magnitude

  Commutation pos control: Kp

0.04

Amplification factor. Attention: If "0" then Variant 2 will be carried out in Phase 2

  Wake and shake expert

 

Attention: Only experienced users should change the following parameters!

    First phase pos monitoring limit

0.5 degrees

Electronic commutation 10: Minimum angle of rotation of the rotor required to detect movement

    First phase step width

22.5 degrees

Electronic commutation 11: Current vector offset or segment detection angle

First phase waiting time after step

150 ms

Electronic commutation 12: The time from detection of movement and the next step in Phase 1 or between Phase 1 and Phase 2 (any oscillations in the system have time to settle)

Second phase duration

3000 ms

Electronic commutation 13: Period for which the parameterized current is maintained so that any oscillations that may be present can settle, allowing an optimum commutation angle to be reached

Error monitoring (range of motion)

90 degrees

The maximum movement of the rotor before it is switched off, since there would otherwise be a risk that the motor would make an uncontrolled movement.

Electronic commutation 14: Electronic commutation 15: Electronic commutation 16: Electronic commutation 17: Electronic commutation 18: Electronic commutation 19: Electronic commutation 20:

= identifying characters for the description below

 

Motor with 3 pole pairs

 

Motor with one pair of poles

Electronic commutation 21:

Electronic commutation 22:

Phase 1 - approximate determination of the rotor position (motor shaft)

Step 1:

Electronic commutation 23:

 

Electronic commutation 24: Electronic commutation 25: Electronic commutation 26: = see IDN P-0-0165 parameter description above
Electronic commutation 27: = flux vector of the rotor with permanent magnet.

Sequence:
A current vector "a" is developed during the time "b". Due to the rising magnetic force, the rotor "c" is turned in the direction of the current vector "a". The direction of rotation "d" is transmitted to the feedback system and the AX5000, where it is stored.

Step 2:

Electronic commutation 28:

 

Electronic commutation 29: Electronic commutation 30: Electronic commutation 31: Electronic commutation 32: = see IDN P-0-0165 parameter description above
Electronic commutation 33: = flux vector of the rotor with permanent magnet.

Sequence:
A current vector "a" is developed during the time "b". Due to the rising magnetic force, the rotor "c" is turned in the direction of the current vector "a". The direction of rotation "d" is transmitted to the feedback system and the AX5000, where it is stored and analyzed. If the analysis shows that the direction of rotation "d" of the rotor "c" has not changed when compared with that of the previous impressed current, the process continues.

Step 3:

Electronic commutation 34:

 

Electronic commutation 35: Electronic commutation 36: Electronic commutation 37: Electronic commutation 38: = see IDN P-0-0165 parameter description above
Electronic commutation 39: = flux vector of the rotor with permanent magnet.

Sequence:
The current vector "a" is again set to the magnitude "e" in the direction of the rotor "c".
The current vector "a" is now again developed during the time "b". Due to the rising magnetic force, the rotor "c" is turned in the direction of the current vector "a". The direction of rotation "d" is transmitted to the feedback system and the AX5000, where it is stored and analyzed. In this case, the analysis shows that the direction of rotation "d" of the rotor "c" has changed when compared with that of the previous impressed current. As a result, the sector in which the rotor "c" is located has been found, and Phase 1 is therefore completed.

Example of an oscilloscope display of Phase 1:

Electronic commutation 40:

 

Phase 2 - precise determination of the rotor position (motor shaft)

There are two variants of the precise localization that may be used in Phase 2. In the first variant, the rotor only makes minimal movement, but this does require a very stable system with only a slight tendency to oscillate. In the second variant, the rotor can move by up to a maximum of half the sector Electronic commutation 41:, but this method is much more tolerant against oscillation.

The value set in the parameter IDN-P-0-0165 "Commutation pos control: Kp" controls which variant is used:
IDN-P-0-0165 "Commutation pos control: Kp" > 0 --> Variant 1
IDN-P-0-0165 "Commutation pos control: Kp" = 0 --> Variant 2

Variant 1 (IDN-P-0-0165 "Commutation pos control: Kp" > 0 ):

Electronic commutation 42:

 

Electronic commutation 43: Electronic commutation 44: Electronic commutation 45: Electronic commutation 46: = see IDN P-0-0165 parameter description above
Electronic commutation 47: = flux vector of the rotor with permanent magnet.
Electronic commutation 48: = movement of the rotor

Sequence:
The current vector "g" is developed starting from the final position of the current vector "a" in Phase 1. Due to the rising magnetic force, the rotor "c" is turned in the direction of the current vector "g". The movement is passed through the feedback system to the AX5000, and supplied to a control loop. This control loop immediately corrects the direction of the current vector. This algorithm is executed until the parameterized current intensity is achieved, and the current vector approximately coincides with the flux vector. The current is now maintained over the period "h" which ensures that optimum commutation takes place. In this control algorithm, the rotor only moves minimally through "i".

Variant 2 (IDN-P-0-0165 "Commutation pos control: Kp" = 0 ):

Electronic commutation 49:

 

Electronic commutation 50: Electronic commutation 51: Electronic commutation 52: Electronic commutation 53: = see IDN P-0-0165 parameter description above
Electronic commutation 54: = flux vector of the rotor with permanent magnet.
Electronic commutation 55: = movement of the rotor

Sequence:
After determining the sector "e" in Phase 1, the current vector "g" is placed exactly in the center of the sector "e", and this current is developed. Due to the rising magnetic force, the rotor "c" is turned in the direction of the current vector "g" until they coincide. In this static alignment, the rotor cannot move more than half the width of the sector "e".

Using IDN P-0-0165 to affect wake&shake

Parameter

Default

Possible causes that might require a change in the default value

First phase current level

Stationary current in %

Sluggish system,
high attenuation --> increase value
Smooth system,
low attenuation --> reduce value

First phase ramp up time

100 ms

Sluggish system,
high attenuation --> increase value
Smooth system,
low attenuation --> reduce value

    First phase pos monitoring limit

0.5 degrees

Application only permits very limited uncontrolled changes in the movement
--> reduce value
The system has a small amount of attenuation
--> reduce value
The loading relationships require more overshoot
--> increase value

First phase step width

22.5 degrees

 

First phase waiting time after step

150 ms

Decay behavior of the system:
Long settling time --> increase value
Short settling time --> reduce value

  Second phase current level

Stationary current in %

 

Second phase ramp up time

500 ms

 

Second phase duration

3000 ms

 

Error monitoring (range of motion)

90 degrees

Application only permits very limited uncontrolled changes in the movement
--> reduce value
The system has a small amount of attenuation
--> reduce value
The loading relationships require more overshoot
--> increase value

  Commutation pos control: Kp

0.04

High load stiffness --> increase value
Low load stiffness --> reduce value

A special case "0": Variant 2 is carried out in Phase 2