WO2017177695A1 - Method and system for development and integration of application in numerical control system - Google Patents

Method and system for development and integration of application in numerical control system Download PDF

Info

Publication number
WO2017177695A1
WO2017177695A1 PCT/CN2016/108537 CN2016108537W WO2017177695A1 WO 2017177695 A1 WO2017177695 A1 WO 2017177695A1 CN 2016108537 W CN2016108537 W CN 2016108537W WO 2017177695 A1 WO2017177695 A1 WO 2017177695A1
Authority
WO
WIPO (PCT)
Prior art keywords
numerical control
application
control system
control function
integration
Prior art date
Application number
PCT/CN2016/108537
Other languages
French (fr)
Chinese (zh)
Inventor
杨建中
惠恩明
马驰飞
王平
陆永亮
李纪柳
Original Assignee
华中科技大学
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 华中科技大学 filed Critical 华中科技大学
Publication of WO2017177695A1 publication Critical patent/WO2017177695A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Definitions

  • the invention belongs to the field of numerical control technology, and particularly relates to a development and integration method and system for application in a numerical control system.
  • the CNC system needs to integrate the corresponding function modules in the CNC system.
  • the manufacturer integrates a series of functional modules at the factory, and usually integrates the corresponding functional modules into the internal control software of the numerical control system, such as interpolation operation, decoding processing, etc., which can satisfy certain Functional requirements.
  • the numerical control system needs to consume a large amount of system resources, resulting in overloading of the numerical control system and performance degradation;
  • the CNC system works normally. It needs to use high-performance multi-CPU structure and large-scale integrated circuit to upgrade the CNC system hardware. This leads to more complicated CNC system and servo drive system platform, and the design and manufacturing cost, upgrade and use cost increase sharply, and the reliability decreases. .
  • too many applications or functions integrated in the numerical control system may cause the numerical control system to be too bloated and complicated.
  • the system operation or control efficiency is lowered, on the other hand, the system may be unstable, and in severe cases, the numerical control system may be affected. Safety.
  • Patent document CN104298175B discloses a numerical control system and method based on virtualization technology, wherein the numerical control system comprises a local numerical control device and a remote server, which is localized.
  • the numerical control device network interconnection is used for processing non-real-time tasks, including G code programming, decoding, processing simulation, and at the same time, an added value function can be realized; wherein the server end and the numerical control device are installed on the numerical control device
  • the client implements interconnection, and the client runs on the numerical control device system, and realizes virtual operation of the server on the human interaction device of the numerical control device by using virtual technology, thereby realizing operation control of the server on the local numerical control device, and then both Complete coordination and coordination to achieve CNC machining control.
  • the solution can effectively reduce the impact on the hardware structure and resource consumption of the numerical control system, and at the same time, can reduce the complexity and bloat of the numerical control system to a certain extent, and avoid system operation or control efficiency reduction.
  • the above-mentioned schemes still have secondary developments that rely heavily on the corresponding types of numerical control systems, which are difficult to develop, and their bloating and mitigating effects on the numerical control system are generally in general, which will still lead to the continuous expansion and bloating of the numerical control system, affecting system stability and safety. Sex.
  • the present invention provides a development and integration method and system for an application in a numerical control system, which enables application development in a numerical control system through improved application integration means and the advantages of cloud computing.
  • Simple and reliable integration not only can be applied to a variety of different types of CNC systems, but the CNC system is simple and reliable while ensuring real-time control and non-real-time large-scale data processing.
  • a method for developing and integrating an application in a numerical control system which directly develops and integrates each numerical control processing function module as an independent application in a human-machine interaction interface (HMI).
  • HMI human-machine interaction interface
  • the numerical control function module calls the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function, and the corresponding numerical control function passes the user The interface is fed back to the user;
  • the user interface for forming an application in the HMI is specifically: the HMI receives a message sent by the user through its message response function, and then opens a user interface of the corresponding application, thereby forming a corresponding application in the HMI.
  • User Interface specifically: the HMI receives a message sent by the user through its message response function, and then opens a user interface of the corresponding application, thereby forming a corresponding application in the HMI.
  • the profile parameters include interface size, shape, color, and location.
  • the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding numerical control function, and the numerical control function module opens the local application through the installation path to implement a corresponding numerical control.
  • the numerical control system is a numerical control system having a cloud server
  • the numerical control function module is a module including a cloud server address
  • an application for implementing a corresponding numerical control function is issued on the cloud server
  • the numerical control The function module invokes the application on the cloud server through the address, thereby implementing the corresponding numerical control function.
  • the application published on the cloud server can be published to the cloud server through a Web service.
  • the invention also discloses a development and integration system for an application in a numerical control system, which realizes the development and integration of each numerical control processing function module as an independent application directly in a human-machine interaction interface (HMI), thereby realizing the application in the numerical control system.
  • HMI human-machine interaction interface
  • a user interface development integration module for forming an application user interface in an HMI, which is implemented by defining a shape parameter of an application in a QML script, or defining a shape parameter in a dynamic library or calling a graphics library;
  • the numerical control function module is realized by writing a corresponding numerical control function module in the QML script or the dynamic library, and the numerical control function module is used for calling the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function. And feedback to the user through the user interface.
  • the user interface for forming an application in the HMI is specifically that the HMI receives a message sent by the user through its message response function, thereby opening a user interface of the corresponding application, thereby forming a user interface in the HMI.
  • the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding numerical control function, and the numerical control function module opens the local application through the installation path to implement a corresponding CNC function.
  • the numerical control system is a numerical control system having a cloud server
  • the numerical control function module is a module including a cloud server address
  • the cloud server is provided with an application for implementing a corresponding numerical control function
  • the numerical control The function module invokes the application on the cloud server through the address, thereby implementing the corresponding numerical control function.
  • the integration is developed in the form of a QML script or a dynamic library, and the interface of the application and the function development are simple, so that the secondary development of the numerical control system is good in generality, and the development integration difficulty is significantly reduced.
  • the development integration method of the invention can enable the user to easily and easily integrate the secondary development of the numerical control system and the intelligent application, and at the same time, by calling the cloud application, using the cloud resources to realize the numerical control system function, and avoiding the intelligent upgrade of the numerical control system software.
  • the transition consumes CNC hardware resources, the performance of the CNC system is degraded, or the hardware upgrade of the CNC system software forces the hardware upgrade to cause a sharp increase in cost and reliability, ensuring that the CNC system is simple, reliable, and easy to upgrade.
  • the numerical control function module can call the cloud application, so that the cloud application and the cloud resource fully serve the numerical control system, and the local hardware can complete the functions that the traditional numerical control system cannot complete without upgrading, and the intelligentization is cancelled.
  • the user only needs to develop the intelligent application of the numerical control system, without considering whether the hardware of the numerical control system will be overloaded, the performance is degraded, or even the function cannot be completed, and the complex application is published in the WebService technology.
  • the cloud whenever and wherever users need to know the input and output of the cloud function interface and the site, the cloud application can be called through the network.
  • FIG. 1 is a schematic diagram of an application development and integration method of the present invention
  • FIG. 2 is a schematic diagram of an application of the application development and integration method of the present invention applied to a cloud server with a cloud server when the numerical control function module calls an application on the cloud server.
  • the method proposed by the present invention allows the cloud to be abundance.
  • the rich hardware resources serve the numerical control system, and the restrictions on the secondary development of the user's hardware resources are eliminated.
  • the application development and integration method of the numerical control system proposed by the present invention directly develops and integrates each numerical control processing function module as an independent application in a human-computer interaction interface (HMI).
  • HMI human-computer interaction interface
  • the numerical control function module calls the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function, and the corresponding numerical control function passes the user The interface is fed back to the user;
  • the QML script or the dynamic library can be integrated, or the application can be directly integrated through the QML script.
  • all local applications are integrated in an HMI (Human Machine Interface), and the user invokes various applications through the HMI.
  • HMI Human Machine Interface
  • the application can be conveniently developed; when the application requirements are complex, a plurality of third-party libraries need to be called.
  • the QML script cannot be implemented, the application can be packaged into a dynamic library and integrated into the HMI. If the mature software can implement the required functions, the local application can be directly integrated by using the QML script without having to perform the second time. Development, which greatly reduces the workload of secondary development. If the local application needs the running status data of the CNC system, it can call the CNC system interface in the QML script and input the data into the local application.
  • the specific process of integrating the local application and the cloud application into the HMI of the Huazhong 8-type numerical control system and its startup and calling modes are elaborated.
  • the application is integrated in the form of a QML script or a dynamic library, and the interface design and function of the application integration in the HMI is realized by calling the NCK (Numerical Control System Interface Function Kernel) corresponding to the Huazhong 8-type numerical control system.
  • NCK Numerical Control System Interface Function Kernel
  • the schematic diagram of the application development and integration method of the present invention is shown in the figure.
  • the schematic diagram of the numerical control function module calling the application on the cloud server is shown in FIG. 2 .
  • the QML script or dynamic library can define the shape parameters of the local application user interface, the message response function, and the numerical control function module that realizes the application requirements.
  • the NCK in this embodiment is for the CNC system interface corresponding to the Huazhong 8-type numerical control system. If it is another numerical control system, the corresponding numerical control system interface can also be used. Generally speaking, the numerical control system is connected.
  • the interface encapsulates the interface function of the axis name, the axis type, the channel number corresponding to the logic axis, the axis current, the axis error, the parameter data and the like, and is used to obtain the running state data of the numerical control system.
  • QML scripts can be written in Qt Quick, and dynamic libraries can be written in Qt, such as complex local applications for interface design and functions, integrated into HMI using dynamic libraries, and local applications with simple interface design and single function, using QML scripts. Integrated into the HMI.
  • the QML script and the message response function in the dynamic library capture the message sent by the user, generate a local application user interface according to the shape parameter, and the QML script or the dynamic library calls the numerical control system interface to access the running state data of the numerical control system.
  • the numerical control function module that realizes the numerical control function is called to complete the numerical control function of the local application.
  • the application development and integration are directly performed in the form of a QML script.
  • the embodiment includes defining a shape parameter of the interface in the QML script, writing and calling the numerical control function module, and calling the NCK to obtain the running state data of the numerical control system as
  • the input of the numerical control function module can complete the corresponding functions, and the application can be conveniently developed.
  • directly developing and integrating a main machining interface for displaying the position of each coordinate system during machining of the machine, the display of the machining program, and the main parameters and state of the current machine tool processing preferably can be used as an HMI startup interface, and the specific implementation manner can be as follows:
  • the QML script defines the shape of the top status bar, bottom menu, right menu, position, color, background image parameters and text box of the main processing interface.
  • the nested definition can be switched to Buttons on the tool management interface, buttons to switch to system parameters PLC, etc.
  • the interface of the NCK of the Huazhong 8 type is called to access machine coordinates, workpiece coordinates, residual feed, load current, machine tool feedrate, machine actual feedrate, spindle actual feedrate, spindle command feedrate, etc.
  • the corresponding main machining interface chart is transmitted and displayed.
  • the data in the text box can also be updated periodically by calling a timer in the local QML script.
  • the message response function in the QML script responds to the message of the user switching interface.
  • the application requirements are complex, and a third-party library needs to be called.
  • the numerical control function module is written and called, the data acquired by the NCK is processed, the corresponding function is completed, or the third-party library is called, and the processing is performed by the NCK.
  • the acquired data complete the corresponding functions, and then package the application into a dynamic library, you can easily develop and integrate the application.
  • the machine collision avoidance software can be developed and integrated, and the specific implementation manner is as follows:
  • the machine anti-collision software is developed in a dynamic library form and integrated in the HMI.
  • the OpenGL is used to write a three-dimensional graphic display interface.
  • the open source collision detection library coldet checks whether the image has a collision.
  • the shape parameter of the three-dimensional graphic display area is defined in the dynamic library, and the definition is called at the same time.
  • the NCK interface access tool coordinates, the actual feedrate of the machine, the workpiece coordinate, and the actual feedrate of the workpiece are sent to the 3D graphic display interface, which dynamically displays the relative motion of the workpiece and the tool, and checks whether the tool and the workpiece collide in real time through coldet.
  • the local application can be directly integrated by using the QML script, which is convenient for the user to call any local application at any time, and facilitate centralized management of the local application, thereby greatly reducing the workload of the user's secondary development.
  • the local application is integrated into the intelligent application center interface.
  • the specific implementation process of the intelligent application center interface is as follows: the intelligent application center interface is developed and integrated in the form of QML script, and the QML script defines all the local parameters such as process parameter optimization software.
  • the shape parameter of the application, the installation path of the local application is given, and the message response function of the local application is defined.
  • the QML script is loaded, after the user triggers the message response function through the keyboard or the mouse, the message response function is installed according to the local application. Open the local app.
  • the numerical control system in order to ensure that the numerical control system can not only fulfill the non-real-time large-scale data processing requirements of the user, but also avoid the problem of excessive cost or stability degradation caused by upgrading the numerical control system, the numerical control system cannot be completed or may cause the numerical control system to exceed
  • the application of the load work is put into the cloud virtual server, and the cloud application is published on the cloud server as a site through the WebService technology, and the local application can access the cloud application by accessing the site.
  • the numerical control system in this embodiment is implemented on the basis of the cloud numerical control architecture, which relies on the numerical control system and the cloud.
  • the numerical control system includes a local numerical control device and a cloud server, wherein the local numerical control device generally includes local hardware and a local functional module mounted thereon, such as a main processing interface, Tool management, etc., are generally real-time control functions and / or local hardware resources to meet the application's requirements for resource requirements.
  • the local function module is packaged as a separate application and installed on the hardware of the local numerical control device, and integrated through the HMI for ease of use, which can be called a local application, that is, the local application is developed on the local hardware.
  • a collection of intelligent applications is packaged as a separate application and installed on the hardware of the local numerical control device, and integrated through the HMI for ease of use, which can be called a local application, that is, the local application is developed on the local hardware.
  • the cloud includes cloud hardware and cloud function modules running on it, such as a machine learning library, etc., generally non-real-time control functions and/or functional modules that need to process large-scale data and local hardware resources cannot meet application requirements for resources.
  • the corresponding functional module is packaged as an application, and as a set of intelligent applications developed on the cloud hardware, it can be called a cloud application.
  • the local numerical control device and the cloud server communicate in real time through the network.
  • the application On the cloud virtual machine, the application is published on the site as an interface function through the WebService technology.
  • the local application can access the cloud application by accessing the site through the network. After the cloud application obtains the cloud hardware resource to complete the application, the cloud application sends the result to the local network. application.
  • the process parameter optimization software in order to optimize the process parameters, the process parameter optimization software is developed, and the implementation mechanism is as follows:
  • the traditional CNC system is basically helpless, even if the amount of data is as small as hundreds of megabytes, for a single CPU CNC system Still need to consume its large resources, resulting in CNC system card machine, performance degradation, upgrading the CNC system hardware resources can still meet the hardware requirements of process parameter optimization, but will bring design and manufacturing costs, upgrade and use costs increased dramatically, reliability The problem of falling.
  • the optimization algorithm commonly used in the process parameters is encapsulated into the cloud site through the WebService technology, and the local application needs for the local hardware resources can be transferred to the cloud application for the cloud hardware resources, thereby making the local hardware easy. Complete various tasks.
  • the process parameters optimization software allows the cloud application to fully serve the numerical control system as follows:
  • Step1 Call the NCK to obtain process parameter data, such as feed rate;
  • Step2 use the network to transmit the operating state data of the numerical control system required by the process parameters to the cloud server that releases the machine learning library, and call the machine learning library to complete the process parameter optimization;
  • Step3 The server returns the result to the process parameter optimization software through the network to optimize the process parameters.
  • the local application invokes the cloud application, so that the cloud application and the cloud resource are fully used as the numerical control system.
  • the local hardware can complete the functions that the traditional CNC system can't complete without upgrading, and the strict requirements of the intelligent system for the hardware resources of the CNC system are eliminated.
  • the user only needs to develop the intelligent application of the CNC system, no need to consider whether the CNC system hardware will load. Excessively heavy, performance is degraded, and even functions cannot be completed.
  • WebService technology is used to publish complex applications on the cloud server. Whenever and wherever, users only need to know the input and output of the cloud application and the site address, and then call the cloud through the network. application.
  • the data access interface is encapsulated in the interface of the numerical control system, and the QML script, the dynamic library and the local application are used, and the user only needs to define the shape parameters of the user interface, and write the numerical control function module for realizing the application requirement as needed, which way is desired Open the app and define the corresponding message response function to develop the local app quickly and easily.
  • WebService has cross-language features, users can use C++, JAVA, C# and other languages to develop cloud applications, which reduces the development difficulty of cloud applications. After simple training, users understand QML scripts, dynamic libraries, CNC system interfaces, and cloud applications. The secondary development of the numerical control system can be carried out, which greatly reduces the viscosity of the developer and the numerical control system.
  • the local application is integrated into the HMI through QML scripts, dynamic libraries, and local applications, so that users can call all local applications and cloud applications through a local application, which is friendly and convenient to use.

