检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:严良文[1] 赖雪峰[1] 韩涛[1] 张在房[1]
机构地区:[1]上海大学机电工程与自动化学院,上海200072
出 处:《机械与电子》2014年第9期63-65,80,共4页Machinery & Electronics
基 金:国家自然科学基金资助项目(51205242);上海市科委科技创新行动计划资助项目(13111102900)
摘 要:采用Modbus通信协议,以西门子S7-200PLC和上位机组态王为主站,设计开发了基于STM32F103C8T6单片机的从站。介绍了两者之间的RS485/RS232方式的通信协议的建立和程序的设计,详细描述了单片机与PC之间、单片机与PLC之间的通讯调试,从而实现了基于RTU模式Modbus协议的串行通信。该系统应用于中央空调控制系统中,其控制策略和主要控制算法由STM32从站计算,能取得较好的控制效果。With the Siemens S7-200 PLC and upper computer KingView being the master,a slave station of STM32F103C8T6 microcontroller is developed based on Modbus protocol.The establishment and program designing of communication protocol using RS485/RS232 between master and slave is introduced firstly.Then the process of debugging between the microcontroller and PC,the microcontroller and the PLC is elaborated.Thus serial communication is implemented based on Modbus protocol in RTU mode.The system will be applied in central air-conditioning control system.A good control effect will be obtained as the controlling strategy and main algorithm can be computed in the STM32 slave station.
关 键 词:STM32F103单片机 通信 MODBUS协议 中央空调
分 类 号:TP206[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.13