检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:郑建明[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[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.127