CN115086379A - Numerical control machine tool data acquisition method based on edge calculation and virtualization technology - Google Patents

Numerical control machine tool data acquisition method based on edge calculation and virtualization technology Download PDF

Info

Publication number
CN115086379A
CN115086379A CN202210850016.6A CN202210850016A CN115086379A CN 115086379 A CN115086379 A CN 115086379A CN 202210850016 A CN202210850016 A CN 202210850016A CN 115086379 A CN115086379 A CN 115086379A
Authority
CN
China
Prior art keywords
machine tool
opc
numerical control
data
client
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
CN202210850016.6A
Other languages
Chinese (zh)
Other versions
CN115086379B (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.)
Winhong Information Technology Co ltd
Original Assignee
Winhong Information 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 Winhong Information Technology Co ltd filed Critical Winhong Information Technology Co ltd
Priority to CN202210850016.6A priority Critical patent/CN115086379B/en
Publication of CN115086379A publication Critical patent/CN115086379A/en
Application granted granted Critical
Publication of CN115086379B publication Critical patent/CN115086379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a numerical control machine tool data acquisition method based on an edge calculation and virtualization technology, which comprises the following steps: creating a virtualization layer of the numerical control machine tool equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer; creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system; and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode. Compared with the prior art, the method can fully utilize computing resources of the current numerical control machine tool, reduces the cost of industrial control network modification and maintenance, and meets the actual application requirements.

Description

