湖北师范学院学报:自然科学版
湖北師範學院學報:自然科學版
호북사범학원학보:자연과학판
Journal of Hubei Normal University(Natural Science)
2012年
1期
5-9
,共5页
可编程控制器(PLC)%梯形图%指令表%块生长
可編程控製器(PLC)%梯形圖%指令錶%塊生長
가편정공제기(PLC)%제형도%지령표%괴생장
PLC%ladder diagram%instruction list%block-growth
基于块生长观念提出了一种全新的将梯形图转化为语句表的转换算法。该转换算法以梯级为单位,采取"自左而右,自上而下"的扫描顺序,通过竖线标志来确定元件间的串并联关系,借助存放块(依据元件间的串并联关系不断生长的块)的栈来定位下次扫描的元件对象。该算法不仅能清晰地表达出梯形图各元件的逻辑关系,语句表转换过程准确快速,还能成功的实现梯级中包含多分支输出的复杂梯形图到语句表的转换。
基于塊生長觀唸提齣瞭一種全新的將梯形圖轉化為語句錶的轉換算法。該轉換算法以梯級為單位,採取"自左而右,自上而下"的掃描順序,通過豎線標誌來確定元件間的串併聯關繫,藉助存放塊(依據元件間的串併聯關繫不斷生長的塊)的棧來定位下次掃描的元件對象。該算法不僅能清晰地錶達齣梯形圖各元件的邏輯關繫,語句錶轉換過程準確快速,還能成功的實現梯級中包含多分支輸齣的複雜梯形圖到語句錶的轉換。
기우괴생장관념제출료일충전신적장제형도전화위어구표적전환산법。해전환산법이제급위단위,채취"자좌이우,자상이하"적소묘순서,통과수선표지래학정원건간적천병련관계,차조존방괴(의거원건간적천병련관계불단생장적괴)적잔래정위하차소묘적원건대상。해산법불부능청석지표체출제형도각원건적라집관계,어구표전환과정준학쾌속,환능성공적실현제급중포함다분지수출적복잡제형도도어구표적전환。
A new transformation algorithm which transformers the ladder diagram to PLC instruction list based on block-growth is prompted.This algorithm uses ladder step as the unit,scans the serial/parallel relationship among the components according to the sequence of "left-right" and "top-down",and locates the next component using stack.The data elements block in the stack grows according to the serial relationship between the components during the traverse.This algorithm can clearly express the logic relationship between the components in the ladder diagram,accurately and quickly translate the diagram into the instructions,and accomplish to translate the complex ladder diagram which includes multi-branch into the instruction list.