Abstract

A method for the development and the integration of an application in a numerical control system, comprising: defining layout parameters of an application in a QML script or defining layout parameters or invoking a graphics library in a dynamic library, so as to form a user interface of the application in an HMI; writing a numerical control functional module corresponding to the application in the QML script or dynamic library, the numerical control functional module invoking an interface of a numerical control system to obtain running state data of the numerical control system for processing, thereby implementing a corresponding numerical control function which is fed back to a user by means of the user interface. By means of the method, the development and the integration of an application in a numerical control system can be implemented. The method is not only suitable for different types of numerical control systems, but can also ensure that the numerical control systems become simple and reliable while ensuring that the real-time control and non-real-time large-scale data processing can be completed.

Description

一种数控系统中应用的开发与集成方法及系统Development and integration method and system for application in numerical control system 【技术领域】[Technical Field]
本发明属于数控技术领域,具体涉及一种数控系统中应用的开发与集成方法及系统。The invention belongs to the field of numerical control technology, and particularly relates to a development and integration method and system for application in a numerical control system.
【背景技术】【Background technique】
数控系统为完成数控加工及其他功能,需要在数控系统中集成相应的功能模块。一般来说目前的数控系统中,制造商在出厂时集成一系列功能模块,通常都是将相应的功能模块集成在数控系统内部控制软件中,例如插补运算、译码处理等,可以满足一定的功能需求。In order to complete the CNC machining and other functions, the CNC system needs to integrate the corresponding function modules in the CNC system. Generally speaking, in the current numerical control system, the manufacturer integrates a series of functional modules at the factory, and usually integrates the corresponding functional modules into the internal control software of the numerical control system, such as interpolation operation, decoding processing, etc., which can satisfy certain Functional requirements.
但是,随着智能制造需求的发展,以及用户个性化的需求,需要数控系统智能朝着多元化发展,要求数控系统具有越来越多的附加功能,例如工艺参数优化、G代码拟合与优化等,为了适应上述需求,数控系统制造商在其中设置了相应的接口,用户可以在其基础之上进行二次开发,以便集成于数控系统中。However, with the development of intelligent manufacturing requirements and the individualized needs of users, it is necessary for the CNC system to move towards diversification, requiring more and more additional functions of the CNC system, such as process parameter optimization, G code fitting and optimization. In order to meet the above requirements, the CNC system manufacturer sets the corresponding interface in it, and the user can carry out secondary development on the basis of it for integration in the numerical control system.
但是,当前数控系统开发仍然是数控厂商独立的商业行为,严格的商业保密行为仍阻碍数控系统二次开发的进一步活跃,此外,即使数控系统厂商提供丰富的数控系统二次开发接口,开发人员与数控系统的粘度仍很高,开发人员需经过专业培训,了解相应数控系统各模块的开发模式,才能完成特定的数控系统的二次开发。However, the current CNC system development is still an independent business behavior of CNC manufacturers. Strict commercial secrecy behavior still hinders the further development of the secondary development of CNC systems. In addition, even if CNC system manufacturers provide a rich secondary development interface for CNC systems, developers and The viscosity of the CNC system is still very high. Developers need to undergo professional training to understand the development mode of each module of the corresponding CNC system in order to complete the secondary development of a specific CNC system.
另外,即使用户可方便的开发数控系统智能化应用,完成实时性控制和非实时性大规模数据处理请求时,使得数控系统需消耗大量系统资源,导致数控系统负载过重,性能下降;为保证数控系统正常工作,需使用高性能多CPU结构、大规模集成电路升级数控系统硬件,这又导致数控系统、伺服驱动系统平台更加复杂,设计和制造成本、升级和使用成本急剧增加,可靠性下降。特别是,数控系统中集成的应用或者功能太多,会导致数控系统过于臃肿和复杂,一方面使得系统运行或控制效率降低,另一方面可能会使得系统不稳定,严重时会影响数控系统的安全。In addition, even if the user can conveniently develop the intelligent application of the numerical control system and complete the real-time control and non-real-time large-scale data processing request, the numerical control system needs to consume a large amount of system resources, resulting in overloading of the numerical control system and performance degradation; The CNC system works normally. It needs to use high-performance multi-CPU structure and large-scale integrated circuit to upgrade the CNC system hardware. This leads to more complicated CNC system and servo drive system platform, and the design and manufacturing cost, upgrade and use cost increase sharply, and the reliability decreases. . In particular, too many applications or functions integrated in the numerical control system may cause the numerical control system to be too bloated and complicated. On the one hand, the system operation or control efficiency is lowered, on the other hand, the system may be unstable, and in severe cases, the numerical control system may be affected. Safety.
专利文献CN104298175B公开了一种基于虚拟化技术的数控系统及方法,其中,数控系统包括设置在本地的数控装置以及设置在远程的服务端,其与本地的 数控装置网络互连,用于处理非实时性任务,包括G代码编程、译码、加工仿真,同时可实现加值功能;其中,所述服务端与数控装置通过安装在所述数控装置上的客户端实现互连,该客户端运行在数控装置系统上,其通过利用虚拟技术在数控装置的人交互设备上对服务器进行虚拟操作,实现在本地数控装置上对服务端的操作控制,进而两者完成协调配合实现数控加工控制。Patent document CN104298175B discloses a numerical control system and method based on virtualization technology, wherein the numerical control system comprises a local numerical control device and a remote server, which is localized. The numerical control device network interconnection is used for processing non-real-time tasks, including G code programming, decoding, processing simulation, and at the same time, an added value function can be realized; wherein the server end and the numerical control device are installed on the numerical control device The client implements interconnection, and the client runs on the numerical control device system, and realizes virtual operation of the server on the human interaction device of the numerical control device by using virtual technology, thereby realizing operation control of the server on the local numerical control device, and then both Complete coordination and coordination to achieve CNC machining control.
该方案通过采用远程服务器结合虚拟技术,可以有效减轻对数控系统硬件结构和资源消耗的影响,同时在一定程度上能够减轻数控系统的复杂和臃肿,避免系统运行或控制效率降低。但是上述方案仍然会存在二次开发严重依赖相应的数控系统类型,开发难度大,而且其对数控系统的臃肿减轻效果一般,本质上依然会导致数控系统不断扩展和臃肿,影响系统稳定性和安全性。By adopting a remote server combined with virtual technology, the solution can effectively reduce the impact on the hardware structure and resource consumption of the numerical control system, and at the same time, can reduce the complexity and bloat of the numerical control system to a certain extent, and avoid system operation or control efficiency reduction. However, the above-mentioned schemes still have secondary developments that rely heavily on the corresponding types of numerical control systems, which are difficult to develop, and their bloating and mitigating effects on the numerical control system are generally in general, which will still lead to the continuous expansion and bloating of the numerical control system, affecting system stability and safety. Sex.
【发明内容】[Summary of the Invention]
针对现有技术的以上缺陷或改进需求,本发明提供了一种数控系统中应用的开发与集成方法及系统,其通过改进的应用集成手段并结合云计算的优势,使得数控系统中应用的开发和集成简单可靠,不但能够适用于各种不同类型的数控系统,而且数控系统在保证能够完成实时性控制和非实时性大规模数据处理的同时简洁可靠。In view of the above defects or improvement requirements of the prior art, the present invention provides a development and integration method and system for an application in a numerical control system, which enables application development in a numerical control system through improved application integration means and the advantages of cloud computing. Simple and reliable integration, not only can be applied to a variety of different types of CNC systems, but the CNC system is simple and reliable while ensuring real-time control and non-real-time large-scale data processing.
为实现上述目的,按照本发明的一个方面,提供一种数控系统中应用的开发与集成方法,其通过在人机交互界面(HMI)中直接进行作为独立应用的各数控加工功能模块的开发集成,从而实现数控系统中应用的方便集成,具体包括:In order to achieve the above object, according to an aspect of the present invention, a method for developing and integrating an application in a numerical control system is provided, which directly develops and integrates each numerical control processing function module as an independent application in a human-machine interaction interface (HMI). To achieve convenient integration of applications in the CNC system, including:
在QML脚本中定义应用的外形参数、或在动态库中定义外形参数或调用图形库,以在HMI中形成应用的用户界面;Defining the shape parameters of the application in the QML script, or defining the shape parameters in the dynamic library or calling the graphics library to form the user interface of the application in the HMI;
在QML脚本或动态库中编写应用对应的数控功能模块,所述数控功能模块调用数控系统接口获取数控系统的运行状态数据进行处理,从而实现相应的数控功能,同时相应的数控功能通过所述用户界面反馈给用户;Writing a corresponding numerical control function module in the QML script or the dynamic library, the numerical control function module calls the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function, and the corresponding numerical control function passes the user The interface is fed back to the user;
通过上述方式,即可实现数控系统中应用的开发集成。Through the above methods, the development and integration of applications in the numerical control system can be realized.
作为本发明的进一步优选,所述在HMI中形成应用的用户界面具体为:HMI通过其消息响应函数接收用户发送的消息,进而打开对应的应用的用户界面,从而在HMI中形成对应的应用的用户界面。As a further preferred embodiment of the present invention, the user interface for forming an application in the HMI is specifically: the HMI receives a message sent by the user through its message response function, and then opens a user interface of the corresponding application, thereby forming a corresponding application in the HMI. User Interface.
作为本发明的进一步优选,所述外形参数包括界面尺寸、形状、颜色和位置。 As a further preferred embodiment of the invention, the profile parameters include interface size, shape, color, and location.
作为本发明的进一步优选,所述数控功能模块为包括有本地应用安装路径的模块,该本地应用用于实现相应的数控功能,数控功能模块通过该安装路径打开所述本地应用进而实现相应的数控功能。As a further preferred embodiment of the present invention, the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding numerical control function, and the numerical control function module opens the local application through the installation path to implement a corresponding numerical control. Features.
作为本发明的进一步优选,所述数控系统为具有云端服务器的数控系统,所述数控功能模块为包括云端服务器地址的模块,所述云端服务器上发布有用于实现相应数控功能的应用,所述数控功能模块通过该地址调用所述云端服务器上的应用,进而实现相应的数控功能。As a further preferred embodiment of the present invention, the numerical control system is a numerical control system having a cloud server, the numerical control function module is a module including a cloud server address, and an application for implementing a corresponding numerical control function is issued on the cloud server, the numerical control The function module invokes the application on the cloud server through the address, thereby implementing the corresponding numerical control function.
作为本发明的进一步优选,所述云端服务器上发布的应用可通过Webservice发布至所述云端服务器上。As a further preferred embodiment of the present invention, the application published on the cloud server can be published to the cloud server through a Web service.
本发明还公开了一种数控系统中应用的开发与集成系统,其通过在人机交互界面(HMI)中直接进行作为独立应用的各数控加工功能模块的开发集成,从而实现数控系统中应用的方便集成,具体包括:The invention also discloses a development and integration system for an application in a numerical control system, which realizes the development and integration of each numerical control processing function module as an independent application directly in a human-machine interaction interface (HMI), thereby realizing the application in the numerical control system. Easy to integrate, including:
用户界面开发集成模块,用于在HMI中形成应用的用户界面,其通过在QML脚本中定义应用的外形参数、或在动态库中定义外形参数或调用图形库实现;A user interface development integration module for forming an application user interface in an HMI, which is implemented by defining a shape parameter of an application in a QML script, or defining a shape parameter in a dynamic library or calling a graphics library;
以及as well as
数控功能模块,其通过在QML脚本或动态库中编写应用对应的数控功能模块实现,所述数控功能模块用于调用数控系统接口获取数控系统的运行状态数据以进行处理,从而实现相应的数控功能,并通过所述用户界面反馈给用户。The numerical control function module is realized by writing a corresponding numerical control function module in the QML script or the dynamic library, and the numerical control function module is used for calling the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function. And feedback to the user through the user interface.
作为本发明的进一步优选,所述在HMI中形成应用的用户界面具体为:HMI通过其消息响应函数接收用户发送的消息,进而打开对应的应用的用户界面,从而在HMI中形成用户界面。As a further preferred embodiment of the present invention, the user interface for forming an application in the HMI is specifically that the HMI receives a message sent by the user through its message response function, thereby opening a user interface of the corresponding application, thereby forming a user interface in the HMI.
作为本发明的进一步优选,所述数控功能模块为包括有本地应用安装路径的模块,该本地应用用于实现相应的数控功能,该数控功能模块通过该安装路径打开所述本地应用进而实现相应的数控功能。As a further preferred embodiment of the present invention, the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding numerical control function, and the numerical control function module opens the local application through the installation path to implement a corresponding CNC function.
作为本发明的进一步优选,所述数控系统为具有云端服务器的数控系统,所述数控功能模块为包括云端服务器地址的模块,所述云端服务器上设置有用于实现相应数控功能的应用,所述数控功能模块通过该地址调用所述云端服务器上的应用,进而实现相应的数控功能。As a further preferred embodiment of the present invention, the numerical control system is a numerical control system having a cloud server, the numerical control function module is a module including a cloud server address, and the cloud server is provided with an application for implementing a corresponding numerical control function, the numerical control The function module invokes the application on the cloud server through the address, thereby implementing the corresponding numerical control function.
总体而言,通过本发明所构思的以上技术方案与现有技术相比,具有以下有 益效果:In general, the above technical solutions conceived by the present invention have the following advantages compared with the prior art. Benefit effect:
(1)本发明的开发集成方法中,以QML脚本或动态库形式开发集成,应用的界面以及功能开发简单,使得数控系统二次开发的通用性好,显著降低开发集成难度。(1) In the development integration method of the present invention, the integration is developed in the form of a QML script or a dynamic library, and the interface of the application and the function development are simple, so that the secondary development of the numerical control system is good in generality, and the development integration difficulty is significantly reduced.
(2)本发明的开发集成方法可以使用户可简单轻松地进行数控系统二次开发和智能化应用的集成,同时通过调用云端应用,使用云端资源来实现数控系统功能,避免数控系统软件智能升级时过渡消耗数控硬件资源,导致数控系统性能下降,或数控系统软件智能升级时迫使硬件升级造成成本急剧上升、可靠性下降,保证数控系统简洁、可靠,轻松升级。(2) The development integration method of the invention can enable the user to easily and easily integrate the secondary development of the numerical control system and the intelligent application, and at the same time, by calling the cloud application, using the cloud resources to realize the numerical control system function, and avoiding the intelligent upgrade of the numerical control system software. When the transition consumes CNC hardware resources, the performance of the CNC system is degraded, or the hardware upgrade of the CNC system software forces the hardware upgrade to cause a sharp increase in cost and reliability, ensuring that the CNC system is simple, reliable, and easy to upgrade.
(3)本发明的开发集成方法中,可以充分利用成熟的功能模块或应用,只需通过将其安装路径或者地址通过QML脚本或动态库进行封装,即可进行集成。(3) In the development integration method of the present invention, mature functional modules or applications can be fully utilized, and integration can be performed only by encapsulating the installation path or address through a QML script or a dynamic library.
(4)本发明的开发集成方法中,数控功能模块可调用云端应用,让云端应用与云端资源充分为数控系统服务,本地硬件无需升级即可完成传统数控系统无法完成的功能,解除了智能化应用对数控系统硬件资源的严苛要求,用户只需开发数控系统智能化应用,无需考虑数控系统硬件是否会负荷过重,性能下降,甚至无法完成功能,通过WebService技术将功能复杂的应用发布在云端,无论何时何地,用户只需知道云端函数接口的输入输出及站点,即可通过网络调用云端应用。(4) In the development integration method of the present invention, the numerical control function module can call the cloud application, so that the cloud application and the cloud resource fully serve the numerical control system, and the local hardware can complete the functions that the traditional numerical control system cannot complete without upgrading, and the intelligentization is cancelled. Applying the stringent requirements of the hardware resources of the numerical control system, the user only needs to develop the intelligent application of the numerical control system, without considering whether the hardware of the numerical control system will be overloaded, the performance is degraded, or even the function cannot be completed, and the complex application is published in the WebService technology. In the cloud, whenever and wherever users need to know the input and output of the cloud function interface and the site, the cloud application can be called through the network.
【附图说明】[Description of the Drawings]
图1为本发明的应用开发及集成方法的示意图;1 is a schematic diagram of an application development and integration method of the present invention;
图2为本发明的应用开发及集成方法应用于具有云端服务器的数控系统时数控功能模块调用云端服务器上的应用的示意图。2 is a schematic diagram of an application of the application development and integration method of the present invention applied to a cloud server with a cloud server when the numerical control function module calls an application on the cloud server.
【具体实施例方式】DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Further, the technical features involved in the various embodiments of the present invention described below may be combined with each other as long as they do not constitute a conflict with each other.
用户对数控系统进行二次开发时,需要考虑数控系统的硬件资源,避免应用程序消耗资源过大,导致数控系统卡机、性能下降,本发明提出的方法让云端丰 富的硬件资源为数控系统服务,解除数控系统硬件资源对用户二次开发的限制。When the user performs secondary development on the numerical control system, it is necessary to consider the hardware resources of the numerical control system to avoid excessive consumption of resources by the application, resulting in a decline in the numerical control system card machine and performance. The method proposed by the present invention allows the cloud to be abundance. The rich hardware resources serve the numerical control system, and the restrictions on the secondary development of the user's hardware resources are eliminated.
如图1和2所示,本发明所提出的一种数控系统的应用开发与集成方法,其通过在人机交互界面(HMI)中直接进行作为独立应用的各数控加工功能模块的开发集成,从而实现数控系统中应用的方便集成,具体包括:As shown in FIGS. 1 and 2, the application development and integration method of the numerical control system proposed by the present invention directly develops and integrates each numerical control processing function module as an independent application in a human-computer interaction interface (HMI). Thereby achieving convenient integration of applications in the numerical control system, specifically including:
在QML脚本中定义应用的外形参数、或在动态库中定义外形参数或调用图形库,以在HMI中形成应用的用户界面;Defining the shape parameters of the application in the QML script, or defining the shape parameters in the dynamic library or calling the graphics library to form the user interface of the application in the HMI;
在QML脚本或动态库中编写应用对应的数控功能模块,所述数控功能模块调用数控系统接口获取数控系统的运行状态数据进行处理,从而实现相应的数控功能,同时相应的数控功能通过所述用户界面反馈给用户;Writing a corresponding numerical control function module in the QML script or the dynamic library, the numerical control function module calls the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function, and the corresponding numerical control function passes the user The interface is fed back to the user;
通过上述方式,即可实现数控系统中应用的开发集成。Through the above methods, the development and integration of applications in the numerical control system can be realized.
本发明中可以QML脚本或动态库形式集成,也可直接将应用通过QML脚本集成。优选地,所有本地应用集成在HMI(Human Machine Interface,人机交互界面)中,用户通过HMI调用各种应用。本发明中,通过在QML脚本中定义界面的外形参数,开发功能模块,调用数控系统接口获取数控系统的运行状态数据,即可方便的开发应用;当应用需求复杂,需调用多种第三方库,利用QML脚本无法实现时,可将应用打包成动态库,集成至HMI中;若已有成熟软件能够实现所需功能,则可直接利用QML脚本将本地应用程序集成在一起,无需进行二次开发,从而大大减少二次开发的工作量。本地应用程序若需数控系统的运行状态数据,可通过在QML脚本中调用数控系统接口,并将数据输入本地应用程序。In the present invention, the QML script or the dynamic library can be integrated, or the application can be directly integrated through the QML script. Preferably, all local applications are integrated in an HMI (Human Machine Interface), and the user invokes various applications through the HMI. In the invention, by defining the shape parameters of the interface in the QML script, developing the function module, and calling the numerical control system interface to obtain the running state data of the numerical control system, the application can be conveniently developed; when the application requirements are complex, a plurality of third-party libraries need to be called. When the QML script cannot be implemented, the application can be packaged into a dynamic library and integrated into the HMI. If the mature software can implement the required functions, the local application can be directly integrated by using the QML script without having to perform the second time. Development, which greatly reduces the workload of secondary development. If the local application needs the running status data of the CNC system, it can call the CNC system interface in the QML script and input the data into the local application.
在一个实施例中,以华中8型数控系统为例,将本地应用和云端应用集成在华中8型数控系统的HMI中的具体过程以及其启动、调用方式进行详细阐述。In one embodiment, taking the Huazhong 8-type numerical control system as an example, the specific process of integrating the local application and the cloud application into the HMI of the Huazhong 8-type numerical control system and its startup and calling modes are elaborated.
在该实施例中,以QML脚本或动态库形式集成应用,通过调用与华中8型数控系统对应的数控系统接口NCK(Numerical Control System Interface Function Kernel),实现对HMI中应用集成的界面设计和功能。本发明的应用开发及集成方法的示意图QML脚本如图所示,数控功能模块调用云端服务器上的应用的示意图如图2所示。QML脚本或动态库中可定义本地应用用户界面的外形参数、消息响应函数、实现应用需求的数控功能模块。In this embodiment, the application is integrated in the form of a QML script or a dynamic library, and the interface design and function of the application integration in the HMI is realized by calling the NCK (Numerical Control System Interface Function Kernel) corresponding to the Huazhong 8-type numerical control system. . The schematic diagram of the application development and integration method of the present invention is shown in the figure. The schematic diagram of the numerical control function module calling the application on the cloud server is shown in FIG. 2 . The QML script or dynamic library can define the shape parameters of the local application user interface, the message response function, and the numerical control function module that realizes the application requirements.
当然,本实施例中的NCK是针对华中8型数控系统所对应的数控系统接口,如果是其他数控系统,也可以采用对应的数控系统接口,一般来说,数控系统接 口封装了可访问逻辑轴的轴名、轴类型、逻辑轴对应的通道号、轴电流、轴误差、参数数据等数据的接口函数,用于获取数控系统的运行状态数据。Of course, the NCK in this embodiment is for the CNC system interface corresponding to the Huazhong 8-type numerical control system. If it is another numerical control system, the corresponding numerical control system interface can also be used. Generally speaking, the numerical control system is connected. The interface encapsulates the interface function of the axis name, the axis type, the channel number corresponding to the logic axis, the axis current, the axis error, the parameter data and the like, and is used to obtain the running state data of the numerical control system.
QML脚本优选可利用Qt Quick编写,动态库利用Qt编写,例如对界面设计、功能实现复杂的本地应用,利用动态库集成至HMI中;对界面设计简单、功能实现单一的本地应用,利用QML脚本集成至HMI中。QML scripts can be written in Qt Quick, and dynamic libraries can be written in Qt, such as complex local applications for interface design and functions, integrated into HMI using dynamic libraries, and local applications with simple interface design and single function, using QML scripts. Integrated into the HMI.
用户通过HMI调用应用时,QML脚本、动态库中消息响应函数捕获用户发送的消息,根据其中外形参数,生成本地应用用户界面,QML脚本或动态库调用数控系统接口访问数控系统的运行状态数据,调用实现数控功能的数控功能模块完成本地应用的数控功能。When the user invokes the application through the HMI, the QML script and the message response function in the dynamic library capture the message sent by the user, generate a local application user interface according to the shape parameter, and the QML script or the dynamic library calls the numerical control system interface to access the running state data of the numerical control system. The numerical control function module that realizes the numerical control function is called to complete the numerical control function of the local application.
在一个实施例中,以QML脚本形式直接进行应用程序开发和集成,该实施例中包括在QML脚本中定义界面的外形参数,编写并调用数控功能模块,调用NCK获取数控系统的运行状态数据作为数控功能模块的输入,以完成相应功能,即可方便的开发应用。例如,直接开发集成一个显示机床加工时的各坐标系位置、加工程序的显示以及当前机床加工的主要参数及状态的主加工界面,优选可以作为HMI启动界面,其具体实现方式可以如下:In one embodiment, the application development and integration are directly performed in the form of a QML script. The embodiment includes defining a shape parameter of the interface in the QML script, writing and calling the numerical control function module, and calling the NCK to obtain the running state data of the numerical control system as The input of the numerical control function module can complete the corresponding functions, and the application can be conveniently developed. For example, directly developing and integrating a main machining interface for displaying the position of each coordinate system during machining of the machine, the display of the machining program, and the main parameters and state of the current machine tool processing, preferably can be used as an HMI startup interface, and the specific implementation manner can be as follows:
首先,通过QML脚本定义主加工界面顶部状态栏、底部菜单、右侧菜单的形状、位置、颜色、背景图片参数及文本框的外形参数,右侧菜单和底部菜单中可以优选嵌套定义切换至刀具管理界面的按钮、切换至系统参数PLC的按钮等。同时,调用华中8型的NCK中接口访问机床坐标、工件坐标、剩余进给、负载电流、机床指令进给速度、机床实际进给速度、主轴实际进给速度、主轴指令进给速度等,通过对应的主加工界面图表进行传送和显示。First, the QML script defines the shape of the top status bar, bottom menu, right menu, position, color, background image parameters and text box of the main processing interface. In the right menu and bottom menu, the nested definition can be switched to Buttons on the tool management interface, buttons to switch to system parameters PLC, etc. At the same time, the interface of the NCK of the Huazhong 8 type is called to access machine coordinates, workpiece coordinates, residual feed, load current, machine tool feedrate, machine actual feedrate, spindle actual feedrate, spindle command feedrate, etc. The corresponding main machining interface chart is transmitted and displayed.
还可通过在本地QML脚本中调用定时器,定时更新文本框中的数据,QML脚本中消息响应函数响应用户切换界面的消息。The data in the text box can also be updated periodically by calling a timer in the local QML script. The message response function in the QML script responds to the message of the user switching interface.
在一个实施例中,应用需求复杂,需调用第三方库,可在开发应用时,编写并调用数控功能模块,处理由NCK获取的数据,完成相应的功能,或调用第三方库,处理由NCK获取的数据,完成相应功能,然后将应用程序封装成动态库,即可方便的开发并集成应用。例如,为动态显示加工过程中机床与刀具的相对运动,检查加工是否存在碰撞,可开发并集成机床防碰撞软件,其具体实现方式如下: In one embodiment, the application requirements are complex, and a third-party library needs to be called. When the application is developed, the numerical control function module is written and called, the data acquired by the NCK is processed, the corresponding function is completed, or the third-party library is called, and the processing is performed by the NCK. The acquired data, complete the corresponding functions, and then package the application into a dynamic library, you can easily develop and integrate the application. For example, in order to dynamically display the relative motion of the machine tool and the tool during the machining process, and check whether there is a collision in the machining process, the machine collision avoidance software can be developed and integrated, and the specific implementation manner is as follows:
机床防碰撞软件以动态库形式开发、集成在HMI中,利用OpenGL编写三维图形显示接口,开源碰撞检测库coldet检查图形是否存在碰撞,在动态库中定义三维图形显示区的外形参数,定义同时调用NCK中接口访问刀具坐标、机床实际进给速度、工件坐标、工件实际进给速度送至三维图形显示接口,动态显示工件、刀具相对运动,并通过coldet实时检查刀具和工件是否存在碰撞。The machine anti-collision software is developed in a dynamic library form and integrated in the HMI. The OpenGL is used to write a three-dimensional graphic display interface. The open source collision detection library coldet checks whether the image has a collision. The shape parameter of the three-dimensional graphic display area is defined in the dynamic library, and the definition is called at the same time. The NCK interface access tool coordinates, the actual feedrate of the machine, the workpiece coordinate, and the actual feedrate of the workpiece are sent to the 3D graphic display interface, which dynamically displays the relative motion of the workpiece and the tool, and checks whether the tool and the workpiece collide in real time through coldet.
在一个实施例中,可直接利用QML脚本将本地应用程序集成在一起,可方便用户随时调用任一本地应用程序,便于本地应用程序的集中管理,从而大大减轻了用户二次开发的工作量。In one embodiment, the local application can be directly integrated by using the QML script, which is convenient for the user to call any local application at any time, and facilitate centralized management of the local application, thereby greatly reducing the workload of the user's secondary development.
例如HMI中将本地应用程序集成在智能化应用中心界面,智能化应用中心界面的具体实现过程如下:智能化应用中心界面以QML脚本形式开发集成,QML脚本中定义了工艺参数优化软件等所有本地应用程序的外形参数,同时给出了本地应用的安装路径,定义了本地应用的消息响应函数,加载QML脚本后,用户通过键盘或鼠标触发消息响应函数后,消息响应函数根据本地应用程序安装路径打开本地应用程序。For example, in HMI, the local application is integrated into the intelligent application center interface. The specific implementation process of the intelligent application center interface is as follows: the intelligent application center interface is developed and integrated in the form of QML script, and the QML script defines all the local parameters such as process parameter optimization software. The shape parameter of the application, the installation path of the local application is given, and the message response function of the local application is defined. After the QML script is loaded, after the user triggers the message response function through the keyboard or the mouse, the message response function is installed according to the local application. Open the local app.
通过将安装在本地硬件的本地应用集成在智能化应用中心界面,数控系统进行二次开发时,若已有成熟软件能够实现所需功能,则无需重复进行二次开发。By integrating the local application installed on the local hardware in the intelligent application center interface, when the CNC system is redeveloped, if the mature software can realize the required functions, it is not necessary to repeat the secondary development.
通过本地应用程序集成本地应用时,所有本地应用程序通过一个QML脚本集成至HMI中,具体来说,首先将本地应用程序安装路径写入QML脚本,HMI生成本地应用界面后,用户通过本地应用界面调用本地应用时,QML脚本中消息响应函数捕获用户发送的消息,消息响应函数根据本地应用程序安装路径打开本地应用程序。此处方式,可以实现本地应用程序在数控系统中的集成。When a local application is integrated through a local application, all local applications are integrated into the HMI through a QML script. Specifically, the local application installation path is first written into the QML script. After the HMI generates the local application interface, the user passes the local application interface. When a local application is invoked, the message response function in the QML script captures the message sent by the user, and the message response function opens the local application according to the local application installation path. In this way, the integration of local applications in the CNC system can be achieved.
在一个实施例中,为了保证数控系统既能完成用户非实时性大规模数据处理要求,同时避免升级数控系统造成成本过大或稳定性下降的问题,将数控系统无法完成或会造成数控系统超负荷工作的应用放至云端虚拟服务器,并通过WebService技术将云端应用以站点形式发布在云端服务器上,本地应用通过访问站点即可访问云端应用。In one embodiment, in order to ensure that the numerical control system can not only fulfill the non-real-time large-scale data processing requirements of the user, but also avoid the problem of excessive cost or stability degradation caused by upgrading the numerical control system, the numerical control system cannot be completed or may cause the numerical control system to exceed The application of the load work is put into the cloud virtual server, and the cloud application is published on the cloud server as a site through the WebService technology, and the local application can access the cloud application by accessing the site.
该实施例中的数控系统是在云数控体系架构的基础上实现的,其依赖于数控系统和云端。该实施例中,数控系统包括本地数控装置以及云端服务器,其中本地数控装置一般包括本地硬件和安装在其上的本地功能模块,例如主加工界面、 刀具管理等,一般是实时性控制功能和/或本地硬件资源可满足应用对资源需求的模块。本发明中,将本地功能模块封装为单独的应用,并安装在本地数控装置的硬件上,通过HMI集成在一起,以便于使用,可称之为本地应用,即本地应用为在本地硬件上开发的智能化应用集合。The numerical control system in this embodiment is implemented on the basis of the cloud numerical control architecture, which relies on the numerical control system and the cloud. In this embodiment, the numerical control system includes a local numerical control device and a cloud server, wherein the local numerical control device generally includes local hardware and a local functional module mounted thereon, such as a main processing interface, Tool management, etc., are generally real-time control functions and / or local hardware resources to meet the application's requirements for resource requirements. In the present invention, the local function module is packaged as a separate application and installed on the hardware of the local numerical control device, and integrated through the HMI for ease of use, which can be called a local application, that is, the local application is developed on the local hardware. A collection of intelligent applications.
云端包括云端硬件及运行在其上的云端功能模块,例如机器学习库等,一般是非实时性控制功能和/或需处理大规模数据而本地硬件资源无法满足应用对资源需求的功能模块。本发明中将相应的功能模块封装为应用,作为在云端硬件上开发的智能化应用集合,可称之为云端应用。The cloud includes cloud hardware and cloud function modules running on it, such as a machine learning library, etc., generally non-real-time control functions and/or functional modules that need to process large-scale data and local hardware resources cannot meet application requirements for resources. In the present invention, the corresponding functional module is packaged as an application, and as a set of intelligent applications developed on the cloud hardware, it can be called a cloud application.
本地数控装置和云端服务器通过网络实时通信。The local numerical control device and the cloud server communicate in real time through the network.
在云端虚拟机上通过WebService技术将应用以接口函数的形式发布在站点上,本地应用通过网络访问站点即可访问云端应用,云端应用获取云端硬件资源完成应用后,通过网络通信将结果发送至本地应用。On the cloud virtual machine, the application is published on the site as an interface function through the WebService technology. The local application can access the cloud application by accessing the site through the network. After the cloud application obtains the cloud hardware resource to complete the application, the cloud application sends the result to the local network. application.
在该实施例中,为实现工艺参数优化,开发了工艺参数优化软件,其实现机制如下:In this embodiment, in order to optimize the process parameters, the process parameter optimization software is developed, and the implementation mechanism is as follows:
因数千台数控机床以1000Hz频率、16通道全天候采集数控机床数据时数据量高达3G,处理如此大规模的数据,传统数控系统基本束手无策,即使数据量小至上百兆,对于单CPU的数控系统仍需消耗其较大资源,造成数控系统卡机、性能下降,升级数控系统硬件资源尚可满足工艺参数优化的硬件需求,但是会带来设计和制造成本、升级和使用成本急剧增加,可靠性下降的问题。本实施例中,将工艺参数常用的优化算法,通过WebService技术封装至云端站点,即可将本地应用对本地硬件资源的需求,转至云端应用对云端硬件资源的需求,从而让本地硬件轻松地完成各种任务。其中,工艺参数优化软件让云端应用充分为数控系统服务的流程如下:Factor 1000 CNC machine tools with 1000Hz frequency, 16 channels all-weather acquisition of CNC machine data data up to 3G, to deal with such large-scale data, the traditional CNC system is basically helpless, even if the amount of data is as small as hundreds of megabytes, for a single CPU CNC system Still need to consume its large resources, resulting in CNC system card machine, performance degradation, upgrading the CNC system hardware resources can still meet the hardware requirements of process parameter optimization, but will bring design and manufacturing costs, upgrade and use costs increased dramatically, reliability The problem of falling. In this embodiment, the optimization algorithm commonly used in the process parameters is encapsulated into the cloud site through the WebService technology, and the local application needs for the local hardware resources can be transferred to the cloud application for the cloud hardware resources, thereby making the local hardware easy. Complete various tasks. Among them, the process parameters optimization software allows the cloud application to fully serve the numerical control system as follows:
step1:调用NCK获得工艺参数数据,如进给速度;Step1: Call the NCK to obtain process parameter data, such as feed rate;
step2:利用网络将工艺参数所需的数控系统的运行状态数据传送至发布有机器学习库的云端服务器,并调用机器学习库完成工艺参数优化;Step2: use the network to transmit the operating state data of the numerical control system required by the process parameters to the cloud server that releases the machine learning library, and call the machine learning library to complete the process parameter optimization;
step3:服务器将结果通过网络返回至工艺参数优化软件中,从而实现工艺参数优化。Step3: The server returns the result to the process parameter optimization software through the network to optimize the process parameters.
该实施例中本地应用调用云端应用,让云端应用与云端资源充分为数控系统 服务,本地硬件无需升级即可完成传统数控系统无法完成的功能,解除了智能化应用对数控系统硬件资源的严苛要求,用户只需开发数控系统智能化应用,无需考虑数控系统硬件是否会负荷过重,性能下降,甚至无法完成功能,通过WebService技术将功能复杂的应用发布在云端服务器上,无论何时何地,用户只需知道云端应用的输入输出及站点地址,即可通过网络调用云端应用。In this embodiment, the local application invokes the cloud application, so that the cloud application and the cloud resource are fully used as the numerical control system. Service, the local hardware can complete the functions that the traditional CNC system can't complete without upgrading, and the strict requirements of the intelligent system for the hardware resources of the CNC system are eliminated. The user only needs to develop the intelligent application of the CNC system, no need to consider whether the CNC system hardware will load. Excessively heavy, performance is degraded, and even functions cannot be completed. WebService technology is used to publish complex applications on the cloud server. Whenever and wherever, users only need to know the input and output of the cloud application and the site address, and then call the cloud through the network. application.
本发明中,将数据访问接口封装在数控系统接口中,利用QML脚本、动态库、本地应用,用户只需定义用户界面外形参数,按需编写实现应用需求的数控功能模块,想要何种方式打开应用便定义相应的消息响应函数,方便快捷地即可开发本地应用。In the invention, the data access interface is encapsulated in the interface of the numerical control system, and the QML script, the dynamic library and the local application are used, and the user only needs to define the shape parameters of the user interface, and write the numerical control function module for realizing the application requirement as needed, which way is desired Open the app and define the corresponding message response function to develop the local app quickly and easily.
此外,WebService具有跨语言特性,用户可利用C++、JAVA、C#等语言开发云端应用,降低了云端应用的开发难度;用户经过简单的培训,了解QML脚本、动态库、数控系统接口、云端应用后,即可对数控系统进行二次开发,大大降低了开发人员与数控系统的粘度。In addition, WebService has cross-language features, users can use C++, JAVA, C# and other languages to develop cloud applications, which reduces the development difficulty of cloud applications. After simple training, users understand QML scripts, dynamic libraries, CNC system interfaces, and cloud applications. The secondary development of the numerical control system can be carried out, which greatly reduces the viscosity of the developer and the numerical control system.
同时通过QML脚本、动态库、本地应用程序将本地应用集成在HMI中,使得用户可以通过一个本地应用调用所有本地应用及云端应用,使用起来友好、方便。At the same time, the local application is integrated into the HMI through QML scripts, dynamic libraries, and local applications, so that users can call all local applications and cloud applications through a local application, which is friendly and convenient to use.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 Those skilled in the art will appreciate that the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present invention, All should be included in the scope of protection of the present invention.