Numerical control machine tool data acquisition method based on edge calculation and virtualization technology
Technical Field
The application relates to the technical field of industry, in particular to a numerical control machine tool data acquisition method and system based on an edge calculation and virtualization technology, a storage medium and industrial equipment.
Background
With the deep integration of informatization and industrialization, information technology permeates all links of industrial chains of industrial enterprises, the development of a new intelligent manufacturing mode represented by intelligent production, personalized customization, networked collaboration and service extension is promoted, and the core of the intelligent manufacturing mode is comprehensive perception based on mass industrial data. The industrial data acquisition can realize the real-time acquisition and arrangement of various industrial data of a production field, provide a large amount of industrial data for an upper information system of an enterprise, and realize the optimization and intelligent decision of a production process by deeply mining the industrial big data accumulated and deposited.
The numerical control machine is an important unit in industrial production, and the data acquisition of the numerical control machine is also an important link of industrial data acquisition. The data acquisition process of the numerical control machine tool is the same as the current popular industrial data acquisition process, and can be divided into four main steps of equipment access, protocol analysis and conversion, edge data processing and edge cloud data synchronization. The general data acquisition method of the numerical control machine tool comprises the steps of transforming an industrial control network, additionally installing a data acquisition card on an industrial bus to realize connection of machine tool equipment and protocol analysis and conversion, additionally installing edge intelligent equipment such as an edge computing gateway to carry out edge data processing, and finally transmitting the edge-processed data to a cloud server side in an interface or file mode. The method needs to transform an industrial control network to a certain extent, and introduces new hardware equipment to assist data acquisition at the periphery of the numerical control machine tool, so that the data acquisition cost is higher, and the complexity of subsequent operation and maintenance is improved.
Therefore, it is necessary to provide a solution that can fully utilize the computational resources of the current numerically controlled machine tool and reduce the cost of modification and maintenance of the industrial control network.
Disclosure of Invention
Therefore, it is necessary to provide a method, a system, a medium, and an apparatus for collecting data of a numerically controlled machine tool based on an edge computing and virtualization technology, which can fully utilize computing resources of the current numerically controlled machine tool and reduce modification and maintenance costs of an industrial control network.
The embodiment of the invention provides a numerical control machine tool data acquisition method based on an edge calculation and virtualization technology, which comprises the following steps:
creating a virtualization layer of the numerical control machine tool equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer;
creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system;
and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode.
Further, creating a virtualization layer of the numerically-controlled machine tool equipment, and respectively deploying the CNC system and the edge computing platform on the virtualization layer, specifically including:
acquiring a physical layer of the numerical control machine tool equipment, and creating a virtualization layer on the physical layer of the numerical control machine tool;
respectively creating a first virtual machine and a second virtual machine on the virtualization layer, deploying a CNC system on the first virtual machine, and deploying an edge computing platform on the second virtual machine; the CNC system is used for controlling operation of the numerical control machine tool equipment, and the edge computing platform is used for adapting to a CNC system protocol and synchronizing machine tool working state data to the cloud server after collecting the machine tool working state data.
Further, the OPC UA client establishes connection with the OPC UA server through an OPC UA adapter, keeps conversation, and subscribes to obtain machine tool working state data of the numerical control machine equipment; the machine tool working state data of the numerical control machine tool equipment comprise real-time monitoring process parameters, historical data, process data and cutter data.
Further, the OPC UA server reads the machine tool working state data of the numerical control machine tool device at a fixed sampling frequency, and sends the machine tool working state data to the OPC UA client at a regular release interval in a message notification manner, specifically including:
the OPC UA client subscribes machine tool working state data of the numerical control machine tool equipment acquired in real time from the OPC UA server based on an OPC UA protocol;
the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and stores the machine tool working state data into a message cache queue of an OPC UA client;
and sending the machine tool working state data of the numerical control machine tool equipment to the OPC UA client according to a regular release interval in a message notification mode.
Further, the method further comprises:
the OPC UA client analyzes and processes the received machine tool working state data of the numerical control machine tool one by one according to an OPC UA data model;
and sending the machine tool working state data subjected to data processing to the edge computing platform, and enabling the edge computing platform to store the working state data of the numerical control machine tool equipment in a storage manner for persistence according to requirements.
Further, the edge computing platform comprises a first MQTT client and an MQTT message service module in communication with the first MQTT client; the cloud service end comprises a second MQTT client, and the method further comprises the following steps:
the first MQTT client receives the machine tool working state data after data processing is carried out by an OPC UA client, and sends the machine tool working state data after data processing to the MQTT message service module;
and the second MQTT client acquires the machine tool working state data of the numerical control machine tool equipment in real time through a TLS encryption channel, and persistently stores the machine tool working state data to a big data platform after the cloud server is verified.
Further, the edge computing platform further comprises a data Web service module, and the cloud service side further comprises an HTTP client side; the method further comprises the following steps:
the cloud service side calls a query interface through an HTTP client side and sends query request information to the Web service module through the query interface;
and the Web service module transmits the machine tool working state data of the numerical control machine equipment meeting the conditions to a cloud service end through a TLS encryption channel according to the query request information, and persistently stores the machine tool working state data to a big data platform after the cloud service end verifies.
Another embodiment of the present invention provides a data acquisition system for a numerically controlled machine tool based on edge computing and virtualization technologies, the system comprising:
the system comprises numerical control machine tool equipment, a data processing system and a data processing system, wherein the numerical control machine tool equipment is used for creating a virtualization layer of the numerical control machine tool equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer;
a virtual network for creating an OPC UA client on the edge computing platform and an OPC UA server on the CNC system in communication with the OPC UA client;
and the OPC UA server is used for reading the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sending the data to the OPC UA client in a message notification mode according to a regular release interval.
Another embodiment of the present invention is also directed to a computer readable storage medium including a stored computer program; when the computer program runs, the computer program controls the equipment where the computer readable storage medium is located to execute the numerical control machine tool data acquisition method based on the edge calculation and virtualization technology.
Another embodiment of the present invention further provides an industrial apparatus, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the method for collecting data of a numerical control machine tool based on an edge computing and virtualization technology as described above.
Firstly, establishing a virtualization layer of numerical control machine equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer; creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system; and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode. Compared with the prior art, the method can fully utilize computing resources of the current numerical control machine tool, reduces the cost of industrial control network modification and maintenance, and meets the actual application requirements.
Drawings
Fig. 1 is a schematic flow chart of a data acquisition method of a numerical control machine tool based on an edge calculation and virtualization technology according to an embodiment of the present invention;
fig. 2 is a block diagram of a data acquisition system of a numerically-controlled machine tool based on an edge calculation and virtualization technology according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant server, and the server is taken as an example for explanation below.
As shown in fig. 1, the method for collecting data of a numerical control machine based on an edge calculation and virtualization technology according to an embodiment of the present invention includes steps S11 to S13:
and step S11, creating a virtualization layer of the numerical control machine tool equipment, and respectively deploying the CNC system and the edge computing platform on the virtualization layer.
As described above, the overall architecture of the invention mainly comprises numerical control machine equipment and a cloud server; the numerical control machine tool equipment mainly comprises an industrial control module and a machine tool machining module, and the CNC system and the edge computing platform are respectively arranged on the industrial control module.
Further, for the industrial control module, a physical layer of the industrial control module in the numerical control machine is obtained first, virtualization technology is adopted to virtualize the industrial control module, and a virtualization layer corresponding to the virtualized industrial control module is created on the physical layer. Then, a first virtual machine and a second virtual machine are respectively established on the virtualization layer, a CNC system is deployed on the first virtual machine, and an edge computing platform is deployed on the second virtual machine, so that the CNC system and the edge computing platform are in the same local virtual network and can communicate with each other, cross-network transmission of machine tool working state data is avoided, collection and processing of the machine tool working state data can be realized in the same local area network, and real-time performance and safety of data collection are guaranteed.
The CNC system is used for controlling operation of the numerical control machine tool equipment, and the edge computing platform is used for adapting to a CNC system protocol and synchronizing machine tool working state data to the cloud server after collecting the machine tool working state data. From the logic aspect, the overall system architecture of the invention can be divided into an end-edge-cloud three-layer architecture, wherein an end is a CNC system, an edge is an edge computing platform, and a cloud service end is a cloud service end. In the environment of the invention, the edge and the end are close to each other, are physically deployed in the same hardware environment and are in the same virtual local area network, so that the network condition is good and stable, and the real-time performance, stability and reliability of data transmission can be guaranteed; the edge and the cloud are separated, the communication is realized through the connection of a complex wide area network, and the real-time performance, the stability and the reliability of data transmission are guaranteed through a plurality of data synchronization methods.
Step S12, creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server communicating with the OPC UA client on the CNC system.
As described above, an OPC UA client is created on the edge computing platform, and an OPC UA server in communication with the OPC UA client is created on the CNC system. The OPC UA client establishes connection with the OPC UA server through an OPC UA adapter, keeps conversation, and subscribes to obtain machine tool working state data of the numerical control machine equipment.
The edge computing platform and the CNC system are communicated based on an OPC UA protocol, and machine tool working state data of the numerical control machine tool equipment, which are acquired in real time, are subscribed from the OPC UA server. The OPC UA server is used for describing data exchange between the CNC system and the OPC UA client, and the OPC UA server and the OPC UA client communicate through a session.
And step S13, the OPC UA server reads the machine tool working state data of the numerical control machine tool equipment at a fixed sampling frequency, and sends the data to the OPC UA client in a message notification mode according to a regular release interval.
Specifically, a subscription mode is used between the OPC UA service and the OPC UA client, the OPC UA server reads the machine tool working state data of the numerical control machine tool at a fixed sampling frequency, stores the machine tool working state data into a message cache queue of the OPC UA client, and then sends the machine tool working state data of the numerical control machine tool to the OPC UA client at regular intervals in a message notification manner. It can be understood that if the sampling interval is shorter than the issuing interval, the machine tool working state data can be temporarily stored in the queue until the issuing interval comes and then is sent out. The OPC UA server periodically sends a keep-alive message indicating to the corresponding OPC UA client that the connection is still active. Meanwhile, the OPC UA client of the invention is responsible for preprocessing the message data collected from the machine tool processing module, including converting data format, null value processing, semantic conversion and the like, besides establishing connection with the OPC UA server, maintaining session and subscribing to obtain collected data.
The machine tool working state data of the numerical control machine tool equipment comprise real-time monitoring process parameters, historical data, process data and cutter data. The real-time monitoring process parameters comprise feeding F, rotating speed S, POWER and PROGRAM PROGRAM; the historical data comprises machine tool operation records, alarm records and the number of processed workpieces; the process data comprises coordinates, servo axis current I and stroke; the tool data includes tool number, tool library capacity, tool cutting time, and tool loading time.
In this embodiment, the machine tool operating state data subscribed from the OPC UA server is first stored in an OPC UA client message cache queue, and then the OPC UA client parses message data item by item based on an OPC UA data model defined by the OPC UA server, processes node attribute information such as address space, numerical type, identification information and the like according to a node hierarchical structure of the OPC UA data model, and converts numerical content (binary numerical value) corresponding to a node to form a key value pair combination with clear hierarchy and readable semantic, so as to meet the format requirement of the subsequent synchronous data of the edge computing platform and the cloud server.
Preferably, in other embodiments, the edge computing platform comprises a first MQTT client, and an MQTT message service module in communication with the first MQTT client; the cloud service end comprises a second MQTT client, and the method further comprises the following steps:
the first MQTT client receives the machine tool working state data after data processing is carried out by an OPC UA client, and sends the machine tool working state data after data processing to the MQTT message service module; the second MQTT client communicates with the MQTT message service module through a TLS encryption channel, machine tool working state data of the numerical control machine tool equipment are acquired from the MQTT message service module in real time, and the machine tool working state data are persistently stored to a big data platform after being verified by the cloud service terminal. It can be understood that the edge computing platform is internally provided with an MQTT message service module, and machine tool working state data is acquired, processed and verified and then sent to an MQTT message service queue by using a first MQTT client; at the moment, a second MQTT client side arranged in the cloud server side subscribes the messages, machine tool working state data are obtained in real time through a TLS encryption channel, and the machine tool working state data are persistently stored in a big data platform after being verified by the cloud server side for subsequent analysis and application.
Preferably, in other embodiments, the edge computing platform further includes a data Web service module, and the cloud service end further includes an HTTP client; the method further comprises the following steps:
the cloud service side calls a query interface through the HTTP client side and sends query request information to the Web service module through the query interface; and the Web service module transmits the machine tool working state data of the numerical control machine equipment meeting the conditions to a cloud service end through a TLS encryption channel according to the query request information, and persistently stores the machine tool working state data to a big data platform after the cloud service end verifies. The edge computing platform acquires the machine tool working state data from the CNC system, processes and verifies the machine tool working state data, temporarily stores the machine tool working state data into a local database in a time sequence format, and internally stores a data Web service module to provide data query service for the outside; the cloud server can use the HTTP client to call a query interface, set data query conditions such as a time range and an attribute field, acquire machine tool working state data after TLS encryption and persist the machine tool working state data to a big data platform.
It should be further noted that, the invention utilizes abundant computational resources of the industrial control module in the current numerical control machine tool equipment, and realizes that a plurality of virtual machines run on the industrial control module based on the virtualization technology to construct a virtualization network; the CNC system and the Windows system which depends on the CNC system are deployed on one virtual machine, and the edge computing platform and the Linux system which depends on the edge computing platform are deployed on the other virtual machine; meanwhile, the data of the working state of the machine tool is stably and efficiently acquired from the CNC system in real time and synchronized to the cloud server side based on the edge computing technology. Compared with the traditional numerical control machine tool data acquisition method, the calculation resources of the industrial control module in the current numerical control machine tool equipment are fully utilized, the industrial control network reconstruction and maintenance cost is reduced, and the machine tool data acquisition is carried out more conveniently and efficiently. The specific technical advantages are as follows:
(1) the resource use and scheduling efficiency of industrial modules in the numerical control machine tool equipment are improved through a virtualization technology, the waste of computing resources is avoided, and the simultaneous deployment and operation of a CNC system and an edge computing platform are realized.
(2) Compared with the traditional method for acquiring the data of the working state of the machine tool of the numerical control machine tool equipment, which needs to additionally introduce equipment such as a data acquisition card and an edge computing gateway, the method provided by the invention has the advantages that the edge computing platform and the CNC system are arranged on the same equipment, the environment improvement and upgrading operation and maintenance cost is reduced, and meanwhile, the data acquisition network wiring is simplified.
(3) The edge computing platform and the CNC system are deployed in the same computing environment and are in the same virtual local area network, data transmission time delay between the two systems is low, and meanwhile, an efficient publishing/subscribing data exchange mode is adopted, so that the real-time performance of edge collection of the machine tool working state data is guaranteed.
(4) After the edge computing platform collects the machine tool working state data of the numerical control machine tool equipment, the data are stored locally, the problem of data loss under abnormal conditions can be relieved, and the reliability of data collection is guaranteed.
(5) In a machine tool data acquisition system based on a cloud-edge-end three-layer framework, an edge computing platform and a CNC system are in the same equipment, so that external security attacks can be effectively isolated; TLS encryption transmission is adopted between the edge computing platform and the cloud server, and data acquisition and transmission safety is effectively guaranteed.
(6) Based on OPC UA protocol, real-time and standard collection of machine tool working state data is realized between the edge computing platform and the CNC system of the numerical control machine tool.
Firstly, establishing a virtualization layer of numerical control machine equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer; creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system; and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode. Compared with the prior art, the method can fully utilize computing resources of the current numerical control machine tool, reduces the cost of industrial control network modification and maintenance, and meets the actual application requirements.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
Referring to fig. 2, the present invention further provides a data collecting system of a numerically controlled machine tool based on edge computing and virtualization technology, the system comprising:
the numerical control machine tool equipment 21 is configured to create a virtualization layer of the numerical control machine tool equipment, and deploy a CNC system and an edge computing platform on the virtualization layer, respectively.
Specifically, a physical layer of the numerical control machine tool equipment is obtained, and a virtualization layer is created on the physical layer of the numerical control machine tool; respectively creating a first virtual machine and a second virtual machine on the virtualization layer, deploying a CNC system on the first virtual machine, and deploying an edge computing platform on the second virtual machine; the CNC system is used for controlling operation of the numerical control machine tool equipment, and the edge computing platform is used for adapting to a CNC system protocol and synchronizing machine tool working state data to the cloud server after collecting the machine tool working state data.
A virtual network 22 for creating an OPC UA client on the edge computing platform and creating an OPC UA server on the CNC system in communication with the OPC UA client.
The OPC UA client establishes connection with the OPC UA server through an OPC UA adapter, keeps conversation and subscribes to obtain machine tool working state data of the numerical control machine equipment; the machine tool working state data of the numerical control machine tool equipment comprise real-time monitoring process parameters, historical data and processes.
And the OPC UA server 23 is configured to read the machine tool working state data of the numerical control machine tool equipment at a fixed sampling frequency, and send the machine tool working state data to the OPC UA client at regular release intervals in a message notification manner.
Specifically, the OPC UA client subscribes machine tool working state data of the numerical control machine tool equipment acquired in real time from the OPC UA server based on an OPC UA protocol; the OPC UA server reads the machine tool working state data of the numerical control machine tool equipment at a fixed sampling frequency and stores the machine tool working state data into a message cache queue of an OPC UA client; and sending the machine tool working state data of the numerical control machine tool equipment to the OPC UA client according to a regular release interval in a message notification mode.
Further, the OPC UA client analyzes and processes the received machine tool working state data of the numerical control machine tool equipment one by one according to an OPC UA data model; and sending the machine tool working state data subjected to data processing to the edge computing platform, and enabling the edge computing platform to store the working state data of the numerical control machine tool equipment in a storage manner for persistence according to requirements.
Further, the edge computing platform comprises a first MQTT client and an MQTT message service module in communication with the first MQTT client; the cloud service end comprises a second MQTT client, the first MQTT client receives the machine tool working state data after data processing is carried out by an OPC UA client, and sends the machine tool working state data after data processing to the MQTT message service module; and the second MQTT client acquires the machine tool working state data of the numerical control machine tool equipment in real time through a TLS encryption channel, and persistently stores the machine tool working state data to a big data platform after the cloud server is verified.
Further, the edge computing platform further comprises a data Web service module, and the cloud service end further comprises an HTTP client; the cloud service side calls a query interface through an HTTP client side and sends query request information to the Web service module through the query interface; and the Web service module transmits the machine tool working state data of the numerical control machine equipment meeting the conditions to a cloud service end through a TLS encryption channel according to the query request information, and persistently stores the machine tool working state data to a big data platform after the cloud service end verifies.
The numerical control machine tool data acquisition system based on the edge calculation and virtualization technology provided by the embodiment of the invention comprises the steps of firstly establishing a virtualization layer of numerical control machine tool equipment, and respectively deploying a CNC system and an edge calculation platform on the virtualization layer; creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system; and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode. Compared with the prior art, the method can fully utilize computing resources of the current numerical control machine tool, reduces the cost of industrial control network modification and maintenance, and meets the actual application requirements.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program controls the device on which the computer readable storage medium is located to execute the method for acquiring data of a numerically-controlled machine tool based on the edge calculation and virtualization technology.
The embodiment of the invention also provides industrial equipment, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the numerical control machine tool data acquisition method based on the edge computing and virtualization technology when executing the computer program.
Preferably, the computer program can be divided into one or more modules/units (e.g. computer program 1, computer program 2,) which are stored in the memory and executed by the processor to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the industrial device.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc., the general purpose Processor may be a microprocessor, or the Processor may be any conventional Processor, the Processor is a control center of the industrial equipment, and various interfaces and lines are used to connect various parts of the industrial equipment.
The memory mainly includes a program storage area that may store an operating system, an application program required for at least one function, and the like, and a data storage area that may store related data and the like. In addition, the memory may be a high speed random access memory, may also be a non-volatile memory, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like, or may also be other volatile solid state memory devices.
It is noted that the industrial device may include, but is not limited to, a processor, a memory, and those skilled in the art will appreciate that the industrial device may include more or less components than those described above, or some components may be combined, or different components.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A numerical control machine tool data acquisition method based on an edge calculation and virtualization technology is characterized by comprising the following steps:
creating a virtualization layer of the numerical control machine tool equipment, and respectively deploying a CNC system and an edge computing platform on the virtualization layer;
creating an OPC UA client corresponding to the edge computing platform, and creating an OPC UA server which communicates with the OPC UA client on the CNC system;
and the OPC UA server reads the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sends the data to the OPC UA client at regular release intervals in a message notification mode.
2. The method for data collection of a numerically controlled machine tool based on edge computing and virtualization technology of claim 1, wherein a virtualization layer of numerically controlled machine tool equipment is created, and a CNC system and an edge computing platform are respectively deployed on the virtualization layer, and specifically comprises:
acquiring a physical layer of the numerical control machine tool equipment, and creating a virtualization layer on the physical layer of the numerical control machine tool;
respectively creating a first virtual machine and a second virtual machine on the virtualization layer, deploying a CNC system on the first virtual machine, and deploying an edge computing platform on the second virtual machine; the CNC system is used for controlling operation of the numerical control machine tool equipment, and the edge computing platform is used for adapting to a CNC system protocol and synchronizing machine tool working state data to the cloud server after collecting the machine tool working state data.
3. The numerical control machine tool data acquisition method based on the edge computing and virtualization technology of claim 1, wherein the OPC UA client establishes a connection with the OPC UA server through an OPC UA adapter, maintains a session, and subscribes to obtain machine tool working state data of a numerical control machine tool device; the machine tool working state data of the numerical control machine tool equipment comprise real-time monitoring process parameters, historical data, process data and cutter data.
4. The method according to claim 2, wherein the OPC UA server reads the machine tool operating state data of the cnc device at a fixed sampling frequency and sends the data to the OPC UA client at regular intervals in the form of message notification, specifically comprising:
the OPC UA client subscribes machine tool working state data of the numerical control machine tool equipment acquired in real time from the OPC UA server based on an OPC UA protocol;
the OPC UA server reads the machine tool working state data of the numerical control machine tool equipment at a fixed sampling frequency and stores the machine tool working state data into a message cache queue of an OPC UA client;
and sending the machine tool working state data of the numerical control machine tool equipment to the OPC UA client according to a regular release interval in a message notification mode.
5. The method for collecting data of a numerically controlled machine tool based on edge computing and virtualization technology of claim 4, wherein the method further comprises:
the OPC UA client analyzes and processes the received machine tool working state data of the numerical control machine tool one by one according to an OPC UA data model;
and sending the machine tool working state data subjected to data processing to the edge computing platform, and storing the working state data of the numerical control machine tool equipment in a storage for persistent storage by the edge computing platform according to requirements.
6. The data acquisition method for the numerical control machine tool based on the edge computing and virtualization technology of claim 5, wherein the edge computing platform comprises a first MQTT client and an MQTT message service module communicating with the first MQTT client; the cloud service end comprises a second MQTT client, and the method further comprises the following steps:
the first MQTT client receives the machine tool working state data after data processing is carried out by an OPC UA client, and sends the machine tool working state data after data processing to the MQTT message service module;
and the second MQTT client acquires the machine tool working state data of the numerical control machine tool equipment in real time through a TLS encryption channel, and persistently stores the machine tool working state data to a big data platform after the cloud server is verified.
7. The numerical control machine tool data acquisition method based on the edge computing and virtualization technology as claimed in claim 6, wherein the edge computing platform further comprises a data Web service module, and the cloud service end further comprises an HTTP client; the method further comprises the following steps:
the cloud service side calls a query interface through an HTTP client side and sends query request information to the Web service module through the query interface;
and the Web service module transmits the machine tool working state data of the numerical control machine equipment meeting the conditions to a cloud service end through a TLS encryption channel according to the query request information, and persistently stores the machine tool working state data to a big data platform after the cloud service end verifies.
8. A numerical control machine tool data acquisition system based on edge calculation and virtualization technology is characterized by comprising:
the system comprises numerical control machine equipment, a data processing system and a data processing system, wherein the numerical control machine equipment is used for creating a virtualization layer of the numerical control machine equipment, and a CNC system and an edge computing platform are respectively deployed on the virtualization layer;
a virtual network for creating an OPC UA client on the edge computing platform and an OPC UA server on the CNC system in communication with the OPC UA client;
and the OPC UA server is used for reading the machine tool working state data of the numerical control machine equipment at a fixed sampling frequency and sending the data to the OPC UA client in a message notification mode according to a regular release interval.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program controls the device on which the computer readable storage medium is located to execute the method for collecting data of a numerically controlled machine tool based on the edge computing and virtualization technology according to any one of claims 1 to 7 when running.
10. An industrial apparatus, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the method for data collection of a numerically controlled machine tool based on edge computing and virtualization technology according to any one of claims 1 to 7.
CN202210850016.6A 2022-07-20 2022-07-20 Numerical control machine tool data acquisition method based on edge calculation and virtualization technology Active CN115086379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210850016.6A CN115086379B (en) 2022-07-20 2022-07-20 Numerical control machine tool data acquisition method based on edge calculation and virtualization technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210850016.6A CN115086379B (en) 2022-07-20 2022-07-20 Numerical control machine tool data acquisition method based on edge calculation and virtualization technology

