CN103377070A - Field bus interface abstract method - Google Patents

Field bus interface abstract method Download PDF

Info

Publication number
CN103377070A
CN103377070A CN2012101068801A CN201210106880A CN103377070A CN 103377070 A CN103377070 A CN 103377070A CN 2012101068801 A CN2012101068801 A CN 2012101068801A CN 201210106880 A CN201210106880 A CN 201210106880A CN 103377070 A CN103377070 A CN 103377070A
Authority
CN
China
Prior art keywords
bus
module
interface
field
driving
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.)
Granted
Application number
CN2012101068801A
Other languages
Chinese (zh)
Other versions
CN103377070B (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.)
Shenyang Zhongke CNC Technology Co.,Ltd.
Original Assignee
SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY 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 SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd filed Critical SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd
Priority to CN201210106880.1A priority Critical patent/CN103377070B/en
Publication of CN103377070A publication Critical patent/CN103377070A/en
Application granted granted Critical
Publication of CN103377070B publication Critical patent/CN103377070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a field bus interface abstract method. The field bus interface abstract method includes: a parameter configuration module reads configuration files, and allocates and initializes a length of shared memory; a field bus interface abstract layer module initializes a built-in bus equipment station number-driving function mapping table according to a structural body of the length of the shared memory; an upper numerical control system module calls an interface function inside a unified interface function set of the field bus interface abstract layer module, inquires the interface function in the bus equipment station number-driving function mapping table according to a bus equipment station number and maps the interface function to a corresponding driving interface function in a specific bus driving interface function set; the field bus interface abstract layer module calls the driving interface function and finishes interaction between a bottom bus driving module and the upper numerical control system module. The field bus interface abstract method support multiple bus communication modes; different bus modules can be changed at any time according to needs, modification to software and hardware is not required, and the field bus interface abstract method is simple, convenient and feasible. A field bus is independently packaged, open in interface and convenient for secondary development.

Description

