基于ASCII的单片机与组态王的通讯设计  被引量:1

Design of Communication Between MCU and King View Based on ASCII

在线阅读下载全文

作  者:王岩[1] 孔祥新[1] 董笑甜 刘童[1] 丁一[1] 

机构地区:[1]工学院曲阜师范大学,山东省日照市276826

出  处:《电子技术(上海)》2016年第1期71-73,共3页Electronic Technology

基  金:曲阜师范大学校级创新项目经费资助

摘  要:文章介绍的ASCII型通讯协议是通过C语言编程实现的,通过对各种命令格式的定义以及单片机和组态王各对应参数的配置,实现了单片机与King View的通讯,用户可以直接利用King View软件中提供的通用单片机ASCII串口实现对单片机按键状态和继电器开关状态的采集。经过实验验证,结果表明该程序具有稳定性、可移植性、实用性等优点。The article introduces the ASCII type communication protocol is realized by C language programming, through the definition of various command format and MCU and the corresponding parameters of King View configuration, realize the single chip microcomputer and King View communication, users can directly use King View software provided in the general microcontroller ASCII a serial port of single chip microcomputer button state and the state of the relay switch acquisition. Through the experiment, the results show that the program has the advantages of stability, portability and practicality.

关 键 词:单片机 KINGVIEW ASCII 继电器 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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