CN205353681U - Embedded converter control structure based on STM32 - Google Patents
Embedded converter control structure based on STM32 Download PDFInfo
- Publication number
- CN205353681U CN205353681U CN201620075449.9U CN201620075449U CN205353681U CN 205353681 U CN205353681 U CN 205353681U CN 201620075449 U CN201620075449 U CN 201620075449U CN 205353681 U CN205353681 U CN 205353681U
- Authority
- CN
- China
- Prior art keywords
- interface
- module
- frequency converter
- structure based
- stm32
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 claims description 2
- 238000012544 monitoring process Methods 0.000 abstract description 7
- 230000001105 regulatory effect Effects 0.000 description 4
- ZVKAMDSUUSMZES-NZQWGLPYSA-N OS II Natural products CC(=O)N[C@H]1[C@H](OC[C@@H](O)[C@@H](O)[C@@H](O)CO)O[C@H](CO)[C@H](O[C@H]2O[C@H](CO)[C@@H](O)[C@H](O)[C@H]2O)[C@@H]1O[C@@H]3O[C@H](CO)[C@@H](O)[C@H](O)[C@H]3O ZVKAMDSUUSMZES-NZQWGLPYSA-N 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101000823106 Equus caballus Alpha-1-antiproteinase 2 Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000002054 transplantation Methods 0.000 description 1
Landscapes
- Communication Control (AREA)
Abstract
本实用新型公开了一种基于STM32的嵌入式变频器控制结构,包括主站和从站,主站包括控制装置,从站包括变频器,控制装置包括控制芯片模块,和连接于控制芯片模块的接口模块、输入模块、输出模块;接口模块包括主站RS485接口,变频器设有与主站RS485接口相匹配的从站RS485接口,控制芯片模块包括STM32控制芯片;还包括连接于控制芯片模块、接口模块、输入模块和输出模块的电源模块。既可通过输入模块的按键输入单元操作变频器,也可以通过以太网连接的计算机或者互联网实现远程监控。
The utility model discloses an embedded frequency converter control structure based on STM32, which includes a master station and a slave station, the master station includes a control device, the slave station includes a frequency converter, the control device includes a control chip module, and a device connected to the control chip module Interface module, input module, output module; the interface module includes the master station RS485 interface, the frequency converter is provided with the slave station RS485 interface matching the master station RS485 interface, the control chip module includes the STM32 control chip; it also includes the control chip module connected to the control chip, Power supply modules for interface modules, input modules and output modules. The inverter can be operated through the key input unit of the input module, and remote monitoring can also be realized through the computer connected by Ethernet or the Internet.
Description
技术领域technical field
本实用新型属于变频器控制领域,具体涉及一种基于STM32的嵌入式变频器控制结构。The utility model belongs to the field of frequency converter control, in particular to an embedded frequency converter control structure based on STM32.
背景技术Background technique
目前,变频器已广泛运用于电机调速领域,伴随着变频器技术的发展,变频器实现的功能越来越多,相应需要设置和修改的参数也越来越多,给用户带来诸多不便,技术人员也需要花费大量时间来设置参数。通常,变频器配有SPI键盘,但SPI可靠传输距离只有是1—3m,不能远距离传输且抗干扰能力低。另外在工业运用中,往往需要使用几台甚至几十台运行,以传统方式初始化时需要一台一台设置参数,修改参数时也要逐一修改,效率极低。基于单片机的变频器参数复制器功能有限,而当有多台变频器时每一台变频器独立工作,要了解变频器运行状态就需要单独查看各台变频器的运行状态并进行控制,这给多台变频器的监控、管理带来极大不便。At present, frequency converters have been widely used in the field of motor speed regulation. With the development of frequency converter technology, frequency converters have realized more and more functions, and correspondingly more and more parameters need to be set and modified, which brings a lot of inconvenience to users. , technicians also need to spend a lot of time to set the parameters. Usually, the inverter is equipped with an SPI keyboard, but the reliable transmission distance of SPI is only 1-3m, which cannot be transmitted over a long distance and has low anti-interference ability. In addition, in industrial applications, it is often necessary to use several or even dozens of units to operate. When initializing in the traditional way, it is necessary to set parameters one by one, and to modify parameters one by one, which is extremely inefficient. The function of the inverter parameter replicator based on the single-chip microcomputer is limited, and when there are multiple inverters, each inverter works independently. The monitoring and management of multiple frequency converters brings great inconvenience.
发明内容:Invention content:
本实用新型的目的是提供一种基于STM32的嵌入式变频器控制结构,能够,以克服背景技术中存在的问题。The purpose of this utility model is to provide a kind of embedded frequency converter control structure based on STM32, can, to overcome the problem existing in the background technology.
为了实现上述目的,本实用新型的技术方案为:In order to achieve the above object, the technical solution of the utility model is:
一种基于STM32的嵌入式变频器控制结构,包括主站和从站,主站包括控制装置,从站包括变频器,控制装置包括控制芯片模块,和连接于控制芯片模块的接口模块、输入模块、输出模块;接口模块包括主站RS485接口,变频器设有与主站RS485接口相匹配的从站RS485接口,控制芯片模块包括STM32控制芯片;还包括连接于控制芯片模块、接口模块、输入模块和输出模块的电源模块。An STM32-based embedded inverter control structure, including a master station and a slave station, the master station includes a control device, the slave station includes a frequency converter, the control device includes a control chip module, and an interface module and an input module connected to the control chip module , output module; the interface module includes the RS485 interface of the master station, the frequency converter is equipped with a slave station RS485 interface matching the RS485 interface of the master station, and the control chip module includes an STM32 control chip; it also includes a control chip module, an interface module, and an input module connected to the and the power module of the output module.
较佳地,接口模块还包括用于连接计算机和互联网的以太网接口。Preferably, the interface module also includes an Ethernet interface for connecting the computer and the Internet.
较佳地,以太网接口包括ENC28J60以太网卡。Preferably, the Ethernet interface includes an ENC28J60 Ethernet card.
较佳地,从站包括数个变频器,数个变频器分别设置一从站RS485接口,各个从站RS485接口连接于主站RS485接口。Preferably, the slave station includes several frequency converters, each of which is provided with a slave station RS485 interface, and each slave station RS485 interface is connected to the master station RS485 interface.
较佳地,输出模块包括状态指示单元和数码管显示单元。Preferably, the output module includes a status indication unit and a digital tube display unit.
较佳地,状态指示单元为LED灯。Preferably, the status indication unit is an LED lamp.
较佳地,数码管显示单元为三段数码管3361AH。Preferably, the digital tube display unit is a three-segment digital tube 3361AH.
较佳地,输入模块包括旋钮调速单元和按键输入单元。Preferably, the input module includes a knob speed regulating unit and a key input unit.
较佳地,旋钮调速单元包括可调节电位器。Preferably, the knob speed regulating unit includes an adjustable potentiometer.
本实用新型的有益效果在于:提供了一种基于STM32的嵌入式变频器控制装置,用以实现变频器参数的读写、拷贝功能且具有远距离监控功能,还可以通过按键控制电机启停,通过旋扭直接调速,甚至通过互联网远程监控并可将运行状态和参数实时保存。通过本实用信息所述的结构可以通过主站控制装置与从站的一个变频器单独使用,也可与从站的多台变频器组网使用。既可通过输入模块的按键输入单元操作变频器,也可以通过以太网连接的计算机或者互联网实现远程监控。The beneficial effect of the utility model is that it provides an embedded inverter control device based on STM32, which is used to realize the functions of reading, writing and copying inverter parameters and has a remote monitoring function, and can also control the start and stop of the motor through buttons. The speed can be adjusted directly through the knob, and even the remote monitoring can be carried out through the Internet and the running status and parameters can be saved in real time. The structure described in this practical information can be used alone with one inverter of the slave station through the control device of the master station, and can also be used in a network with multiple inverters of the slave station. The frequency converter can be operated through the key input unit of the input module, and remote monitoring can also be realized through the computer connected by Ethernet or the Internet.
附图说明Description of drawings
图1为本实用新型实施例的总体结构示意图,Fig. 1 is the overall structure schematic diagram of the utility model embodiment,
图2为本实用新型实施例的控制装置的结构示意图。Fig. 2 is a schematic structural diagram of a control device according to an embodiment of the present invention.
图中:1-控制装置,2-变频器,3-主站RS485接口,4-从站RS485接口,5-以太网接口,6-接口模块,7-控制芯片模块,8-输出模块,8.1-状态指示单元,8.2-数码管显示单元,9-输入模块,9.1-按键输入单元,9.2-旋钮调速单元,10-计算机,11-互联网。In the figure: 1-control device, 2-inverter, 3-master station RS485 interface, 4-slave station RS485 interface, 5-Ethernet interface, 6-interface module, 7-control chip module, 8-output module, 8.1 -status indication unit, 8.2-digital tube display unit, 9-input module, 9.1-key input unit, 9.2-knob speed control unit, 10-computer, 11-Internet.
具体实施方式detailed description
下面结合附图和实施例对本实用新型做进一步的说明。Below in conjunction with accompanying drawing and embodiment the utility model is described further.
一种基于STM32的嵌入式变频器控制结构,包括主站和从站,主站包括控制装置1,从站包括变频器2,控制装置1包括控制芯片模块7,和连接于控制芯片模块7的接口模块6、输入模块9、输出模块8,还包括连接于控制芯片模块7、接口模块6、输入模块9和输出模块8的电源模块。An STM32-based embedded frequency converter control structure, including a master station and a slave station, the master station includes a control device 1, the slave station includes a frequency converter 2, the control device 1 includes a control chip module 7, and the control chip module 7 is connected The interface module 6 , the input module 9 and the output module 8 also include a power module connected to the control chip module 7 , the interface module 6 , the input module 9 and the output module 8 .
从站包括数个变频器2,数个变频器2分别设置一从站RS485接口4,各个从站RS485接口4连接于主站RS485接口3。控制装置1作为ModBus主站,变频器2作为ModBus从站,最多支持247个从站,但为了减少论询时间一般不超过32个。使用RS485接口,最远传输距离约为1219m,使用该装置在不连接以太网的情况下就可实现远距离控制,极大方便了操作人员。The slave station includes several frequency converters 2 , each of which is provided with a slave station RS485 interface 4 , and each slave station RS485 interface 4 is connected to the master station RS485 interface 3 . The control device 1 acts as the ModBus master station, and the inverter 2 acts as the ModBus slave station. It supports a maximum of 247 slave stations, but generally no more than 32 in order to reduce the consultation time. Using the RS485 interface, the longest transmission distance is about 1219m. Using this device can realize long-distance control without connecting to Ethernet, which greatly facilitates the operator.
控制芯片模块7包括STM32控制芯片。芯片选择STM32L151C6,该芯片自带4KEEPROM存储空间可减少EEPROM芯片使用,芯片自带的4KEEPROM存储空间可存储参数值和寄存器地址1千个,足够变频器2参数存储需要。在STM32芯片中移植μC/OS-II嵌入式操作系统,μC/OS-II具有方便移植、代码量小、实时性强、可靠性高、内核可剪裁等特点。通过μC/OS-II操作系统可有效地实现资源管理。使得控制装置1与变频器2之间以ModBus-RTU模式传输,实时性强。The control chip module 7 includes an STM32 control chip. The chip chooses STM32L151C6. The chip comes with 4KEEPROM storage space to reduce the use of EEPROM chips. The 4KEEPROM storage space that comes with the chip can store 1,000 parameter values and register addresses, which is enough for inverter 2 parameter storage. The μC/OS-II embedded operating system is transplanted into the STM32 chip. The μC/OS-II has the characteristics of convenient transplantation, small code size, strong real-time performance, high reliability, and the kernel can be tailored. Resource management can be effectively realized through the μC/OS-II operating system. The ModBus-RTU mode is used to transmit between the control device 1 and the frequency converter 2, and the real-time performance is strong.
接口模块6包括主站RS485接口3和以太网接口5。变频器2设有与主站RS485接口3相匹配的从站RS485接口4,以太网接口5包括ENC28J60以太网卡,用于连接计算机10和互联网11,ENC28J60作为任何配备有SPI的控制器的以太网接口5,数据传输速率高达10Mb/s,ENC28J60与STM32的SPI2接口连接。控制装置1中的以太网模块可接入以太网,通过以太网中的PC端可对变频器2实现集中监控管理,同时可通过接入INTERNET实现变频器2远程监控。通过网线与电脑或INTERNET连接,实现PC端控制和INTERNET远程控制,按TCP/IP协议通信。The interface module 6 includes a master station RS485 interface 3 and an Ethernet interface 5 . The inverter 2 is equipped with a slave station RS485 interface 4 matching the master station RS485 interface 3, and the Ethernet interface 5 includes an ENC28J60 Ethernet card for connecting the computer 10 and the Internet 11, and the ENC28J60 is used as the Ethernet of any controller equipped with SPI Interface 5, the data transmission rate is up to 10Mb/s, and the ENC28J60 is connected to the SPI2 interface of the STM32. The Ethernet module in the control device 1 can be connected to the Ethernet, and the centralized monitoring and management of the inverter 2 can be realized through the PC terminal in the Ethernet, and the remote monitoring of the inverter 2 can be realized by connecting to the Internet. Connect with a computer or INTERNET through a network cable to realize PC-side control and INTERNET remote control, and communicate according to the TCP/IP protocol.
输出模块8包括状态指示单元8.1和数码管显示单元8.2,状态指示单元8.1为LED灯,状态指示单元8.1的LED灯通过亮灭来指示数码管显示参数类型以及电机运行/停止,正/反转状态。数码管显示单元8.2为三段数码管3361AH,可显示3位数字,8位段选,6位片选,使用74LS14作为段选驱动,使用普通三极管作为片选驱动,可显示各参数值与电机运行状态。The output module 8 includes a status indicating unit 8.1 and a digital tube display unit 8.2, the status indicating unit 8.1 is an LED light, and the LED light of the status indicating unit 8.1 indicates the type of the digital tube display parameter and the motor running/stopping, forward/reverse by turning on and off state. The digital tube display unit 8.2 is a three-segment digital tube 3361AH, which can display 3-digit numbers, 8-bit segment selection, and 6-bit chip selection. It uses 74LS14 as the segment selection driver and an ordinary triode as the chip selection driver. It can display various parameter values and motor parameters. Operating status.
输入模块9包括旋钮调速单元9.2和按键输入单元9.1,旋钮调速单元9.2包括可调节电位器。按键输入单元9.1通过按键选择,可对变频器2直接操作,如启动、停机、参数拷贝等操作。旋钮调速单元9.2的可调节电位器,电位值经AD转换后通过ModBus协议可将对就电机转速赋值给寄存器,实现通过调节电位器直接调节电机转速。The input module 9 includes a knob speed regulating unit 9.2 and a key input unit 9.1, and the knob speed regulating unit 9.2 includes an adjustable potentiometer. The key input unit 9.1 can directly operate the frequency converter 2 through key selection, such as start, stop, parameter copy and other operations. The adjustable potentiometer of the knob speed control unit 9.2, after the potential value is converted by AD, the corresponding motor speed can be assigned to the register through the ModBus protocol, so that the motor speed can be directly adjusted by adjusting the potentiometer.
状态指示单元8.1使用普通LED灯可指示电机运行状态,通过按键选择可使数码管显示屏各运行参数,通过按键也可控制变频器2输出状态来控制电机。同时可将变频器2中参数写入变频器2控制装置1的EEPROM中存储或将EEPROM中参数写入变频器2寄存器中。Status indication unit 8.1 uses ordinary LED lamps to indicate the running status of the motor, selects the operation parameters of the nixie tube display by pressing the button, and controls the output status of the inverter 2 to control the motor by pressing the button. At the same time, the parameters in the frequency converter 2 can be written into the EEPROM of the control device 1 of the frequency converter 2 for storage, or the parameters in the EEPROM can be written into the register of the frequency converter 2 .
应当理解的是,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,而所有这些改进和变换都应属于本实用新型所附权利要求的保护范围。本说明书中未作详细描述的部分属于本领域专业技术人员公知的现有技术。It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should belong to the protection scope of the appended claims of the present utility model. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620075449.9U CN205353681U (en) | 2016-01-26 | 2016-01-26 | Embedded converter control structure based on STM32 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620075449.9U CN205353681U (en) | 2016-01-26 | 2016-01-26 | Embedded converter control structure based on STM32 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205353681U true CN205353681U (en) | 2016-06-29 |
Family
ID=56184256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201620075449.9U Expired - Fee Related CN205353681U (en) | 2016-01-26 | 2016-01-26 | Embedded converter control structure based on STM32 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205353681U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115202409A (en) * | 2021-04-09 | 2022-10-18 | 广州市工联技术有限公司 | Angle guiding machine controller |
-
2016
- 2016-01-26 CN CN201620075449.9U patent/CN205353681U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115202409A (en) * | 2021-04-09 | 2022-10-18 | 广州市工联技术有限公司 | Angle guiding machine controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105717841B (en) | Power supply circuit of electric automobile central control system and implementation method thereof | |
CN107015507B (en) | Comprehensive expansion system of central controller | |
CN112866207B (en) | Protocol conversion method for substation automation | |
CN205353681U (en) | Embedded converter control structure based on STM32 | |
CN201689338U (en) | BACnet field controller with Modbus communication interface | |
CN106127307A (en) | A kind of control method of campus based on energy consumption strategy intelligent power equipment | |
CN101997963B (en) | Power management method and system for portable communication device | |
CN206948379U (en) | The control system of smart machine | |
WO2019080807A1 (en) | Method and system for managing energy supply device, and terminal device | |
CN104281078A (en) | Infrared device centralized control system | |
CN201153243Y (en) | Intelligent frequency-converting speed-regulating system | |
CN206755497U (en) | A kind of intelligent sound warming air-conditioner control system | |
TWM614349U (en) | Remote wake-up device and system | |
CN100587752C (en) | Method and device for controlling communication between dual-system electronic equipment | |
CN101025859A (en) | Voice remote controller | |
CN203965848U (en) | A kind of household electric appliances control device | |
CN103455056A (en) | ZigBee-based temperature control node of intelligent home system | |
CN204990384U (en) | Government affairs management system of wisdom community | |
CN211015131U (en) | Handheld operation device for numerical control system and numerical control equipment | |
CN103440002A (en) | Remote-operated one-chip microcomputer system for executing heating control | |
CN209603667U (en) | A kind of intelligence padlock low-power consumption bluetooth control circuit board | |
CN203313471U (en) | Lamp control apparatus | |
CN202928985U (en) | Electrophoresis power supply with additional functions | |
CN202711232U (en) | A human-computer interaction system based on touch operation | |
CN102109829A (en) | Automatic power-on circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 Termination date: 20170126 |
|
CF01 | Termination of patent right due to non-payment of annual fee |