A kind of field-bus interface abstract method
Technical field
The present invention relates to fields of numeric control technique, specifically a kind of interface abstract method of supporting multiple bus module compatibility.
Background technology
Fieldbus has very important status in digital control system: it is to realize the important carrier of communicating by letter between control module and execution module.Digital control system in open type requires numerical control bus to satisfy periodicity, real-time, reliability, security and open requirement.At present, the numerical control bus module can be divided into two kinds of emulation bus module and number bus modules, and different bus modules has again the incompatible different product of a variety of agreements.A common digital control system only provides the interface support to a kind of bus, this a kind of bus module that just must provide this system to support in the time of the actual use of user, and original other bus modules just can't recycle, and obviously this is very irrational.
Existing digital control system at the middle and upper levels module and the man-to-man close-coupled implementation of bus module can not satisfy the ability of supporting simultaneously multiple bus, a kind of effective ways of head it off are to set up one deck bus middle layer on the basis of existing bus module, realization is to the unified abstraction interface of different bus, specify or the mode of self-identifying obtains that current system connects is which kind of bus module by the user, then the relevant data structure of initialization bus communication, call corresponding bus driver, upper layer module is masked the concrete bus module of bottom, a unified user interface only simply is provided.
Summary of the invention
In order to solve multibus compatible problem in the present digital control system, the invention provides a kind of method of supporting the configurable loading of multibus module.The method can realize communicating by letter of same number of units control system and multiple bus (comprising analog-and digital-two large classes), only be simply to revise corresponding parameter by man-machine interface to get final product and the user need to make, strengthened greatly dirigibility and the extensibility of existing digital control system.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
A kind of field-bus interface abstract method is characterized in that may further comprise the steps:
Parameter configuration module reads configuration file, distributes one section shared drive, defines the structure of this section shared drive;
The field-bus interface abstraction layer module defines the structure of its built-in bus apparatus station number-driving function mapping table according to the structure of this section shared drive;
Upper strata digital control system module is called the interface function of unified interface collection of functions inside in the field-bus interface abstraction layer module;
At the scene in the bus interface abstraction layer module, the bus apparatus station number that described interface function provides when calling according to upper strata digital control system module, inquire about bus apparatus station number-driving function mapping table, and this interface function is mapped to the corresponding interface function that drives in the bus driver interface function collection;
The field-bus interface abstraction layer module is called this driving interface function, make the bus module driver operation in bottom bus driver module corresponding to this driving interface function, each bus of finishing bottom bus driver module and upper strata digital control system intermodule alternately.
Described configuration file comprises the configuration information of total bobbin, and by there being the user who revises authority to revise.
Described configuration information comprises axle numbering, axle name, bus apparatus numbering, bus apparatus title.
Described bottom bus driver module comprises a plurality of bus modules, and described bus module is number bus module or emulation bus module.
The present invention has following beneficial effect and advantage:
1. support multiple bus communication mode.Using the digital control system of the inventive method and can change at any time as required different bus modules, is that hardware or software layer all need not to revise.
2. convenient easy-to-use.The digital control system of using the inventive method has user friendly, and the user does not need to understand the realization details of bottom, only needs to revise corresponding configuration parameter by simple man-machine interface and can finish digital control system to identification and the control of new bus and bus apparatus.
Individual packages, interface opening, be convenient to secondary development.This method is mainly by two independently module realizations: parameter initialization module and bus module middleware.Because the bus module middleware is unified to upper strata numerical control program interface, when the user need to add new bus support function, only need to carry out secondary development to these two modules, and upper application software does not need to do any change.
Description of drawings
Fig. 1 is the overall construction drawing of the inventive method;
Fig. 2 is the inventive method multibus configuration flow figure;
Fig. 3 is the field-bus interface abstraction layer module internal core functional diagram of the inventive method.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
The multibus compatible field-bus interface level of abstraction of a kind of realization digital control system method, add a field-bus interface abstraction layer module by the upper strata digital control system intermodule to existing digital control system bottom bus driver module and digital control system, with the coupling of upper strata digital control system module and bottom bus driver module solution, but and then reach the dynamically effect of reprovision of digital control system bottom bus driver module.
The field-bus interface abstraction layer module is to realize the nucleus module of this method, the configuration file that writes according to the user, one of initialization drives the mapping table of interface function from the bus apparatus station number to specific bus, and provides unified interface function according to this table for the user;
Parameter configuration module, auxiliary field-bus interface abstraction layer module reads the information (present embodiment refers to the bus apparatus station number) of user's appointment, by creating communicating by letter of a Sharing Memory Realization and field-bus interface abstraction layer module, the bus interface abstraction layer module starts before the operation at the scene, this module is read in the configuration file that the user finishes writing, each data structure in the initialization shared drive, this module is waited for reading of field-bus interface abstraction layer module after finishing, and then withdraws from;
The unified interface collection of functions, multiple bus module and upper strata digital control system intermodule basic, unified interface function collection of interface function class suggestion commonly used according to bottom bus driver module, which kind of bus module assurance is regardless of current use, to the collection of functions view that upper strata digital control system module remains unchanged, upper strata digital control system module only need be called this unified interface collection of functions can realize operation to the different bus module;
Bus apparatus station number-driving function mapping table, its major function is by the Unified coding to all kinds of bus station numbers, make its implicit bus type information, and pass to unified interface function as parameter, so that this Function Mapping is to the specific bus driving interface function collection of the corresponding bus of this bus apparatus station number institute; Its necessary initialization is finished by parameter configuration module;
Specific bus drives the interface function collection, and this set owner will comprise the driving interface function of all multiple buses that can be connected with this numerical control system interface;
What parameter configuration module was read in is a configuration file, and this document content can be revised and preserve through man-machine interface by the user; Parameter configuration module has read after the configuration file, the communication mechanism (can be structurized shared drive) that defines in use and the field-bus interface abstraction layer module carries out the parameter initialization of field-bus interface abstraction layer module, parameter configuration module withdrawed from after parameter initialization was complete, the field-bus interface abstraction layer module is finished the map bindings with concrete bus module according to the necessary structure of parameter configuration module initialization that communication mechanism (can be structurized shared drive) obtains.
Bottom bus driver module comprises a plurality of bus modules, this bus module can be number bus module or emulation bus module, bus module is connected by industrial bus with the field-bus interface abstraction layer module, bus module comprises the circuit board that links to each other with motor, has the driver of motor in the circuit board.
As shown in Figure 1, be the structural drawing of the inventive method.This figure relates to the field-bus interface abstraction layer module that digital control system upper strata digital control system module, bottom bus driver module and the inventive method newly add.In the digital control system before using the inventive method, upper strata digital control system module is directly called the bus driver module of bottom, and therefore, the employed bus module of same digital control system is fixing can not the change normally, this mode is dumb, poor expandability.As can be seen from Figure 1, adopt the digital control system of the inventive method to support multiple bus, comprise dissimilar number buss and dissimilar emulation buss, specifically can change by revising configuration file as required.
As shown in Figure 2, be the multibus configuration flow of the inventive method.The user obtains the configuration information of total bobbin by man-machine interface, and can use the role with modification authority to revise these configuration informations, and configuration information comprises: axle numbering, axle name, bus apparatus numbering, bus apparatus title etc.These information will be written back in the corresponding configuration file by the task module of man-machine interface lower floor after revising.When system restarts again, the parameter configuration module that starts at first operation in the whole numerical control software will be read this configuration file, and according to the value of parameters in the configuration file, distribute and shared drive of initialization, for the loading of field-bus interface abstraction layer module is prepared.
As shown in Figure 3, be the field-bus interface abstraction layer module internal core functional diagram of the inventive method.After the parameter configuration module operation is finished, information in the configuration file is all being updated in the relevant bus interface abstraction layer module by communication mechanism (present embodiment is as shared drive), adopts the mode of structure to deposit in system's shared drive in the present embodiment and suffered.The field-bus interface abstraction layer module will be according to its built-in bus apparatus station number-driving function mapping table of this structure initialization, when upper strata digital control system module need to be called the bus driver module of bottom, it is actual that what use is the concrete bus apparatus station number that the unified interface function that provides of field-bus interface abstraction layer module and this interface function comprise, this interface function will be searched bus apparatus station number-driving function mapping table to determine to call the driving interface function of which kind of bus according to the bus apparatus station number of reality, finally finishes the mutual of the concrete bus driver module of upper layer module and bottom.

