| Electronic Components Datasheet Search |
|
MSK4367 Datasheet(PDF) 4 Page - M.S. Kennedy Corporation |
|
|
|||||||||||||||||||||||||||||
MSK4367 Datasheet(HTML) 4 Page - M.S. Kennedy Corporation |
|
4 / 10 page ![]() PI Control There are two PI control loops, one for speed control and one for torque control. When in speed mode, both loops are active, with the output of the speed loop being used as an input command for the torque loop. When in torque mode, the speed control loop is bypassed. The torque control loop is executed once every PWM cycle, a rate of 20 KHz, while the speed control loop is executed at a slower rate of 100 Hz. This is due the nature of motor currents changing quickly and slower changing mechanical motor speeds. The PWM duty cycle bit resolution is 11.5 bits with an integer range of 0 to 1498. Zero net output current occurs at a PWM duty cycle of 50% which is represented by 749 in the PWM duty cycle register. The Analog to Digital Converter (ADC) is 10 bits wide and has a full scale value of 1023. The ADC volts per bit resolution = Vdd / 1023, thus for Vdd = 5.0 volts the volts per bit resolution will be equal to 4.8876 mV/bit. This is used to measure phase currents, and calculate the RMS currents. The PID control algorithm utilizes 16 bit fractional integer values for all computations. To provide better control response by the PID control algorithm, and to match the input commands, the RMS currents calculated from the ADCs are multiplied by 32. The output of these calculations is then scaled back to match PWM resolution. The proportional and integral gains are set through CAN commands. The commands have a range of 0-32767 bits. The proportional gain value is shifted by 4 bits in the algorithm, giving an effective range of 0-16. The integral value is not shifted, giving it an effective range of 0-1. If the calculated output values exceed the output range, it is limited and an excess value is calculated in order to limit windup. APPLICATION NOTES CONT'D The PI algorithm operates as follows: Error = Command - Measured U = Sum + PGAIN * Error if ( U > Max ) Out = Max else if( U < Min ) Out = Min else Out = U Excess = U - Out Sum = Sum + IGAIN * Error - IGAIN * Excess 4 MSK4367 CAN Command Set Summary Rev. C 5/12/12 General Error Responses: 0xFFF0 = Invalid Data for Command Sent 0xFFF1 = Invalid Data Length for Command Sent 0xFFF2 = Unrecognized Command Tag 0xFFF3 = Overflow Error; Command not processed Get Motor Speed – Requests motor speed from the controller. Send Contents: Command Tag only [1 word]. Command Tag: 0x32 Response Contents: Response Tag followed by 16 bits of data [3 words]. Response Tag: 0x33 Data: 0x8000 – 0x7FFF. 2’s compliment format. Description: Will request motor speed from the controller. The speed information is output in revolutions per minute actual rotor shaft RPM. Magnitude and direction information is presented in 16-bit, 2’s compliment format, with a range of +32767 to -32768. Default Data Value: N/A Get Mechanical Position – Requests motor rotor mechanical position from the controller. Send Contents: Command Tag only [1 word]. Command Tag: 0x34 Response Contents: Response Tag followed by 16 bits of data [3 words]. Response Tag: 0x35 Data: 0x8000 – 0x7FFF. 2’s compliment format. Description: Will request motor rotor shaft angular mechanical position from the controller. The position information is output in encoder counts, with zero (0) being at the Encoder Index Pulse. It is also in 2’s compliment format, with positive numbers one direction and negatives the other. Default Data Value: 0x0000 8548-100 Rev. C 3/13 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |