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
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:
- 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. - 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.
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.
| Decaying oscillation |
| Constant oscillation |
| Rising oscillation |
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
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 % | Current intensity of the current vector (value = 100% x P0-0093 / P0-0092) |
First phase ramp up time | 100 ms | Time for the current vector "a" to reach its parameterized magnitude |
Second phase current level | Stationary current in % | 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 | Minimum angle of rotation of the rotor required to detect movement |
First phase step width | 22.5 degrees | Current vector offset or segment detection angle |
First phase waiting time after step | 150 ms | 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 | 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. |
| = identifying characters for the description below |
| Motor with 3 pole pairs |
| Motor with one pair of poles |
Phase 1 - approximate determination of the rotor position (motor shaft)
Step 1:
| = see IDN P-0-0165 parameter description above Sequence: |
Step 2:
| = see IDN P-0-0165 parameter description above Sequence: |
Step 3:
| = see IDN P-0-0165 parameter description above Sequence: |
Example of an oscilloscope display of Phase 1:
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 , 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 ):
| = see IDN P-0-0165 parameter description above Sequence: |
Variant 2 (IDN-P-0-0165 "Commutation pos control: Kp" = 0 ):
| = see IDN P-0-0165 parameter description above Sequence: |
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, |
First phase ramp up time | 100 ms | Sluggish system, |
First phase pos monitoring limit | 0.5 degrees | Application only permits very limited uncontrolled changes in the movement |
First phase step width | 22.5 degrees |
|
First phase waiting time after step | 150 ms | Decay behavior of the system: |
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 |
Commutation pos control: Kp | 0.04 | High load stiffness --> increase value A special case "0": Variant 2 is carried out in Phase 2 |