Claims (10)

  1. 一种数控系统中应用的开发与集成方法,其通过在人机交互界面(HMI)中直接进行作为独立应用的各数控加工功能模块的开发集成,从而实现数控系统中应用的方便集成,具体包括:A method for developing and integrating an application in a numerical control system, which directly realizes the integration and integration of various numerical control processing function modules as independent applications in a human-computer interaction interface (HMI), thereby realizing the convenient integration of applications in the numerical control system, specifically including :
    在QML脚本中定义应用的外形参数、或在动态库中定义外形参数或调用图形库,以在HMI中形成应用的用户界面;Defining the shape parameters of the application in the QML script, or defining the shape parameters in the dynamic library or calling the graphics library to form the user interface of the application in the HMI;
    在QML脚本或动态库中编写应用对应的数控功能模块,所述数控功能模块用于调用数控系统接口获取数控系统的运行状态数据以进行处理,从而实现相应的数控功能,并通过所述用户界面反馈给用户;Writing a corresponding numerical control function module in the QML script or the dynamic library, the numerical control function module is used to call the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby implementing a corresponding numerical control function, and passing the user interface Feedback to the user;
    通过上述方式,即可实现数控系统中应用的开发集成。Through the above methods, the development and integration of applications in the numerical control system can be realized.
  2. 根据权利要求1所述的一种数控系统中应用的开发与集成方法,其中,所述在HMI中形成应用的用户界面具体为:HMI通过其消息响应函数接收用户发送的消息,进而打开对应的应用的用户界面,从而在HMI中形成用户界面。The method for developing and integrating an application in a numerical control system according to claim 1, wherein the user interface forming the application in the HMI is specifically: the HMI receives the message sent by the user through its message response function, and then opens the corresponding The user interface of the application forms a user interface in the HMI.
  3. 根据权利要求2所述的一种数控系统中应用的开发与集成方法,其中,所述外形参数包括界面尺寸、形状、颜色和位置。The method of developing and integrating an application in a numerical control system according to claim 2, wherein the shape parameter comprises an interface size, a shape, a color, and a position.
  4. 根据权利要求1-3中任一项所述的一种数控系统中应用的开发与集成方法,其中,所述数控功能模块为包括有本地应用安装路径的模块,该本地应用用于实现相应的数控功能,该数控功能模块通过该安装路径打开所述本地应用进而实现相应的数控功能。The method for developing and integrating an application in a numerical control system according to any one of claims 1 to 3, wherein the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding The numerical control function, the numerical control function module opens the local application through the installation path to implement the corresponding numerical control function.
  5. 根据权利要求1-3中任一项所述的一种数控系统中应用的开发与集成方法,其中,所述数控系统为具有云端服务器的数控系统,所述数控功能模块为包括云端服务器地址的模块,所述云端服务器上设置有用于实现相应数控功能的应用,所述数控功能模块通过该地址调用所述云端服务器上的应用,进而实现相应的数控功能。The method for developing and integrating an application in a numerical control system according to any one of claims 1 to 3, wherein the numerical control system is a numerical control system having a cloud server, and the numerical control function module is a cloud server address. The module, the cloud server is provided with an application for implementing a corresponding numerical control function, and the numerical control function module invokes an application on the cloud server through the address, thereby implementing a corresponding numerical control function.
  6. 根据权利要求5所述的一种数控系统中应用的开发与集成方法,其中,所述云端服务器上设置的应用通过Webservice发布在所述云端服务器上。The method for developing and integrating an application in a numerical control system according to claim 5, wherein the application set on the cloud server is published on the cloud server through a Web service.
  7. 一种数控系统中应用的开发与集成系统,其通过在人机交互界面(HMI)中直接进行作为独立应用的各数控加工功能模块的开发集成,从而实现数控系统中应用的方便集成,具体包括: A development and integration system for application in a numerical control system, which directly realizes the integration and integration of various numerical control processing function modules as independent applications in a human-computer interaction interface (HMI), thereby realizing convenient integration of applications in the numerical control system, including :
    用户界面开发集成模块,用于在HMI中形成应用的用户界面,其通过在QML脚本中定义应用的外形参数、或在动态库中定义外形参数或调用图形库实现;A user interface development integration module for forming an application user interface in an HMI, which is implemented by defining a shape parameter of an application in a QML script, or defining a shape parameter in a dynamic library or calling a graphics library;
    以及as well as
    数控功能模块,其通过在QML脚本或动态库中编写应用对应的数控功能模块实现,所述数控功能模块用于调用数控系统接口获取数控系统的运行状态数据以进行处理,从而实现相应的数控功能,并通过所述用户界面反馈给用户。The numerical control function module is realized by writing a corresponding numerical control function module in the QML script or the dynamic library, and the numerical control function module is used for calling the numerical control system interface to acquire the running state data of the numerical control system for processing, thereby realizing the corresponding numerical control function. And feedback to the user through the user interface.
  8. 根据权利要求7所述的一种数控系统中应用的开发与集成系统,其中,所述在HMI中形成应用的用户界面具体为:HMI通过其消息响应函数接收用户发送的消息,进而打开对应的应用的用户界面,从而在HMI中形成用户界面。The development and integration system for an application in a numerical control system according to claim 7, wherein the user interface forming the application in the HMI is specifically: the HMI receives the message sent by the user through its message response function, and then opens the corresponding The user interface of the application forms a user interface in the HMI.
  9. 根据权利要求7或8所述的一种数控系统中应用的开发与集成方法,其中,所述数控功能模块为包括有本地应用安装路径的模块,该本地应用用于实现相应的数控功能,该数控功能模块通过该安装路径打开所述本地应用进而实现相应的数控功能。The method for developing and integrating an application in a numerical control system according to claim 7 or 8, wherein the numerical control function module is a module including a local application installation path, and the local application is used to implement a corresponding numerical control function, The numerical control function module opens the local application through the installation path to implement the corresponding numerical control function.
  10. 根据权利要求7-9中任一项所述的一种数控系统中应用的开发与集成系统,其中,所述数控系统为具有云端服务器的数控系统,所述数控功能模块为包括云端服务器地址的模块,所述云端服务器上设置有用于实现相应数控功能的应用,所述数控功能模块通过该地址调用所述云端服务器上的应用,进而实现相应的数控功能。 The development and integration system for an application in a numerical control system according to any one of claims 7 to 9, wherein the numerical control system is a numerical control system having a cloud server, and the numerical control function module is a cloud server address. The module, the cloud server is provided with an application for implementing a corresponding numerical control function, and the numerical control function module invokes an application on the cloud server through the address, thereby implementing a corresponding numerical control function.
