CN117193719A - PLC standardized program development method for object-oriented programming - Google Patents
PLC standardized program development method for object-oriented programming Download PDFInfo
- Publication number
- CN117193719A CN117193719A CN202310370021.1A CN202310370021A CN117193719A CN 117193719 A CN117193719 A CN 117193719A CN 202310370021 A CN202310370021 A CN 202310370021A CN 117193719 A CN117193719 A CN 117193719A
- Authority
- CN
- China
- Prior art keywords
- control
- program
- plc
- standardized
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 230000008569 process Effects 0.000 claims abstract description 61
- 238000004458 analytical method Methods 0.000 claims abstract description 12
- 238000005516 engineering process Methods 0.000 claims description 6
- 230000003993 interaction Effects 0.000 claims description 5
- 230000007246 mechanism Effects 0.000 claims description 3
- 238000004886 process control Methods 0.000 abstract description 7
- 238000001035 drying Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000004140 cleaning Methods 0.000 description 2
- 238000005469 granulation Methods 0.000 description 2
- 230000003179 granulation Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000011248 coating agent Substances 0.000 description 1
- 238000000576 coating method Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 238000007791 dehumidification Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005507 spraying Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Abstract
本发明公开了一种面向对象编程的PLC标准化程序开发方法,本发明属于PLC程序技术领域,具体是涉及一种面向对象编程的PLC标准化程序开发方法。具体步骤包括:设备分析、电气参数表、底层数据、控制对象、对象合集、工艺合集、变工序程序、工序执行、状态机。本发明提供的方法,一套PLC标准化程序能够兼容一个或多个系列设备,能够将非标需求以参数化的形式加入到程序中,扩展设备使用范围,以面向对象编程方式编写的标准化程序,可读性更高,拓展性好,升级换代方便,变工序控制策略的应用,实现柔性控制,产品可快速切换,程序实现参数化、模块化和标准化。
The invention discloses an object-oriented programming PLC standardized program development method. The invention belongs to the technical field of PLC programs, and specifically relates to an object-oriented programming PLC standardized program development method. Specific steps include: equipment analysis, electrical parameter table, underlying data, control objects, object collection, process collection, variable process program, process execution, and state machine. According to the method provided by the invention, a set of PLC standardized programs can be compatible with one or more series of equipment, can add non-standard requirements to the program in a parameterized form, and expand the scope of equipment use. The standardized program written in an object-oriented programming manner, It has higher readability, good scalability, easy upgrades, and the application of variable process control strategies to achieve flexible control, products can be quickly switched, and the program can be parameterized, modularized, and standardized.
Description
技术领域Technical field
本发明属于PLC程序技术领域,具体是涉及一种面向对象编程的PLC标准化程序开发方法。The invention belongs to the technical field of PLC programs, and specifically relates to an object-oriented programming PLC standardized program development method.
背景技术Background technique
随着微处理器、计算机和数字通信技术的飞速发展,计算机控制已扩展到了几乎所有的工业领域。现代社会要求制造业对市场需求作出迅速的反应,生产出小批量、多品种、多规格、低成本和高质量的产品,为了满足这一要求,生产设备和自动生产线的控制系统必须具有极高的可靠性和灵活性,PLC编程正是顺应这一要求出现的,它是以微处理器为基础的通用工业控制装置。With the rapid development of microprocessors, computers and digital communication technology, computer control has been extended to almost all industrial fields. Modern society requires the manufacturing industry to respond quickly to market demand and produce products in small batches, multiple varieties, multiple specifications, low cost and high quality. In order to meet this requirement, the control systems of production equipment and automatic production lines must have extremely high performance. Reliability and flexibility, PLC programming appears in response to this requirement. It is a general-purpose industrial control device based on a microprocessor.
但是随着客户需求的多变,非标要求越来越多,非标设备比重越来越大,非标需求变化多端,传统的PLC程序编程方式存在不易维护、复用性差、不方便扩展、非标改动大的缺点,迫切需要一种新的程序开发方法。However, as customer needs change, there are more and more non-standard requirements, the proportion of non-standard equipment is getting larger and larger, and non-standard requirements are ever-changing. The traditional PLC programming method is difficult to maintain, has poor reusability, and is inconvenient to expand. The shortcomings of large non-standard changes necessitate a new program development method.
发明内容Contents of the invention
针对现有技术的不足,本发明提供了一种面向对象编程的PLC标准化程序开发方法,按如下步骤进行:In view of the shortcomings of the existing technology, the present invention provides an object-oriented programming PLC standardized program development method, which is carried out according to the following steps:
1)设备分析:分析设备的结构配置、控制IO、阀门传感器及其功能,非标配置情况、工艺;1) Equipment analysis: analyze the structural configuration, control IO, valve sensors and their functions of the equipment, non-standard configuration and technology;
2)电气参数表:从设备分析中提炼出电气参数表,主要包括结构配置、非标配置、工艺功能;2) Electrical parameter table: The electrical parameter table is extracted from the equipment analysis, mainly including structural configuration, non-standard configuration, and process functions;
3)底层数据:对底层数据做规划,把这些数据结构化;3) Underlying data: Plan the underlying data and structure the data;
4)控制对象:从设备分析和电气参数表中提炼所有的控制对象,把一个模组或一个执行器作为一个控制对象,控制对象的层次划分按照工艺需要,需要单独操作控制一个执行器,可独立作为一个控制对象;4) Control objects: Extract all control objects from equipment analysis and electrical parameter tables, and use a module or an actuator as a control object. The hierarchical division of control objects is based on process needs. It is necessary to operate and control an actuator separately. Stand alone as a control object;
5)对象集合:将步骤4)中提炼的控制对象,以面向对象控制的方式,编写这些控制对象的属性方法程序,组成对象集合;5) Object collection: use the object-oriented control method to write the attribute method programs of these control objects extracted in step 4) to form an object collection;
6)工艺集合:将功能拆分成独立的、可组合的工艺对象,通过与控制对象的关联,满足各个工艺功能的实现,最终形成工艺集合;6) Process collection: Split the functions into independent and combinable process objects. Through association with control objects, the realization of each process function is satisfied, and finally a process collection is formed;
7)变工序程序:客户的工艺是多变的或不清晰的,这种变工序程序将工序与工艺相关联,将每步工序都能独立选择工艺并能独立设置工艺参数,这种方式满足柔性控制的需求;7) Variable process program: The customer's process is changeable or unclear. This variable process program associates the process with the process, allowing each step to independently select the process and set the process parameters independently. This method satisfies The need for flexible control;
8)工序执行:PLC程序实现每个工序的工作;8) Process execution: PLC program implements the work of each process;
9)状态机:编写状态机程序并满足故障处理机制和设备模式切换要求。9) State machine: Write a state machine program and meet the fault handling mechanism and device mode switching requirements.
优选的,所述步骤3)中底层数据主要包括系统数据、非标参数、工艺数据或参数、指令数据/状态、外部数据交互、报警与事件等。Preferably, the underlying data in step 3) mainly includes system data, non-standard parameters, process data or parameters, command data/status, external data interaction, alarms and events, etc.
与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:
本发明提供的方法,一套PLC标准化程序能够兼容一个或多个系列设备,能够将非标需求以参数化的形式加入到程序中,扩展设备使用范围,以面向对象编程方式编写的标准化程序,可读性更高,拓展性好,升级换代方便,变工序控制策略的应用,实现柔性控制,产品可快速切换,程序实现参数化、模块化和标准化。According to the method provided by the invention, a set of PLC standardized programs can be compatible with one or more series of equipment, can add non-standard requirements to the program in a parameterized form, and expand the scope of equipment use. The standardized program written in an object-oriented programming manner, It has higher readability, good scalability, easy upgrades, and the application of variable process control strategies to achieve flexible control, products can be quickly switched, and the program can be parameterized, modularized, and standardized.
附图说明Description of the drawings
图1为本发明方法的步骤示意图;Figure 1 is a schematic diagram of the steps of the method of the present invention;
图2为本发明实施例中沸腾床电气参数表。Figure 2 is a table of electrical parameters of the ebullated bed in the embodiment of the present invention.
实施方式Implementation
下面结合具体实施例对本发明做进一步详细说明。The present invention will be further described in detail below with reference to specific embodiments.
实施例Example
一种面向对象编程的PLC标准化程序开发方法,按如下步骤进行:An object-oriented programming PLC standardized program development method is carried out as follows:
1)设备分析:分析设备的结构配置、控制IO、阀门传感器及其功能,非标配置情况、工艺;1) Equipment analysis: analyze the structural configuration, control IO, valve sensors and their functions of the equipment, non-standard configuration and technology;
2)电气参数表:从设备分析中提炼出电气参数表,主要包括结构配置、非标配置、工艺功能;2) Electrical parameter table: The electrical parameter table is extracted from the equipment analysis, mainly including structural configuration, non-standard configuration, and process functions;
3)底层数据:对底层数据做规划,把这些数据结构化,底层数据主要包括系统数据、非标参数、工艺数据或参数、指令数据/状态、外部数据交互、报警与事件等;3) Underlying data: Plan the underlying data and structure the data. The underlying data mainly includes system data, non-standard parameters, process data or parameters, command data/status, external data interaction, alarms and events, etc.;
4)控制对象:从设备分析和电气参数表中提炼所有的控制对象,把一个模组或一个执行器作为一个控制对象,控制对象的层次划分按照工艺需要,需要单独操作控制一个执行器,可独立作为一个控制对象;4) Control objects: Extract all control objects from equipment analysis and electrical parameter tables, and use a module or an actuator as a control object. The hierarchical division of control objects is based on process needs. It is necessary to operate and control an actuator separately. Stand alone as a control object;
5)对象集合:将步骤4)中提炼的控制对象,以面向对象控制的方式,编写这些控制对象的属性方法程序,组成对象集合;5) Object collection: use the object-oriented control method to write the attribute method programs of these control objects extracted in step 4) to form an object collection;
6)工艺集合:将功能拆分成独立的、可组合的工艺对象,通过与控制对象的关联,满足各个工艺功能的实现,最终形成工艺集合;6) Process collection: Split the functions into independent and combinable process objects. Through association with control objects, the realization of each process function is satisfied, and finally a process collection is formed;
7)变工序程序:客户的工艺是多变的或不清晰的,这种变工序程序将工序与工艺相关联,将每步工序都能独立选择工艺并能独立设置工艺参数,这种方式满足柔性控制的需求;7) Variable process program: The customer's process is changeable or unclear. This variable process program associates the process with the process, allowing each step to independently select the process and set the process parameters independently. This method satisfies The need for flexible control;
8)工序执行:PLC程序实现每个工序的工作;8) Process execution: PLC program implements the work of each process;
9)状态机:编写状态机程序并满足故障处理机制和设备模式切换要求。9) State machine: Write a state machine program and meet the fault handling mechanism and device mode switching requirements.
以沸腾床为例,按照本发明方法,经过设备分析,提炼出沸腾干燥机、沸腾制粒机、多功能硫化床公用的电气参数表。通过工艺分析后发现这3类设备可用一套面向对象编程的PLC标准化程序。图2表述的是沸腾床的电气参数表,该表由三部分组成:客户数据(订单信息)、电气参数、设备工艺,通过该表,能够知道客户订单需求信息、非标要求和工艺要求。Taking the ebullating bed as an example, according to the method of the present invention and through equipment analysis, a common electrical parameter table for the ebullating dryer, the ebullating granulator, and the multifunctional vulcanized bed is extracted. After process analysis, it was found that these three types of equipment can use a set of object-oriented PLC standardized programs. Figure 2 shows the electrical parameter table of the ebullated bed. The table consists of three parts: customer data (order information), electrical parameters, and equipment technology. Through this table, we can know customer order demand information, non-standard requirements, and process requirements.
在底层数据方面,沸腾床“系统数据”主要包括系统时钟、IO表、PLC系统数据、校准数据等,“非标参数”从电气参数表中提炼,主要非标参数有:沸腾床类别、加热方式、除湿方式等;“工艺数据或参数”主要是沸腾床的进风温度、物料温度、排风温度、左布袋压差、右布袋压差、床层压差、高效压差、粉尘浓度等;“指令数据/状态”主要是用于驱动各种工艺程序或控制对象方法的接口;“外部数据交互”主要是与第三方设备做数据交互或控制;“报警与事件”用于做审计追踪,主要包括操作事件、IO域修改事件、用户管理事件、配方管理事件、设备报警等;In terms of underlying data, the "system data" of the ebullated bed mainly includes system clock, IO table, PLC system data, calibration data, etc. The "non-standard parameters" are extracted from the electrical parameter table. The main non-standard parameters are: ebullated bed category, heating method, dehumidification method, etc.; "Process data or parameters" mainly include the inlet air temperature, material temperature, exhaust air temperature, left bag pressure difference, right bag pressure difference, bed pressure difference, high efficiency pressure difference, dust concentration, etc. ; "Instruction data/status" is mainly used to drive various process programs or interfaces to control object methods; "External data interaction" is mainly used for data interaction or control with third-party devices; "Alarms and events" are used for audit tracking , mainly including operation events, IO domain modification events, user management events, recipe management events, equipment alarms, etc.;
在控制对象方面,沸腾床按照进风、主体、排风、喷浆、清洗五部分来分结构模组,在这五个模组中,可以按照执行器来划分控制对象;比如进风可以做进风温度控制、进风湿度控制、进风露点控制、进风风量控制、初、中、高效压差检测等;In terms of control objects, the ebullated bed is divided into structural modules according to five parts: air inlet, main body, exhaust, spraying, and cleaning. Among these five modules, the control objects can be divided according to actuators; for example, the air inlet can be Inlet air temperature control, inlet air humidity control, inlet air dew point control, inlet air volume control, initial, medium and high-efficiency pressure difference detection, etc.;
在工艺集合方面,沸腾床可以分为预热、物料预热、制粒、包衣、干燥、凉片、进料、出料等工艺,这些工艺还可以多次使用,比如干燥可以分为干燥1、干燥2、干燥3等,制粒也可以分成多个阶段,每个工艺都可以独立设置参数,并且这些参数是相互独立的,互不干扰。In terms of process collection, the ebullated bed can be divided into preheating, material preheating, granulation, coating, drying, cooling, feeding, discharging and other processes. These processes can also be used multiple times. For example, drying can be divided into drying 1. Drying 2, drying 3, etc. Granulation can also be divided into multiple stages. Parameters can be set independently for each process, and these parameters are independent of each other and do not interfere with each other.
在变工序控制方面,可以使用PLC变工序控制策略或上位机控制策略,实现变工序控制,根据使用经验,上位机变工序控制更灵活,对PLC的硬件要求低。In terms of variable process control, you can use PLC variable process control strategy or host computer control strategy to achieve variable process control. According to experience, the host computer variable process control is more flexible and has lower hardware requirements for PLC.
在状态机方面,标准化程序具备手动、自动、调试三种工作模式,工作状态具备设备准备好、运行、故障、停止、清洗中等基本工作状态,还提供系统状态,比如通讯状态等。In terms of state machines, the standardized program has three working modes: manual, automatic, and debugging. The working status includes basic working statuses such as equipment ready, running, fault, stop, and cleaning. It also provides system status, such as communication status, etc.
此外,针对标准化程序制定一系列指导文件,这些文件主要包括:PLC标准化程序命名规则(主要包括变量、控制对象、工艺名称、状态机等的命名)、程序版本控制规则、设备层级分级控制方法、控制对象属性/方法模型与接口规范、工艺拆分规范与原则、非标参数提炼的方法与标准、变工序控制策略与规范、第三方通讯接口规范等。In addition, a series of guidance documents have been developed for standardized procedures. These documents mainly include: PLC standardized program naming rules (mainly including the naming of variables, control objects, process names, state machines, etc.), program version control rules, equipment level hierarchical control methods, Control object attributes/method models and interface specifications, process splitting specifications and principles, non-standard parameter extraction methods and standards, variable process control strategies and specifications, third-party communication interface specifications, etc.
以上所述仅为本发明的实施例,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,可以对这些实施例进行多种变化、修改、替换和变型,这些变化、修改、替换和变型,也应视为本发明的保护范围。The above are only embodiments of the present invention. It should be noted that those of ordinary skill in the art can make various changes, modifications, replacements and modifications to these embodiments without departing from the technical principles of the present invention. Variations, these changes, modifications, replacements and modifications should also be regarded as the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310370021.1A CN117193719A (en) | 2023-04-07 | 2023-04-07 | PLC standardized program development method for object-oriented programming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310370021.1A CN117193719A (en) | 2023-04-07 | 2023-04-07 | PLC standardized program development method for object-oriented programming |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117193719A true CN117193719A (en) | 2023-12-08 |
Family
ID=88991264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310370021.1A Pending CN117193719A (en) | 2023-04-07 | 2023-04-07 | PLC standardized program development method for object-oriented programming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117193719A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5483654A (en) * | 1993-09-15 | 1996-01-09 | Allen-Bradley Company, Inc. | Apparatus to select computer program for execution |
CN1472610A (en) * | 2002-02-12 | 2004-02-04 | ����-��˹â��ϵͳ�ɷ�����˾ | Multifunctioal processing system controller |
CN109765836A (en) * | 2019-02-02 | 2019-05-17 | 宁波吉利汽车研究开发有限公司 | Automatic generation method, device and realization device of PLC program |
CN110674049A (en) * | 2019-09-28 | 2020-01-10 | 中电智能科技有限公司 | Intelligent formal verification method for PLC (programmable logic controller) logic programming |
CN114356297A (en) * | 2021-12-31 | 2022-04-15 | 上海正诚机电制造有限公司 | Method for generating PLC (programmable logic controller) program for realizing intelligent start-stop control of various devices on industrial production line |
-
2023
- 2023-04-07 CN CN202310370021.1A patent/CN117193719A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5483654A (en) * | 1993-09-15 | 1996-01-09 | Allen-Bradley Company, Inc. | Apparatus to select computer program for execution |
CN1472610A (en) * | 2002-02-12 | 2004-02-04 | ����-��˹â��ϵͳ�ɷ�����˾ | Multifunctioal processing system controller |
CN109765836A (en) * | 2019-02-02 | 2019-05-17 | 宁波吉利汽车研究开发有限公司 | Automatic generation method, device and realization device of PLC program |
CN110674049A (en) * | 2019-09-28 | 2020-01-10 | 中电智能科技有限公司 | Intelligent formal verification method for PLC (programmable logic controller) logic programming |
CN114356297A (en) * | 2021-12-31 | 2022-04-15 | 上海正诚机电制造有限公司 | Method for generating PLC (programmable logic controller) program for realizing intelligent start-stop control of various devices on industrial production line |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102736565B (en) | Communication method of automatic control equipment based on upper and lower computer structures | |
WO2021073299A1 (en) | Environmental comfort control method and system, electronic device, and storage medium | |
JP7379149B2 (en) | Processing equipment error correction method and system | |
CN101634847B (en) | Reconfigurable CNC system of intersection line cutting machine | |
CN101634833A (en) | Open type configuration method and system for IO parameters of field device | |
CN113028603B (en) | Equipment monitoring system applied to central air-conditioning system | |
CN107679125A (en) | A kind of configuration management Database Systems for cloud computing | |
CN104965729A (en) | Method for automatically setting BIOS default value of server | |
CN201926897U (en) | Monitoring system for running parameters of numerical control machine | |
CN117193719A (en) | PLC standardized program development method for object-oriented programming | |
CN105179156A (en) | Offline control program testing system and method of pump storage group | |
CN100511179C (en) | Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints | |
CN103543645A (en) | Novel dyeing control system and control method thereof | |
CN205750490U (en) | A kind of shop equipment runs automatic intelligent detection failure warning system | |
CN111475159A (en) | Method, device and storage medium for automatically generating program | |
CN105955202A (en) | Network-based economical embedded five-axis numerical control system and control method thereof | |
CN106227102A (en) | A kind of data acquisition extension system and collecting method thereof | |
CN204203989U (en) | Spinning and weaving workshop intelligent meter data recording robot | |
Thiele et al. | Energy efficiency optimization using automationml modeling and an enpi methodology | |
CN115291561B (en) | Manufacturing system, equipment virtual debugging platform, method, equipment and application | |
CN115683158A (en) | A configurable universal test platform for inertial products | |
Guo et al. | Design of multi-indicator integrated testing system for tobacco intelligent silk production line | |
CN110493343B (en) | OPC-based method for communicating with multiple PLCs | |
CN209057233U (en) | A kind of industrial data gateway for supporting hot plug | |
Tianfei | Automatic control of food packaging machinery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: No. 28, Chunfeng Road, economic and Technological Development Zone, Yuanzhou District, Yichun City, Jiangxi Province Applicant after: Yichun Wanshen Intelligent Equipment Co.,Ltd. Address before: No. 28, Chunfeng Road, economic and Technological Development Zone, Yuanzhou District, Yichun City, Jiangxi Province Applicant before: YICHUN WANSHEN PHARMACEUTICAL MACHINERY Co.,Ltd. Country or region before: China |