CN114443115B - Method for constructing instrument component model and configurable method thereof - Google Patents
Method for constructing instrument component model and configurable method thereof Download PDFInfo
- Publication number
- CN114443115B CN114443115B CN202011221732.5A CN202011221732A CN114443115B CN 114443115 B CN114443115 B CN 114443115B CN 202011221732 A CN202011221732 A CN 202011221732A CN 114443115 B CN114443115 B CN 114443115B
- Authority
- CN
- China
- Prior art keywords
- component
- interface
- functional
- parameterized
- behavior
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000004891 communication Methods 0.000 claims abstract description 17
- 238000012546 transfer Methods 0.000 claims abstract description 6
- 230000002093 peripheral effect Effects 0.000 claims description 20
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000010354 integration Effects 0.000 claims description 5
- 238000011161 development Methods 0.000 abstract description 3
- 238000010276 construction Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method for constructing an instrument component model and a configurable method thereof, which solve the problems that the current instrument software component has low standardization degree and is difficult to scientifically manage and efficiently apply. Because of the diversity of industrial automation meters and the high requirements of the meter software system on resource consumption, real-time characteristics, reliability, stability and the like, the existing component models have few types, low execution efficiency and poor standardization degree, and are difficult to be effectively applied to the development of meter software. The method is based on an instrument field framework, a configurable component model is designed to solve the problems, component attributes, methods and interfaces are uniformly described, the attributes are parameterized, a package communication protocol realizes reusable functions, component attribute configuration, function call among components and parameter transfer are supported through a standard interface, and efficient construction and rapid development of instrument software are realized.
Description
Technical Field
The invention relates to the field of industrial automation meters, in particular to a method for constructing a meter component model and a configurable method thereof.
Background
The industrial automation instrument has various types, and the instrument software system has higher requirements on resource consumption, real-time characteristics, reliability, stability and the like, the existing component models have few types, low execution efficiency and poor standardization level, the existing functions are distributed randomly, the interface definition is not uniform, the parameters are not easy to configure, the coupling degree between different functions is too high, scientific management and efficient application are difficult, and the method cannot be effectively applied to instrument software development.
Disclosure of Invention
Aiming at the defects of few types of component models, low execution efficiency and poor standardization degree of the existing industrial automation instrument, the invention aims to provide a design method of a configurable instrument component model to construct the configurable component model.
The invention adopts the following technical scheme: the method for constructing the instrument component model comprises the following steps of:
classifying the components according to the instrument function, and establishing different types of behavior methods;
configuring different types of parameterized attributes for the behavior method;
establishing interfaces of different types aiming at behavior methods and parameterized attributes;
and connecting different components through interfaces to form the component model.
The behavior method comprises peripheral drivers, functional modules and communication protocols;
The peripheral drive includes, but is not limited to, an A/D drive, a display drive, a sensor drive;
The communication protocols include, but are not limited to HART, FF, and Profibus;
The functional modules include, but are not limited to, acquisition, calibration, storage.
The parameterized attributes comprise a driving attribute, a functional attribute, a protocol attribute, a basic attribute and a constraint attribute so as to realize configuration of the component;
The drive attributes include, but are not limited to, refresh frequency, data type, and sensor type;
the functional attributes include, but are not limited to, acquisition frequency, calibration mode, and data type;
The protocol attributes include, but are not limited to, device vendor, device type, device identification, and span;
the basic attributes include component identification, component version and component type;
the constraint attributes include compatibility, execution efficiency, resource consumption, and execution time.
The interface comprises a functional interface, a behavior interface and a configuration interface;
The function interface is used for function call and parameter transfer between the components;
the behavior interface is used for integration, reconstruction and combination of components;
the configuration interface is used for component attribute configuration.
A configurable method based on an instrumented model, comprising the steps of:
In the first component, receiving the selected behavior method, configured with parameterized attributes;
The type of the selected behavior method and the parameterized attribute information form peripheral driving information which is transmitted to the second component through the functional interface;
In the second component, receiving the selected behavior method, and configuring parameterized attributes, and simultaneously receiving the triggering of the first component information;
The type and parameterized attribute information of the selected and triggered behavior method form functional information, and the received peripheral driving information and the functional information are transmitted to the end component through a functional interface;
In the end member, receiving the selected behavior method, configured with parameterized attributes, while accepting triggers of the first two member information;
The type of the selected and triggered behavior method and the parameterized attribute information form communication protocol information, and peripheral driving information, functional information and communication protocol information are utilized to connect components, so that a component model is generated and downloaded to the instrument in a program mode for the instrument to use.
In the first component, a display driver and a sensor driver are selected, and parameterized properties of the display driver are set: refresh frequency and data type; setting parameterized attributes of the sensor drivers: sensor type.
In the second component, a calibration function is selected, an acquisition function is triggered, and the acquired parameterized attributes are set: collecting frequency, setting calibrated parameterized attributes: in a calibration mode, the data type is acquired from the peripheral driving member through the functional interface.
In the end member, the Profibus PA protocol is selected, and parameterized attributes are set: and the equipment manufacturer and the equipment identifier acquire the data type from the functional module component through the functional interface, and determine that the type of the required functional module is an AI functional module.
The invention has the beneficial effects that: the design method can expand the functions of the components, effectively improve the standardization degree and the execution efficiency of the components, uniformly describe the essential characteristics of the components and the relation among the components, facilitate the reconstruction, and realize the efficient construction and the rapid development of instrument software.
Drawings
FIG. 1 is a schematic diagram of the overall structure of the present invention;
FIG. 2 is a diagram showing an example of the application of the present invention;
FIG. 3 is a functional interface schematic of the components of the present invention;
FIG. 4 is a diagram of a component behavior interface of the present invention;
FIG. 5 is a schematic diagram of a component configuration interface according to the present invention.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings.
A method for constructing an instrument component model and a configurable method thereof are provided:
s1: classifying typical components in the instrument field, and designing different types of behavior methods;
S2: designing different types of parameterized attributes for the behavior method in the step S1;
s3: different types of interfaces are designed for the behavior methods and parameterized attributes in steps S1, S2.
The application discloses a method for constructing an instrument component model and a configurable method thereof, wherein the behavior method comprises peripheral drivers, functional modules and communication protocols; the parameterized attributes include a drive attribute, a function attribute, a protocol attribute, a base attribute and a constraint attribute; the interface comprises a functional interface, a behavior interface and a configuration interface;
in the application, a method for constructing an instrument component model and a configurable method thereof, wherein peripheral drivers comprise an A/D driver, a display driver, a sensor driver and the like;
The application relates to a method for constructing an instrument component model and a configurable method thereof, wherein the functional modules comprise acquisition, calibration, storage and the like;
The application discloses a method for constructing an instrument component model and a configurable method thereof, wherein the communication protocol comprises HART, FF, profibus and the like;
In the application, a method for constructing an instrument component model and a configurable method thereof, wherein the driving attribute comprises refresh frequency, data type, sensor type and the like;
The application relates to a method for constructing an instrument component model and a configurable method thereof, wherein the functional attributes comprise acquisition frequency, calibration mode, data type and the like;
The application discloses a method for constructing an instrument component model and a configurable method thereof, wherein protocol attributes comprise equipment manufacturers, equipment types, equipment identifications, measuring ranges and the like;
In the application, a method for constructing an instrument component model and a configurable method thereof, wherein basic attributes comprise component identification, component version and component type;
The application discloses a method for constructing an instrument component model and a configurable method thereof, wherein constraint attributes comprise compatibility, execution efficiency, resource consumption number and execution time;
the application discloses a method for constructing an instrument component model and a configurable method thereof, wherein a function interface supports function call and parameter transfer between components;
the application discloses a method for constructing an instrument component model and a configurable method thereof, wherein a behavior interface supports functions of integration, reconstruction, combination and the like of components;
The application discloses a method for constructing an instrument component model and a configurable method thereof, wherein the configuration interface supports a component attribute configuration function.
As shown in fig. 1 to 3, in a method for constructing a structural model of an instrument, by analyzing typical components in the field of instruments, the components are classified into three types according to a behavior method: peripheral drive means, functional module means and communication protocol means; the peripheral driving means provides various driving functions such as a/D driving, display driving, sensor driving, and the like; the functional module component provides data processing functions such as acquisition, calibration, storage, etc.; the communication protocol means provides communication protocol functions such as HART, FF, profibus, etc.;
as shown in fig. 4 to 5, the parameterized attributes include a driving attribute, a functional attribute, a protocol attribute, a basic attribute and a constraint attribute, so as to implement configuration of the component; the driving attribute is a peripheral driving component exclusive attribute, the functional attribute is a functional module component exclusive attribute, the protocol attribute is a communication protocol component exclusive attribute, and the basic attribute and the constraint attribute are public attributes;
The driving attribute comprises refresh frequency, data type, sensor type and the like;
the functional attributes comprise acquisition frequency, calibration mode, data type and the like;
Protocol attributes include equipment manufacturer, equipment type, equipment identification, range, etc.;
the basic attributes include component identification, component version, and component type;
constraint attributes include compatibility, execution efficiency, number of resource consumption, and execution time;
further, different types of interfaces are designed for the behavior method and the parameterized attribute, including a functional interface, a behavior interface and a configuration interface;
function call and parameter transfer between function interface support components;
the behavior interface supports the functions of integration, reconstruction, combination and the like of the components;
Configuring an interface support member attribute configuration function;
the application scenario is shown in table 1:
table 1 application example
Sensor type | Bus protocol | Upper computer |
Pressure sensor | Profibus PA | Step7 |
In the first component, a display driver and a sensor driver are selected, and parameterized properties of the display driver are set: refresh frequency and data type; setting parameterized attributes of the sensor drivers: sensor type.
In the second component, a calibration function is selected, an acquisition function is triggered, and the acquired parameterized attributes are set: collecting frequency, setting calibrated parameterized attributes: in a calibration mode, the data type is acquired from the peripheral driving member through the functional interface.
In the end member, the Profibus PA protocol is selected, and parameterized attributes are set: and the equipment manufacturer and the equipment identifier acquire the data type from the functional module component through the functional interface, and determine that the type of the required functional module is an AI functional module.
Claims (6)
1. The method for constructing the instrument component model is characterized by comprising the following steps of:
classifying the components according to the instrument function, and establishing different types of behavior methods;
configuring different types of parameterized attributes for the behavior method;
establishing interfaces of different types aiming at behavior methods and parameterized attributes;
Connecting different components through interfaces to form a component model;
the behavior method comprises peripheral drivers, functional modules and communication protocols;
The peripheral drive comprises an A/D drive, a display drive and a sensor drive;
the communication protocols include HART, FF, and Profibus;
The functional module comprises acquisition, calibration and storage;
the interface comprises a functional interface, a behavior interface and a configuration interface;
The function interface is used for function call and parameter transfer between the components;
the behavior interface is used for integration, reconstruction and combination of components;
the configuration interface is used for component attribute configuration.
2. The method for constructing an instrumented model of an instrument according to claim 1, characterized by:
The parameterized attributes comprise a driving attribute, a functional attribute, a protocol attribute, a basic attribute and a constraint attribute so as to realize configuration of the component;
the driving attributes comprise refresh frequency, data type and sensor type;
the functional attributes comprise acquisition frequency, calibration mode and data type;
The protocol attribute comprises equipment manufacturer, equipment type, equipment identification and measuring range;
the basic attributes include component identification, component version and component type;
the constraint attributes include compatibility, execution efficiency, resource consumption, and execution time.
3. A configurable method based on an instrumented model, comprising the steps of:
In the first component, receiving the selected behavior method, configured with parameterized attributes;
The type of the selected behavior method and the parameterized attribute information form peripheral driving information which is transmitted to the second component through the functional interface;
In the second component, receiving the selected behavior method, and configuring parameterized attributes, and simultaneously receiving the triggering of the first component information;
The type and parameterized attribute information of the selected and triggered behavior method form functional information, and the received peripheral driving information and the functional information are transmitted to the end component through a functional interface;
In the end member, receiving the selected behavior method, configured with parameterized attributes, while accepting triggers of the first two member information;
The type of the selected and triggered behavior method and the parameterized attribute information form communication protocol information, and peripheral driving information, functional information and communication protocol information are utilized to connect components, so that a component model is generated and downloaded to the instrument in a program mode for the instrument to use;
the behavior method comprises peripheral drivers, functional modules and communication protocols;
The peripheral drive comprises an A/D drive, a display drive and a sensor drive;
the communication protocols include HART, FF, and Profibus;
The functional module comprises acquisition, calibration and storage;
establishing interfaces of different types aiming at behavior methods and parameterized attributes;
the interface comprises a functional interface, a behavior interface and a configuration interface;
The function interface is used for function call and parameter transfer between the components;
the behavior interface is used for integration, reconstruction and combination of components;
the configuration interface is used for component attribute configuration.
4. A configurable method based on instrumented modeling according to claim 3, wherein in the first component, a display driver and a sensor driver are selected, and parameterized properties of the display driver are set: refresh frequency and data type; setting parameterized attributes of the sensor drivers: sensor type.
5. A configurable method based on instrumented modeling according to claim 3, wherein in the second component, a calibration function is selected, an acquisition function is triggered, and the acquired parameterized attributes are set: collecting frequency, setting calibrated parameterized attributes: in a calibration mode, the data type is acquired from the peripheral driving member through the functional interface.
6. A configurable method based on instrumented modeling according to claim 3, characterized in that in the end-member, the Profibus PA protocol is selected, parameterized properties are set: and the equipment manufacturer and the equipment identifier acquire the data type from the functional module component through the functional interface, and determine that the type of the required functional module is an AI functional module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011221732.5A CN114443115B (en) | 2020-11-05 | 2020-11-05 | Method for constructing instrument component model and configurable method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011221732.5A CN114443115B (en) | 2020-11-05 | 2020-11-05 | Method for constructing instrument component model and configurable method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114443115A CN114443115A (en) | 2022-05-06 |
CN114443115B true CN114443115B (en) | 2024-07-12 |
Family
ID=81361520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011221732.5A Active CN114443115B (en) | 2020-11-05 | 2020-11-05 | Method for constructing instrument component model and configurable method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114443115B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290457B (en) * | 2023-11-22 | 2024-03-08 | 湖南省第一测绘院 | Multi-mode data management system for geographic entity, database and time sequence management method |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100377556C (en) * | 2004-01-01 | 2008-03-26 | 浙江大学 | Component-based Realization Method of Communication Protocol |
CN101158894B (en) * | 2006-10-08 | 2010-05-12 | 上海科泰世纪科技有限公司 | Dynamically automatic adapting programming system and method in modular soft software system |
CN1963749B (en) * | 2006-11-24 | 2010-05-12 | 重庆大学 | Method for Constructing Embedded Software System of Industrial Automation Instrumentation |
CN101166274A (en) * | 2007-07-12 | 2008-04-23 | 浙江大学 | Built-in software application architecture and application orienting to multimedia instrument and device |
CN101441586B (en) * | 2009-01-13 | 2010-06-02 | 首都师范大学 | A Seamless Reconfiguration Method for Triple-Mode Redundant Fault-Tolerant Computer Based on Micropacket Protocol |
CN103078857B (en) * | 2012-12-31 | 2014-09-17 | 中国人民解放军总参谋部第五十四研究所 | VoIP (Voice over Internet Protocol) Internet protocol component-based development method |
CN103226512A (en) * | 2013-04-02 | 2013-07-31 | 河海大学 | Component composition test method based on combination of component test case suites |
CN108762730A (en) * | 2018-05-18 | 2018-11-06 | 上海旺谷计算机科技有限公司 | Software module standardizes development approach and software system development method |
CN111381868B (en) * | 2018-12-29 | 2021-12-17 | 北京图森智途科技有限公司 | Method and device for implementing embedded system driving layer |
CN110262423A (en) * | 2019-06-26 | 2019-09-20 | 上海鼎格信息科技有限公司 | A kind of MES monitoring system based on industrial Internet of Things |
CN111176617B (en) * | 2019-12-10 | 2022-05-17 | 中国航空工业集团公司成都飞机设计研究所 | Technical state management method for multiple system configurations |
-
2020
- 2020-11-05 CN CN202011221732.5A patent/CN114443115B/en active Active
Non-Patent Citations (1)
Title |
---|
面向工业自动化的可配置仪表构件模型设计;王进超;《中国仪器仪表》;20210425;第1卷(第4期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114443115A (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108667807B (en) | A protocol adaptive method and system based on monitoring cloud platform and gateway | |
CN111427321B (en) | A multi-protocol compatible MES data acquisition system and its method | |
CN102736565B (en) | Communication method of automatic control equipment based on upper and lower computer structures | |
CN101262486B (en) | Modbus bus analysis system based on built-in platform | |
CN102298365B (en) | Method for automatically identifying and managing spaceflight measurement and control earth station device change | |
CN106980560B (en) | ICD database based multi-bus protocol testing and simulating method and platform | |
CN109634867B (en) | Software testing method and device based on data simulation system and storage medium | |
CN103197666A (en) | General-type handheld automobile fault diagnostic instrument | |
CN109933051A (en) | A kind of automobile diagnostic software configuration method, system, equipment and computer media | |
CN107423492B (en) | Forklift diagnosis test method and system based on template | |
CN111813622B (en) | Equipment monitoring method and device | |
CN114443115B (en) | Method for constructing instrument component model and configurable method thereof | |
CN109002033A (en) | Automation calibration system and method based on UDS | |
CN106997686B (en) | Intelligent control system and control method of parking lot based on programmable map | |
CN114924546A (en) | Calibration system and method for hardware-in-loop test | |
CN102707979A (en) | Special refreshing tool and refreshing method for automobile controller software | |
US20090248384A1 (en) | Process control system in an automation installation | |
CN102984258A (en) | Internet of things data transmission method and adapter | |
CN112203251A (en) | TBOX automatic testing method and device realized by using cascade mode | |
CN203219328U (en) | A multi-channel communication protocol converter | |
CN102594871B (en) | A kind of data encapsulation method, system, adapter and Internet of things middleware | |
CN107430391A (en) | Management system | |
CN112838938B (en) | Test system of Internet of things platform | |
CN116540675A (en) | Engine controller calibration system and method based on grammar configuration function | |
CN213852891U (en) | Fire control system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |