CN109542043A - A kind of digital control system management method and device based on plug-in unit - Google Patents

A kind of digital control system management method and device based on plug-in unit Download PDF

Info

Publication number
CN109542043A
CN109542043A CN201811285737.7A CN201811285737A CN109542043A CN 109542043 A CN109542043 A CN 109542043A CN 201811285737 A CN201811285737 A CN 201811285737A CN 109542043 A CN109542043 A CN 109542043A
Authority
CN
China
Prior art keywords
plug
unit
extension
hash table
information
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
Application number
CN201811285737.7A
Other languages
Chinese (zh)
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.)
Wuhan Huazhong Numerical Control Co Ltd
Original Assignee
Wuhan Huazhong Numerical Control Co Ltd
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 Wuhan Huazhong Numerical Control Co Ltd filed Critical Wuhan Huazhong Numerical Control Co Ltd
Priority to CN201811285737.7A priority Critical patent/CN109542043A/en
Publication of CN109542043A publication Critical patent/CN109542043A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35349Display part, programmed locus and tool path, traject, dynamic locus

Abstract

The present invention provides a kind of digital control system management method and device based on plug-in unit, method includes: the plug-in unit catalogue that traversal is used for memory card, load the configuration file of plug-in unit in the plug-in unit catalogue, wherein each functional module of digital control system exists in the form of plug-in unit;It is carried out the following processing for each configuration file loaded: obtaining the dynamic link library file name in the configuration file, be loaded with the dynamic link library file of the dynamic link library file name;The plug-in unit creation function in the dynamic link library file is executed, the plugin information in the configuration file is added in internal information management Hash table;To the plugin information distributing system resource in internal information management Hash table;After obtaining system resource, the plug-in initialization function in dynamic link library file is executed, to initialize to the plugin information, completes the management to the affiliated plug-in unit of configuration file.Using the embodiment of the present invention, the opening and scalability of digital control system are improved.

Description

