Business Marking Method, Device, Electronic Device and Readable Storage Medium

By setting up a marking adapter in the marking equipment control system, querying the target adapter and determining the service virtual equipment, the problem of low marking efficiency caused by the differences in different laser control cards is solved, and a single system controls the business marking of multiple laser marking equipment is realized, improving efficiency and standardizing equipment management.

CN115840387BActive Publication Date: 2025-06-24CHANGSHA BASILIANG INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211465053.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-06-24
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In the prior art, the marking efficiency of controlling different types of laser marking equipment for business marking is low, mainly due to the differences in communication methods and control instructions of different laser control cards, which leads to the need to manipulate multiple control systems.

Method used

By setting up the marking adapters of different laser marking devices in the marking device control system, after obtaining the total service to be marked, the target marking adapter is queried based on the equipment information, and its corresponding sub-service and service virtual equipment to be marked are determined, and the laser marking device is controlled for marking.

Benefits of technology

It realizes the operational marking of laser marking equipment installed with different laser control cards through a single marking equipment control system, overcomes the manipulation needs of multiple control systems, improves the marking efficiency, and establishes standardized standards for the management of different types of laser marking equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115840387B_ABST
    Figure CN115840387B_ABST
Patent Text Reader

Abstract

The present application discloses a service marking method, device, electronic device, and readable storage medium, which are applied to the field of laser marking technology. The service marking method includes obtaining a total service to be marked, where the total service to be marked is a service waiting to be marked by at least one laser marking device; querying at least one target marking adapter corresponding thereto according to the device information of each laser marking device; determining the sub-services to be marked corresponding to each target marking adapter and the corresponding service virtual devices; and controlling the corresponding laser marking devices to mark each sub-service to be marked according to each service virtual device, so as to mark the total service to be marked. The present application solves the technical problem of low marking efficiency in controlling different types of laser marking devices to perform service marking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of laser marking, and in particular, to a service marking method, device, electronic device, and readable storage medium. Background Art

[0002] With the continuous development of the laser control industry, laser marking technology has been widely used in more and more service marking scenarios due to its many advantages such as clear, beautiful, and efficient marking. Currently, when facing different marking service requirements, the laser marking equipment installed with different laser control cards is usually controlled by a marking control system to perform corresponding service marking. However, since there are differences in communication methods and control instructions among different laser control cards, it is necessary to operate multiple control systems to control the marking services of multiple different types of laser marking equipment. That is, there is a lack of a standardized management standard for different types of laser marking equipment. Therefore, the current marking efficiency of controlling different types of laser marking equipment for service marking is low. Summary of the Invention

[0003] The main purpose of the present application is to provide a service marking method, device, electronic device, and readable storage medium, aiming to solve the technical problem of low marking efficiency in the prior art of controlling different types of laser marking equipment for service marking.

[0004] To achieve the above object, the present application provides a service marking method, which is applied to a marking equipment control system. The service marking method includes:

[0005] Obtain the total service to be marked, where the total service to be marked is the service waiting for at least one laser marking equipment to perform marking;

[0006] Query at least one target marking adapter corresponding to each laser marking equipment according to the equipment information of each laser marking equipment;

[0007] Determine the sub-services to be marked corresponding to each target marking adapter and the corresponding service virtual devices;

[0008] Control the corresponding laser marking equipment to mark each sub-service to be marked according to each service virtual device, so as to mark the total service to be marked.

[0009] To achieve the above object, the present application further provides a service marking device, which is applied to a marking equipment control system. The service marking device includes:

[0010] An obtaining module, configured to obtain the total service to be marked, where the total service to be marked is the service waiting for at least one laser marking equipment to perform marking;

[0011] A query module, configured to query at least one target marking adapter corresponding thereto according to the device information of each of the laser marking devices;

[0012] A determination module, configured to determine the service marking path and the corresponding service virtual device corresponding to each of the target marking adapters;

[0013] A control module, configured to control the corresponding laser marking device to mark each of the to-be-marked sub-services according to each of the service virtual devices, so as to mark the to-be-marked total service.