Publications (2)

Publication Number Publication Date
CN115086379A true CN115086379A (en) 2022-09-20
CN115086379B CN115086379B (en) 2022-11-25

Family

ID=83259879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210850016.6A Active CN115086379B (en) 2022-07-20 2022-07-20 Numerical control machine tool data acquisition method based on edge calculation and virtualization technology

Country Status (1)

Country Link
CN (1) CN115086379B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115410701A (en) * 2022-10-28 2022-11-29 云宏信息科技股份有限公司 Medical consumable purchasing method based on edge calculation and virtualization technology
CN117033252A (en) * 2023-10-09 2023-11-10 中核武汉核电运行技术股份有限公司 Combined simulation communication system based on opcua

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449399A (en) * 2018-03-09 2018-08-24 武汉邮电科学研究院有限公司 It is suitable for the edge calculations node of intelligent production
CN111459605A (en) * 2020-02-26 2020-07-28 浙江工业大学 Edge computing gateway virtualization method based on Docker
CN111756626A (en) * 2020-06-03 2020-10-09 西安交通大学 Production line edge equipment longitudinal integrated gateway based on OPC UA and implementation method thereof
EP3919991A2 (en) * 2020-06-06 2021-12-08 Honeywell International Inc. Method and system for configuring a building management system
US20220036301A1 (en) * 2019-11-05 2022-02-03 Strong Force Vcn Portfolio 2019, Llc Internet of things resources for control tower and enterprise management platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449399A (en) * 2018-03-09 2018-08-24 武汉邮电科学研究院有限公司 It is suitable for the edge calculations node of intelligent production
US20220036301A1 (en) * 2019-11-05 2022-02-03 Strong Force Vcn Portfolio 2019, Llc Internet of things resources for control tower and enterprise management platform
CN111459605A (en) * 2020-02-26 2020-07-28 浙江工业大学 Edge computing gateway virtualization method based on Docker
CN111756626A (en) * 2020-06-03 2020-10-09 西安交通大学 Production line edge equipment longitudinal integrated gateway based on OPC UA and implementation method thereof
EP3919991A2 (en) * 2020-06-06 2021-12-08 Honeywell International Inc. Method and system for configuring a building management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
崔广章: "详解边缘计算系统逻辑架构:云、边、端协同", 《CSDN》 *
西门子: "西门子进一步扩展Sinumerik Edge应用,人工智能全力赋能机床行业", 《搜狐》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115410701A (en) * 2022-10-28 2022-11-29 云宏信息科技股份有限公司 Medical consumable purchasing method based on edge calculation and virtualization technology
CN117033252A (en) * 2023-10-09 2023-11-10 中核武汉核电运行技术股份有限公司 Combined simulation communication system based on opcua
CN117033252B (en) * 2023-10-09 2024-04-12 中核武汉核电运行技术股份有限公司 Combined simulation communication system based on opcua