Claims (4)

1. field-bus interface abstract method is characterized in that may further comprise the steps:
Parameter configuration module reads configuration file, distributes one section shared drive, defines the structure of this section shared drive;
The field-bus interface abstraction layer module defines the structure of its built-in bus apparatus station number-driving function mapping table according to the structure of this section shared drive;
Upper strata digital control system module is called the interface function of unified interface collection of functions inside in the field-bus interface abstraction layer module;
At the scene in the bus interface abstraction layer module, the bus apparatus station number that described interface function provides when calling according to upper strata digital control system module, inquire about bus apparatus station number-driving function mapping table, and this interface function is mapped to the corresponding interface function that drives in the specific bus driving interface function collection;
The field-bus interface abstraction layer module is called this driving interface function, makes the bus module driver operation in bottom bus driver module corresponding to this driving interface function, finishes the mutual of bottom bus driver module and upper strata digital control system intermodule.
2. a kind of field-bus interface abstract method according to claim 1 is characterized in that:
Described configuration file comprises the configuration information of total bobbin, and by there being the user who revises authority to revise.
3. a kind of field-bus interface abstract method according to claim 2 is characterized in that:
Described configuration information comprises axle numbering, axle name, bus apparatus numbering, bus apparatus title.
4. a kind of field-bus interface abstract method according to claim 1 is characterized in that:
Described bottom bus driver module comprises a plurality of bus modules, and described bus module is number bus module or emulation bus module.
CN201210106880.1A 2012-04-12 2012-04-12 A kind of field-bus interface abstract method Active CN103377070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210106880.1A CN103377070B (en) 2012-04-12 2012-04-12 A kind of field-bus interface abstract method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210106880.1A CN103377070B (en) 2012-04-12 2012-04-12 A kind of field-bus interface abstract method

Publications (2)

Publication Number Publication Date
CN103377070A true CN103377070A (en) 2013-10-30
CN103377070B CN103377070B (en) 2016-08-31

Family

ID=49462231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210106880.1A Active CN103377070B (en) 2012-04-12 2012-04-12 A kind of field-bus interface abstract method

Country Status (1)