[0014] The present application further provides an electronic device, where the electronic device includes: a memory, a processor, and a program of the service marking method stored on the memory and executable on the processor, and when the program of the service marking method is executed by the processor, the steps of the service marking method as described above can be implemented.

[0015] The present application further provides a computer-readable storage medium, on which a program for implementing the service marking method is stored, and when the program of the service marking method is executed by a processor, the steps of the service marking method as described above are implemented.

[0016] The present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the service marking method as described above are implemented.

[0017] The present application provides a service marking method, apparatus, electronic device, and readable storage medium, which are applied to a marking device control system. That is, the total service to be marked is obtained, where the total service to be marked is a service waiting to be marked by at least one laser marking device. According to the device information of each laser marking device, at least one corresponding target marking adapter is queried. The sub-services to be marked corresponding to each target marking adapter and the corresponding service virtual devices are determined. According to each service virtual device, the corresponding laser marking device is controlled to mark each sub-service to be marked, so as to mark the total service to be marked. Since the marking device control system sets the marking adapters of different laser marking devices, when the total service to be marked is obtained, the target marking adapters corresponding to each laser marking device can be queried through the device information. After determining the sub-services to be marked corresponding to the target marking adapter and the corresponding service virtual devices, and controlling the corresponding laser marking device to mark the sub-services to be marked, the purpose of jointly marking the total service to be marked by different laser marking devices can be achieved. That is, since the target marking adapter can adapt to the communication methods and control instructions of different types of laser marking devices, the purpose of controlling laser marking devices installed with different laser control cards to perform corresponding service marking through a single marking device control system is achieved, rather than having to operate multiple control systems when facing different marking service requirements. Therefore, the technical defect that multiple control systems need to be operated for marking services of multiple different types of laser marking devices due to the differences in communication methods and control instructions of different laser control cards is overcome. That is, a standardized standard is established for the management of different types of laser marking devices. Therefore, the marking efficiency of controlling different types of laser marking devices to perform service marking is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0019] To more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 It is a schematic flowchart of the first embodiment of the service marking method of the present application;

[0021] Figure 2 It is a schematic flowchart of the second embodiment of the service marking method of the present application;

[0022] Figure 3 It is a schematic diagram of an embodiment of the service marking apparatus of the present application;

[0023] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the service marking method in the embodiments of the present application.

[0024] The realization of the purpose, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. Specific Embodiments

[0025] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0026] Embodiment 1

[0027] First of all, it should be understood that with the continuous extension of the business subdivision field in the laser control industry, due to the differences in communication methods and control instructions of different laser control cards, relying on the existing control software system to control the laser marking equipment for marking will make the software system development and maintenance work more and more difficult. Therefore, when facing different marking business requirements, if multiple different types of laser marking equipment need to be controlled for marking, multiple control software systems need to be manipulated. That is, there is a lack of standardized management for different types of laser marking equipment. Therefore, there is an urgent need for a method to improve the marking efficiency of controlling different types of laser marking equipment for business marking.

[0028] The embodiments of the present application provide a service marking method, which is applied to a marking equipment control system. In the first embodiment of the service marking method of the present application, refer to Figure 1 , the service marking method includes:

[0029] Step S10: Obtain the total service to be marked, where the total service to be marked is the service waiting for at least one laser marking equipment to mark.

[0030] Step S20: Query at least one corresponding target marking adapter according to the device information of each laser marking equipment.

[0031] Step S30: Determine the sub-service to be marked corresponding to each target marking adapter and the corresponding service virtual device.

[0032] Step S40: Control the corresponding laser marking equipment to mark each sub-service to be marked according to each service virtual device, so as to mark the total service to be marked.

[0033] In this embodiment, it should be noted that although different laser control cards have differences in communication methods and control instructions, different laser control cards have commonalities in some basic communication instructions. Therefore, by improving the software control system, the overall control of laser marking devices installed with different laser control cards can be achieved. That is, the service marking method is applied to the marking device control system, and the marking device control system is used to control multiple laser marking devices of different types. The total service to be marked is the service of waiting for at least one laser marking device to perform marking.

