摘要:介紹了以FreeModbus協(xié)議找在嵌入式搶占實(shí)時(shí)操作系統(tǒng)μC/OS-l的STM32平臺(tái)上,成功實(shí)現(xiàn)了Modbus協(xié)議的移植。通過(guò)詳細(xì)分析FreeModbus協(xié)議花并編寫(xiě)STM32F103VET6微處理器的底層驅(qū)動(dòng),成功實(shí)現(xiàn)了工業(yè)Modbus協(xié)議RTU和ASCll兩種模式的通信功能。測(cè)試結(jié)果表明,在實(shí)際工業(yè)生產(chǎn)控制和儀表開(kāi)發(fā)中,應(yīng)用Freemodbus協(xié)議,完全符合工業(yè)數(shù)據(jù)采集、實(shí)時(shí)控制和數(shù)據(jù)處理等廠級(jí)重復(fù)性和精確度要求,在一定程度上降低了工業(yè)儀表開(kāi)發(fā)的周期及成本。關(guān)鍵詞:實(shí)時(shí)操作系統(tǒng),uC/OS-ll,F(xiàn)reeModbus,Modbus協(xié)議,STM32Abstract:This paper introduces FreeModbus stack transplanted to the STM32 platform which has been embedded in the preemptive real-time operating system uC/OS-ll,in order that the transplantation of the Modbus protocol is successfuly im-plemented.The FreeModbus stack is analyzed in detail and STM32F103VET6 microprocessor underlying driver is writed,so that the two Modbus industrial communication function RTU and ASCll are successfully realized.Keywords:time operating system,uC/OS-ll,.FreeModbus,Modbus協(xié)議,STM32
標(biāo)簽:
freemodbus
通信協(xié)議
上傳時(shí)間:
2022-06-25
上傳用戶: