Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a machine tool data collecting method and apparatus, and a machine tool data sharing method and apparatus, which are used to solve the technical problem that personalized data collection cannot be performed on each machine tool in a targeted manner in the prior art.
In order to achieve the above and other related objects, the present invention provides a machine tool data acquisition method, applied to a server, the method including: determining the machine tool data acquisition requirement according to the service requirement; determining a machine tool data acquisition message meeting the machine tool data acquisition requirement; and providing the machine tool data acquisition message to a machine tool numerical control system or edge equipment so that the machine tool numerical control system or the edge equipment can acquire the machine tool data according to the machine tool data acquisition message.
In an embodiment of the present invention, the machine tool data acquisition requirements include: acquiring content and frequency of machine tool data; the determining of the machine tool data acquisition message meeting the machine tool data acquisition requirement includes: searching a machine tool data acquisition message which simultaneously matches the machine tool data acquisition content and the machine tool data acquisition frequency; and if the matched machine tool data acquisition message is not found, establishing a corresponding machine tool data acquisition message according to the machine tool data acquisition content and the machine tool data acquisition frequency, and storing the corresponding machine tool data acquisition message.
In an embodiment of the present invention, the method further includes: and receiving and storing the machine tool data acquired by the machine tool numerical control system or the edge device according to the machine tool data acquisition message.
In an embodiment of the present invention, the content of the machine tool data acquisition packet includes: message identification, message name, machine tool data acquisition rule, machine tool data acquisition frequency, machine tool data acquisition field and message type.
In order to achieve the above and other related objects, the present invention provides a machine tool data acquisition method applied to a numerical control system or an edge device of a machine tool, the method comprising: receiving a machine tool data acquisition message; acquiring machine tool data according to the machine tool data acquisition message; and storing the collected machine tool data and sending the data to the outside.
In order to achieve the above and other related objects, the present invention provides a machine tool data sharing method, applied to a server, the method including: acquiring a machine tool data sharing request; and providing the machine tool data to be shared and a public machine tool data acquisition message adopted for acquiring the machine tool data to a receiving party according to the machine tool data sharing request, so that the receiving party can access the machine tool data based on the public machine tool data acquisition message.
In order to achieve the above and other related objects, the present invention provides a machine tool data acquisition device, applied to a server, the device including: the service management module is used for acquiring the data acquisition requirement of the machine tool; the subscription management module is used for determining a machine tool data acquisition message meeting the machine tool data acquisition requirement; and the communication module is used for providing the machine tool data acquisition message to a machine tool numerical control system or edge equipment so as to enable the machine tool numerical control system or the edge equipment to acquire the machine tool data according to the machine tool data acquisition message.
In order to achieve the above and other related objects, the present invention provides a machine tool data acquisition device for use in a numerical control system of a machine tool or in an edge device, the device comprising: the communication module is used for receiving the machine tool data acquisition message and sending the acquired machine tool data to the outside; the message analysis module is used for analyzing the machine tool data acquisition message; the data acquisition module is used for acquiring the machine tool data according to the machine tool data acquisition message; and the database is used for storing the acquired machine tool data.
In order to achieve the above and other related objects, the present invention provides a machine tool data sharing apparatus, applied to a server, the apparatus including: the user management module is used for acquiring a machine tool data sharing request; and the communication module is used for providing the machine tool data to be shared and a public machine tool data acquisition message adopted by the machine tool data acquisition to a receiver according to the machine tool data sharing request so that the receiver can access the machine tool data based on the public machine tool data acquisition message.
To achieve the above and other related objects, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the machine tool data acquisition method.
To achieve the above and other related objects, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the machine tool data sharing method.
To achieve the above and other related objects, the present invention provides a server comprising: a processor, a memory, and a communicator; the communicator is used for establishing communication connection between the server and external equipment; the memory is used for storing a computer program; the processor is used for loading and executing the computer program so as to enable the server to execute the machine tool data acquisition method.
To achieve the above and other related objects, the present invention provides a numerical control machine tool, comprising: a processor, a memory, and a communicator; the communicator is used for establishing communication connection between the numerical control machine tool and external equipment; the memory is used for storing a computer program; the processor is used for loading and executing the computer program so as to enable the numerical control machine tool to execute the machine tool data acquisition method.
To achieve the above and other related objects, the present invention provides an edge device, comprising: a processor, a memory, and a communicator; the communicator is used for establishing communication connection between the edge device and an external device; the memory is used for storing a computer program; the processor is used for loading and executing the computer program to enable the edge device to execute the machine tool data acquisition method.
As described above, the machine tool data acquisition method and apparatus, and the machine tool data sharing method and apparatus of the present invention can flexibly define the acquisition content and the acquisition frequency of the machine tool data for each machine tool, thereby acquiring the machine tool data individually; in addition, machine tool shared data can be flexibly provided for each machine tool, and other users can conveniently understand the meaning of the machine tool shared data based on message definition.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
The monitoring and management elements of each numerical control machine are different, and cloud monitoring of the numerical control machine is required to carry out personalized data acquisition on each machine in a targeted manner. Different brands or different types of numerical control machines of the same brand have different data acquisition contents, communication frequencies and the like, so that a flexible data acquisition method is needed. In addition, due to the requirement of network collaborative manufacturing based on industrial internet, the operation state of the numerical control machine tool needs to be shared among different enterprises, which in turn needs the data collection information content and structure (which can be understood as information model) of each numerical control machine tool to be understood by the related enterprises for sharing. The invention provides a set of flexible numerical control machine data acquisition device and method, which can form data acquisition messages according to different numerical control machine self-defined data acquisition contents and acquisition frequencies. Each message defines the content and frequency of data acquisition. Meanwhile, the data acquisition message can be shared among different enterprises according to business needs so as to carry out information sharing.
As shown in fig. 1, the machine tool data collecting apparatus shown in this embodiment includes a network platform a, a device at edge B, a device at object C, a machine tool numerical control system D (having a message parsing module), and other devices similar to B or D (the number of B or D may be unlimited).
The network platform A can be an industrial cloud platform, a public network platform or an enterprise private platform and is built by adopting a single physical server or a server group. The enterprise private platform can only carry out data acquisition and carry out data sharing in an enterprise, but cannot carry out data sharing with nodes outside the enterprise private platform.
The inside of the A network platform comprises: a01 service management module, which is mainly used to manage the monitoring and management service of the numerical control machine, and to determine the data acquisition requirement, i.e. the content and frequency of the acquired data; a02 subscription management module, mainly determining the relation between the data acquisition requirement and the data message, and sending down the message to the numerical control machine; a03 message management module, which completes the functions of defining new message, modifying message, searching message, deleting message, storing message, etc.; a04 machine tool numerical control management module, used to manage the collected machine tool data, including realizing data sharing; a05 user management module, for managing the collection parameter and the message definition and the data sharing user; and the A06 communication module is used for communicating with the B edge device or the D numerical control system.
There are two typical ways for data collection to be connected to the network platform a, one is through the edge device B, and the other is through the direct connection of the numerical control system D itself. If the numerical control system is provided with a message analysis module and can support data acquisition based on the data acquisition message, the numerical control system can be directly connected with the network platform A without passing through the edge device B. Otherwise, it needs to connect to the network platform through edge device B.
B-edge devices are a class of devices that implement data acquisition functions. Some numerical control systems of the numerical control machine tool cannot directly communicate with the network platform A, or the numerical control systems of the numerical control machine tool cannot support a data acquisition mode based on the message, and the data acquisition based on the message is realized by means of the edge device B. The B-edge device includes: the B01 communication module is used for finishing communication with the network platform and the data acquisition object; the B02 message analysis module is used for analyzing the message sent from the network platform and determining the data acquisition requirement; the B03 data acquisition module realizes data acquisition from the C data acquisition object (such as a numerical control machine tool) by understanding the data acquisition message; b04 data processing module, which is used to perform necessary conversion, cleaning and pretreatment to the data; and the B05 local management module is used for managing messages and collecting data, and has the functions of storing and transmitting messages and data.
The D numerical control system can directly understand the message after being provided with a D02 message analysis module, and supports a message-based data acquisition function. Thus, the numerical control system D can be directly connected with the network platform A. D numerical control system includes: the D01 communication module is used for finishing communication with the network platform and the data acquisition object; the D02 message analysis module is used for analyzing the message sent from the network platform and determining the data acquisition requirement; the D03 data processing module is used for performing necessary arrangement, collection and pretreatment on the data of the numerical control system so as to meet the requirement of message acquisition; and the D04 local management module is used for managing messages and collecting data, and has the functions of storing and transmitting messages and data. In this connection, the D numerical control system itself is an object to be subjected to data acquisition.
Those skilled in the art will appreciate that the division of the various blocks in the embodiment of fig. 1 is a logical division, and the actual implementation may be wholly or partially integrated into one or more physical entities. And the modules can be realized in a form that all software is called by the processing element, or in a form that all the modules are realized in a form that all the modules are called by the processing element, or in a form that part of the modules are called by the hardware.
The embodiment provides a machine tool data acquisition method, which is executed by a network platform a shown in fig. 1 and includes the following steps:
step one, acquiring a machine tool data acquisition requirement;
secondly, determining a machine tool data acquisition message meeting the machine tool data acquisition requirement;
and step three, providing the machine tool data acquisition message to a machine tool numerical control system or edge equipment so as to enable the machine tool numerical control system or the edge equipment to acquire the machine tool data according to the machine tool data acquisition message.
The following first describes the machine tool data collection message in this embodiment in detail.
The machine tool data acquisition message is formulated according to different services or models. The machine tool data acquisition message can be regarded as a definition of data acquisition content and data acquisition frequency, and after receiving the machine tool data acquisition message, the machine tool numerical control system or the edge device acquires the machine tool data according to the defined data acquisition content and data acquisition frequency. Generally, the machine tool data acquisition message can be written based on XML or JSON.
The machine tool data acquisition message mainly comprises the following attributes: the method comprises the steps of message ID, message name, machine tool data acquisition rule (time type and event type), machine tool data acquisition frequency, message type (public message or private message) and device parameter set (namely machine tool data acquisition field) corresponding to the message. In addition, the technical staff can add the newly added message attribute content to the message base definition, which is not limited by the present invention. The main attributes of the machine tool data acquisition message are explained as follows:
1) message ID: uniquely identifying a message;
2) the message name is as follows: the retrieval of the message is facilitated;
3) collecting rules: defining whether data acquisition is timed acquisition (time type) or acquisition after a certain event occurs (event type);
4) acquisition frequency: defining the number of times data needs to be collected per time interval (e.g., every minute or hour or day);
5) message type: public messages, also called global messages, can be shared by different users; the private message can also be regarded as a local message and can only be used by a user who defines the message;
6) the message corresponds to the belonged equipment parameter set: the finger message defines the data field to be collected.
The nc machines of different nc machine suppliers are classified into an equipment category and a system category. The device categories include a device major category (such as a lathe, a milling machine, a planer, a grinder, etc.) and a device minor category (a specific model of the device), and each device major category includes a plurality of device minor categories therein. The system categories are divided into a system major category and a system minor category. The major system is the manufacturer of the numerical control system adopted by the numerical control machine, such as Siemens, FANUC, i5 and the like, and the minor system is the specific model of the numerical control system. Each cnc machine defines different sets of parameters according to its equipment category and system category. When defining the machine tool data acquisition message, according to the equipment object (C or D) to be acquired, selecting partial parameters from the parameter set corresponding to the equipment class and the system class to which the equipment object belongs as the field of data acquisition.
In detail, referring to the flowchart shown in fig. 2, the machine tool data acquisition process of the present embodiment is specifically as follows:
s101: according to the needs of the user's own business, the business information is registered in the business management module A01 of the network platform A, so as to clarify the data acquisition requirements of the machine tool, including at least data acquisition content and data acquisition frequency.
S102: the message management module a03 of the network platform a searches whether a message definition related to the service exists in the message library a10, that is, whether a machine tool data acquisition message which conforms to both data acquisition content and data acquisition frequency exists.
S103: if no matching machine tool data collection message is retrieved, a new machine tool data collection message is defined and stored in message library A10.
S104: if the matched machine tool data acquisition message is retrieved, the message subscription module A02 is used to associate the service with the message, that is, the machine tool data acquisition message which should be adopted by the current service is determined.
S105: and the network platform A downloads the determined machine tool data acquisition message to the edge equipment B or the numerical control system D.
If the numerical control machine supports message analysis and can acquire data according to machine tool data acquisition messages, the machine tool data acquisition messages can be directly transmitted to a numerical control system of the equipment, such as a D numerical control system in the figure 1;
if the numerical control machine does not support message analysis or data can not be acquired according to the machine tool data acquisition message, transmitting the machine tool data acquisition message to an edge device B connected with the numerical control machine, and enabling the edge device B to acquire the data of the numerical control machine based on the machine tool data acquisition message.
S106: the edge device B or the numerical control system D completes data acquisition and uploads the data to the network platform A. Specifically, the numerical control system D or the edge device B performs machine tool data acquisition according to data acquisition contents and data acquisition frequencies defined in the machine tool data acquisition message, and uploads the acquired data to the network platform a.
S107: the network platform A stores the data in the machine tool database A11 for the access of the relevant service module.
It should be noted that, in this example, the numerical control system D or the edge device B receives the machine tool data acquisition message sent by the network platform a; in other embodiments, the numerical control system D or the edge device B may receive a machine tool data acquisition message sent by other electronic devices, such as a smart phone, a tablet computer, and the like, and perform machine tool data acquisition according to the machine tool data acquisition message.
In addition, some services require data sharing between users and other users, that is, data collected by the users are shared with other users, and at this time, when the collected data are shared with other users, machine tool data collection messages adopted for collecting the data need to be provided for other users, so that the users can read and understand the meaning of the collected data.
It should be noted that the data sharing among users can only be shared within the scope of the network platform. If other users do not have access to the network platform, the shared data cannot be accessed through the architecture of fig. 1 of the present invention.
Generally speaking, other people need to be informed of the structure of the data in the data sharing process, otherwise other users cannot understand the meaning of the data. By transmitting the definition information of the machine tool data acquisition message to other users, the other users can conveniently understand the meaning of the data according to the definition information.
The embodiment provides a machine tool data sharing method, which is executed by the a network platform shown in fig. 1 and includes the following steps:
step one, obtaining a machine tool data sharing request;
and step two, providing the machine tool data to be shared and a public machine tool data acquisition message adopted for acquiring the machine tool data to a receiving party according to the machine tool data sharing request so that the receiving party can access the machine tool data based on the public machine tool data acquisition message.
In detail, referring to the flowchart shown in fig. 3, the machine tool data sharing process of the present embodiment is specifically as follows:
s201: according to the needs of the user's own services, the user registers service information (or retrieves the existing services) in the service management module a01 of the network platform a to share the data acquired by the user, and determines the data acquisition content and the data acquisition frequency.
S202: the message management module a03 of the network platform a searches whether there is a common message definition related to the service, that is, a common machine tool data acquisition message that satisfies both the data acquisition content and the data acquisition frequency.
The public machine tool data acquisition message refers to a machine tool data acquisition message which can be accessed by other users. Public machine tool data collection messages may be added to the report bank a10 for subsequent sharing.
S203: if no matching machine tool data collection message is retrieved, a new public machine tool data collection message is defined and stored in message library A10.
S204: if the matched machine tool data acquisition message is retrieved, the message subscription module A02 is used for associating the service with the public message, namely determining the public machine tool data acquisition message which should be adopted by the current service. And the user collects data according to the public machine tool data collection message and stores the collected data in a machine tool database A11. The collection process refers to the flow of fig. 2, which is not repeated herein.
S205: according to the service requirement, the user shares the own data and the corresponding public machine tool data acquisition message to the appointed service related user by using the authority setting function in the user management module A05.
S206: the users related to the services access the shared data stored in the machine tool database A11 through the machine tool data management module A04 according to the structure of the public machine tool data acquisition message, so that the meaning of the shared data is interpreted.
In an application scenario, a user A requires other users (such as a user B) to acquire specified data and shares the data to the user A, then the user A can send a public machine tool data acquisition message defined by the user A to the user B through a network platform, the user B acquires the data by using the message, and then the data is shared to the user A through the network platform. The consistency of the public machine tool data acquisition messages ensures that the data acquired by the machine tool B meets the requirements of the machine tool A. This process is similar to the flow described in fig. 3 and will not be repeated here.
All or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. Based upon such an understanding, the present invention also provides a computer program product comprising one or more computer instructions. The computer instructions may be stored in a computer readable storage medium. The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Referring to fig. 4, the present embodiment provides a server 40, and the server 40 may be a desktop device or the like. In detail, the server 40 comprises at least, connected by a bus 41: amemory 42, aprocessor 43, and acommunicator 44, wherein thecommunicator 44 is configured to establish a communication connection between the server 40 and an external device (such as an edge device, a numerical control machine, etc.), thememory 42 is configured to store a computer program, and theprocessor 43 is configured to execute the computer program stored in thememory 42 to execute the machine tool data acquisition method in the foregoing method embodiment.
In addition, the present invention provides a numerical control machine tool (not shown) including at least: the system comprises a memory, a processor and a communicator, wherein the communicator is used for establishing communication connection between the numerical control machine tool and external equipment (such as a server), the memory is used for storing computer programs, and the processor is used for executing the computer programs stored in the memory so as to execute the machine tool data acquisition method and the machine tool data sharing method in the method embodiment.
Finally, the invention also provides an edge device (not shown) comprising at least, connected by a bus: the device comprises a memory, a processor and a communicator, wherein the communicator is used for establishing a communication connection between the edge device and an external device (such as a server), the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory so as to execute the machine tool data acquisition method in the method embodiment.
The above-mentioned system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In summary, the machine tool data acquisition method and apparatus, and the machine tool data sharing method and apparatus of the present invention create the machine tool data acquisition packet according to the business needs to define the data content and the acquisition frequency to be acquired, and can perform personalized data acquisition for each machine tool; typical services in connection with numerically controlled machines, such as: the machine tool data acquisition message is flexibly defined by monitoring service, equipment optimization operation service, remote diagnosis service and the like, which is not only beneficial to realizing flexible acquisition and sharing of machine tool data, but also convenient for a user to share and transmit information by combining own service in a supply chain. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.