摘要
在组态屏上添加按键,通过Modbus网络上RTU模式通信读取和修改STM32单片机LED灯的状态,ModbusRTU模式把命令传给STM32单片机,STM32单片机收到命令改变状态并做出相应的回复,最终实现按键控制STM32单片机LED灯的状态。
Add keys to the configuration screen,read and modify the status of STM32 single chip LED light through RTU mode com⁃munication on Modbus network,Modbus RTU mode transmits the command to STM32 single chip,STM32 single chip receives the command to change the status and make the corresponding response,and finally realize the key control of STM32 single chip LED light status.
作者
周明
王振
马睿
ZHOU Ming;WANG Zheng;MA Rui(Wuxi Institute of Technology,Wuxi 214000,China)
出处
《电脑知识与技术》
2020年第26期207-208,共2页
Computer Knowledge and Technology