[0034] In addition, it should be noted that the marking device control system has a standardized core software framework. Among them, the core software framework does not change with the change of services. The process logic and data structure of the core software framework remain stable. The core software framework includes a UI layer, a logic processing layer, an execution layer, an application layer, and a hardware layer. The UI layer defines various interface components according to functions, layouts, and service processing, and realizes the maintenance and use of parameters, the maintenance and use of data, the management and use of devices, the operation logic of various processes, etc. The logic processing layer consists of a marking adapter, a service controller, and a service data processor, and is used to realize the management of parameters and the transformation of data. Among them, the marking adapter is used to provide an adaptation interface for different laser marking devices, and the adaptation interface encapsulates the communication protocol adapted to the laser marking device. The service controller is used to assemble and execute the marking logic of the total service to be marked. The service data processor is used to process the generation of unified marking data. The execution layer consists of an actuator, a service virtual device, and a communication component, and is used to realize the control and management of the laser marking device. Among them, the actuator is used to forward the calls of the marking adapter, service controller, or service data processor in the logic processing layer to the service virtual device. The service virtual device is used to control the operation of the laser marking device. The communication component is used to realize the communication between the service virtual device and its bound laser marking device. According to the idea of service differentiation coverage, the marking device control system sets up multiple subsystems to control laser marking devices installed with different laser control cards. Among them, the laser control card can specifically be a standard card, a simplified card, a welding card, a cutting card, a flying punching card, and a third-party laser control card. The core software framework of the marking device control system divides projects by level, and the project outputs are all set as dynamic link libraries. Each level library organizes each relatively independent function into subdirectories. The data management library of the marking device control system realizes the management of all file data of the marking device control system, and at the same time, is used to manage the device list of the system.

[0035] Additionally, it should be noted that the core software framework of the marking equipment control system is set with the service functions of the standard card. Based on ensuring that the marking equipment control system realizes basic general service functions, it can rely on the standard marking service as the basis for extended services. The equipment information is used to identify different laser marking equipment. The target marking adapter is used to represent the marking adapter that has been dynamically associated with the service virtual equipment. The total marking service to be marked consists of one or more sub-marking services to be marked. Among them, the number of the sub-marking services to be marked and the number of laser marking equipment required to mark the total marking service to be marked. The sub-marking service to be marked is a service waiting for a laser marking equipment to perform marking.

[0036] As an example, steps S10 to S40 include: receiving a service marking request input by the user on the visualization interface of the marking equipment control system, where the service marking request carries the total marking service to be marked composed of the equipment information of the laser marking equipment; using each piece of the equipment information as an index, querying the corresponding equipment association data in the data management library of the marking equipment control system, and taking the marking adapter corresponding to each piece of the equipment association data as the target marking adapter, where the equipment association data is the data associated with the equipment information of the laser marking equipment in the data management library; determining the sub-marking service to be marked corresponding to each target marking adapter and the corresponding service virtual equipment; and controlling the corresponding laser marking equipment to mark each sub-marking service to be marked according to each service virtual equipment, so as to mark the total marking service to be marked.

[0037] Among them, the controlling the corresponding laser marking equipment to mark each sub-marking service to be marked according to each service virtual equipment includes:

[0038] Step A10, creating a service data processor corresponding to each sub-marking service to be marked through the service controller;

[0039] Step A20, determining the service marking path of each sub-marking service to be marked according to each service data processor;

[0040] Step A30, controlling the corresponding laser marking equipment to perform marking according to each service marking path according to each service virtual equipment, so as to mark each sub-marking service to be marked.