A kind of digital control system management method and device based on plug-in unit
Technical field
The present invention relates to numerically-controlled machine tool manufacturing field more particularly to a kind of digital control system management methods and dress based on plug-in unit It sets.
Background technique
Numerically-controlled machine tool manufacturing core the most is its digital control system mounted, a with the development of industrial application Property and the process requirements of customization are more and more, so that digital control system becomes to become increasingly complex, in order to have digital control system Better stability and richer function, need preferably to manage digital control system.
Currently, for a user, digital control system is closed, open and scalability deficiency, cause facing to use The customized demand of family personalization, developer need to put into a large amount of time and efforts and carry out greatly to the code of original digital control system Amount reorganization, can just make digital control system have the new function for meeting user demand.
It is therefore desirable to design a kind of new digital control system management method, to overcome the above problem.
Summary of the invention
It is an object of the invention to overcome the defect of the prior art, a kind of digital control system manager based on plug-in unit is provided Method and device, to improve the opening and scalability of digital control system.
The present invention is implemented as follows:
In a first aspect, the present invention provides a kind of digital control system management method based on plug-in unit, method includes:
Traversal is used for the plug-in unit catalogue of memory card, loads the configuration file of plug-in unit in plug-in unit catalogue, wherein digital control system Each functional module exist in the form of plug-in unit;
It is carried out the following processing for each configuration file loaded:
The dynamic link library file name in configuration file is obtained, the dynamic link of the dynamic link library file name is loaded with Library file;
The plug-in unit executed in dynamic link library file creates function, and internal letter is added in the plugin information in configuration file In breath management Hash table;To the plugin information distributing system resource in internal information management Hash table;
After obtaining system resource, execute dynamic link library file in plug-in initialization function, with to plugin information into Row initialization, completes the management to the affiliated plug-in unit of configuration file.
Optionally, when plugin information includes extension point information,
To the plugin information distributing system resource in internal information management Hash table, comprising:
Internal information is managed into the extension that extension point described in extension point information is called in Hash table and links to the expansion Machine plotting;
The plug-in initialization function in dynamic link library file is executed, to initialize to plugin information, comprising:
The plug-in initialization function in dynamic link library file is executed, has been linked to searching symbol definition Hash table Resulting function interface is added to global symbol using Hash table, and executes addition letter by the function interface for extending the extension of point Global symbol after number interface uses Hash table, to realize the function of extension, completes the management to the affiliated plug-in unit of configuration file;Symbol Number define Hash table be used for store extend function interface.
Optionally, when plugin information includes extension information,
To the plugin information distributing system resource in internal information management Hash table, comprising:
Storage resource is distributed to the plugin information in internal information management Hash table;
The plug-in initialization function in dynamic link library file is executed, to initialize to plugin information, comprising:
Obtain symbol definition Hash table;Symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface for extending extension described by information is added to symbol definition Hash Table.
Optionally, plug-in unit includes human-computer interaction interface plug-in unit, numerical control Soft- PLC plug-in unit, numerical control interpreter plug-in unit and numerical control Interpolation module plug-in unit.
Optionally, human-computer interaction interface plug-in unit includes showing the extension point of control and for the expansion of administration page for managing Machine plotting;Numerical control Soft- PLC plug-in unit includes the extension point for managing instruction catalogue;Numerical control interpreter plug-in unit includes executing generation for explaining The extension point of code;NC Interpolation module plug-in includes for realizing the extension point of feeding control algolithm, for realizing prediction transition It the extension point information of algorithm, the extension point for realizing geometry motion, the extension point for realizing channel control algolithm and is used for Realize the extension point of five axis control algolithms.
Second aspect, the present invention provide a kind of digital control system managing device based on plug-in unit, and device includes:
Loading module, for traversing the plug-in unit catalogue for being used for memory card, the configuration file of plug-in unit in load plug-in unit catalogue, Wherein, each functional module of digital control system exists in the form of plug-in unit;
Management module, for being carried out the following processing for each configuration file loaded: obtaining dynamic in configuration file State chained library filename, is loaded with the dynamic link library file of the dynamic link library file name;Execute dynamic link library file In plug-in unit create function, by configuration file plugin information be added internal information management Hash table in;To internal information Manage the plugin information distributing system resource in Hash table;After obtaining system resource, inserting in dynamic link library file is executed Part initialization function completes the management to the affiliated plug-in unit of configuration file to initialize to plugin information.
Optionally, when plugin information includes extension point information,
Management module manages the plugin information distributing system resource in Hash table to internal information, specifically:
Internal information is managed into the extension that extension point described in extension point information is called in Hash table and links to the expansion Machine plotting;
Management module executes the plug-in initialization function in dynamic link library file, to be initialized to plugin information, Specifically:
The plug-in initialization function in dynamic link library file is executed, has been linked to searching symbol definition Hash table Resulting function interface is added to global symbol using Hash table, and executes addition letter by the function interface for extending the extension of point Global symbol after number interface uses Hash table, to realize the function of extension, completes the management to the affiliated plug-in unit of configuration file;Symbol Number define Hash table be used for store extend function interface.
Optionally, when plugin information includes extension information,
Management module manages the plugin information distributing system resource in Hash table to internal information, specifically:
Storage resource is distributed to the plugin information in internal information management Hash table;
Management module executes the plug-in initialization function in dynamic link library file, to be initialized to plugin information, Specifically:
Obtain symbol definition Hash table;Symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface for extending extension described by information is added to symbol definition Hash Table.
Optionally, plug-in unit includes human-computer interaction interface plug-in unit, numerical control Soft- PLC plug-in unit, numerical control interpreter plug-in unit and numerical control Interpolation module plug-in unit.
Optionally, human-computer interaction interface plug-in unit includes showing the extension point of control and for the expansion of administration page for managing Machine plotting;Numerical control Soft- PLC plug-in unit includes the extension point for managing instruction catalogue;Numerical control interpreter plug-in unit includes executing generation for explaining The extension point of code;NC Interpolation module plug-in includes for realizing the extension point of feeding control algolithm, for realizing prediction transition It the extension point information of algorithm, the extension point for realizing geometry motion, the extension point for realizing channel control algolithm and is used for Realize the extension point of five axis control algolithms.
The invention has the following advantages: using the embodiment of the present invention, by the functional module and its son in digital control system Module is abstracted and is encapsulated, and is developed according to plug-in specification, obtains each plug-in unit, and due to the degree of coupling between plug-in unit It is lower, have the characteristics that be easy to load and unload, therefore the dynamic that digital control system functional software may be implemented can cut and flexibly expand Exhibition makes digital control system have good open and scalability, convenient for providing the customization service of personalization for user, realizes pair The flexible management of digital control system.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the digital control system management method provided in an embodiment of the present invention based on plug-in unit;
Fig. 2 is NC Interpolation module plug-in illustraton of model provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the digital control system managing device provided in an embodiment of the present invention based on plug-in unit.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
It should be noted that the digital control system management method provided by the present invention based on plug-in unit can be applied to electronics and set It is standby, wherein in a particular application, which can be computer, PC, plate, mobile phone etc., this is all reasonable 's.
Referring to Fig. 1, the embodiment of the present invention provides a kind of digital control system management method based on plug-in unit, and method includes following step It is rapid:
S101, traversal are used for the plug-in unit catalogue of memory card, load the configuration file of plug-in unit in the plug-in unit catalogue, In, each functional module of digital control system exists in the form of plug-in unit;
Plug-in unit is a kind of program that the application programming interfaces for following certain specification are write out, can be by application program tune With, such as load plug-in unit automatically when digital control system is activated.Plug-in unit includes configuration file and dynamic link library file, configuration text Part may include at least one of extension point information and extension information for recording plugin information, plugin information.
Extension point information for describe extension point, extension point information may include extension point belonging to plug-in unit an attribute information, Point ID (mark), extension point title and the function interface for extending the extension that point calls are extended, thus by calling function interface Extension can be called.It extends point ID and extends point for unique identification.The function interface for the extension that extension point calls can store XSD In file, XSD file, which can store one or more function interface card cages, can load automatically and parse XSD file, be formed Extend the function interface set to be called of point.
The attribute information of plug-in unit include ID, version, developer, this plug-in unit of this plug-in unit relied on other plug-in units, this insert The dynamic link library file name of part, the dynamic link library of this plug-in unit export symbol, and dynamic link library file name is dynamic link library The name of file, dynamic link library file are used to record each function for realizing pin function, and dynamic link library export symbol is used for Function interface and the position for recording the exported function of dynamic link library, exporting symbol by dynamic link library can quickly know Dynamic link library file where objective function to be called, and then target letter is obtained by loading the dynamic link library file Number.
Illustratively, extension point information can be accomplished by with following code
In addition, an extension point can call one or more extensions, the extension that extension point and the extension point are called can It, can also be in different plug-in units, to be conducive in digital control system the dynamic expansion of function and secondary open in same plug-in unit Hair.For example, plug-in unit A includes extension point A1, the extension that extension point A1 is called includes A2 and A3, and A2 and A3 can be in plug-in unit A In, it can also be respectively in plug-in unit B and plug-in unit C.
Extend information for describe extension, extension information may include extend belonging to plug-in unit attribute information, extension title, The function interface of extension and the extension point ID for extending point for calling the extension, the function interface of extension are dynamic link library export The function interface of the included function of function interface in symbol, i.e. dynamic link library file.Function interface can be address of variable Or function address.
Illustratively, extension information can be accomplished by with following code
Digital control system mainly includes HMI (Human Machine Interface, human-computer interaction interface), Soft- PLC (Programmable Logic Controller, programmable logic controller (PLC)), numerical control interpreter, moving interpolation section this four Corn module, each corn module can also include one or more sub-function modules, can use object-oriented Abstract package method, functional module each in digital control system and each sub-function module are abstracted and are sealed according to certain granularity Dress, obtains each plug-in unit, and developed according to plug-in specification, carries out cooperation friendship by the way of extension and extension point between plug-in unit Mutually, to construct complete, dynamic extending and cutting a digital control system using each plug-in unit.
Specifically, plug-in unit may include human-computer interaction interface plug-in unit, numerical control Soft- PLC plug-in unit, numerical control interpreter plug-in unit and NC Interpolation module plug-in.
The main function of human-computer interaction interface is to provide the display and interactive operation function of digital control system internal data, by big The display control and the page for measuring heterogeneous are composed.In plug-in unit design process, human-computer interaction interface plug-in unit be can wrap Two extension points are included, for an extension point for managing display control, another extension point is used for administration page;It is various specific aobvious Show that control and the page are abstracted as same type of subboard, relevant function is completed in subboard, and is packaged into corresponding son The extension of plug-in unit, extension point can call each extension to complete relevant function.
For numerical control Soft- PLC for sequentially executing a series of elementary instructions and function command, numerical control Soft- PLC plug-in unit can define one It is a for managing the extension point of instruction catalogue, the various elementary instructions and function command in instruction catalogue are in the subboard where each extension Middle design is completed, and is linked on the extension point of instruction catalogue in the form of the extension of subboard, to realize the function of each extension.
Numerical control interpreter plug-in unit executes numerical control private code for explaining, numerical control private code includes G code and M code G code/M code command function is defined different Deng, each digital control system manufacturer, can quickly be fitted using plug-in part technology With different customer demands.For example, G code is designed as extension point, and according to extension point specification in plug-in unit design process The encapsulation for completing extension, the implementation procedure of each G code is realized in design in extension.
NC Interpolation module plug-in is the key control unit of digital control system, including the expansion for realizing feeding control algolithm Machine plotting (hereinafter referred to as feeding control extension point), for realizing prediction transition algorithm (also referred to as look-ahead algorithm or transition algorithm) Extend point information (hereinafter referred to as prediction transition extends point), for realizing extension point (the hereinafter referred to as geometry motion of geometry motion Extend point), for realizing the extension point (hereinafter referred to as channel control extension point) of channel control algolithm and for realizing five axis controls The extension points such as the extension point (hereinafter referred to as five axis control extension point) of algorithm processed.
Illustratively, NC Interpolation module plug-in illustraton of model as shown in Figure 2, NC Interpolation module plug-in is (also referred to as in figure Digital control system interpolation module plug-in unit) include moving interpolation section plug-in unit, feeding control plug-in unit, transition algorithm plug-in unit, geometry motion insert Part, five axis control plug-in unit, feed speed control plug-in unit and channel control plug-in unit, the subboard packet that moving interpolation section plug-in unit is called Include feeding control plug-in unit, transition algorithm plug-in unit, geometry motion plug-in unit, five axis control plug-in unit and channel control plug-in unit, feeding control The subboard that plug-in unit processed is called includes feed speed control plug-in unit, and the plugin.xml in each plug-in unit indicates the configuration text of the plug-in unit The associated description of part, extension and the extension point of plug-in unit is recorded in the plug-in card configuration file, and extension point and the extension point are called Extend through line segment connection with the arrow, it is each extension that the starting point of line segment, which is connected, what the terminating point of line segment was connected For each extension point, for example, feeding control plug-in unit includes FPM (feeding per minute) extension, FPR (often rotate into) extension, returns to zero control System extension, G04 (pause) extension and acceleration and deceleration extend point, and feeding control plug-in unit extends point by acceleration and deceleration and calls acceleration and deceleration T-type acceleration and deceleration extension, S type acceleration and deceleration extension and the Exponential acceleration and deceleration extension of plug-in unit processed;Moving interpolation section plug-in unit passes through feeding control System extends point and the FPM in feeding control plug-in unit is called to extend, FPR extension, return to zero control extension and G04 extension.
The plug-in unit in plug-in unit catalogue can successively be accessed using the traversals mode such as preamble traversal, inorder traversal, and can be by The configuration file of each plug-in unit is successively loaded according to access order.
Each functional module of digital control system is packaged into plug-in unit, the coupling between each software function module of digital control system can be reduced Conjunction property enhances the stability of digital control system, improves system development and testing efficiency, research and development of software cost is reduced, since plug-in unit can To be quickly loaded and unload, so that dynamic tailor and extension Functional Capability that digital control system has the function of, greatly improve The opening and scalability of digital control system.
S102, it is carried out the following processing for each configuration file loaded: obtaining the dynamic link library in configuration file Filename is loaded with the dynamic link library file of the dynamic link library file name;Execute the plug-in unit in dynamic link library file Function is created, the plugin information in configuration file is added in internal information management Hash table;Hash is managed to internal information Plugin information distributing system resource in table;After obtaining system resource, the plug-in initialization in dynamic link library file is executed Function completes the management to the affiliated plug-in unit of configuration file to initialize to plugin information.
Each dynamic link library file can correspond to a dynamic link library export symbol, be exported by dynamic link library Symbol can determine the position where plug-in unit creation function, create letter thereby executing the plug-in unit in the dynamic link library file Number, it can be seen that when digital control system needs that plug-in unit is called to create function, need first to load dynamic link library file, then lead to The address that the corresponding dynamic link library export symbol of dynamic link library file obtains plug-in unit creation function is crossed, is finally called dynamic State links the plug-in unit in library file and creates function.Such benefit is that digital control system does not need to load dynamic link at the beginning of operation All codes in library file only just take out from dynamic link library file when needing some function.In addition, using The program volume of the acceptable each plug-in unit of dynamic link library file, convenient for the maintenance of plug-in unit.
Corresponding plug-in unit context module is created to each corn module of digital control system in advance, above and below plug-in unit Literary module provides plug-in registration and management, extends point and the management extended and the functions such as symbol registration is called, and major maintenance three The data structure of Hash table, respectively internal information manage Hash table, symbol definition Hash table and global symbol and use Hash table. One complete cnc system software can have multiple plug-in unit context modules, and linked list data structure can be used and insert to each Part context module is managed.
Internal information management Hash table is for managing plugin information, such as extension point information and/or extension information.Symbol is fixed Adopted Hash table is used to that the function interface of extension and/or the function of extension to be called to connect using global storage mode storage extension point Mouthful, to can search symbol definition Hash table when needing to call some extension with symbol definition search function, obtain wait adjust With the function interface of extension.Global symbol is used to carry out the pipe of symbolic information resource using the method for reference count using Hash table Reason.
When plugin information includes extension point information, provided to the plugin information distribution system in internal information management Hash table Source, comprising:
The internal information is managed the extension that extension point described in extension point information is called in Hash table to link to The extension point;
The plug-in initialization function in the dynamic link library file is executed, to be initialized to the plugin information, Specifically:
The plug-in initialization function in the dynamic link library file is executed, obtains chain to search symbol definition Hash table It is connected to the function interface of the extension of extension point, resulting function interface is added to global symbol using Hash table, and execute and add Global symbol after entering function interface uses Hash table, to realize the function of extension, completes the pipe to the affiliated plug-in unit of configuration file Reason;The symbol definition Hash table is used to store the function interface of extension.
Illustratively, the example based on above-mentioned extension point message code, can search symbol definition Hash table and obtain The value of velctrl_func parameter, to obtain the function interface respectively extended that the extension point is called, and by the letter of each extension Number interface is added to global symbol using in Hash table, and hereafter, plug-in unit, which can call directly in subboard, to be extended to realize the expansion The function of providing is provided.
When the plugin information includes extension information, to the plugin information distribution system in internal information management Hash table Resource, comprising:
Storage resource is distributed to the plugin information in internal information management Hash table;
The plug-in initialization function in the dynamic link library file is executed, to be initialized to the plugin information, Specifically:
Obtain symbol definition Hash table;The symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface of extension described by the extension information is added to symbol definition Hash table.
Illustratively, the example based on above-mentioned extension message code, card cage execute in plug-in unit dynamic link library file Plug-in initialization function, plugin information is initialized: extension using symbol definition function to the function interface of extension into Row global definition, it is, ncx_motion_velctrl_fpm is added in symbol definition Hash table, so that symbol definition is breathed out Uncommon table carries out global storage to ncx_motion_velctrl_fpm.
Using technical solution provided in an embodiment of the present invention, by digital control system functional module and its submodule take out As and encapsulation, and developed according to plug-in specification, obtain each plug-in unit, and can be using extension and extension point between plug-in unit Mode carries out collaborative interactive, and the dynamic of realization digital control system functional software can be cut and flexible expansion, has digital control system good Good opening and scalability, while being conducive to that third party is allowed to participate in customizing functions development process, convenient for being mentioned for user For personalized customization service, the flexible management to digital control system is realized.
In another implementation, when the plugin information includes extension information, in internal information management Hash table Plugin information distributing system resource, can be with are as follows:
When getting extension call instruction, Hash table is managed by internal information and is determined specified by the extended instruction Extension and extension point, link to extension specified by the extension call instruction for extension specified by the extension call instruction Point.
When plugin information includes extension point information and extension information, to the plugin information in internal information management Hash table Distributing system resource, specifically:
The internal information is managed the extension that extension point described in extension point information is called in Hash table to link to The extension point;
When getting extension call instruction, Hash table is managed by internal information and is determined specified by the extended instruction Extension and extension point, link to extension specified by the extension call instruction for extension specified by the extension call instruction Point.
In another implementation, the plug-in initialization function in the dynamic link library file is executed, to insert to described Part information is initialized, can be with are as follows:
The plug-in initialization function in the dynamic link library file is executed, the letter of the extension of extension point will have been linked to Number interface is added to global symbol using Hash table, and executes the global symbol after function interface is added using Hash table, with reality The function of now extending completes the management to the affiliated plug-in unit of configuration file.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of digital control system management based on plug-in unit Device.
Referring to Fig. 3, Fig. 3 is a kind of structure of the digital control system managing device based on plug-in unit provided by the embodiment of the present invention Schematic diagram, device include:
Loading module 301 loads the configuration text of plug-in unit in plug-in unit catalogue for traversing the plug-in unit catalogue for being used for memory card Part, wherein each functional module of digital control system exists in the form of plug-in unit;
Management module 302, for being carried out the following processing for each configuration file loaded: obtaining in configuration file Dynamic link library file name is loaded with the dynamic link library file of the dynamic link library file name;Execute dynamic link library text Plug-in unit in part creates function, and the plugin information in configuration file is added in internal information management Hash table;Believe to inside Plugin information distributing system resource in breath management Hash table;After obtaining system resource, execute in dynamic link library file Plug-in initialization function completes the management to the affiliated plug-in unit of configuration file to initialize to plugin information.
Using technical solution provided in an embodiment of the present invention, by digital control system functional module and its submodule take out As and encapsulation, and developed according to plug-in specification, obtain each plug-in unit, and can be using extension and extension point between plug-in unit Mode carries out collaborative interactive, and the dynamic of realization digital control system functional software can be cut and flexible expansion, has digital control system good Good opening and scalability, while being conducive to that third party is allowed to participate in customizing functions development process, convenient for being mentioned for user For personalized customization service, the flexible management to digital control system is realized.
Optionally, when plugin information includes extension point information,
Management module manages the plugin information distributing system resource in Hash table to internal information, specifically:
Internal information is managed into the extension that extension point described in extension point information is called in Hash table and links to the expansion Machine plotting;
Management module executes the plug-in initialization function in dynamic link library file, to be initialized to plugin information, Specifically:
The plug-in initialization function in dynamic link library file is executed, has been linked to searching symbol definition Hash table Resulting function interface is added to global symbol using Hash table, and executes addition letter by the function interface for extending the extension of point Global symbol after number interface uses Hash table, to realize the function of extension, completes the management to the affiliated plug-in unit of configuration file;Symbol Number define Hash table be used for store extend function interface.
Optionally, when plugin information includes extension information,
Management module manages the plugin information distributing system resource in Hash table to internal information, specifically:
Storage resource is distributed to the plugin information in internal information management Hash table;
Management module executes the plug-in initialization function in dynamic link library file, to be initialized to plugin information, Specifically:
Obtain symbol definition Hash table;Symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface for extending extension described by information is added to symbol definition Hash Table.
Optionally, plug-in unit includes human-computer interaction interface plug-in unit, numerical control Soft- PLC plug-in unit, numerical control interpreter plug-in unit and numerical control Interpolation module plug-in unit.
Optionally, human-computer interaction interface plug-in unit includes showing the extension point of control and for the expansion of administration page for managing Machine plotting;Numerical control Soft- PLC plug-in unit includes the extension point for managing instruction catalogue;Numerical control interpreter plug-in unit includes executing generation for explaining The extension point of code;NC Interpolation module plug-in includes for realizing the extension point of feeding control algolithm, for realizing prediction transition It the extension point information of algorithm, the extension point for realizing geometry motion, the extension point for realizing channel control algolithm and is used for Realize the extension point of five axis control algolithms.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of digital control system management method based on plug-in unit, which is characterized in that the described method includes:
Traversal is used for the plug-in unit catalogue of memory card, loads the configuration file of plug-in unit in the plug-in unit catalogue, wherein digital control system Each functional module exist in the form of plug-in unit;
It is carried out the following processing for each configuration file loaded:
The dynamic link library file name in the configuration file is obtained, the dynamic link library of the dynamic link library file name is loaded with File;
The plug-in unit creation function in the dynamic link library file is executed, it will be in the plugin information addition in the configuration file In portion's information management Hash table;To the plugin information distributing system resource in internal information management Hash table;
After obtaining system resource, the plug-in initialization function in the dynamic link library file is executed, to believe the plug-in unit Breath is initialized, and the management to the affiliated plug-in unit of the configuration file is completed.
2. the method according to claim 1, wherein when plugin information include extension point information when,
To the plugin information distributing system resource in internal information management Hash table, comprising:
The internal information is managed into the extension that extension point described in extension point information is called in Hash table and links to the expansion Machine plotting;
The plug-in initialization function in the dynamic link library file is executed, to initialize to the plugin information, comprising:
The plug-in initialization function in the dynamic link library file is executed, has been linked to searching symbol definition Hash table Resulting function interface is added to global symbol using Hash table, and executes addition letter by the function interface for extending the extension of point Global symbol after number interface uses Hash table, to realize the function of extension, completes the management to the affiliated plug-in unit of configuration file;Institute Symbol definition Hash table is stated for storing the function interface of extension.
3. the method according to claim 1, wherein when the plugin information include extension information when,
To the plugin information distributing system resource in internal information management Hash table, comprising:
Storage resource is distributed to the plugin information in internal information management Hash table;
The plug-in initialization function in the dynamic link library file is executed, to initialize to the plugin information, comprising:
Obtain symbol definition Hash table;The symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface of extension described by the extension information is added to symbol definition Hash Table.
4. the method according to claim 1, wherein plug-in unit include human-computer interaction interface plug-in unit, numerical control Soft- PLC insert Part, numerical control interpreter plug-in unit and NC Interpolation module plug-in.
5. according to the method described in claim 4, it is characterized in that, the human-computer interaction interface plug-in unit includes for managing display The extension point of control and the extension point for administration page;The numerical control Soft- PLC plug-in unit includes the extension for managing instruction catalogue Point;The numerical control interpreter plug-in unit includes for explaining the extension point for executing code;The NC Interpolation module plug-in includes using In realize feeding control algolithm extension point, for realizing prediction transition algorithm extension point information, for realizing geometry motion Extension point, for realizing channel control algolithm extension point and for realizing five axis control algolithms extension point.
6. a kind of digital control system managing device based on plug-in unit, which is characterized in that described device includes:
Loading module, for traverse be used for memory card plug-in unit catalogue, load the configuration file of plug-in unit in the plug-in unit catalogue, Wherein, each functional module of digital control system exists in the form of plug-in unit;
Management module, for being carried out the following processing for each configuration file loaded: obtaining the dynamic in the configuration file Chained library filename is loaded with the dynamic link library file of the dynamic link library file name;Execute the dynamic link library text Plug-in unit in part creates function, and the plugin information in the configuration file is added in internal information management Hash table;To institute State the plugin information distributing system resource in internal information management Hash table;After obtaining system resource, the dynamic chain is executed The plug-in initialization function in library file is connect, to initialize the plugin information, completes to insert to belonging to the configuration file The management of part.
7. device according to claim 6, which is characterized in that when plugin information includes extension point information,
The management module manages the plugin information distributing system resource in Hash table to the internal information, specifically:
The internal information is managed into the extension that extension point described in extension point information is called in Hash table and links to the expansion Machine plotting;
The management module executes the plug-in initialization function in the dynamic link library file, to carry out to the plugin information Initialization, specifically:
The plug-in initialization function in the dynamic link library file is executed, has been linked to searching symbol definition Hash table Resulting function interface is added to global symbol using Hash table, and executes addition letter by the function interface for extending the extension of point Global symbol after number interface uses Hash table, to realize the function of extension, completes the management to the affiliated plug-in unit of configuration file;Institute Symbol definition Hash table is stated for storing the function interface of extension.
8. device according to claim 6, which is characterized in that when the plugin information includes extension information,
The management module manages the plugin information distributing system resource in Hash table to the internal information, specifically:
Storage resource is distributed to the plugin information in internal information management Hash table;
The management module executes the plug-in initialization function in the dynamic link library file, to carry out to the plugin information Initialization, specifically:
Obtain symbol definition Hash table;The symbol definition Hash table is used to store the function interface of extension;
According to the storage resource distributed, the function interface of extension described by the extension information is added to symbol definition Hash Table.
9. device according to claim 6, which is characterized in that plug-in unit include human-computer interaction interface plug-in unit, numerical control Soft- PLC insert Part, numerical control interpreter plug-in unit and NC Interpolation module plug-in.
10. device according to claim 9, which is characterized in that the human-computer interaction interface plug-in unit includes aobvious for managing The extension point and the extension point for administration page for showing control;The numerical control Soft- PLC plug-in unit includes the expansion for managing instruction catalogue Machine plotting;The numerical control interpreter plug-in unit includes for explaining the extension point for executing code;The NC Interpolation module plug-in includes It is transported for realizing the extension point of feeding control algolithm, for realizing the extension point information of prediction transition algorithm, for realizing geometry Dynamic extends point, for realizing the extension point of channel control algolithm and for realizing the extension point of five axis control algolithms.
CN201811285737.7A 2018-10-31 2018-10-31 A kind of digital control system management method and device based on plug-in unit Pending CN109542043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811285737.7A CN109542043A (en) 2018-10-31 2018-10-31 A kind of digital control system management method and device based on plug-in unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811285737.7A CN109542043A (en) 2018-10-31 2018-10-31 A kind of digital control system management method and device based on plug-in unit

