摘要
介绍了在博图环境下,基于类和对象的概念,采用对象封装技术(用户数据与功能块的PLC类封装、用户数据与面板的HMI类封装),在电动机试验监控系统中实现面向对象的编程。试验运行结果表明,采用面向对象的编程,使PLC和HMI程序逻辑更清晰,可读性强。
Based on the concept of class and object,object-oriented programming was realized in the motor test monitoring system by using object encapsulation technology(PLC class encapsulation of user data and function block,HMI class encapsulation of user data and panel).The experimantal results showed that the program logic and HMI was clearer and more readable by using object-oriented of programming PLC.
作者
程立同
何志平
CHENG Litong;HE Zhiping(CCTEG Shanghai Co., Ltd., Shanghai 200030, China)
出处
《煤矿机电》
2021年第1期75-77,共3页
Colliery Mechanical & Electrical Technology