[0041] In this embodiment, it should be noted that when there are multiple to-be-engraved sub-services, the engraving timing and engraving content of different to-be-engraved sub-services need to be defined. Then, by assembling and executing the engraving logic through the service controller, the engraving of the total to-be-engraved service can be achieved. For example, in an implementable manner, the engraving logic can be assembled by calling the performance marking function in the engraving function of the service controller, and then the engraving data corresponding to the to-be-engraved sub-service is generated. The engraving data is split into paths (service engraving paths), and the outline and filling lines are distinguished. Then, the marking path function of the service controller is called successively to engrave each path, and the corresponding laser engraving device is controlled by the service virtual device to engrave along each path to complete the engraving of the to-be-engraved sub-service, and finally the overall engraving of the total to-be-engraved service is achieved. Among them, the marking path function can be a marking data function, a "send marking data" function, a primitive engraving function, etc. The marking path function is stored in a common tool kit, and the common tool kit includes a coordinate conversion class, a configuration file reading and writing class, a log tool class, a string processing class, and a general function class.

[0042] As an example, steps A10 to A30 include: creating a service data processor corresponding to each of the to-be-engraved sub-services through the interface of the controller object of the service controller; generating service engraving data corresponding to each of the to-be-engraved sub-services according to each of the service data processors, and dividing the service engraving data into service engraving paths of each of the to-be-engraved sub-services; controlling the corresponding laser engraving device to engrave along each of the service engraving paths according to each of the service virtual devices to engrave each of the to-be-engraved sub-services.

[0043] Among them, the step of determining the to-be-engraved sub-services corresponding to each of the target engraving adapters and the corresponding service virtual devices includes:

[0044] Step B10, querying the corresponding at least one to-be-engraved sub-service according to the one-to-one correspondence between each of the target engraving adapters and the engraving manager;

[0045] Step B20, determining the service virtual devices corresponding to each of the to-be-engraved sub-services.

[0046] In this embodiment, it should be noted that when deploying the engraving device control system, in order to facilitate the standardized execution of different types of engraving services, the one-to-one correspondence between the engraving manager and the engraving adapter can be stored. Then, after determining the target engraving adapter, the corresponding to-be-engraved sub-service can be queried through the corresponding relationship. Then, after determining the service virtual device corresponding to each to-be-engraved sub-service, different types of laser engraving devices can be communicated through the service virtual device, and the operation of the laser engraving device can be controlled.

[0047] As an example, steps B10 to B20 include: using each of the target marking adapters as an index to query the corresponding sub-business to be marked in the marking manager; and determining the service virtual devices corresponding to each of the sub-businesses to be marked.

[0048] Among them, the service virtual devices include a first service virtual device and a second service virtual device. The step of determining the service virtual devices corresponding to each of the sub-businesses to be marked includes:

[0049] Step C10, obtaining the target actuator corresponding to the target marking adapter, and determining the first service virtual device according to the actuator communication instance of the target actuator; and / or

[0050] Step C20, querying the second service virtual device according to the service temporary object corresponding to the sub-business to be marked.

[0051] In this embodiment, it should be noted that the service virtual devices include a first service virtual device and a second service virtual device. Among them, the first service virtual device is the service virtual device corresponding to the basic service, and the second service virtual device is the service virtual device corresponding to the extended service. The extended service is a non-basic service that is respectively extended at the same level of the core software framework of the marking device control system and is extended at the corresponding level according to a unified interface and mode. For example, for the core software framework, it is divided into a hardware layer, a core execution layer, a core logic processing layer, a core framework UI layer, and an application layer from bottom to top. Then, for the extended service, it is divided into an extended hardware layer, an extended execution layer, an extended logic processing layer, an extended UI layer, and a customized application layer from bottom to top.

[0052] In addition, it should be noted that in the marking device control system, there is an association relationship between the actuator and the marking adapter. Each laser marking device is represented as an actuator object in the software. Then, by querying the service virtual device corresponding to the actuator object, the laser marking device can be controlled to perform marking through this service virtual device. The actuator communication instance is a communication component instance for realizing communication between the marking adapter and the actuator. The service temporary object is used to create the service virtual device corresponding to the extended service. In the device initialization stage, when the marking device control system receives the running requirement of the extended service, the system will call the marking manager to establish the service temporary object of the extended service, initialize the service control object through the service temporary object, create the service device object after initialization, and then call the initialization interface of the marking adapter. During the adapter initialization process, the created service control object will replace the original service control object, and the adapter will replace the device object of the actuator with the created service device object.