Publications (1)

Publication Number Publication Date
CN109542043A true CN109542043A (en) 2019-03-29

Family

ID=65845628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811285737.7A Pending CN109542043A (en) 2018-10-31 2018-10-31 A kind of digital control system management method and device based on plug-in unit

Country Status (1)

Country Link
CN (1) CN109542043A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321178A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Starting processing method, device, equipment and the storage medium of attached application end
CN113204377A (en) * 2020-01-31 2021-08-03 华为技术有限公司 Method and device for loading dynamic link library
CN114691235A (en) * 2022-03-22 2022-07-01 上海智殷自动化科技有限公司 Method for supporting free data interaction between plug-ins
CN114721736A (en) * 2022-03-07 2022-07-08 华中科技大学 Data management method and system based on soft PLC

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924800A (en) * 2005-09-02 2007-03-07 北京灵图软件技术有限公司 Control-based insert management system and method for secondary development platform
CN101221424A (en) * 2008-01-04 2008-07-16 华南理工大学 Numerical control system code automatic generation method based on field modeling
CN102033743A (en) * 2010-09-02 2011-04-27 西安赛斐软件科技有限公司 System and method for expanding model driving development capability by applying plug-in
CN102156663A (en) * 2011-03-22 2011-08-17 北京书生国际信息技术有限公司 Implementation method and device of plugin
CN102707669A (en) * 2009-11-27 2012-10-03 济南铸造锻压机械研究所有限公司 Method for constructing CAM (computer-aided manufacturing) system for punching for automobile girders
CN102830654A (en) * 2012-09-12 2012-12-19 深圳华中数控有限公司 Open type numerical control system based on Android platform and method for performing secondary development therein
CN104166581A (en) * 2014-02-19 2014-11-26 湖州师范学院 Virtualization method for increment manufacturing device
CN104331024A (en) * 2014-10-16 2015-02-04 大族激光科技产业集团股份有限公司 Automatic control method and open numerical control system based on PC machine
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN105183458A (en) * 2015-08-14 2015-12-23 深圳联友科技有限公司 Software platform development method and apparatus
CN105912339A (en) * 2016-04-15 2016-08-31 华中科技大学 development and integration method and system
CN106371864A (en) * 2016-08-23 2017-02-01 上海创景计算机系统有限公司 Method for quickly deploying plugin architecture
CN106814701A (en) * 2016-12-26 2017-06-09 武汉华中数控股份有限公司 Management and control digital control platform system and its construction method
CN107122216A (en) * 2017-05-19 2017-09-01 北京计算机技术及应用研究所 A kind of embedded real-time operating system dynamic loading method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924800A (en) * 2005-09-02 2007-03-07 北京灵图软件技术有限公司 Control-based insert management system and method for secondary development platform
CN101221424A (en) * 2008-01-04 2008-07-16 华南理工大学 Numerical control system code automatic generation method based on field modeling
CN102707669A (en) * 2009-11-27 2012-10-03 济南铸造锻压机械研究所有限公司 Method for constructing CAM (computer-aided manufacturing) system for punching for automobile girders
CN102033743A (en) * 2010-09-02 2011-04-27 西安赛斐软件科技有限公司 System and method for expanding model driving development capability by applying plug-in
CN102156663A (en) * 2011-03-22 2011-08-17 北京书生国际信息技术有限公司 Implementation method and device of plugin
CN102830654A (en) * 2012-09-12 2012-12-19 深圳华中数控有限公司 Open type numerical control system based on Android platform and method for performing secondary development therein
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN104166581A (en) * 2014-02-19 2014-11-26 湖州师范学院 Virtualization method for increment manufacturing device
CN104331024A (en) * 2014-10-16 2015-02-04 大族激光科技产业集团股份有限公司 Automatic control method and open numerical control system based on PC machine
CN105183458A (en) * 2015-08-14 2015-12-23 深圳联友科技有限公司 Software platform development method and apparatus
CN105912339A (en) * 2016-04-15 2016-08-31 华中科技大学 development and integration method and system
CN106371864A (en) * 2016-08-23 2017-02-01 上海创景计算机系统有限公司 Method for quickly deploying plugin architecture
CN106814701A (en) * 2016-12-26 2017-06-09 武汉华中数控股份有限公司 Management and control digital control platform system and its construction method
CN107122216A (en) * 2017-05-19 2017-09-01 北京计算机技术及应用研究所 A kind of embedded real-time operating system dynamic loading method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
潘松: "Miranda插件框架的研究与应用", 《万方学位论文数据库》 *
邢丹: "插件在Nessus中的实现", 《装备指挥技术学院学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321178A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Starting processing method, device, equipment and the storage medium of attached application end
CN113204377A (en) * 2020-01-31 2021-08-03 华为技术有限公司 Method and device for loading dynamic link library
CN113204377B (en) * 2020-01-31 2022-12-06 华为技术有限公司 Method and device for loading dynamic link library
US11886222B1 (en) 2020-01-31 2024-01-30 Huawei Technologies Co., Ltd. Dynamic link library loading method and apparatus
CN114721736A (en) * 2022-03-07 2022-07-08 华中科技大学 Data management method and system based on soft PLC
CN114721736B (en) * 2022-03-07 2024-02-02 华中科技大学 Data management method and system based on soft PLC
CN114691235A (en) * 2022-03-22 2022-07-01 上海智殷自动化科技有限公司 Method for supporting free data interaction between plug-ins
CN114691235B (en) * 2022-03-22 2024-03-22 上海智殷自动化科技有限公司 Method for supporting free interaction of data between plugins