Also Published As

Publication number Publication date
CN115086379B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN115086379B (en) Numerical control machine tool data acquisition method based on edge calculation and virtualization technology
CN109327509B (en) Low-coupling distributed streaming computing system of master/slave architecture
CN102880475B (en) Based on the real-time event disposal system of cloud computing and method in computer software
CN111031034A (en) Multi-protocol convergence edge computing gateway
CN112202900B (en) Novel-architecture edge computing system
CN111737329A (en) Unified data acquisition platform for rail transit
CN113176948B (en) Edge gateway, edge computing system and configuration method thereof
CN102521781A (en) Safe region-crossing equipment uniform monitoring method based on independent monitoring services, and monitoring system for the same
CN113691497A (en) KubeEdge and edgeOS-based Internet of things equipment control architecture and method
CN113075877A (en) Track traffic integrated monitoring system
CN113472822A (en) Data distribution method, device, equipment and medium
CN116527718A (en) Data acquisition method and system for industrial Internet of things gateway
CN111127250B (en) Power data monitoring event analysis system and method
CN110008267B (en) Data processing system and method
CN101893876B (en) Control network method for large-scale distributed control system
CN114584429A (en) Industrial intelligent internet of things gateway
CN113489802B (en) Internet of things collection equipment
CN111077851A (en) Chemical process fault diagnosis system based on gas chromatography fog calculation framework
CN113659722B (en) Multifunctional network system of 5G power network and management method thereof
CN115695535A (en) Configurable plug-in type cluster data acquisition master control system
CN114706675A (en) Task deployment method and device based on cloud edge cooperative system
CN113848834A (en) Workshop equipment access system and method based on edge cloud cooperation
CN100547560C (en) A kind of computers group monitoring and method
CN113407611B (en) Data integration distribution platform and system
CN112565041B (en) Hardware information configuration method, device and medium of FF field bus system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant