Using Wake and Shake Mode 0 (WS.MODE 0)
Overview
Wake and shake (WS) is used to establish commutation in drives with the following types of feedback:
- Incremental encoders without Halls or commutation channels.
- Sine encoders without Halls or commutation channels.
When controlling a brushless DC (BLDC) motor, you must know the electrical position of the motor shaft. Without absolute position data, it is impossible for the drive to know which sequence of coils to energize to produce motion. Absolute feedback devices
Configuring WS
You can configure WS after your motor has been connected to the AKD according to the AKD Installation Manual. The WS procedure is initiated automatically when both the hardware and software enable signals become logic high.
Before attempting to enable the drive, the drive must be compensated for the motor and the AKD servo loops must be stable.
Compensation values for many rotary motors are included in a database already loaded into the drive.
-
-
An unstable system will not function properly during or after the WS process.
Use the default Wake and Shake view to configure your system:
Arm
Click Arm to set WS to start at the next drive enable (WS.ARM). This area also shows the current status of the wake and shake process. See WS.STATE for a detailed explanation of the possible states.
WS.ARM is not restricted to any feedback type.
Commutation Check
Select the type of commutation check to execute after Wake and Shake finds a new commutation angle.
0 - None: No Commutation Check
If No Commutation Check is selected, neither passive nor active commutations checks will be executed.
1 - Active: (default)
In the default Active Commutation Check mode, AKD will make a short torque move after an angle has been selected. If the motor fails to move in the expected direction, a fault will be generated.
2 - Passive:
In the Passive Commutation Check mode, AKD will monitor torque commands and acceleration values for 10 revolutions after Wake and Shake has completed. During this time, a fault will be generated if unexpected motion is detected, such as if commanded torque and acceleration are in opposition directions. Note that this fault may also be reported if the motor experiences a large torque disturbance lasting longer than WS.CHECKT.
Minimum Velocity Threshold: sets the value which must be exceeded to activate commutation monitering.
Error Duration Before Fault: sets the amount of time a commutation error must be present before an error is thrown.
Settings
- Number of Wake and Shake Loops. The WS feature uses the mean of all wake and shake repetitions, called "loops", to establish commutation (WS.NUMLOOPS; see Using WS: Advanced for a discussion of loops). If fewer than five loops are used, commutation may be incorrect, possibly causing poor performance or stability.
- Time the current vector applied to motor.This box specifies the duration of the current pulse used for commutation. Increasing this value (WS.T) increases the movement of the system.
- Maximum allowed velocity. If a velocity (VL.FB) higher than this value (WS.VTHRESH) is detected while WS is running, then a fault will be generated.
- Maximum allowed current. This value (WS.IMAX) is directly proportional to the movement. A value that is too low may fail to cause movement; a value that is too high value may cause an over speed fault.
- Maximum allowed movement (WS.DISTMAX). If the total motion from the starting position (the position at the time the drive is enabled after a WS.ARM command) exceeds WS.DISTMAX a fault will occur. Setting WS.DISTMAX to zero disables this feature.
- Minimum allowed movement (WS.DISTMIN). If the total motion from the starting position is less than WS.DISTMIN a fault will occur. This will prevent poor initialization from broken wires, incorrect current settings, very high friction, etc. Setting WS.DISTMIN to zero disables this feature.
Wake and Shake, More View
To configure additional WS settings, click More at the bottom of the default view to display the following
options:
Wake and Shake Movement
Use these boxes to set values for the maximum (WS.DISTMAX) and minimum (WS.DISTMIN) movement required for finding commutation.
Delay Times
Delay time is the time that elapses when switching different current vectors. Use these boxes to set specific time delays for current steps(WS.TDELAY1),coarse to fine angle (WS.TDELAY2) and time between loops in mode 0 (WS.TDELAY3).
Special Cases for WS
Operation with Motor Brake
An amplifier with a motor brake operates the WS procedure similar to an amplifier without a brake. All precautions and behavioral descriptions above also apply in this case. It is important to note that the brake is automatically applied (motor brake, not holding brake) after the WS process is complete. The brake may cause unexpected movement if the DRV.OPMODE used prior to WS does not retain position. If a force component is present parallel to the track on a linear motor (gravity, load, etc.), or tangential on a rotary motor, the motor may move from the startup position after WS completes and the brake is applied.
If the application requires that the startup position be retained, have the controller system ready to take control immediately after WS is complete. One way to set this control is to have the drive in DRV.OPMODE 1 (digital velocity) or DRV.OPMODE 2 (position mode) on power-up. This precaution keeps the motor stationary after enable.
End of Travel Limits
If anything restricts the motion of the motor, a commutation fault can occur. Examples of situations that may result in faults include the following:
- If the motor is resting against a rigid end stop, the movement of the motor may be impeded below the minimum threshold set by WS.DISTMIN. This lack of movement causes a fault.
- If the motor is actuating a limit sensor/switch, the system (PLC, SWLS.LIMIT0 and SWLS.LIMIT1) may be preventing the AKD from producing motion. If descriptive motion is not achieved, the system faults.
Large Load Inertia or High Friction System
Systems with a large load mismatch may need more current than the default setting for correct commutation. Begin with the default value for WS.IMAX and gradually increase or decrease as needed. If adjusting WS.IMAX does not result in a successful commutation, the width of the search pulse can be increased by increasing WS.T.
Using WS: Advanced
WS is performed upon enable in order to establish a valid value for MOTOR.PHASE at startup. MOTOR.PHASE is used to calculate electrical phase. With absolute feedback devices, MOTOR.PHASE is a fixed offset between absolute mechanical position and the electrical position. With incremental devices, position is accumulated relative to an initial MOTOR.PHASE. However, at startup, MOTOR.PHASE is invalid since the initial position is random, thus the requirement for the WS process.
WS is a two-step process:
- Coarse Phase. The drive sequentially pulses a user-specified current, WS.IMAX, at each electrical quadrant (0°, 90°, 180°, 270°). Based on the resulting observed movement, an approximate location is calculated.
- Fine Phase. The drive makes small adjustments to the coarse phase while monitoring movement during velocity mode (command velocity = 0) to find a precise position.
The amplitude of the current pulses in this process equals WS.IMAX. The drive repeats these two steps for a user-specified number of times (WS.NUMLOOPS) to produce a more accurate estimate of the electrical phase.
The drive normally indicates warning F478n478 before WS is initiated and successful. If WS fails, the commutation is not valid and the drive indicates one of the following faults:
- F473 : Insufficient movement. The maximum movement during WS was less than WS.DISTMIN.
- F475 : Excessive movement. The movement during WS exceeded WS.DISTMAX.
- F476 : Fine-Coarse deltat too large. The phase calculated during the fine phase and coarse phase differed by more than 10 degrees.
- F478n478 : Overspeed. The feedback velocity (VL.FB) exceeded WS.VTHRESH during WS.
- F479 n479 : Loop angle delta too large. The difference between the phase determined in different cycles (loops) exceeded 30 degrees.
- F482 : Commutation not initialized. WS is required (feedback is one of the types listed in the Overview) but WS has not been successfully performed.
- F483 to F485 : U, V, or W phase missing . Intermittent or broken motor connection.
Maximizing WS Reliability
The following suggestions will help you achieve successful commutation:
- Incorrect determination of MOTOR.PHASE may cause a system runaway. Since the typical movement during correct operation of WS is very small, you can use the velocity overspeed parameters (WS.VTHRESH and DRV.VTHRESH) to prevent a runaway. Prior to enabling the drive, set DRV.VTHRESH 100 mm/s for linear motors or 200 rpm for rotary motors. After a successful enable, DRV.VTHRESH can be returned to the normal operating value.
- Set WS.IMAX to its default value, WS.IMAX=0.5*min(MOTOR.IPEAK, DRV.IPEAK).
- Set WS.NUMLOOPS 20 for best results in many applications.
- WS.T specifies the duration for which the search current is applied. With a stable velocity loop, most applications work well with the default value of WS.T. The default value causes the software to calculate the width of the search pulse based on the velocity loop proportional gain, VL.KP. Increasing WS.T effectively increases the movement of the motor during WS, which may be necessary for systems with a low-resolution feedback or high load inertia.
- WS.IMAX specifies the amplitude of the current pulse used during the initial/rough commutation. A WS.IMAX value that is too low may result in a fault by failing to cause enough movement for commutation. If the value is too high, the preset movement threshold could be exceeded, also resulting in a fault. If the default value is producing faults for too little movement, gradually adjust this parameter to overcome excessive friction and/or load on the system. WS.IMAX also specifies the maximum current used in the second stage of commutation. The initial current is 25% of WS.IMAX, then steps up to 100% of WS.IMAX.
- FB1.SELECT selects the type of feedback used by the amplifier. The WS feature is used only for FB1.SELECT = 11, 21. The feedback must be configured prior to initiating the WS procedure.
- If your amplifier has a motor brake, set MOTOR.BRAKE = 1. For motors without a brake, set MOTOR.BRAKE = 0.
-
-
- Adjust WS.T with extreme caution. Increasing WS.T increases the movement of the system. Applying an incorrect value of WS.T may cause erratic drive behavior.
- When initiating WS, the motor may experience a runaway. Stay clear of all moving parts. Ensure there are properly operating safety devices such as hardware limit switches and suitable end-of-travel limits.
- If WS.NUMLOOPS is less than 5, commutation may be incorrect. This condition may cause faults and/or adversely affect performance or stability. Set WS.NUMLOOPS = 20.
Troubleshooting WS
Problem | Possible Cause | Remedy |
---|---|---|
Excessive Movement |
|
|
Insufficient Movement |
|
|
Excessive Movement |
|
|
Insufficient Movement |
|
|
U, V, or W Phase Missing Fault |
Intermittent or broken motor connection. |
Check connections to motor phases. |
Commutation Not Initialized Fault |
Wake and Shake is required but WS procedure has previously been canceled (WS.DISARM) or has failed. |
Correct errors and rerun WS procedure. |
Other |
|
|
Related Parameters