Similar Documents

Publication Publication Date Title
CN107220064B (en) A kind of digital control system interface configuration development approach
CN109542043A (en) A kind of digital control system management method and device based on plug-in unit
US10222951B2 (en) Modeling system for graphic user interface
JPH10187449A (en) Object-directed programming device, object-oriented programming backup device component generating device, object-oriented program storage medium, program storage medium for object-oriented programming, component storage means, and inter-object network display method
CN104657149A (en) Software framework implementation method of management module of storage system
CN113298503A (en) Government affair-oriented workflow management system and database and table dividing method thereof
CN103327080A (en) Method and device for establishing control system of internet of things
CN105677303A (en) Configuration software picture editing tool design method
CN109032590A (en) A kind of configuration method, device, terminal and the storage medium of visual development environment
CN111857718A (en) List editing method, device, equipment and storage medium
CN103123660A (en) Computer-aided design (CAD) graphical modeling method for software/hardware system
CN110705891A (en) Data processing method based on high-allocable changeability
CN116436936B (en) Data storage system, method, storage medium and electronic equipment
US7706898B2 (en) Use of variables in a number of automation systems
Noble et al. Gadgets: Lazy functional components for graphical user interfaces
CN105335164B (en) A kind of window method for drafting and drawing apparatus based on windows
CN114117645B (en) Ship overall performance forecasting integrated application system
CN111443963A (en) Numerical control system of reconfigurable formula
Adiga et al. Object-oriented software modeling of a flexible manufacturing system
CN109937404A (en) Real Data Exchangs between program module
CN113268884B (en) Asset management shell-based distributed control system management and control method
CN113157268B (en) Equipment state processing system combining flow engine and Internet of things
CN115292169A (en) UI automation test method and system
CN106814696B (en) A kind of digital control system man-machine interface secondary developing platform system and its implementation
CN106293643A (en) The flowing water type product manufacturing equipment software and hardware integration modeling method of model configuration

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329