1 Introduction
The upper control schemes of motion control systems generally include single-chip microcomputer systems, professional motion control PLCs, dedicated control systems, and "PC + motion control cards". The use of single-chip microcomputer systems to achieve motion control has low costs, but the development is difficult and the cycle is long. This solution is generally suitable for users with large product batches, simple control system functions, and experience in single-chip microcomputer system development. Many brands of PLCs can be equipped with positioning control modules, and some PLC CPU units have motion control functions themselves, such as Panasonic's FP0. This solution is generally suitable for equipment with relatively simple motion processes and fixed motion trajectories, such as feeders, automatic welding machines, etc. Dedicated control systems are generally aimed at special equipment or special industries, such as Siemens' lathe CNC systems and milling machine CNC systems. The "PC + motion control card" solution is increasingly used with the popularization of PCs, and will be the main development trend of motion control systems. This solution can make full use of computer resources and is used for machines and equipment with relatively complex motion processes and mechanical trajectories, and relatively strong flexibility. For example, most of the currently popular open CNC systems use this solution.
The control system introduced in this article adopts the "PC + motion control card" solution, which is the main content of this article.
2 System composition and hardware introduction
Figure 1 shows the hardware composition block diagram of this system. It uses the German Begel three-phase hybrid stepper motor (VRDM3910/LHA) and its matching driver (D921). The control card is the MPC02 motion control card produced by Chengdu Stepping Electromechanical Co., Ltd.
2.1 Driver panel and its function settings
Figure 2 shows the panel configuration and functions of the D921 driver.
Function selection: STEP1, STEP2 set the number of steps per motor revolution;
All input signals are optocoupler inputs.
2.2 Structure of motion control card
The structure of MPC02 motion control card is shown in Figure 3.
The card is inserted into the PCI expansion slot of the PC for use; the MPC02 card completes all the details of motion control, including the output of pulse and direction signals, the processing of automatic speed increase and decrease, the detection of origin and limit signals, etc. It uses advanced dedicated control integrated circuits and has trapezoidal and S-shaped speed increase and decrease curves. It uses a 68-core SISC interface, and shielded cables can be used for external wiring to improve the anti-interference ability of the control card. Its signal interface is defined as follows:
pulse quantity signal: pulse/direction (numbers 17 to 28); encoder feedback (35 to 52); optical isolation power supply (29, 30).
Switching signals: limit (55, 56, 60, 61, 65, 66); deceleration (53, 54, 58, 59, 63, 64); origin (57, 62, 67); servo enable (9, 11, 13); deviation clear (10, 12, 14); external alarm (68); general input (31~34); general output (1~8); optical isolation power supply (15, 16).
3 Software of motion control system
3.1 Software of control card
The units and function return values used in the function library are usually agreed as follows.
3.1.1 Unit
1) The unit of displacement or distance is P (Pulse), that is, the number of pulses;
2) The unit of speed is P/S (Pulse/sec), that is, pulse/second;
3) The unit of acceleration and deceleration is P/s2 (Pulse/s2), that is, pulse/second2.
3.1.2 Function return value
Most functions in the motion library are integer functions, and their return meanings are as follows:
0 The function is executed correctly; -1 The function is executed incorrectly.
The functions used in the function library are as follows: control card and axis setting functions, independent motion and interpolation motion functions, braking functions, position and status setting and query functions, I/O port operation functions, error code functions and some other functions. There are six basic types of motion implemented by these functions, as shown in Figure 4.
The motion function with speed increase/deceleration control is called fast motion function, such as fast_pmove, fast_vmove and fast_hmove, and the constant speed motion function is called constant speed (con) motion function, such as con_pmove, con_vmove and con_hmove.
3.2 Software Program:
The motion parameter settings include axis number, initial speed, maximum speed, acceleration and moving distance, etc.; the motion control program includes emergency stop, slow stop, zero reset, normal speed and fast speed, etc.; the control effect display includes position and speed, etc. The program is as follows:
4 Conclusion
The motion control function of the motion control card with a dedicated motion control circuit as the main control is realized by hardware circuits, with high integration and good reliability. It only needs to receive control commands from the microcomputer, and then complete the motion-related control by itself, which hardly occupies the CPU time of the microcomputer. It is very convenient to use, which can not only greatly shorten the research and development cycle, but also realize a more complete motion control system, which can meet the control requirements of stepper motors.
Previous article:Improved method of wiring dual motor frequency sensitive resistor
Next article:Analysis of Quantitative Problems in Checking Algorithms for Motor Control Systems
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Play with "ultra-energy-saving, high-precision, machine learning core" motion sensors [ST MEMS sensor competition]
- Ultra-wideband (UWB) working principle, origin and current status
- Using PLLs in Cyclone Devices
- 1uS wide pulse signal
- The test method of Tg value and the factors affecting it
- [Qinheng Trial] CH559EVT Trial 1: Unboxing and First Look
- EEWORLD University ---- How does high voltage isolation technology work - Capacitor structure
- [RVB2601 Creative Application Development] 3. WiFi network communication
- Rookie Learning Manual
- Can it replace the human arm?