Source Code Metrics for Programmable Logic Controller (PLC) Ladder Diagram (LD) Visual Programming Language

L. Kumar, R. Jetley, A. Sureka
{"title":"Source Code Metrics for Programmable Logic Controller (PLC) Ladder Diagram (LD) Visual Programming Language","authors":"L. Kumar, R. Jetley, A. Sureka","doi":"10.1145/2897695.2897699","DOIUrl":null,"url":null,"abstract":"The IEC 611131-3, an open international standard for Programmable Logic Controllers (PLC) defines several domain specific languages for industrial and process automation. Domain specific languages have several features, programming constructs and notations which are different than general purpose languages and hence the traditional source code metrics for general purpose programming languages cannot be directly applied to domain specific languages for writing control programs in the area of industrial automation. We propose source code level metrics to measure size, vocabulary, cognitive complexity and testing complexity of a visual Programmable Logic Controller (PLC) programming language. We present metrics for Ladder Diagram (LD) programming language which is one of the five languages defined in the IEC 61131-3 standard. The proposed metric is based on factors like number of distinct operators and operands, total number of operators and operands, number of rungs, weights of different basic control structures, structure of the program and control flow. We apply Weyukur's property to validate the metrics and evaluate the number of properties satisfied by the proposed metric.","PeriodicalId":185963,"journal":{"name":"2016 IEEE/ACM 7th International Workshop on Emerging Trends in Software Metrics (WETSoM)","volume":"83 11","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"15","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE/ACM 7th International Workshop on Emerging Trends in Software Metrics (WETSoM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2897695.2897699","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 15

Abstract

The IEC 611131-3, an open international standard for Programmable Logic Controllers (PLC) defines several domain specific languages for industrial and process automation. Domain specific languages have several features, programming constructs and notations which are different than general purpose languages and hence the traditional source code metrics for general purpose programming languages cannot be directly applied to domain specific languages for writing control programs in the area of industrial automation. We propose source code level metrics to measure size, vocabulary, cognitive complexity and testing complexity of a visual Programmable Logic Controller (PLC) programming language. We present metrics for Ladder Diagram (LD) programming language which is one of the five languages defined in the IEC 61131-3 standard. The proposed metric is based on factors like number of distinct operators and operands, total number of operators and operands, number of rungs, weights of different basic control structures, structure of the program and control flow. We apply Weyukur's property to validate the metrics and evaluate the number of properties satisfied by the proposed metric.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
可编程逻辑控制器(PLC)梯形图(LD)可视化编程语言的源代码度量
IEC 611131-3是可编程逻辑控制器(PLC)的开放国际标准,为工业和过程自动化定义了几种特定领域的语言。领域特定语言有几个不同于通用语言的特性、编程结构和符号,因此通用编程语言的传统源代码度量不能直接应用于工业自动化领域中编写控制程序的领域特定语言。我们提出源代码级别的度量来衡量可视可编程逻辑控制器(PLC)编程语言的大小、词汇、认知复杂性和测试复杂性。我们提出了梯子图(LD)编程语言的度量,它是IEC 61131-3标准中定义的五种语言之一。所提出的度量基于不同操作符和操作数的数量、操作符和操作数的总数、梯级的数量、不同基本控制结构的权重、程序结构和控制流程等因素。我们应用Weyukur的属性来验证度量,并评估被提议的度量所满足的属性的数量。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Metrics for Feature-Oriented Programming Measuring High and Low Priority Defects on Traditional and Mobile Open Source Software On the Maintenance Complexity of Makefiles A Metric Suite Proposal for Logical Dependency Behavioral Complexity Quantification (Becom-Q)
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1