[0053] As an example, steps C10 to C20 include: obtaining a target actuator associated with the target marking adapter, connecting a communicable service virtual device to the actuator communication instance of the target actuator, and using the communicable service virtual device as the first service virtual device; and / or

[0054] Obtaining a service temporary object corresponding to the to-be-marked sub-service, and querying the second service virtual device according to the service control object corresponding to the service temporary object.

[0055] Wherein, before the step of obtaining the to-be-marked total service, the service marking method further includes:

[0056] Step D10, obtaining at least one idle marking adapter;

[0057] Step D20, initializing at least one laser marking device of the marking device control system to obtain at least one actuator;

[0058] Step D30, establishing a one-to-one association relationship between each of the actuators and each of the idle marking adapters;

[0059] Step D40, creating a first service virtual device for the actuator communication instance of the actuator according to the association relationship.

[0060] As an example, steps D10 to D40 include: finding at least one idle marking adapter through a marking manager; calling each of the idle marking adapters to initialize the device to establish corresponding actuators; establishing a one-to-one association relationship between each of the actuators and each of the idle marking adapters; calling each of the actuators to initialize the laser marking device, creating an actuator communication instance corresponding to each of the actuators, and creating a first service virtual device for the actuator communication instance of the actuator.

[0061] Wherein, before the step of obtaining the to-be-marked total service, the service marking method further includes:

[0062] Step E10, obtaining at least one idle marking adapter;

[0063] Step E20, calling a service temporary object of the marking manager according to each of the idle marking adapters to create at least one service controller;

[0064] Step E30, creating a second service virtual device according to each of the service controllers.

[0065] As an example, steps E10 to E30 include: finding at least one idle marking adapter through the marking manager; creating at least one service controller by calling the service temporary object of the marking manager according to each of the idle marking adapters; initializing the laser marking device through each of the idle marking adapters, and calling the service controller to create the second service virtual device and setting the second service virtual device as the actuator object of the corresponding laser marking device.

[0066] An embodiment of the present application provides a service marking method, which is applied to a marking device control system. That is, the total service to be marked is obtained, where the total service to be marked is a service waiting for at least one laser marking device to perform marking; according to the device information of each of the laser marking devices, at least one corresponding target marking adapter is queried; the sub-services to be marked corresponding to each of the target marking adapters and the corresponding service virtual devices are determined; according to each of the service virtual devices, the corresponding laser marking device is controlled to mark each of the sub-services to be marked, so as to mark the total service to be marked. Since the marking adapters of different laser marking devices are set in the marking device control system, when the total service to be marked is obtained, the target marking adapter corresponding to each laser marking device can be queried through the device information, and after determining the sub-services to be marked corresponding to the target marking adapter and the corresponding service virtual devices, controlling the corresponding laser marking device to mark the sub-services to be marked can achieve the purpose of jointly marking the total service to be marked by different laser marking devices. That is, since the target marking adapter can adapt to the communication methods and control instructions of different types of laser marking devices, the purpose of controlling the laser marking devices installed with different laser control cards to perform corresponding service marking through a single marking device control system is achieved, rather than having to operate multiple control systems when facing different marking service requirements. Therefore, the technical defect that multiple control systems need to be operated for marking services of multiple different types of laser marking devices due to the differences in communication methods and control instructions of different laser control cards is overcome. That is, a standardized standard is established for the management of different types of laser marking devices. Therefore, the marking efficiency of controlling different types of laser marking devices to perform service marking is improved.

[0067] Embodiment 2

[0068] Further, referring to Figure 2 , in another embodiment of the present application, the same or similar content as that in the above Embodiment 1 can be referred to the above introduction and will not be repeated hereinafter. On this basis, the step of controlling the corresponding laser marking device to mark along each of the service marking paths according to each of the service virtual devices includes:

