AWWA IMTECH51422【现行】A Comparison of Two Structured Approaches to Programmable Logic Controller Software Development
- 中文题名:可编程逻辑控制器软件开发的两种结构化方法的比较
- 纸或电子(待定):英语/询价购买该标准暂无价格等信息,可通过提交询价单,请求人工报价。询价标准不能保证全部有货。人工报价后,有货的标准自动加入购物车,可以同其他标准一起结算。
在可编程逻辑控制器(PLC)的编码中使用结构化方法的从业者为自己和PLC的最终用户提供了好处。这些包括生产率、质量、可维护性和可扩展性。本文描述了两种不同类型的结构化方法。当代码按控制循环组织时,可以使用第一种,也是更普遍的方法。在这种情况下使用结构化方法为从业者提供了许多生产率和可扩展性优势;然而,按控制循环进行组织通常会导致长时间的重复代码,从而消耗大量内存。第二种方法将程序代码组织成基于函数的结构,为许多类似的循环提供单一的逻辑模式。函数编程为实践者减少了文件大小和开发时间,但降低了可伸缩性。讨论了这两种方法的相对优缺点。
本文最后对这两种方法的应用提出了建议。包括数字。
Practitioners using a structured approach in the coding of programmable logic controllers (PLCs) provide benefits to themselves and the end users of the PLC. These include productivity, quality, maintainability and scalability. Two different types of structured approaches are described in this paper. The first, and more prevalent, can be used when code is organized by control loop. Using a structured approach in this context offers the practitioner many productivity and scalability benefits; however, the organization by control loop can often result in long repetitive code which consumes large amounts of memory. The second approach organizes the program code into a function-based structure that provides a single, logical pattern for many similar loops. Function programming offers the practitioner a reduction in file size and development time, but reduces scalability. The relative advantages and disadvantages of the two approaches are discussed. The paper concludes with recommendations for application of either approach. Includes figures.
起 草 人:
归口单位:
