摘要
针对中小型传统工业控制HMI系统可定制性与可复用性差等问题,设计了一种基于STM32的通用型工业HMI系统。系统硬件采用STM32H743微处理器和高分辨率的电容式触摸屏为核心,集成了RS485、CAN总线等多种通讯接口,电源电路进行隔离抗干扰设计。系统软件采用实时操作系统FreeRTOS管理任务调度;软件界面设计采用组态软件结合轻量型GUI图形库LVGL,界面描述文件统一使用JSON数据格式;采用环形缓冲流式读取数据以及解析辅助器解决了嵌入式解析大型文件内存资源有限问题。同时,使用图形化的拖拽方式实现软PLC功能。实验结果表明:该工业控制HMI系统设备部署简单,界面设计灵活可定制、易于维护,软PLC功能提高了系统的可编程性和可扩展性。
To tackle the problem of poor customizability and reusability in small and medium-sized traditional industrial control HMI systems,this paper developed a general industrial HMI system based on STM32.The system s hardware used the STM32H743 microprocessor and a high-resolution capacitive touch screen as its core components.It also integrated RS485,CAN bus,and other communication interfaces.The power circuit was designed for isolation and anti-interference.The system software used the real-time operating system FreeRTOS to manage task scheduling.The software interface design used the configuration software and the lightweight GUI graphics library LVGL.The interface description file used the JSON data format.To address the issue of limited memory resources for parsing large files in embedded systems,a ring buffer was used to read data streams and a parsing assistant was employed.At the same time,the soft PLC function was implemented using the graphical drag and drop method.The experimental results demonstrate that the HMI system has a simple device deployment,flexible and customizable interface design,and easy maintenance.The soft PLC function improves the programmability and expansibility of the system.
作者
刘瑾
邓文娟
汪志成
龚维琦
周书民
LIU Jin;DENG Wenjuan;WANG Zhicheng;GONG Weiqi;ZHOU Shumin(East China University of Technology,Jiangxi New Energy Technology and Equipment Engineering Technology Center;Willas-sarray Electronics(Shenzhen)Limited)
出处
《仪表技术与传感器》
CSCD
北大核心
2024年第4期64-70,共7页
Instrument Technique and Sensor
基金
江西省技术创新引导类项目(科技合作专项)(20212BDH80008)
江西省自然科学基金(20181BAB202026)。