Country Link
CN (1) CN103377070B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577375A (en) * 2013-11-26 2014-02-12 中国科学院声学研究所 Bus control method and device, capable of being compatible with plurality of CAN bus hardware circuits
CN103701649A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Network configuration method
CN105528212A (en) * 2015-12-05 2016-04-27 中国航空工业集团公司洛阳电光设备研究所 Generalization processing method of driving interfaces of interface boards of detector
CN106484386A (en) * 2015-09-02 2017-03-08 中国航空工业第六八研究所 A kind of embedded software method of interface of shared drive
CN106603506A (en) * 2016-11-28 2017-04-26 北京航空航天大学 Data communication method, apparatus and system based on multi-field bus
CN106802635A (en) * 2017-03-08 2017-06-06 北京海普瑞森科技发展有限公司 A kind of control method of contact lenses lathe, device and system
CN111273895A (en) * 2019-11-06 2020-06-12 浙江零跑科技有限公司 Battery management system module development software integration method
CN112859753A (en) * 2021-01-19 2021-05-28 深圳市汇川技术股份有限公司 Secondary development method, device and equipment for numerical control system and readable storage medium
CN113467377A (en) * 2021-07-07 2021-10-01 上海维宏电子科技股份有限公司 System, method, device, processor and storage medium for realizing field bus driver management aiming at CNC software

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059773A (en) * 2007-02-07 2007-10-24 北京航空航天大学 Bus model-based embedded system emulated platform
CN101739383A (en) * 2008-11-19 2010-06-16 北京大学深圳研究生院 Configurable processor architecture and control method thereof
CN101909013A (en) * 2010-08-16 2010-12-08 艾默生网络能源有限公司 Information exchange device capable of dynamic configuration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059773A (en) * 2007-02-07 2007-10-24 北京航空航天大学 Bus model-based embedded system emulated platform
CN101739383A (en) * 2008-11-19 2010-06-16 北京大学深圳研究生院 Configurable processor architecture and control method thereof
CN101909013A (en) * 2010-08-16 2010-12-08 艾默生网络能源有限公司 Information exchange device capable of dynamic configuration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
瞿刚: "《支持异构总线的嵌入式WEB服务器设计与实现》", 3 March 2009, article "《支持异构总线的嵌入式WEB服务器设计与实现》" *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577375B (en) * 2013-11-26 2016-05-04 中国科学院声学研究所 Bus control method and device that can compatible multiple CAN bus hardware circuit
CN103577375A (en) * 2013-11-26 2014-02-12 中国科学院声学研究所 Bus control method and device, capable of being compatible with plurality of CAN bus hardware circuits
CN103701649A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Network configuration method
CN103701649B (en) * 2013-12-31 2017-10-24 曙光云计算集团有限公司 The collocation method of network
CN106484386A (en) * 2015-09-02 2017-03-08 中国航空工业第六八研究所 A kind of embedded software method of interface of shared drive
CN105528212A (en) * 2015-12-05 2016-04-27 中国航空工业集团公司洛阳电光设备研究所 Generalization processing method of driving interfaces of interface boards of detector
CN106603506B (en) * 2016-11-28 2020-06-05 北京航空航天大学 Data communication method, device and system based on multi-field bus
CN106603506A (en) * 2016-11-28 2017-04-26 北京航空航天大学 Data communication method, apparatus and system based on multi-field bus
CN106802635A (en) * 2017-03-08 2017-06-06 北京海普瑞森科技发展有限公司 A kind of control method of contact lenses lathe, device and system
CN111273895A (en) * 2019-11-06 2020-06-12 浙江零跑科技有限公司 Battery management system module development software integration method
CN111273895B (en) * 2019-11-06 2023-08-22 浙江零跑科技股份有限公司 Battery management system module development software integration method
CN112859753A (en) * 2021-01-19 2021-05-28 深圳市汇川技术股份有限公司 Secondary development method, device and equipment for numerical control system and readable storage medium
CN112859753B (en) * 2021-01-19 2022-03-25 深圳市汇川技术股份有限公司 Secondary development method, device and equipment for numerical control system and readable storage medium
CN113467377A (en) * 2021-07-07 2021-10-01 上海维宏电子科技股份有限公司 System, method, device, processor and storage medium for realizing field bus driver management aiming at CNC software

Also Published As

Publication number Publication date
CN103377070B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN103377070A (en) Field bus interface abstract method
CN101065740B (en) USB On-The-Go controller
CN103150279B (en) Method allowing host and baseboard management controller to share device
KR101057452B1 (en) Smart card embedded operation system and work processing method
CN101938164B (en) Power equipment control method, device and related system thereof
CN101493784B (en) Reflecting internal memory net dynamic internal memory management method based on distribution simulation
CN103345407B (en) Control circuit, connection controller, connection control method and mainboard
CN103176802A (en) Method of achieving separation of user interface UI of system and control library through control pool
CN108600017A (en) Multi-protocols serial ports expansion method
CN101673358A (en) Method and device for managing authority in workflow component based on authority component
CN110362348A (en) A kind of method, apparatus and electronic equipment of queue access data
CN104978174A (en) Method and system for switching network cards in plurality of operating systems
CN110535759A (en) A kind of communication gate, correlation technique and relevant apparatus
CN108196929A (en) A kind of intelligence loading system, method, storage medium and equipment
CN107844321A (en) A kind of MCU processing systems
CN103529816B (en) A kind of upper computer control system based on Qt
CN105404591B (en) Processor system and its memory control methods
CN102013993B (en) Physical topology use management method and system
CN106569957A (en) Memory allocation method and device
CN201570060U (en) Flexible picking system
CN108197043B (en) Control system and method for peripheral hardware of intelligent vehicle machine
CN104409090A (en) Usb interface conversion module
CN110442364A (en) Processing method, processing system, display device and its electronic equipment of register
CN110825667B (en) Design method and structure of low-speed IO device controller
CN103162973A (en) Single-chip multi-thread automobile diagnosis system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 110168 16-2

Applicant after: SHENYANG GAOJING NUMERICAL CONTROL INTELLIGENT TECHNOLOGY CO., LTD.

Address before: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 16 110168

Applicant before: Shenyang High-End Computer Numerical Control Technology Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 110168 16-2

Patentee after: Shenyang Zhongke CNC Technology Co.,Ltd.

Address before: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 110168 16-2

Patentee before: SHENYANG GOLDING NC & INTELLIGENCE TECH. Co.,Ltd.

CP01 Change in the name or title of a patent holder