CN108255491B - Unified modeling method for servo driver data - Google Patents
Unified modeling method for servo driver data Download PDFInfo
- Publication number
- CN108255491B CN108255491B CN201711310712.3A CN201711310712A CN108255491B CN 108255491 B CN108255491 B CN 108255491B CN 201711310712 A CN201711310712 A CN 201711310712A CN 108255491 B CN108255491 B CN 108255491B
- Authority
- CN
- China
- Prior art keywords
- data
- variable
- type
- driver
- type 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- 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/76—Adapting program code to run in a different environment; Porting
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
- Control By Computers (AREA)
Abstract
The invention provides a unified modeling method of servo driver data, which comprises the following steps: receiving driver message data of various types; storing according to the classification of the communication mode; reading driver message data in a set time threshold; retrieving and analyzing the driver message data to obtain equipment type data and variable type data; and packaging to obtain an equipment type data model and a variable type data model, and establishing an incidence relation between the equipment type data model and the variable type data model. The unified modeling method for the servo driver data realizes a data type hierarchical structure, and uniformly manages servo driver parameters with different functions and different manufacturers into a data model with the same logic structure, so that the method is convenient to open to the outside, and reduces the design complexity and the later maintenance cost of the servo driver application management software.
Description
Technical Field
The invention relates to a data modeling method, in particular to a unified modeling method for servo driver data.
Background
Because the existing servo drivers have various products and non-uniform control parameters, application management software needs to develop different data read-write interfaces aiming at the servo parameters of different types and different manufacturers, so that the software architecture is complex, the expansion and upgrading workload is large, and the management and maintenance cost is high.
Disclosure of Invention
The invention aims to solve the technical problems of complex data types and disordered data management in parameter data design of the conventional servo driver, and increases the design complexity and the later maintenance cost of application management software of the servo driver.
In order to solve the above technical problem, the present invention provides a unified modeling method for servo driver data, comprising the following steps:
step 1, receiving driver message data of each type by using a data interface corresponding to a communication mode of each type of servo driver;
step 2, storing the received driver message data in a classified manner according to a communication mode, recording the receiving time of each driver message data, and sequentially storing the driver message data in each classified storage space according to the sequence of the receiving time;
step 3, scanning each classified storage space regularly, and reading drive message data with the latest receiving time in each storage space within a set time threshold;
step 4, sequentially arranging the read various driver message data according to the time sequence of the received data, retrieving and analyzing each driver message data according to the arrangement sequence, and acquiring equipment type data and variable type data in each driver message data;
and 5, encapsulating the acquired equipment type data and the acquired variable type data according to the general data model to obtain an equipment type data model and a variable type data model, and establishing an incidence relation between the equipment type data model and the variable type data model.
Further, the device type data includes a device address, a device name, a device manufacturer, a device description, a communication method, and a control method.
Further, the variable type data includes a variable address, a variable name, a variable main parameter number, a variable sub-parameter number, a variable data type, a variable description, a variable characteristic, a minimum value, a maximum value, and a parameter default value.
Further, the device type data model and the variable type data model are associated by a device address and a variable address.
Further, the device type data model is a data module in which a device address, a device name, a device manufacturer, a device description, a communication method, and a control method are encapsulated in this order.
Further, the variable type data model is a data module which encapsulates a variable address, a variable name, a variable main parameter number, a variable sub-parameter number, a variable data type, a variable description, a variable characteristic, a minimum value, a maximum value and a parameter default value in this order.
The invention has the beneficial effects that: (1) the servo driver system management program designed by the method is adopted to realize a data type hierarchical structure, and servo driver parameters with different functions and different manufacturers are uniformly managed into a data model with the same logic structure, so that the method is convenient to open to the outside; (2) the servo driver system management program designed by the method can support the servo drivers in various application occasions on the premise of not changing the architecture of the application program, and can manage the data of all the servo drivers into a set of application program interfaces; (3) the servo driver system management program designed by the method is adopted to expose only equipment information and parameter information to the outside, realize uniform API to the outside, hide the technical details of the realization of servo driver data and strengthen the safety of the servo driver data; (4) the servo driver system management program designed by the method only needs to maintain the data model and the external interface function in the method subsequently, and the maintenance cost is effectively reduced.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a schematic diagram of a model implementation of the present invention.
Detailed Description
As shown in FIG. 1, the unified modeling method for servo driver data disclosed by the invention comprises the following steps:
step 1, receiving driver message data of each type by using a data interface corresponding to a communication mode of each type of servo driver;
step 2, storing the received driver message data in a classified manner according to a communication mode, recording the receiving time of each driver message data, and sequentially storing the driver message data in each classified storage space according to the sequence of the receiving time;
step 3, scanning each classified storage space regularly, and reading drive message data with the latest receiving time in each storage space within a set time threshold;
step 4, sequentially arranging the read various driver message data according to the time sequence of the received data, retrieving and analyzing each driver message data according to the arrangement sequence, and acquiring equipment type data and variable type data in each driver message data;
and 5, encapsulating the acquired equipment type data and the acquired variable type data according to the general data model to obtain an equipment type data model and a variable type data model, and establishing an incidence relation between the equipment type data model and the variable type data model.
Further, the device type data includes a device address, a device name, a device manufacturer, a device description, a communication method, and a control method. The device type data mainly describes the device information of the servo driver and is used for distinguishing the servo drivers of different models, different application occasions and different manufacturers. The device type data base attribute interpretation is as follows:
using the above-described device type data to define a specific servo driver, the actual field driver will be described with this data model. When describing the current servo driver in software, the corresponding data must be defined according to the above data type model. The device type can also inherit and extend different child device types according to specific applications, but the data models of all inherited child device types are limited by the data of the main type, so that the data models can be more specific, but the range of the data models cannot be expanded.
Further, the variable type data includes a variable address, a variable name, a variable main parameter number, a variable sub-parameter number, a variable data type, a variable description, a variable characteristic, a minimum value, a maximum value, and a parameter default value. The variable type data mainly describes control parameters or state parameters of a specific servo driver device, and the parameters are summarized and summarized after being counted according to the specific servo driver device. The variable type data basic attribute interpretation is as follows:
the parameters of the servo driver apparatus are defined using the above variable types. This variable type needs to summarize the parameter types of all servo driver devices. Its child variable types can also be extended by this variable type inheritance.
When the application software is developed, the device type and the variable type are used for defining the servo driver and the parameter variable thereof to be managed. And uniformly managing different servo driver parameters according to the data model, and establishing a uniform external interface according to the data model. Therefore, the application program only needs to develop a corresponding data read-write interface function according to the data model.
The data model used by the invention uniformly manages all field servo drivers and variable parameters thereof. The method can uniformly manage servo driver equipment of different manufacturers, different control functions and different communication modes in a uniform application program. And the application program only needs to package the data received from different field servo drivers into a uniform data model format according to the equipment type and the variable type according to the data model. The invention needs to unify and standardize the message data received by different communication modes into the memory address space. And then analyzing the message data acquired in different communication modes into a unified data model according to the equipment type and the variable type, and encapsulating the message data acquired in communication into a fixed data logic model. The core processing flow of the invention mainly manages the servo driver data of different manufacturers acquired by different communication modes into a data model with standard format and uniform data types.
Further, the device type data model and the variable type data model are associated by a device address and a variable address.
Further, the device type data model is a data module in which a device address, a device name, a device manufacturer, a device description, a communication method, and a control method are encapsulated in this order. The device type data model is as follows:
further, the variable type data model is a data module which encapsulates a variable address, a variable name, a variable main parameter number, a variable sub-parameter number, a variable data type, a variable description, a characteristic, a minimum value, a maximum value and a parameter default value in this order. The variable type data model is as follows:
the method provides basic data types of equipment types and variable types, and can expand data models outside the basic parameter types according to field equipment of different functions and different manufacturers during actual use. But all extended data models should be limited to the basic data types. And associating the equipment object type data with the variable object type data through the equipment address and the variable address to establish a structured data model based on an address space. When the application program is designed, the device type and variable type data model is used for establishing a data unified management format, the application software standardizes field data acquired by field devices of different manufacturers and different communication modes into a unified data model according to the method, then the corresponding application program is developed, and the same function interface is called to acquire the data.
Claims (5)
1. A unified modeling method for servo driver data is characterized by comprising the following steps:
step 1, receiving driver message data of each type by using a data interface corresponding to a communication mode of each type of servo driver;
step 2, storing the received driver message data in a classified manner according to a communication mode, recording the receiving time of each driver message data, and sequentially storing the driver message data in each classified storage space according to the sequence of the receiving time;
step 3, scanning each classified storage space regularly, and reading drive message data with the latest receiving time in each storage space within a set time threshold;
step 4, sequentially arranging the read various driver message data according to the time sequence of the received data, retrieving and analyzing each driver message data according to the arrangement sequence, and acquiring equipment type data and variable type data in each driver message data;
step 5, encapsulating the obtained equipment type data and the obtained variable type data according to a general data model to obtain an equipment type data model and a variable type data model, and establishing an incidence relation between the equipment type data model and the variable type data model;
the device type data model and the variable type data model are associated through a device address and a variable address.
2. The unified modeling method for servo driver data according to claim 1, wherein the device type data includes a device address, a device name, a device manufacturer, a device description, a communication method, and a control method.
3. The unified modeling method for servo driver data according to claim 1, wherein the variable type data comprises variable address, variable name, variable main parameter number, variable sub parameter number, variable data type, variable description, variable property, minimum value, maximum value and parameter default value.
4. The unified modeling method for servo driver data according to claim 1, wherein the device type data model is a data module in which a device address, a device name, a device manufacturer, a device description, a communication method, and a control method are packaged in this order.
5. The unified modeling method for servo driver data as claimed in claim 1, wherein the variable type data model is a data module in which a variable address, a variable name, a variable main parameter number, a variable sub parameter number, a variable data type, a variable description, a variable characteristic, a minimum value, a maximum value, and a parameter default value are packaged in this order.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711310712.3A CN108255491B (en) | 2017-12-11 | 2017-12-11 | Unified modeling method for servo driver data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711310712.3A CN108255491B (en) | 2017-12-11 | 2017-12-11 | Unified modeling method for servo driver data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108255491A CN108255491A (en) | 2018-07-06 |
CN108255491B true CN108255491B (en) | 2021-05-25 |
Family
ID=62720948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711310712.3A Active CN108255491B (en) | 2017-12-11 | 2017-12-11 | Unified modeling method for servo driver data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255491B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112364538B (en) * | 2020-11-09 | 2022-05-31 | 中国电子科技集团公司第二十九研究所 | Multi-professional heterogeneous model unified packaging method based on data model |
CN112235326B (en) * | 2020-12-15 | 2021-03-16 | 长沙树根互联技术有限公司 | Internet of things equipment data analysis method and device and electronic equipment |
CN113014595B (en) * | 2021-03-15 | 2022-07-01 | 青岛弯弓信息技术有限公司 | Data encapsulation integration method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1424649A (en) * | 2003-01-09 | 2003-06-18 | 清华大学 | Robot controller with opening structure |
CN101291247A (en) * | 2007-04-19 | 2008-10-22 | 研华股份有限公司 | Information transmission method for information servo |
CN102214154A (en) * | 2011-05-31 | 2011-10-12 | 上海交通大学 | USB (Universal Serial Bus)-based communication module and communication method for alternating current servo driver |
TW201423391A (en) * | 2012-12-12 | 2014-06-16 | Inventec Corp | Rack server system and test method of the same |
CN105389019A (en) * | 2014-08-21 | 2016-03-09 | 宏正自动科技股份有限公司 | REMOTE MANAGEMENT method and device FOR SERVERS |
CN105453046A (en) * | 2013-01-17 | 2016-03-30 | 索尼电脑娱乐公司 | Information processing device and file management method |
CN107247650A (en) * | 2017-05-02 | 2017-10-13 | 华中科技大学 | A kind of servo drive system long-range monitoring method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7162577B2 (en) * | 2001-09-14 | 2007-01-09 | Cornice, Inc. | Digital device configuration and method |
-
2017
- 2017-12-11 CN CN201711310712.3A patent/CN108255491B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1424649A (en) * | 2003-01-09 | 2003-06-18 | 清华大学 | Robot controller with opening structure |
CN101291247A (en) * | 2007-04-19 | 2008-10-22 | 研华股份有限公司 | Information transmission method for information servo |
CN102214154A (en) * | 2011-05-31 | 2011-10-12 | 上海交通大学 | USB (Universal Serial Bus)-based communication module and communication method for alternating current servo driver |
TW201423391A (en) * | 2012-12-12 | 2014-06-16 | Inventec Corp | Rack server system and test method of the same |
CN105453046A (en) * | 2013-01-17 | 2016-03-30 | 索尼电脑娱乐公司 | Information processing device and file management method |
CN105389019A (en) * | 2014-08-21 | 2016-03-09 | 宏正自动科技股份有限公司 | REMOTE MANAGEMENT method and device FOR SERVERS |
CN107247650A (en) * | 2017-05-02 | 2017-10-13 | 华中科技大学 | A kind of servo drive system long-range monitoring method |
Non-Patent Citations (1)
Title |
---|
"FEDERAL ENERGY MANAGEMENT PROGRAM Operations & Maintenance";G. P. Sullivan,R. Pugh;《U.S. DEPARTMENT OF ENERGY|Energy Efficiency & Renewable Energy》;20100831;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108255491A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255491B (en) | Unified modeling method for servo driver data | |
CN108769109B (en) | Unified processing method and system for data of Internet of things heterogeneous equipment | |
CN104932480A (en) | Automobile diagnostic system design method and apparatus | |
CN104536746A (en) | Software structure based on DLL | |
JP2022543180A (en) | Visualization method and related device | |
CN111865662B (en) | Network equipment configuration method and system | |
CN111556074A (en) | Communication protocol configuration method and device based on OPC UA | |
US11997438B2 (en) | Declarative IoT data control | |
CN104699518B (en) | A kind of general-purpose meter reader adapter and its implementation based on micro-kernel plug-in unit | |
CN112667415B (en) | Data calling method and device, readable storage medium and electronic equipment | |
CN112235389A (en) | Intelligent terminal data processing method and device based on Internet of things | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
US20220030090A1 (en) | Selective address space aggregation | |
CN105139053B (en) | Radio-frequency identification reader/writer interface protocol debugging apparatus and method | |
CN111078213A (en) | Code generation method and code generation device | |
CN114968864B (en) | Verification environment construction method, chip verification method and system | |
CN109086380B (en) | Method and system for compressing and storing historical data | |
CN113157268B (en) | Equipment state processing system combining flow engine and Internet of things | |
CN108763127B (en) | Method for realizing Modbus adapter capable of realizing interconversion of source data and target data | |
CN115686543A (en) | Automatic configuration method for AI (Artificial Intelligence) calculation module of embedded edge intelligent gateway | |
CN110489121B (en) | Skin package file generation method and system | |
CN108563514A (en) | Access method, application and the electronic equipment of application configuration service | |
CN115048187A (en) | Operator-based pvc file importing method, device and storage medium | |
CN110008035B (en) | Data interface extension method, data processing method, device and equipment | |
CN113138793B (en) | Application resource packaging process monitoring method, device, equipment and medium |
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 |