Below are the basic steps required to run a motor in Open Loop by using its Resolver sensor. Only the necessary information to run the motor will be provided, so for a more detailed explanations please refer to the Roboteq Controllers User Manual.

Physical connections:


The Resolver sensors are connected to different pins of the DB25 connector, depending on the controller model. Consult the controller's datasheet or the controller's pinout in Roborun+ Utility to find the exact pins.

EXC+ cable of the Resolver connects to EXC (pin 17)
EXC-  cable of the Resolver connects to GND

SIN+ cable of the Resolver connects to ASIN1 (pin 9) for channel 1 and ASIN2 (pin 24) for channel 2.

SIN- cable of the Resolver connects  to GND

COS+ cable of the Resolver connects to ACOS1 (pin 10)  for channel 1 and ASIN2 (pin 12) for channel 2.

COS- cable of the Resolver connects  to GND


To run the motor in Open Loop with Resolver sensors follow the next steps:


1. Configure the number of “Pole Pairs”

Pole pairs parameter is essential for the sinusoidal commutation and for the speed calculation.

Pole pairs is the mumber of motor poles divided by 2.

 

2. Configure the switching mode to sinusoidal


Roboteq controllers support two ways of supplying current to the motor: Trapezoidal and Sinusoidal. In sinusoidal mode the current is sinusoidal so it has less harmonics and the motor is driven in a smoother and quiter way, developing the minumun torque riple. Since sinusoidal commutation is superior to Trapezoidal, this method should be configured

3. Configure the Reference seek power to the rated current of the motor


The reference seek power is the current that will be provided to the motor during the motor/sensor setup. If the reference current is too low or too high the motor/sensor setup might not be performed correctly


4. Configure the sinusoidal angle sensor to Resolver Sensor


This is the sensor that will be used to get the angle of the rotor. Knowing the exact angle of the rotor each time is necessary to make it rotate.


5. Configure the Amps Limit parameter


The controller will prevent the motor current from exceeding the amp limit parameter by reducing the motor voltage. Please note that although this is a sufficient process, it does not act immediately so it cannot prevent any current spikes. This value should be set equal to the peak current of the motor. 

Since the peak current of a motor is only allowed for a specific amount of time, Roboteq controller offers the option to trigger an action if the motor current exeeds a value for an amount of time. This can be configured by the Amps Trigger parameter. 

I2T protection is a more indirect but more responsive method for protecting motors mainly from overheating. The concept is based on one number which is the I2T accumulator and is calculated by the following formula:


I2T_accumulator += (Inow^2 – INom^2) * time.


where:

  • Inow is the current that is measured for specific time.
  •  INom is the nominal current of the motor. This is the current under which the motorcan run continuously. This value is set using the configuration command NOMA(NOMA - Nominal Current).


So when motor draws more current than the nominal then I2T accumulator increases. When motor draws less current than the nominal, the I2T accumulator decreases. I2Taccumulator is compared with a maximum value called I2T limit and is calculated by the following formula:

I2T_limit = (IPeak2 – INom2) * peak_time.


where:

  • Peak is the maximum current the motor can handle for specific time. This value is set using the configuration command ALIM (see ALIM - Amps Limit).
  •  peak_time is the maximum time that the motor can handle current similar to IPeak.This value is set using the configuration command TPAL (see TPAL - Time for Amps Limit)

If I2T accumulator becomes bigger than I2T limit then the controller will stop limiting the current at ALIM and start limiting the current at 80% of the nominal current (NOMA). In that way the motor will cool down and I2T accumulator will respectively decrease. This limitation will remain until I2T accumulator goes below the 10% of I2T limit.

Respectively the I2T limit of the controller is calculated based on their specifications as stated in the datasheet. In order to protect the controller we compare the two I2T limits (the controller’s hardcoded one and the motor’s configured one) and will implement the feature using the smaller value of the two limits.

Important notice! If TPAL value is set to 0 then I2T protection is deactivated.


6. Configure the Operating Mode to “Open Loop”

 


7. Navigate to Diagnostics tab and run the Motor/Sensor Setup


Motor/Sensor setup is the process where the controller will record the Sin, Cos signals of the Resolver. This is required for the Sinusoidal commutation of the motor. During the calibration, the motor will move for some degrees in both directions.

Important notice! The motor shaft should be free to rotate and without load


