CN110990635B - Dynamic modeling method based on dyeing and finishing equipment - Google Patents

Dynamic modeling method based on dyeing and finishing equipment Download PDF

Info

Publication number
CN110990635B
CN110990635B CN201911189905.7A CN201911189905A CN110990635B CN 110990635 B CN110990635 B CN 110990635B CN 201911189905 A CN201911189905 A CN 201911189905A CN 110990635 B CN110990635 B CN 110990635B
Authority
CN
China
Prior art keywords
dyeing
finishing equipment
model
information
subunit
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
Application number
CN201911189905.7A
Other languages
Chinese (zh)
Other versions
CN110990635A (en
Inventor
李锋
程坤
王凯跃
王灿达
李文青
邵建
张朝霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Donghua University
Original Assignee
Donghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Donghua University filed Critical Donghua University
Priority to CN201911189905.7A priority Critical patent/CN110990635B/en
Publication of CN110990635A publication Critical patent/CN110990635A/en
Application granted granted Critical
Publication of CN110990635B publication Critical patent/CN110990635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The dynamic modeling method based on dyeing and finishing equipment provided by the application utilizes an XML technology and tree structure to record the internal relation of the model, the HashMap stores the memory space address information of each node information in the model, dynamically allocates the memory address space of String type data, and corresponds the basic nodes of the OPC UA information model to the information model of the dyeing and finishing equipment one by one, so that the OPC UA information model of the dyeing and finishing equipment is finally constructed. The method provided by the application can automatically construct the information model of the dyeing and finishing equipment aiming at different dyeing and finishing equipment types, and dynamically construct the OPC UA information model according to the number of the set units in different dyeing and finishing equipment. Under the condition of initially determining the internal structure of dyeing and finishing equipment, the method provided by the application automatically and quickly creates the information model capable of carrying out network transmission.

Description

Dynamic modeling method based on dyeing and finishing equipment
Technical Field
The application relates to a method for conveniently and dynamically creating an OPC UA information model aiming at textile dyeing and finishing related equipment.
Background
At present, OPC UA is widely accepted as an interconnection protocol of industrial internet, and mainstream automation manufacturers and IT world, microsoft, CISCO and the like are all supporters of OPC UA. OPC UA is widely applied to equipment and system, system and system, communication between bottom layer and upper layer, and protocol stack can ensure interconnection of dyeing and finishing equipment industry Internet. OPC UA makes dyeing and finishing industry equipment connected to industrial network have rich service function, and network system adopts distributed service technology to meet requirement of information subscription diversification. Therefore, the method has certain rationality for providing an automatic dynamic modeling method for dyeing and finishing equipment.
Disclosure of Invention
The purpose of the application is that: an OPC UA information modeling method for textile dyeing and finishing equipment is provided to solve the problem of complex modeling schemes for different types of dyeing and finishing models.
In order to achieve the above purpose, the technical scheme of the application is to provide a dynamic modeling method based on dyeing and finishing equipment, which is characterized by comprising the following steps:
step 1, extracting and establishing a model structure for forming a dyeing and finishing equipment model, which comprises the following steps:
step 101, building subunit models on modeling software one by one, creating a subunit library, storing all subunit models in the subunit library, wherein the dyeing and finishing equipment model of the current type consists of a plurality of subunit models in the subunit library, and the subunit models form a subunit set corresponding to the dyeing and finishing equipment model of the current type;
step 102, obtaining a corresponding subunit set from a subunit library according to specific dyeing and finishing equipment, wherein all subunit models in the subunit set form a dyeing and finishing equipment model corresponding to the current dyeing and finishing equipment, and the dyeing and finishing equipment model is added with corresponding public attributes and private attributes;
step 103, deriving a corresponding XML-format label text from the dyeing and finishing equipment model constructed in the step 102;
step 2, dynamically constructing a memory information model, which comprises the following steps:
step 201, further processing the XML-format label text obtained in step 1, adding some additional custom labels, wherein the custom labels embody judgment of some key information of the dyeing and finishing equipment model;
step 202, loading the XML format tag text modified in the step 201 into a functional program module, and automatically reading content related to the system model construction by the functional program module;
step 203, constructing a tree data structure to correspond to the relation between the hierarchical depth of the tag text in the XML format and the parent-child unit;
step 204, traversing the tree data structure established in step 203 in a recursive manner, and dynamically generating the number of root units required by each dyeing and finishing equipment, the number of nested subunits in the root units and specific node attributes in each unit according to the requirements of the constituent units in each dyeing and finishing equipment model;
when determining the node attribute in the bottommost unit, different memory space allocation is given to different data types, and a method for dynamically setting the memory space is made for String type data so as to avoid waste of the memory;
for the data updating of the real-time attribute in the subsequent real-time dyeing and finishing equipment, a data structure of HashMap is adopted to process and store the memory address of a specific node of the memory;
step 205, loading the XML-format label text modified in step 201 into a system, wherein the system firstly determines the structure of the dyeing and finishing equipment model, further analyzes the related units and the attribute memory, dynamically loads the frame and the content of the dyeing and finishing equipment model, and finally converts the frame and the content into an information model based on the memory space;
and step 3, converting the information model based on the memory space obtained in the step 2 into an OPC UA information model to create information node contents for the subsequent data interaction between the OPC UA client and the server.
Preferably, in step 202, the content related to building the system model includes a hierarchical depth of the corresponding key nodes and the XML-format tag text.
Preferably, the step 3 includes the following:
step 301, extracting the information model based on the memory space obtained in step 2, creating OPC UA node information for each layer of information model, creating a root node rootID when creating OPC UA node information, and then creating a unique node nodeID, a node related type referenceType and a browsing name transmitted in OPC UA for each subunit model.
Step 302, setting an initial value for the equipment attribute in the attribute of the bottom layer unit;
step 303, repeating steps 301 and 302 in a recursive manner, constructing a model of the whole dyeing and finishing equipment, and transmitting model information in a TCP/IP network.
The application utilizes XML technology and tree structure to record the internal relation of the model, hashMap saves the memory space address information of each node information in the model, dynamically allocates the memory address space of String type data, and corresponds the basic nodes of the OPC UA information model to the information model of dyeing and finishing equipment one by one, and finally builds the OPC UA information model of dyeing and finishing equipment. The method provided by the application can automatically construct the information model of the dyeing and finishing equipment aiming at different dyeing and finishing equipment types, and dynamically construct the OPC UA information model according to the number of the set units in different dyeing and finishing equipment. Under the condition of initially determining the internal structure of dyeing and finishing equipment, the method provided by the application automatically and quickly creates the information model capable of carrying out network transmission.
Drawings
FIG. 1 is a detailed detection flow diagram of the present system modeling method;
FIG. 2 is a flow chart of the detection process of the modeling method of the present system.
Detailed Description
The application will be further illustrated with reference to specific examples. It is to be understood that these examples are illustrative of the present application and are not intended to limit the scope of the present application. Furthermore, it should be understood that various changes and modifications can be made by one skilled in the art after reading the teachings of the present application, and such equivalents are intended to fall within the scope of the application as defined in the appended claims.
The application provides an automatic modeling method for automatically generating an OPC UA information model of dyeing and finishing equipment according to the composition of a dyeing and finishing model, which comprises the following steps:
step 1: extracting and establishing a model composition structure of dyeing and finishing equipment, and constructing an OPC UA model of the dyeing and finishing equipment with different types when the model structure is supplemented, wherein the method specifically comprises the following steps:
step 101, building subunit models on modeling software one by one, such as 26 subunit monitoring units including a temperature monitoring unit, a humidity monitoring unit, an air pressure monitoring unit and the like. Creating a subunit library, wherein all subunit models are stored in the subunit library, and the dyeing and finishing equipment model of the current type consists of a plurality of subunit models in the subunit library, wherein the subunit models form a subunit set corresponding to the dyeing and finishing equipment model of the current type.
Step 102, obtaining a corresponding subunit set from a subunit library according to specific dyeing and finishing equipment, wherein all subunit models in the subunit set form a dyeing and finishing equipment model corresponding to the current dyeing and finishing equipment, and adding corresponding public attributes and private attributes on the dyeing and finishing equipment model.
And 103, deriving the label text in the corresponding XML format from the dyeing and finishing equipment model constructed in the step 102.
Step 2: the method for dynamically constructing the memory information model specifically comprises the following steps:
step 201, further processing the XML-format tag text obtained in step 1, and adding some additional custom tags, for example, the added related tag content automatically builds related tags according to specific model requirements as follows:
< BlockType > < BlockConfiguration > < BlockTable > < BlockSonTable > < BlockProperty >, etc., and the custom tag shows some key information judgment of the dyeing and finishing equipment model;
step 202, loading the XML-formatted tag text modified in the step 201 into a functional program module, and automatically reading corresponding key nodes, hierarchical depth of the XML text and other contents related to constructing a system model by the functional program module;
step 203, constructing a tree data structure to correspond to the relation between the hierarchical depth of the tag text in the XML format and the parent-child unit;
step 204, traversing the tree data structure established in step 203 in a recursive manner, and dynamically generating the number of root units required by each dyeing and finishing equipment, the number of nested subunits in the root units and specific node attributes in each unit according to the requirements of the constituent units in each dyeing and finishing equipment model;
when determining the node attribute in the bottommost unit, different memory space allocation is given to different data types, and a method for dynamically setting the memory space is made for String type data so as to avoid waste of the memory;
for the data updating of the real-time attribute in the subsequent real-time dyeing and finishing equipment, a data structure of HashMap is adopted to process and store the memory address of a specific node of the memory;
step 205, the label text in the XML format modified in step 201 is loaded into a system, the system first determines the structure of the dyeing and finishing equipment model, further analyzes the relevant units and the attribute memory, dynamically loads the framework and the content of the dyeing and finishing equipment model, and finally converts the framework and the content into an information model based on the memory space.
Step 3: and converting the information model based on the memory space into an OPC UA information model to create information node contents for the data interaction between the follow-up OPC UA client and the server. The main substeps of this step are as follows:
step 301, extracting the information model based on the memory space obtained in step 2, creating OPC UA node information for each layer of information model, creating a root node rootID when creating OPC UA node information, and then creating a unique node nodeID, a node related type referenceType and a browsing name transmitted in OPC UA for each subunit model.
Step 302, setting an initial value for the equipment attribute in the attribute of the bottom layer unit;
step 303, repeating steps 301 and 302 in a recursive manner, constructing a model of the whole dyeing and finishing equipment, and transmitting model information in a TCP/IP network.

Claims (3)

1. The dynamic modeling method based on dyeing and finishing equipment is characterized by comprising the following steps of:
step 1, extracting and establishing a model structure for forming a dyeing and finishing equipment model, which comprises the following steps:
step 101, building subunit models on modeling software one by one, creating a subunit library, storing all subunit models in the subunit library, wherein the dyeing and finishing equipment model of the current type consists of a plurality of subunit models in the subunit library, and the subunit models form a subunit set corresponding to the dyeing and finishing equipment model of the current type;
step 102, obtaining a corresponding subunit set from a subunit library according to specific dyeing and finishing equipment, wherein all subunit models in the subunit set form a dyeing and finishing equipment model corresponding to the current dyeing and finishing equipment, and the dyeing and finishing equipment model is added with corresponding public attributes and private attributes;
step 103, deriving a corresponding XML-format label text from the dyeing and finishing equipment model constructed in the step 102;
step 2, dynamically constructing a memory information model, which comprises the following steps:
step 201, further processing the XML-format label text obtained in step 1, adding some additional custom labels, wherein the custom labels embody judgment of some key information of the dyeing and finishing equipment model;
step 202, loading the XML format tag text modified in the step 201 into a functional program module, and automatically reading content related to the system model construction by the functional program module;
step 203, constructing a tree data structure to correspond to the relation between the hierarchical depth of the tag text in the XML format and the parent-child unit;
step 204, traversing the tree data structure established in step 203 in a recursive manner, and dynamically generating the number of root units required by each dyeing and finishing equipment, the number of nested subunits in the root units and specific node attributes in each unit according to the requirements of the constituent units in each dyeing and finishing equipment model;
when determining the node attribute in the bottommost unit, different memory space allocation is given to different data types, and a method for dynamically setting the memory space is made for String type data so as to avoid waste of the memory;
for the data updating of the real-time attribute in the subsequent real-time dyeing and finishing equipment, a data structure of HashMap is adopted to process and store the memory address of a specific node of the memory;
step 205, loading the XML-format label text modified in step 201 into a system, wherein the system firstly determines the structure of the dyeing and finishing equipment model, further analyzes the related units and the attribute memory, dynamically loads the frame and the content of the dyeing and finishing equipment model, and finally converts the frame and the content into an information model based on the memory space;
and step 3, converting the information model based on the memory space obtained in the step 2 into an OPC UA information model to create information node contents for the subsequent data interaction between the OPC UA client and the server.
2. A dynamic modeling method based on dyeing and finishing equipment according to claim 1, wherein in step 202, the content related to constructing the system model includes the corresponding key nodes and the hierarchical depth of the XML-format label text.
3. A dynamic modeling method based on dyeing and finishing equipment according to claim 1, wherein the step 3 comprises the following steps:
step 301, extracting the information model based on the memory space obtained in step 2, creating OPC UA node information for each layer of information model, creating a root node rootID when creating OPC UA node information, and then creating a unique node nodeID, a node related type referenceType and a browsing name transmitted in OPC UA for each subunit model;
step 302, setting an initial value for the equipment attribute in the attribute of the bottom layer unit;
step 303, repeating steps 301 and 302 in a recursive manner, constructing a model of the whole dyeing and finishing equipment, and transmitting model information in a TCP/IP network.
CN201911189905.7A 2019-11-28 2019-11-28 Dynamic modeling method based on dyeing and finishing equipment Active CN110990635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911189905.7A CN110990635B (en) 2019-11-28 2019-11-28 Dynamic modeling method based on dyeing and finishing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911189905.7A CN110990635B (en) 2019-11-28 2019-11-28 Dynamic modeling method based on dyeing and finishing equipment

Publications (2)

Publication Number Publication Date
CN110990635A CN110990635A (en) 2020-04-10
CN110990635B true CN110990635B (en) 2023-11-03

Family

ID=70087735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911189905.7A Active CN110990635B (en) 2019-11-28 2019-11-28 Dynamic modeling method based on dyeing and finishing equipment

Country Status (1)

Country Link
CN (1) CN110990635B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860657B (en) * 2021-01-14 2022-08-02 中车青岛四方车辆研究所有限公司 Method and system for constructing address space of real-time database of TIAS (geographic information System)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755722A (en) * 2004-10-01 2006-04-05 微软公司 Declarative representation for an extensible workflow model
CN1755721A (en) * 2004-10-01 2006-04-05 微软公司 Componentized and extensible workflow model
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
CN106775703A (en) * 2016-12-09 2017-05-31 网易(杭州)网络有限公司 Using the processing method and processing device of logic

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009046095A1 (en) * 2007-10-01 2009-04-09 Iconics, Inc. Visualization of process control data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755722A (en) * 2004-10-01 2006-04-05 微软公司 Declarative representation for an extensible workflow model
CN1755721A (en) * 2004-10-01 2006-04-05 微软公司 Componentized and extensible workflow model
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
CN106775703A (en) * 2016-12-09 2017-05-31 网易(杭州)网络有限公司 Using the processing method and processing device of logic

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
OPC技术在煤矿供电系统中的应用;孟宪磊;汪光阳;王标;;工业控制计算机(第09期);全文 *
基于OPC UA的数控机床制造数字化车间信息交互模型;王民;曹鹏军;宋铠钰;朱葛龙;张维;赵钦志;;北京工业大学学报(第07期);全文 *
孟宪磊 ; 汪光阳 ; 王标 ; .OPC技术在煤矿供电系统中的应用.工业控制计算机.2007,(09),全文. *
王民 ; 曹鹏军 ; 宋铠钰 ; 朱葛龙 ; 张维 ; 赵钦志 ; .基于OPC UA的数控机床制造数字化车间信息交互模型.北京工业大学学报.2018,(07),全文. *

Also Published As

Publication number Publication date
CN110990635A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN112187632B (en) Industrial equipment integration model and construction method, edge gateway device and industrial equipment integration system
CN108769109B (en) Unified processing method and system for data of Internet of things heterogeneous equipment
CN112688865B (en) Design method of OPC UA gateway for graphical online modeling
EP3709227B1 (en) System and method for interoperable communication of an automation system component with multiple information sources
CN108156022A (en) A kind of service calling method, device and electronic equipment
US7856415B2 (en) System and method for mapping events into a data structure
CN108279987A (en) The method for edition management and device of application program
CN108964968A (en) Service access management method and system under a kind of container cloud environment
CN105786474A (en) Multi-tenant-supporting collaborative business flow customizing system and method
CN102404306B (en) Protocol configuration method and device
CN112702343B (en) OPC UA and MQTT fusion method
US20130036143A1 (en) Method and Device for Data Storage
CN111556074A (en) Communication protocol configuration method and device based on OPC UA
CN110995639A (en) Data transmission method
CN113079198A (en) Method and device for converting cloud platform interface protocol
CN108345691B (en) Data source general processing framework construction method, data source processing method and device
CN110990635B (en) Dynamic modeling method based on dyeing and finishing equipment
CN113626223A (en) Interface calling method and device
CN110830466B (en) Method and device for framing DL/T645 protocol message based on XML
CN117278661B (en) Industrial Internet of things multi-protocol analysis method and system
CN101794240B (en) Method and system for aggregating data content
CN116048517B (en) API (application program interface) generating method, system and device based on B/S (browser/Server) architecture application system
CN116341481A (en) Clock file confirmation method and device, electronic equipment and storage medium
CN110674130A (en) Data transmission method
CN106951399B (en) Method and device for quickly generating ONIX standard file

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