检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张宇 杨其华 李锐鹏 吴帅举 ZHANG Yu;YANG Qihua;LI Ruipeng;WU Shuaiju(School of Electrical and Mechanical Engineering,China Jiliang University,Hangzhou 310018,China)
机构地区:[1]中国计量大学机电工程学院,浙江杭州310018
出 处:《现代电子技术》2023年第4期147-153,共7页Modern Electronics Technique
基 金:浙江省自然科学基金项目(LQ20E050018)。
摘 要:针对目前物流输运线中单片机编程工作量大和代码可读性不强等问题,文中提出一种图形化编程方法。该方法根据物流输运线布局多样性的特点,将物流的设备图形和流程图相结合以提高编程可观性,并搭建平台进行图形组合及代码转化。流程图单元中封装设备运行的单片机代码,通过拖动连接完成流程图的设计;再采用邻接表将流程图转化为数据结构,通过深度优先搜索的方法遍历流程图,实现流程图中封装代码的转化输出。在转化过程中进行代码语句结构优化调整,形成完整的单片机代码,并结合单片机编译软件实现程序的编译。结果表明,图形转换方法可以成功实现流程图结构向单片机程序的转化,并可以通过Keil编译软件实现程序的编译,编程难度和工程操作复杂性均有所降低。In allusion to the problems of heavy programming workload and poor code readability in the current logistics transportation line,a graphical programming method is studied. According to the characteristics of the diversity of the layout of logistics transportation lines,the equipment graphics and flow charts of logistics are combined to improve the observability of programming,and a platform is built for graphics combination and code conversion. The flow chart unit is encapsulated with the single chip microcomputer code for equipment operation. The design of the flow chart is completed by dragging the connection,and then the flow chart is transformed into the data structure by means of the adjacency table. The flow chart is traversed by means of the depth first search method to realize the transformation output of the encapsulated code in the flow chart. In the conversion process,the code sentence structure is optimized and adjusted to form a complete single-chip code,and the program is compiled with the single-chip compiler software. The results show that the flow chart structure can be successfully transformed into the single chip microcomputer program by means of the graphic conversion method,and the program can be compiled by means of keil compiler software,which can reduce the programming difficulty and engineering operation complexity.
关 键 词:物流输运线 图形化编程 软件平台 流程图 邻接表 深度优先搜索 代码转换 单片机
分 类 号:TN919-34[电子电信—通信与信息系统] TP273[电子电信—信息与通信工程] TP311[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.223.125.111