PCT/CN2016/108537 2016-04-15 2016-12-05 Method and system for development and integration of application in numerical control system WO2017177695A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610239207.3A CN105912339B (en) 2016-04-15 2016-04-15 A kind of exploitation of Application in numerical control (NC) System and integrated approach and system
CN201610239207.3 2016-04-15

Publications (1)

Publication Number Publication Date
WO2017177695A1 true WO2017177695A1 (en) 2017-10-19

Family

ID=56746425

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108537 WO2017177695A1 (en) 2016-04-15 2016-12-05 Method and system for development and integration of application in numerical control system

Country Status (2)

Country Link
CN (1) CN105912339B (en)
WO (1) WO2017177695A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849785A (en) * 2021-07-29 2021-12-28 国家计算机网络与信息安全管理中心 Mobile terminal information asset use behavior identification method for application program
CN116736792A (en) * 2023-08-01 2023-09-12 广州亿达科技有限公司 Logic control programming method and device embedded in CNC system

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912339B (en) * 2016-04-15 2019-01-29 华中科技大学 A kind of exploitation of Application in numerical control (NC) System and integrated approach and system
CN106547537B (en) * 2016-10-10 2020-01-07 国网新疆电力有限公司经济技术研究院 Method for realizing assembled electric power application software based on QML technology
CN106873977A (en) * 2016-12-30 2017-06-20 南京埃斯顿机器人工程有限公司 A kind of expansible robot demonstrator based on script and plug-in unit
CN108319488A (en) * 2018-02-07 2018-07-24 安徽大中润科技有限公司 One kind being based on the patterned unified message processing method and processing devices of QML
CN109542043A (en) * 2018-10-31 2019-03-29 武汉华中数控股份有限公司 A kind of digital control system management method and device based on plug-in unit
CN109976263A (en) * 2019-03-21 2019-07-05 湖北江山华科数字设备科技有限公司 A kind of numerical control five-axle knife sharpener dedicated control system
CN110231931A (en) * 2019-05-08 2019-09-13 华中科技大学 A kind of power supply real-time control module and system
CN110531980B (en) * 2019-08-27 2022-03-22 泉州市大鲨鱼机械科技有限公司 Intelligent interface design method of numerical control machine tool
CN110865608A (en) * 2019-11-21 2020-03-06 武夷学院 Reconfigurable manufacturing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036464A2 (en) * 2007-09-14 2009-03-19 Infimatic, Llc A human-machine interface (hmi) and method of operating the same
CN102830654A (en) * 2012-09-12 2012-12-19 深圳华中数控有限公司 Open type numerical control system based on Android platform and method for performing secondary development therein
CN104281100A (en) * 2013-07-02 2015-01-14 北京耐威徐激光技术开发有限责任公司 Integrated numerical control system for numerical control equipment
CN104656546A (en) * 2013-11-25 2015-05-27 北京耐威徐激光技术开发有限责任公司 Integrated numerical control system applied to numerical control device
CN104808592A (en) * 2015-03-13 2015-07-29 华中科技大学 Numerical control system based on virtual upper computer
CN105912339A (en) * 2016-04-15 2016-08-31 华中科技大学 development and integration method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4388427B2 (en) * 2004-07-02 2009-12-24 オークマ株式会社 Numerical control device that can call programs written in script language
CN103019738B (en) * 2012-12-28 2015-09-02 广州数控设备有限公司 The digital control system that a kind of interface can customize and implementation method
CN104731584B (en) * 2015-02-26 2018-10-02 武汉爱科唯自动化科技有限公司 A kind of customized configuration design method of Open Architecture CNC System of Display Interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036464A2 (en) * 2007-09-14 2009-03-19 Infimatic, Llc A human-machine interface (hmi) and method of operating the same
CN102830654A (en) * 2012-09-12 2012-12-19 深圳华中数控有限公司 Open type numerical control system based on Android platform and method for performing secondary development therein
CN104281100A (en) * 2013-07-02 2015-01-14 北京耐威徐激光技术开发有限责任公司 Integrated numerical control system for numerical control equipment
CN104656546A (en) * 2013-11-25 2015-05-27 北京耐威徐激光技术开发有限责任公司 Integrated numerical control system applied to numerical control device
CN104808592A (en) * 2015-03-13 2015-07-29 华中科技大学 Numerical control system based on virtual upper computer
CN105912339A (en) * 2016-04-15 2016-08-31 华中科技大学 development and integration method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849785A (en) * 2021-07-29 2021-12-28 国家计算机网络与信息安全管理中心 Mobile terminal information asset use behavior identification method for application program
CN113849785B (en) * 2021-07-29 2024-01-30 国家计算机网络与信息安全管理中心 Mobile terminal information asset use behavior identification method for application program
CN116736792A (en) * 2023-08-01 2023-09-12 广州亿达科技有限公司 Logic control programming method and device embedded in CNC system
CN116736792B (en) * 2023-08-01 2024-04-05 广州亿达科技有限公司 Logic control programming method and device embedded in CNC system