In the chart enable the Motor amps and Sin, Cos parameters and ensure the following: 

  • Sin, Cos signals are formed in the Chart.
  • During one Period of Sin/Cos signal in the chart, Sensor angle will reach 511 times equal the number of pole pairs of the motor.
  • The Motor Amps are equal to the Reference seek power


Important notice! Sensor Error Detection should be disabled in the unused channel


 In dual channel controllers, if one of the two channels is not used, please disable the sensor error detection on the unused channel.


8. Configure the FOC Flux and Torque gains

Navigate to the Diagnostics tab and initiate the Motor Characterization process. This process will enable the estimation of the motor  resistance (R )and Inductance (L) parameters which are essential for the configuration of the FOC (Field Oriented Control). In case the motor parameters are provided in the datasheet, the wizard will facilitate the calculation of the FOC PI gains based on these parameters. 

Εικόνα που περιέχει κείμενο, γραμματοσειρά, γραμμή, αριθμός Περιγραφή που δημιουργήθηκε αυτόματα

In the popup window there are the following options:

You can either let the Motor Characterization Tool calculate the R, Ld, Lq values of your motor after setting as Reference Seek Power the nominal current of your motor or configure these parameters manually.

 Εικόνα που περιέχει κείμενο, στιγμιότυπο οθόνης, λογισμικό, αριθμός Περιγραφή που δημιουργήθηκε αυτόματα

 Motor Characterization: This procedure lasts up to a minute and will move the rotor in various positions in order to estimate the R,L values of the motor. Please note that the supplied electromagnetic field will produce audible noise of various frequences. Since the moving of the rotor is a part of the estimation process, the rotor should be free to rotate (no load or brake) .

Configure the R, Ld, Lq values Manually:  The motor datasheet may provide the phase or phase to phase measurments of the motor resistance and inductance, with the secnd option to be more common. If the phase to phase measurements are provides, the values should be divided by two. 


Example:

R,L values according to the Motor’s Datasheet:


 

R,Ld,Lq Configuration:


 In BLDC motors Ld, Lq are similar. So, if the parameters are given in ph-ph values they should be divided by two and transformed in the 
appropriate units of measurement..

Εικόνα που περιέχει κείμενο, στιγμιότυπο οθόνης, λογισμικό, οθόνη Περιγραφή που δημιουργήθηκε αυτόματα

Click Next . In both cases, (either with manual configuration or   automatic estimation), after setting the RL values, you will be prompted to set the current loop (FOC) Bandwidth. The bandwidth determines the responsevness of the current loop. Avoid Bandwidth values that fall out of the green zone. A general rule is that motors with low inductance need high current Bandwidth (800 Hz ) and motors with high inductance value need low current Bandwidth (100 Hz).  (is this theoretically and practically verified? If yes, leave as is).


Εικόνα που περιέχει κείμενο, στιγμιότυπο οθόνης, λογισμικό, αριθμός Περιγραφή που δημιουργήθηκε αυτόματα

After selecting the Bandwidth click save, in order to, save the parameters to the drive's fash memory.

Εικόνα που περιέχει κείμενο, στιγμιότυπο οθόνης, λογισμικό, οθόνη Περιγραφή που δημιουργήθηκε αυτόματα

11. Now the motor is ready to Run in Open Loop / Sinusoidal with Resolver sensor!

      

  To assess the performance of the motor, do the following:


  • Turn the motor without load in both directions and verify that the motor current is not beyond the “no load current” and symmetrical in both directions. You can monitor the controller working parameters on the Run tab of the Roborun+ Utility.
  • Verify that the Motor flux amps parameter has a small fluctuation and is kept close to zero. 
  • Verify that the FOC angle correction parameter is stable or that it stabilizes in satisfying time by changing the motor load/speed.
  • Verify that the Internal Sensor RPM parameter has a positive value by giving a positive motor command. If the measured speed is reverse, you can fix it by inverting the pole pairs parameter sign. Note that is important to have a speed of the correct sign, otherwise the motor will not be controller properly in Closed Loop. 


 


If all the tests have been passed succesfully, then the Open Loop has been properly set motor is ready to be configured in Closed Loop! Before Testing CLosed Loop modes, make sure that you follow the Torque Mode tuning guide to ensure that the FOC gains are confiogured optimally.



If not, please Open a technical support ticket at our Helpdesk platform.