The software program of the ab servo drive mainly includes the main program, the interrupt service routines, and the data switching program.
The main program is mainly used to complete the initialization of the system, the LO interface control signal, and the setting of each control module register in the DSP.
After all the initialization of the CNC servo drive is completed, the main program reaches the await state, and waits for the interruption, so as to accordingly adjust the current loop and the speed loop.
The initialization of the AB servo drive mainly includes the initialization of the DSP cores, the cycle setting of the current loop and the speed loop, the PWM initialization, the four-M startup, the ADC initialization and startup, the QEP initialization, the initialization of the vector and the initial position of the permanent magnet synchronous motor rotor, the multiple phase current sampling of the servo motor, obtaining zero offsets of phase current, the initialization of current and speed P adjustment, etc.
Some of the PWM timing interrupt service routines of the servo drive are used to sample and calibrate the two-phase currents ia and ib of A and B of the Hall current sensor, and calculate the orientation angle of the rotor magnetic field according to the principle of magnetic field oriented control, and then re-angle and regenerate the PWM signals to control the position loop and the speed loop.
The interrupt service routines of the servo drive, protect the powder drive, which is mainly used to detect faulty output of intelligent power module.
The photoelectric encoder zero pulse capture interrupt service routines of the servo drive can realize the accurate capture of the encoder feedback of zero pulse, so that the correction value of the vector transformation orientation angle of the AC permanent magnet synchronous motor can be obtained.
The data switching program mainly includes the communication program with the host computer, reading the EEPROM parameters, the Nixie tube display program, etc.
Our company has been specializing in the sales of spare parts for large imported systems (distributed control systems, programmable logic controllers, redundant fault-tolerant control systems, robot systems) for many years.
Mitsubishi, Yaskawa, Pansonic, Ovation, Emerson, Honeywell, Allen-Bradley, Schneider, Siemens, ABB, GE Fanuc, Rosemount and Yokogawa Industrial Automation, as imported automation system spare parts sales and system integration, in the joint efforts of all staff, with the support from our customers and colleagues in the industry, our company's business has expanded rapidly, and its business scope has spread throughout China and around the world.
Our goal is to be one of the best and most popular suppliers of industrial automation products in the world. If you have any needs, please feel free to consult us.