Universal controller applied to automation device
By designing a general-purpose controller including STM32F407ZGT6 microcontroller and FPGA, the problem of PLC hardware is not cut and data processing is slow, and the low-cost, efficient data processing and multi-brand system compatibility of automation equipment is achieved.
Patent Information
- Application Number
- PCT/CN2023/106525
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-18
- Filing Date
- 2023-07-10
- Publication Date
- 2024-11-21
AI Technical Summary
The hardware of PLC in existing automation equipment cannot be cut, resulting in high control costs, slow data processing speed, and inability to implement complex logic algorithms. The software and hardware of various brands are incompatible, limiting the compatibility of the system.
A general controller is designed, including the main controller module, analog input and output module, communication module, power module, human-computer interaction module and input and output parallel processing module, using STM32F407ZGT6 microcontroller and FPGA chip, through CAN, EtherCAT and Ethernet The module enables hardware cropping and system compatibility.
It reduces control costs, improves data processing speed, realizes the rapid execution of complex logic algorithms, and expands the compatibility of the system. It is suitable for multi-brand PLC hosts and EtherCAT hosts.
Smart Images

Figure CN2023106525_21112024_PF_FP_ABST
Abstract
Description
A universal controller for automation equipment Technical Field The invention belongs to the technical field of automatic control, and in particular relates to a universal controller applied to automation equipment. Background Art At present, in the automation industry, the main functions of automation equipment control and signal acquisition are completed by PLC, and the application of PLC in the automation industry is dominant. Initially, PLC was mainly used for the logical control of switching quantities. With the advancement of PLC technology, its application field continues to expand. Nowadays, PLC is not only used for switching quantity control, but also for analog and digital quantity control. It can collect and store data, and can also monitor the control system; it can also be connected to the Internet and communicate to achieve large-scale, cross-regional control and management. When PLC control is applied to automation equipment in the existing technology, because PLC hardware cannot be cut, many projects only apply part of the functions of PLC, and the unnecessary functions, although not used, but for users, they also need to pay for these unnecessary functions. For example, the procurement cost of various PLCs and their attached IO modules required for a mobile phone dispensing machine automation equipment is between 30,000 and 40,000 RMB, and the control cost is relatively high. Moreover, the amount of data that can be stored inside the PLC is limited, it cannot implement complex logic algorithms, and its operating frequency is far behind that of single-chip microcomputers and FPGAs. Since the operating frequency of PLC is far behind that of single-chip microcomputers and FPGAs, the data processing speed of PLC is also far behind that of single-chip microcomputers and FPGAs. In addition, the software and hardware systems of PLCs of various brands are incompatible and have closed structures. Summary of the invention The main purpose of the present invention is to solve the problems existing in the prior art and provide a universal controller for automation equipment, which can reduce control costs through hardware tailorability, improve data processing speed and implement complex logic algorithms in a short time, and can also communicate with PLC hosts of various brands or Ethercat hosts to achieve system compatibility. The technical problem solved by the present invention is achieved by adopting the following technical scheme: a universal controller applied to automation equipment, comprising a main controller module, an analog input module, an analog output module, an RS485 communication module, an RS232 communication module, a CAN communication module, a power supply module, a human-computer interaction module, an EtherCAT module, an Ethernet module, an input-output parallel processing module, a digital input module, and a digital output module, wherein the main controller module is electrically connected to the analog input module, the analog output module, the RS485 communication module, the RS232 communication module, the CAN communication module, the power supply module, the human-computer interaction module, the EtherCAT module, the Ethernet module, and the input-output parallel processing module, and the input-output parallel processing module is electrically connected to the digital input module and the digital output module, respectively. Furthermore, the power module includes a 5V main power circuit, a 3.3V branch power circuit, and a 1.2V branch power circuit. The 5V main power circuit is electrically connected to the 3.3V branch power circuit, and the 3.3V branch power circuit is electrically connected to the 1.2V branch power circuit. Furthermore, the 5V main power supply circuit adopts a SGM61720 power supply chip, the 3.3V sub-power supply circuit adopts an AMS1117-3.3V voltage regulator chip, and the 1.2V sub-power supply circuit adopts an AMS1117-1.2V voltage regulator chip. Furthermore, the analog input module adopts a LM324 chip, and the analog output module adopts a GP8403 chip. Furthermore, the main controller module adopts a STM32F407ZGT6 single-chip microcomputer, the human-computer interaction module adopts an industrial touch screen, and the CAN communication module adopts a TJA1051T / E chip. Furthermore, the input-output parallel processing module adopts a GWIN-UV2LQ100C6 / I5 FPGA chip. Furthermore, the digital input module is a 24V to 3.3V voltage conversion circuit, and the digital output module is a 3.3V to 24V voltage conversion circuit. Furthermore, the EtherCAT module adopts the AX58100 chip, and the Ethernet module adopts the LAN7820 chip. The beneficial effects of the present invention are: In addition to the basic functions of the single-chip microcomputer in the main controller module of this controller, the CAN bus in the CAN communication module can be used to expand various control modules required by users, so that the hardware can be tailored to reduce the control cost. The single-chip microcomputer can also expand enough storage space through the CAN communication module, solving the shortcoming of the existing technology that the PLC cannot store too much real-time data. The STM32F407ZGT6 microcontroller in the main controller module of this controller has a working frequency of hundreds of megahertz, which is far higher than the data processing speed of PLC, and can realize complex logic algorithms in a short time. The FPGA chip in the input and output parallel processing module of this controller includes 40-channel IO input information acquisition, 8-channel IO output control, and 1-channel analog output control. The multi-channel input and output of FPGA greatly expands the application range of this controller, and FPGA has a faster data processing speed. The main controller module of this controller can communicate with PLC hosts of various brands or Ethercat hosts through the EtherCAT module to achieve system compatibility, expanding the system compatibility range. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing the principle of a universal controller applied to automation equipment according to the present invention. 2(a)-2(d) are circuit diagrams of the main controller module of the present invention. 3(a)-3(b) are circuit diagrams of a 5V main power supply circuit of the present invention. FIG. 4 is a circuit diagram of a 3.3V power distribution circuit of the present invention. FIG5 is a circuit diagram of a 1.2V power distribution circuit of the present invention.
[0020] FIG. 6 is a circuit diagram of the analog input module of the present invention. FIG. 7 is a circuit diagram of the analog output module of the present invention. FIG8 is a circuit diagram of the RS232 communication module of the present invention. FIG9 is a circuit diagram of the RS485 communication module of the present invention. 10(a)-10(e) are circuit diagrams of the CAN communication module of the present invention. 11( a )-11 ( k ) are circuit diagrams of the EtherCAT module of the present invention. 12(a)-12(i) are circuit diagrams of the input-output parallel processing module of the present invention. FIG. 13 is a circuit diagram of a digital input module of the present invention. FIG. 14 is a circuit diagram of a digital output module of the present invention. DETAILED DESCRIPTION The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. As shown in Figures 1 to 14, a universal controller for automation equipment provided by the present invention includes a main controller module, an analog input module, an analog output module, an RS485 communication module, an RS232 communication module, a CAN communication module, a power module, a human-computer interaction module, an EtherCAT module, an Ethernet module, an input-output parallel processing module, a digital input module, and a digital output module. The main controller module is electrically connected to the analog input module, the analog output module, the RS485 communication module, the RS232 communication module, the CAN communication module, the power module, the human-computer interaction module, the EtherCAT module, the Ethernet module, and the input-output parallel processing module, and the input-output parallel processing module is electrically connected to the digital input module and the digital output module. The power module includes a 5V main power circuit, a 3.3V branch power circuit, and a 1.2V branch power circuit. Connect the 3.3V sub-power supply circuit, and the 3.3V sub-power supply circuit is electrically connected to the 1.2V sub-power supply circuit. The 5V main power circuit uses the SGM61720 power chip, and the 3.3V sub-power circuit uses the AMS1117-3.3V The 1.2V power supply circuit uses the AMS1117-1.2V voltage regulator chip. The analog input module uses the LM324 chip, and the analog output module uses the GP8403 chip. The main controller module adopts the STM32F407ZGT6 model single-chip computer, the human-computer interaction module adopts an industrial touch screen, and the CAN communication module adopts the TJA1051T / E model chip. The input and output parallel processing module uses the GWIN-UV2LQ100C6 / I5 FPGA chip. The digital input module is a 24V to 3.3V voltage conversion circuit, and the digital output module is a 3.3V to 24V voltage conversion circuit. The EtherCAT module uses the AX58100 chip, and the Ethernet module uses the LAN7820 chip. As shown in Figure 2 (a)-2 (d), the main controller module uses the STM32F407ZGT6 model microcontroller, which includes 114 general-purpose I / Os, 24 12-bit AD channels of network interface, 2 12-bit DAC H channels, 14 timers, etc. It is widely used in the field of industrial control and has a main frequency of 168MHZ. In the industrial control industry, 24V DC power supply is generally used, and its voltage variation range is large. If the distance is far, the variation may reach 30% or even higher. If some safety measures and protection circuits are not taken in the product and the power is directly introduced into the control chip as the front-end power supply of the product, the voltage fluctuation and interference in the circuit will have a great impact on the system. The power module design adopts 24v switch local power supply fluctuation of 10%. Before entering the front-end power supply, the power filter is used to make the voltage fluctuation less than 5%. After two-stage voltage reduction, 5V to 3.3V is used to obtain a stable working power supply. The filter uses a common mode power filter and a capacitor to form a π-type filter. As shown in Figure 3 (a)-3 (b), the 5V main power supply circuit uses the SGM61720 power supply chip. This chip has a wide voltage (10-30V) input and a 5V DC output, providing 5V power for the entire general controller circuit. Digital signal input has NPN type input and PNP type input. The two input forms are different. When designing the circuit, both are taken into consideration, and different types of sensor input can be completed. The high level of the digital quantity in industry is 24V, while the level of the controller ARM is 3.3V. The two cannot be directly connected, otherwise the entire system will be burned. Therefore, as shown in Figure 13, a 24V to 3.3V voltage conversion circuit is used to complete the digital quantity input. The circuit adopts an optical coupling isolation circuit to achieve the function of controlling the peripheral sensor. In order to adapt to high-speed signals such as the pulse signal of the servo motor, in order to accurately control the position of the servo motor in the future, the input circuit adopts a high-speed interface with a frequency of 100KHZ. Since high speed may generate large electromagnetic interference, the input signal is anti-interference, which can eliminate interference signals of about 6V.
[0043] At present, the driving current provided to users by the PLC digital output circuit is 24V, 50 mA. When driving high-current equipment, a driving module needs to be added, which increases the system cost and volume. As shown in Figure 14, in order to drive high-current devices, the digital output circuit needs to convert 3.3V and 24V voltages using an optocoupler conversion circuit. The high current is completed using a MOS tube drive circuit, and the drive current can reach 3A to achieve the function of controlling peripheral sensors. The input signals of the whole system include digital and analog signals. The digital signals are processed by the input module. The analog signals need to be processed by the analog input circuit. The analog signals are generated by the sensors of the system, such as pressure sensors, temperature sensors and distance sensors. The output signals of the sensors are current type and voltage type. The output signals meet the industrial standards, with the current of 4-20mA and the voltage of 0-5V. In order to make the system adapt to different types of sensors, the current design adopts two different input methods. It can be used normally as long as the external connection is different, which is simple and convenient. The circuit uses the 12-bit ADC provided by the CPU for analog-to-digital conversion and provides 4 analog input channels. As shown in Figure 6, the analog input signal is 4-20mA, which is converted into 0-3.3V by the analog input circuit, and is automatically collected and processed by the ADC port of the microcontroller and uploaded to the PLC host through the Ethercat protocol. In the field of industrial control, continuous physical quantities such as servo motor speed, glue coating amount, temperature heater, etc. are often controlled. The system controls these quantities by output voltage, so the system must have an analog output module to provide these control voltages. The system provides two 12-bit voltage output modules. The voltage output is 0-5V, and the IIC interface DAC chip is used to implement this circuit. As shown in Figure 7, the main chip model of the analog output module is GP8403, which realizes 0-10V analog output. Serial communication technology is a flexible, convenient and reliable means of communication, which is widely used in the field of industrial control. The commonly used serial communication in industry adopts RS232, RS422 / RS485 serial communication technology, and the Modbus communication protocol is commonly used in serial communication. The logic levels of RS232, RS485 and UART serial ports are different. The selected ARM chip has 6 UART communication interfaces, and UART uses standard TTL / COMS logic levels (0~5V, 0~3.3V, 0~2.5V or 0~1.8V) to represent data, high level represents 1, and low level represents 0. In order to enhance the anti-interference ability of data and increase the transmission length, RS232 usually converts TTL / COMS logic level to RS232 logic level, 3~12V represents 0, and -3~-12V represents 1. As shown in Figure 8, the circuit uses SP3232 for level conversion. RS485 adopts differential transmission, also known as balanced transmission, +2V~+6V represents "0", -6V~-2V represents "1". It uses a pair of twisted pairs, one of which is defined as A and the other as B. RS485 now mostly uses a two-wire wiring method, which is a bus topology structure. Up to 32 nodes can be connected on the same bus. The maximum data transmission rate of RS485 is 10Mbps. In the RS485 communication network, the master-slave communication method is generally used, that is, one host with multiple slaves. The data communication distance can reach 1500 meters. As shown in Figure 9, the circuit uses the SP3485 chip for level conversion and transmission, and the 485 communication uses an automatic switching transceiver mode circuit. In order to adapt to different communication terminal devices, the system provides 1 RS232 and 1 RS485. The system can be connected to various 485 interface sensors through RS485 to collect data. In industrial control systems, in order to adapt to more complex control applications, the system needs to expand different interface modules. The system expansion function takes into account the communication rules of all modules, as well as the data acquisition and output rules. It is the most difficult part of the system design, such as how to identify all interface modules, how to read the input and output data of the modules, and what the rules are for reading these data. As shown in Figures 10 (a)-10 (e), the circuit design uses CAN bus communication, and the communication protocol uses CANOPEN protocol. CANOPEN protocol is an industrial standard protocol, and data reading uses memory mapping to interact with module data. When the IO input and output interfaces provided by the controller are not enough, other IO expansion modules can be used to connect to the MCU through this CAN bus to realize data interaction such as IO input and output, analog input and output, and serial communication. Industrial Ethernet EtherCAT is developed on the basis of industrial Ethernet Ethernet IP. It has the characteristics of fast communication, flexible and cost-effective solutions, and is now widely used. The EtherCAT communication interface can be directly interconnected with any module with an EtherCAT interface, and various I / O expansion modules, various servo motor controllers and intelligent devices can be directly and seamlessly connected and communicated. The system platform realizes this EtherCAT communication function. As shown in Figures 11 (a)-11 (k), the circuit uses the AX58100 chip. After power-on, the CPU performs initialization settings to realize the EtherCAT network link. It is currently a popular form of motion control network communication. As shown in Figures 12 (a) -12 (i), the main control chip model of the input and output parallel processing module is GWIN-UV2LQ100C6 / I5, which is a domestic FPGA. Its main functions include task parallel processing, 40-channel IO input information acquisition, 8-channel IO output control, 1-channel analog output control, and related data exchange with MCU through the parallel port custom protocol to achieve normal analog output, IO output and upload IO input information to MCU. Human-computer interaction is an essential part of industrial control systems. Through human-computer interaction, system parameters can be set and data in the control system can be displayed. Industrial control systems often use industrial touch screens to achieve human-computer interaction. The data interaction between the touch screen and the ARM chip has parallel and serial interfaces. The ARM chip has its own touch screen interface. The touch screen can be directly connected to the ARM chip, but there are many connections and the program writing is complicated. The touch screen also has a serial port interface. The serial port touch screen is easy to connect, but programming requires the development software provided by the manufacturer to do GUI design. Industrial Ethernet is one of the standard communication technologies for industrial automation worldwide. Ethernet communication modules are required in industrial control systems to connect the entire control network system. The communication protocol uses TCP / IP or UDP protocol. The Ethernet module is designed with a dedicated network communication chip LAN7820. Example After the controller is started, the single-chip microcomputer of the main controller module is initialized to realize the Ethercat network link, and the communication with the PLC host or Ethercat host is realized through the EtherCAT module; the main controller module communicates with the input and output parallel processing module FPGA through the parallel port, collects the data obtained by FPGA into STM32, and sends the data to be output to FPGA through the parallel port communication; the main controller module realizes normal 485 and 232 communication with the RS485 communication module and RS232 communication module, and converts the relevant communication data and sends it to the PLC or Ethercat host by Ethercat protocol; the main controller module realizes normal analog input acquisition with the analog input module, and sends the analog data to the PLC or Ethercat host by Ethercat protocol; the main controller module communicates with other IO modules through the CAN bus and the CAN communication module, collects relevant data information, and sends the information to the PLC or Ethercat host by Ethercat protocol. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A universal controller for automation equipment, characterized in that: It includes a main controller module, an analog input module, an analog output module, an RS485 communication module, an RS232 communication module, a CAN communication module, a power module, a human-computer interaction module, an EtherCAT module, an Ethernet module, an input-output parallel processing module, a digital input module, and a digital output module. The main controller module is electrically connected to the analog input module, the analog output module, the RS485 communication module, the RS232 communication module, the CAN communication module, the power module, the human-computer interaction module, the EtherCAT module, the Ethernet module, and the input-output parallel processing module. The input-output parallel processing module is electrically connected to the digital input module and the digital output module respectively. The main controller module adopts STM32F407ZGT6 single-chip microcomputer, the human-computer interaction module adopts industrial touch screen, and the CAN communication module adopts TJA1051T / E chip; The input and output parallel processing module adopts the FPGA chip of the GWIN-UV2LQ100C6 / I5 model; the digital input module is a 24V to 3.3V voltage conversion circuit, and the digital output module is a 3.3V to 24V voltage conversion circuit.
2. The universal controller for automation equipment according to claim 1, characterized in that: The power module includes a 5V main power circuit, a 3.3V branch power circuit, and a 1.2V branch power circuit. The 5V main power circuit is electrically connected to the 3.3V branch power circuit, and the 3.3V branch power circuit is electrically connected to the 1.2V branch power circuit.
3. The universal controller for automation equipment according to claim 2, characterized in that: The 5V main power supply circuit adopts the SGM61720 power supply chip, the 3.3V sub-power supply circuit adopts the AMS1117-3.3V voltage regulator chip, and the 1.2V sub-power supply circuit adopts the AMS1117-1.2V voltage regulator chip.
4. The universal controller for automation equipment according to claim 1, characterized in that: The analog input module adopts the LM324 chip, and the analog output module adopts the GP8403 chip.
5. The universal controller for automation equipment according to claim 1, characterized in that: The EtherCAT module adopts the AX58100 chip, and the Ethernet module adopts the LAN7820 chip.
Citation Information
Patent Citations
Motion controller being compatible with various field bus protocols
CN104765321A
Servo controller
CN109560745A
Integrated AGV controller
CN110825087A
Autonomous controllable industrial control device
CN114355827A
Universal controller applied to automation equipment
CN116300663A
Cited By
Digital signal processing platform based on FPGA
CN119902464A
