摘要
三菱PLC中利用变址寄存器与其他的软元件编号组合在一起可以方便地实现对多个数据的寻址操作,也称间接寻址。在三菱PLC中结合间接寻址和其他指令可以实现类似C语言中的循环结构和排序算法,这种编程方式更为简便和灵活,通用性强,能帮助PLC编程人员掌握一些高级语言的基础知识。文章基于三菱PLC间接寻址,对实现循环结构与排序算法进行了分析。
Mitsubishi PLC can easily realize the addressing operation of multiple data by using the index register combined with other device numbers.Combining indirect addressing and other instructions in Mitsubishi PLC can realize loop structure and sorting algorithm similar to C language,this programming method is simpler,more flexible,and more versatile,and can help PLC programmers master the basic knowledge of some high-level languages.Based on the indirect addressing of Mitsubishi PLC,this paper analyzes the implementation of the circular structure and the sorting algorithm.
作者
刘思远
Liu Siyuan(Suzhou Higher Vocational and Technology School,Suzhou 215009,China)
出处
《无线互联科技》
2019年第22期126-127,共2页
Wireless Internet Technology
关键词
间接寻址
循环结构
排序算法
indirect addressing
cycle structure
sorting algorithm