With the rapid development of science and technology, the characteristics of automation and intellectualization of mechanical production have become increasingly prominent. PLC motion controller is applied to fan control, focusing on the realization of control system functions.
In order to achieve this goal, it is necessary to have a good grasp of the design of PLC motion control system, so that the functions of PLC can be better played to meet the actual needs of fan control. Based on the development of embedded PLC motion controller, the emphasis is laid on grasping the automation and intelligent characteristics of PLC system, and applying it to fan control can improve the intelligent level of fan application, so as to better meet the actual production needs. In order to realize the function of motion controller on the platform of PLC, it is necessary to grasp the logic control and operation function of motion controller, so as to ensure that the function of motion control can be effectively brought into play. In the process of development and application of embedded PLC motion controller, the structure of PLC should be grasped to ensure the realization of embedded PLC system function. Generally speaking, the embedded PLC structure is an open structure. On the basis of the PLC core, the driver interface is set up, so that the user can apply the hardware system of the PLC to play an automatic control function. Firstly, the core of PLC is the real-time kernel.
In the process of task scheduling, it can make the system have real-time processing ability, so as to ensure that the functions and functions of the control system can be better brought into play [1]. Secondly, in the design process of embedded PLC structure, driver should be grasped.
The application of driver is mainly provided by the kernel. Thirdly, in the process of running embedded PLC structure, a ladder diagram program is adopted, and the system instructions are processed by corresponding operations. In the development of embedded PLC motion controller, we need to have a better grasp of the development process and implementation principle, so that we can play the function of embedded PLC motion controller. In the process of developing embedded PLC, we mainly start with the development of underlying hardware, driver and ladder diagram. The key point of developing embedded PLC is the development of driver [2]. In the process of designing embedded PLC underlying hardware, to ensure that the hardware of PLC is flexible and expandable, and can adjust the hardware of PLC accordingly according to the needs of system operation, so as to ensure that the performance of the system can be better developed, it is necessary to make rational use of I/O interface and distribute the information transmission channel. In the process of user-driven development and design, it has an important influence on the function realization of embedded PLC system. The embedded PLC core is adopted in the driver development, and the driver interface connection is realized with the help of the PLC core. Driving development also needs to distribute the driving tasks reasonably to ensure that the control function of PLC is well developed in the process of driving operation. In the trapezoidal diagram design, it is necessary to complete the design according to the working conditions of the PLC system.
In the development process of embedded PLC system, trapezoidal diagram design is related to the operation process of the PLC system. In this process, whether the trapezoidal diagram is consistent with the situation of the PLC control system will have a greater impact on the system function.
The hardware structure of embedded PLC motion controller is shown in Fig. 1. In order to ensure the realization of its function, thermostatic element it is necessary to select an effective central processing unit. In this process, advanced single-chip microcontroller can be applied. For example, C8051F120 single chip or 8031, 8096 single chip. The software implementation of embedded PLC motion controller mainly includes three modules: position module, speed module and corresponding counting module.
In the positioning process of position module, the number of pulses is used to locate the position, and the frequency of the pulses needs to be controlled. Accurate output of speed pulse can be achieved by using C8051F120 MCU and PCA array. The realization of speed module function needs to grasp the PCA array. The counter circulates at a specific frequency and makes the system move when the counting value is consistent with the module value. The user can specify the initial frequency.
By using PCA module, the pulse frequency can be calculated better. When the embedded PLC motion controller is used in the fan control, it is necessary to grasp the fan driving task and to distribute the fan driving task reasonably. The development of fan position module can be realized by using interface function and PCA.
It can be applied to the bottom hardware initialization of fan, and PCA module is for I/O initialization. In the specific design process, the bottom hardware configuration in the fan control process can be realized by using the non-real-time interface. When the bottom hardware configuration design is completed, the speed control interface for fan control needs to be designed. The user specifies the initial frequency and sets the number of pulses in this section to adjust the speed of this section. Generally speaking, every time the frequency changes linearly, the next pulse adjustment will be carried out in PCA, which needs to update the values in PCA, and will lead to increased CPU consumption. In order to solve this problem, it is necessary to allocate tasks reasonably in PCA. By using the PLC motion controller, a reasonable speed regulation scheme can be designed, and the change value of each cycle can be determined, so as to ensure the scientificity and rationality of the pulse signal. In addition, in order to achieve the goal of fan control, the D register and S coil of PLC should be used in the design process of position module to ensure that the control is more flexible and reliable to meet the needs of fan control. Conclusion: Embedded PLC motion controller has strong flexibility in the application process, and can better meet the control needs.
In the application of PLC control system to fan control, attention should be paid to the better design of position module, speed module and counting module, so as to ensure that its control function can be effectively played.