[0069] Step F10, detecting whether the path marking parameters corresponding to each of the service marking paths are consistent;

[0070] Step F20. If they are inconsistent, query the preset marking parameters corresponding to each of the service marking paths, and replace each of the path marking parameters with each of the preset marking parameters;

[0071] Step F30. Control the corresponding laser marking device to perform marking according to each of the service marking paths and each of the preset marking parameters based on each of the service virtual devices.

[0072] In this embodiment, it should be noted that when determining the service marking path, it is necessary to synchronously determine the marking parameters for the laser marking device to mark the service marking path. Among them, the device control system stores many parameters such as system parameters, laser control parameters, galvanometer parameters, process parameters, process control parameters, and UI default parameters. Among them, the process parameters (pen parameters) are the marking parameters for marking the service marking path. If the same process parameters are used in different service marking paths, the marking device control system controls the service controller to issue different service marking paths for marking. If different process parameters are used in different service marking paths, the marking device control system controls the service controller to issue the process parameters corresponding to different service marking paths for marking. That is, the process parameters need to be adjusted correspondingly when the service marking path changes.

[0073] As an example, steps F10 to F30 include: detecting whether the path marking parameters corresponding to each of the service marking paths are consistent; if the path marking parameters corresponding to each of the service marking paths are inconsistent, query the preset marking parameters corresponding to each of the service marking paths, and replace each of the path marking parameters with each of the preset marking parameters; control the corresponding laser marking device to perform marking according to each of the service marking paths and each of the preset marking parameters based on each of the service virtual devices.

[0074] The embodiment of the present application provides a laser marking control method, which is applied to the marking equipment control system. That is, it detects whether the path marking parameters corresponding to each service marking path are consistent; if they are inconsistent, it queries the preset marking parameters corresponding to each service marking path and replaces each path marking parameter with each preset marking parameter; according to each service virtual device, it controls the corresponding laser marking equipment to perform marking with each service marking path and each preset marking parameter. When the embodiment of the present application detects that the path marking parameters corresponding to the service marking path are inconsistent, it matches the corresponding path marking parameters for different service marking paths, and then controls the corresponding laser marking equipment to perform marking with each service marking path and each preset marking parameter according to each service virtual device. That is, it realizes the purpose of flexibly adjusting the process parameters of the service marking path during the marking service, and further avoids the situation that when marking different service marking paths, the same process parameters are always used for marking, resulting in a lack of flexibility when marking services based on the marking equipment control system. Therefore, it lays a foundation for improving the marking efficiency of controlling different types of laser marking equipment to perform service marking.

[0075] Embodiment III

[0076] The embodiment of the present application also provides a service marking device, which is applied to the marking equipment control system. Refer to Figure 3 , and the service marking device includes:

[0077] An acquisition module 101, configured to acquire the total service to be marked, where the total service to be marked is a service waiting for at least one laser marking equipment to perform marking;

[0078] A query module 102, configured to query at least one target marking adapter corresponding thereto according to the device information of each laser marking equipment;

[0079] A determination module 103, configured to determine the sub-service to be marked corresponding to each target marking adapter and the corresponding service virtual device;

[0080] A control module 104, configured to control the corresponding laser marking equipment to mark each sub-service to be marked according to each service virtual device, so as to mark the total service to be marked.

[0081] Optionally, the control module 104 is further configured to:

[0082] Create a service data processor corresponding to each sub-service to be marked through a service controller;

[0083] Determine the service marking path of each sub-service to be marked according to each service data processor;

[0084] According to each of the service virtual devices, control the corresponding laser marking device to perform marking along each of the service marking paths, so as to mark each of the to-be-marked sub-services.

[0085] Optionally, the control module 104 is further configured to:

[0086] Detect whether the path marking parameters corresponding to each of the service marking paths are consistent;

[0087] If they are inconsistent, query the preset marking parameters corresponding to each of the service marking paths, and replace each of the path marking parameters with each of the preset marking parameters;

[0088] According to each of the service virtual devices, control the corresponding laser marking device to perform marking along each of the service marking paths and with each of the preset marking parameters.

