基于ModbusRTU协议的PLC与STM32单片机通信  

PLC Based on the Modbus RTU Protocol Communicates with the STM32 Microcontroller

在线阅读下载全文

作  者:郑建明[1] 刘小龙 宋宇峰 袁家乐 ZHENG Jianming;LIU Xiaolongr;SONG Yufeng;YUAN Jiale(Jilin Institute of Chemical Technology,Jilin,Jilin 132022,China)

机构地区:[1]吉林化工学院,吉林吉林132022

出  处:《移动信息》2023年第12期16-18,共3页MOBILE INFORMATION

摘  要:在工业自动化控制领域,单片机与PLC有着举足轻重的地位。若两者能实现数据互通,则可以有效促进行业发展。文中通过分析PLC和单片机的通信原理,提出了基于ModbusRTU协议的485的通信方式,并编写了代码实现,阐述了串口与单片机ModbusRTU485的通信实现方法、串口与PLC的通信实现方法、单片机与PLC的通信实现方法、单片机端按键控制PLC端输出的方法。PLC与单片机通信的实现可提供一种间接增加PLC输入点数的方法,从而降低自动化设备的成本。In the field of industrial automation control,single-chip microcomputer and PLC play a pivotal role.If the two can achieve data exchange,it can effectively promote the development of the industry.By analyzing the communication principle of PLC and single-chip microcomputer,this paper proposes a 485 communication method based on Modbus RTU protocol,and writes the code to realize,expounds the serial port and single-chip microcomputer Modbus RTU 485 communication realization method,serial port and PLC communication realization method,single-chip microcomputer and PLC communication realization method,single-chip microcomputer terminal button control PLC terminal output method.The realization of PLC and single-chip microcomputer communication can provide a method to indirectly increase the number of PLC input points,thereby reducing the cost of automation equipment.

关 键 词:STM32单片机 西门子PLC ModbusRTU485通信 

分 类 号:TP206[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象