Also Published As

Publication number Publication date
CN105912339B (en) 2019-01-29
CN105912339A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
WO2017177695A1 (en) Method and system for development and integration of application in numerical control system
US11216319B2 (en) Intelligent real-time robot operating system architecture and operation method thereof
CN100514234C (en) Open type numerical control system based on PC
CA2057404C (en) Method for operating time critical processes in a window system environment
JP2017520853A (en) Numerical control system based on virtual host device
CN102567074B (en) USB (universal serial bus) device redirecting method facing virtual machines
RU2597556C2 (en) Computer cluster arrangement for executing computation tasks and method for operation thereof
US20070168082A1 (en) Task-based robot control system for multi-tasking
CN111507020B (en) Graphical display method for distributed simulation results of electromechanical systems of multi-electric aircraft
JP2017520061A (en) Numerical control system and control method based on virtualization technology
JP2020109613A (en) Smart irrigation area e-platform based on four-layered architecture and data processing method
CN102346687A (en) Real-time system based on Windows driver
CN100553214C (en) Mobile virtual environment system
CN110851237A (en) Container cross heterogeneous cluster reconstruction method for domestic platform
US11513493B2 (en) Control system driven by real time and non-real time data
CN104626165A (en) Demonstrator key reaction sensitivity optimization method
EP1993038B1 (en) Data processing system and data processing method
CN205103599U (en) Cross -border trade BPO uses cloud terminating set
Yuhan et al. Study on a reconfigurable model of an open CNC kernel
US20230122396A1 (en) Enabling shared graphics and compute hardware acceleration in a virtual environment
CN110989499A (en) Hybrid architecture control system based on high-speed wireless communication
CN111090430B (en) Application software development system under embedded system
Zhang et al. An USB-based software CNC system
CN114461186A (en) Method for automatically compiling and running C/C + + code for Huaji Shengteng accelerator card
Li et al. An open CNC system based on EtherCAT network

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16898507

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16898507

Country of ref document: EP

Kind code of ref document: A1