[0089] Optionally, the determination module 103 is further configured to:

[0090] According to the one-to-one correspondence between each of the target marking adapters and the marking manager, query the corresponding at least one to-be-marked sub-service;

[0091] Determine the service virtual devices corresponding to each of the to-be-marked sub-services.

[0092] Optionally, the service virtual device includes a first service virtual device and a second service virtual device, and the determination module 103 is further configured to:

[0093] Obtain the target actuator corresponding to the target marking adapter, and determine the first service virtual device according to the actuator communication instance of the target actuator; and / or

[0094] Query the second service virtual device according to the service temporary object corresponding to the to-be-marked sub-service.

[0095] Optionally, the service marking device is further configured to:

[0096] Obtain at least one idle marking adapter;

[0097] Initialize at least one laser marking device of the marking device control system to obtain at least one actuator;

[0098] Establish a one-to-one association relationship between each of the actuators and each of the idle marking adapters;

[0099] According to the association relationship, create a first service virtual device for the actuator communication instance of the actuator.

[0100] Optionally, the service marking device is further configured to:

[0101] Obtain at least one idle marking adapter;

[0102] According to each of the idle marking adapters, call the business temporary object of the marking manager to create at least one business controller;

[0103] Create a second business virtual device according to each of the business controllers.

[0104] The business marking device provided by the present invention adopts the business marking method in the above embodiment, and solves the technical problem of low marking efficiency in controlling different types of laser marking devices for business marking. Compared with the prior art, the beneficial effects of the business marking device provided by the embodiment of the present invention are the same as those of the business marking method provided by the above embodiment, and other technical features in the business marking device are the same as those disclosed in the method of the above embodiment, and will not be elaborated herein.

[0105] Embodiment 4

[0106] The embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the business marking method in Embodiment 1 above.

[0107] Refer to the following Figure 4 , which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop programmable logic controllers, etc. Figure 4 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0108] As Figure 4 shown, the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may execute various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus.

[0109] Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems can be implemented or had.

[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a programmable logic controller software program. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a programmable logic controller-readable medium, and the computer program contains program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication device 1009, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0111] The electronic device provided by the present invention adopts the service marking method in the above embodiment, and solves the technical problem of low marking efficiency in controlling different types of laser marking devices for service marking. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as those of the service marking method provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the above embodiment method, which will not be elaborated here.

[0112] It should be understood that each part of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0113] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

[0114] Embodiment Five

[0115] This embodiment provides a computer-readable storage medium with programmable logic controller-readable program instructions stored thereon, and the programmable logic controller-readable program instructions are used to execute the service marking method in the above embodiment.

[0116] The computer-readable storage medium provided by the embodiment of the present invention can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable programmable logic controller disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0117] The above computer-readable storage medium can be included in an electronic device; it can also exist separately without being assembled into the electronic device.

[0118] The above computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device is caused to: obtain the total service to be marked, where the total service to be marked is a service waiting for at least one laser marking device to perform marking; query the corresponding at least one target marking adapter according to the device information of each laser marking device; determine the sub-services to be marked corresponding to each target marking adapter and the corresponding service virtual devices; and control the corresponding laser marking devices to mark each sub-service to be marked according to each service virtual device, so as to mark the total service to be marked.

[0119] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user programmable logic controller, partially on the user programmable logic controller, executed as a stand-alone software package, partially on the user programmable logic controller and partially on a remote programmable logic controller, or entirely on a remote programmable logic controller or server. In the case of a remote programmable logic controller, the remote programmable logic controller may be connected to the user programmable logic controller through any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external programmable logic controller (e.g., by connecting through the Internet using an Internet service provider).

[0120] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and programmable logic controller instructions.

[0121] The modules involved in the embodiments described in the present disclosure may be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.

[0122] The computer-readable storage medium provided by the present invention stores programmable logic controller-readable program instructions for performing the above-mentioned business marking method, and solves the technical problem of low marking efficiency in controlling different types of laser marking devices for business marking. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are the same as those of the business marking method provided by the above embodiments, and will not be elaborated here.

[0123] Embodiment Six

[0124] The present application also provides a computer program product, including a computer program, which implements the steps of the business marking method as described above when executed by a processor.

[0125] The computer program product provided by the present application solves the technical problem of low marking efficiency in controlling different types of laser marking devices for business marking. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present invention are the same as those of the business marking method provided by the above embodiments, and will not be elaborated here.

[0126] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent scope of the present application.

Claims

1. A business marking method, characterized in that, Applied to the control system of a marking device, the business marking method includes: Obtain the total business to be marked, where the total business to be marked is the business waiting for at least one laser marking device to perform marking; Query the corresponding at least one target marking adapter according to the device information of each laser marking device; Determine the sub-businesses to be marked corresponding to each target marking adapter and the corresponding business virtual devices; Create a business data processor corresponding to each sub-business to be marked through a business controller; Determine the business marking paths of each sub-business to be marked according to each business data processor; Control the corresponding laser marking device to perform marking along each business marking path according to each business virtual device, so as to mark each sub-business to be marked and mark the total business to be marked.

2. The service marking method according to claim 1, wherein The step of controlling the corresponding laser marking device to perform marking along each business marking path according to each business virtual device includes: Detect whether the path marking parameters corresponding to each business marking path are consistent; If they are inconsistent, query the preset marking parameters corresponding to each business marking path, and replace each path marking parameter with each preset marking parameter; Control the corresponding laser marking device to perform marking along each business marking path and each preset marking parameter according to each business virtual device.

3. The service marking method according to claim 1, wherein, The step of determining the sub-businesses to be marked corresponding to each target marking adapter and the corresponding business virtual devices includes: Query the corresponding at least one sub-business to be marked according to the one-to-one correspondence between each target marking adapter and the marking manager; Determine the business virtual devices corresponding to each sub-business to be marked.

4. The service marking method according to claim 1, characterized in that, The business virtual devices include a first business virtual device and a second business virtual device. The step of determining the business virtual devices corresponding to each sub-business to be marked includes: Obtain the target actuator corresponding to the target marking adapter, and determine the first business virtual device according to the actuator communication instance of the target actuator; and / or Query the second business virtual device according to the business temporary object corresponding to the sub-business to be marked.

5. The service marking method according to claim 1, characterized in that Before the step of obtaining the total business to be marked, the business marking method further includes: Obtain at least one idle marking adapter; Initialize at least one laser marking device of the marking device control system to obtain at least one actuator; Establish a one-to-one association relationship between each actuator and each idle marking adapter; Create a first business virtual device for the actuator communication instance of the actuator according to the association relationship.

6. The business marking method according to claim 1, wherein, Before the step of obtaining the total business to be marked, the business marking method further includes: Obtain at least one idle marking adapter; Call the business temporary object of the marking manager according to each idle marking adapter to create at least one business controller; Create a second business virtual device according to each business controller.

7. A business marking device, characterized in that, Applied to the control system of a marking device, the business marking device includes: An obtaining module, configured to obtain the total business to be marked, where the total business to be marked is the business waiting for at least one laser marking device to perform marking; A query module, configured to query at least one target marking adapter corresponding thereto according to the device information of each of the laser marking devices; A determination module, configured to determine the to-be-marked sub-services corresponding to each of the target marking adapters and the corresponding service virtual devices; A control module, configured to create a service data processor corresponding to each of the to-be-marked sub-services through a service controller; Determine the service marking paths of each of the to-be-marked sub-services according to each of the service data processors; Control the corresponding laser marking device to perform marking along each of the service marking paths according to each of the service virtual devices, so as to mark each of the to-be-marked sub-services and mark the total to-be-marked service.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the service marking method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A program for implementing the service marking method is stored on the computer-readable storage medium, and the program for implementing the service marking method is executed by a processor to implement the steps of the service marking method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Full -automatic integrated application system is carved to 3D laser mark

    CN208450832U