Method and system for loading multiple printing schemes in printing, electronic equipment and storage medium
By defining configuration files in inkjet printing technology and loading configuration data of target printing schemes, the confusion problem in managing multiple printing schemes in the prior art is solved, and efficient printing scheme loading and management is achieved.
Patent Information
- Application Number
- CN202411853879.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2044-12-16
AI Technical Summary
Existing inkjet printing technology is difficult to effectively organize and load when managing multiple printing solutions, resulting in management confusion and inefficiency.
By defining a configuration file, multiple printing schemes are stored, each printing scheme including control data related to the roll plate device and data related to the software data processing. When loading the target printing scheme, first load the configuration file, then load the two parts of the configuration data of the target printing scheme, and call the corresponding interface for device control and software processing.
It realizes effective management and orderly loading of multiple printing solutions, and improves the efficiency and reliability of the printing process.
Smart Images

Figure CN119987691A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inkjet printing, and more specifically, to a method, system, electronic device and storage medium for loading multiple printing schemes during printing. Background Art
[0002] The diversification of equipment and the diversification of end-customer needs are inevitable trends in the inkjet printing industry; in order to adapt to customer needs, it is necessary to provide enough printing solution configurations.
[0003] The existing processing method is to manage software requirements or configuration files requirements. As the continuity of the solutions increases, the management difficulty increases, which will inevitably lead to management chaos in the end. Summary of the invention
[0004] The present invention aims at the technical problems existing in the prior art and provides a method, system, electronic device and storage medium for loading multiple printing schemes during printing.
[0005] According to a first aspect of the present invention, a method for loading multiple printing schemes during printing is provided, comprising: Define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes data related to software data processing; When the target printing scheme needs to be loaded, the configuration file is loaded, the target printing scheme is found in the configuration file as the target printing scheme, and two parts of configuration data of the target printing scheme are found; The first part of the configuration data of the target printing scheme is loaded, and the corresponding interface is called to send it to the arm to control the roll plate equipment to run, and the second part of the configuration data of the target printing scheme is loaded for software data processing to realize the execution of the target printing scheme.
[0006] Based on the above technical solution, the present invention can also make the following improvements.
[0007] Optionally, the configuration file is defined, wherein the configuration file includes multiple sets of printing schemes, and further includes: Create a Map data cache and a management class cache in C++, wherein the Map data cache is used to store the configuration data of the current printing scheme, and the management class cache is used to store the configuration data of other printing schemes; The two parts of configuration data for finding the target printing solution include: The target printing scheme is used as the current printing scheme, the first part of the configuration data of the target printing scheme is read from the Map cache, and a Profile structure data is obtained through json parsing; and at the SDK layer, all the parameters needed for software data processing are registered in advance, the Map cache is traversed, and the channel key reads the data content of json to obtain the second part of the configuration data for the target printing scheme.
[0008] Optionally, the first part of the configuration data in the printing plan includes the vehicle head and bottom plate data and nozzle data of the printing plan, and the nozzle data includes the nozzle type and the number of nozzles. The second part of the configuration data in the printing plan includes the motor control data of the rolling equipment.
[0009] Optionally, also include: Create corresponding abstract classes for the head plate data, nozzle data, and motor control data of the plate rolling equipment respectively; Define multiple instance objects in each abstract class and provide a unified interface for each abstract class.
[0010] Optionally, the first part of the configuration data of the target printing scheme is loaded, and the corresponding interface is called to send it to the arm to control the plate rolling device to run, and the second part of the configuration data of the target printing scheme is loaded for software data processing to realize the execution of the target printing scheme, including: Respectively obtain the abstract class of the vehicle head bottom plate data and the abstract class of the nozzle data; According to the vehicle bottom plate data and nozzle data of the first part of the target printing scheme configuration data, calling the unified interface provided by the abstract class of the vehicle bottom plate data to load the instance object corresponding to the vehicle bottom plate data, and calling the unified interface provided by the abstract class of the nozzle data to load the instance object corresponding to the nozzle data; According to the motor control data of the plate rolling device in the second part of the configuration data of the target printing solution, a unified interface provided by the abstract class of the motor control data is called to load an instance object corresponding to the motor control data.
[0011] Optionally, when the loaded printing scheme needs to be switched, the configuration data of the target printing scheme is converted into the ison format and saved in the cache; The configuration data corresponding to the switched printing scheme is extracted from the management class cache.
[0012] According to a second aspect of the present invention, there is provided a system for loading multiple printing schemes during printing, comprising: A definition module is used to define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes data related to software data processing; A first loading module is used for loading the configuration file when the target printing scheme needs to be loaded, finding the target printing scheme in the configuration file as the target printing scheme, and finding two parts of configuration data of the target printing scheme; The second loading module is used to load the first part of the configuration data of the target printing plan, and call the corresponding interface to send it to the arm to control the rolling equipment to run, and load the second part of the configuration data of the target printing plan for software data processing to realize the execution of the target printing plan.
[0013] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the processor is used to implement the steps of a method for loading multiple printing schemes during printing when executing a computer management program stored in the memory.
[0014] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of a method for loading multiple printing schemes during printing are implemented.
[0015] The present invention provides a method, system, electronic device and storage medium for loading multiple printing schemes during printing. The present invention can store multiple printing schemes through a configuration file, and each printing scheme includes two parts of configuration data. When the target printing scheme needs to be loaded, the configuration file is loaded first, and then the configuration data of the target printing scheme is loaded, so that multiple printing methods are effectively managed and loaded in an orderly manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flow chart of a method for loading multiple printing schemes during printing provided by the present invention; Figure 2 It is a schematic diagram of a specific example of the headstock data; Figure 3 A schematic diagram of a specific example of motor control data for a coil device; Figure 4 A schematic diagram of the structure of a system for loading multiple printing schemes during printing provided by the present invention; Figure 5 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention; Figure 6 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0018] Based on the existing status quo, an effective management method is provided for multiple printing solutions in the field of inkjet printing.
[0019] Figure 1 A flow chart of a method for loading multiple printing schemes during printing provided by the present invention is shown as follows: Figure 1 As shown, the method includes: Step 1, define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of printing schemes includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes relevant data for software data processing.
[0020] It is understandable that a configuration tool module is added to the software to define a configuration file, which includes multiple sets of printing schemes, and each set of printing schemes includes two parts of configuration data. One part of the configuration data is strongly related to the coil equipment control, and the other part of the configuration data is some configuration data used for software data processing (including some cleaning parameters). One configuration file can store multiple sets of printing schemes.
[0021] The configuration file is stored in JSON format, with the printing plan as the unit, to achieve the purpose of storing multiple printing plans and realize the switching between flatbed and roll materials.
[0022] The present invention takes a printing scheme as a unit, wherein multiple sets of printing schemes are configured in a configuration file. For the storage and management of configuration data of each set of printing schemes, a Map data cache and a management class cache are created in C++. The Map data cache is used to store the configuration data of the current printing scheme, and the management class cache is used to store the configuration data of other printing schemes, thereby realizing the storage of configuration data of multiple sets of printing schemes.
[0023] Each printing solution includes two parts of configuration data, one part of which is control data related to the coil equipment, and the other part of which is configuration data related to software data processing.
[0024] In the present invention, the first part of the configuration data in the printing scheme includes the head and bottom plate data and the nozzle data of the printing scheme, the nozzle data includes the nozzle type and the number of nozzles, and the second part of the configuration data in the printing scheme includes the motor control data of the rolling equipment.
[0025] In order to achieve unified management and standardization of the configuration data of the printing solution, in the software framework design, corresponding abstract classes are created for the head and bottom plate data, nozzle data and motor control data of the plate rolling equipment respectively; multiple instance objects are defined in each abstract class, and a unified interface is provided for each abstract class.
[0026] Among them, see Figure 2 , is a specific example of the headstock data, see Figure 3 , which is a specific instance of the motor control data of the plate rolling device. Multiple specific instance objects of the corresponding abstract class can be defined according to different head and bottom plate data, nozzle data and motor control data of the plate rolling device.
[0027] The present invention changes the original logic embedding into the current split logic, encapsulates them into different abstract classes respectively, adds a unified base class, extracts the common parts, opens them to expansion, and reduces the workload of developing new solutions in the later stage.
[0028] Step 2: when the target printing scheme needs to be loaded, the configuration file is loaded, the target printing scheme is found in the configuration file, and two parts of configuration data of the target printing scheme are found.
[0029] It is understandable that when the target printing scheme (which can be understood as the current printing scheme) needs to be loaded, the configuration file is loaded first, the current printing scheme is found in the configuration file, and then the two parts of configuration data of the current printing scheme are found.
[0030] Specifically, when searching for the configuration data of the target printing solution, it mainly includes the head plate data, the nozzle data and the motor control data of the plate rolling equipment.
[0031] Read the first part of the target printing solution configuration data from the Map cache, parse it through json, and get a Profile structure data; and at the SDK layer, register all the parameters needed for software data processing in advance, traverse the Map cache, and read the data content of json through the channel key to configure the second part of the target printing solution.
[0032] Step 3, load the first part of the configuration data of the target printing plan, call the corresponding interface to send it to the robot arm to control the operation of the plate rolling equipment, and load the second part of the configuration data of the target printing plan for software data processing to realize the execution of the target printing plan.
[0033] Among them, the above step 2 obtains two parts of configuration data of the target printing scheme and loads these two parts of data. Specifically, in the loading process, the abstract class of the front base plate data and the abstract class of the nozzle data are obtained respectively. According to the front base plate data and nozzle data of the first part of the configuration data of the target printing scheme, the unified interface provided by the abstract class of the front base plate data is called to load the instance object corresponding to the front base plate data; and the unified interface provided by the abstract class of the nozzle data is called to load the instance object corresponding to the nozzle data. Call the corresponding interface to send the obtained instance object to the arm to control the operation of the plate rolling device.
[0034] According to the motor control data of the plate rolling device in the second part of the target printing scheme configuration data, the unified interface provided by the abstract class of the motor control data is called to load the instance object corresponding to the motor control data. According to the acquired instance object, the software data is processed to realize the execution of the target printing scheme.
[0035] If the printing scheme needs to be switched, the configuration data of the current printing scheme is converted into the ison format and saved in the cache. Then the configuration data corresponding to the switched printing scheme is extracted from the management cache and the loading process is re-executed.
[0036] See also Figure 4 , a system for loading multiple printing schemes during printing provided by the present invention, the system comprising: A definition module 401 is used to define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes data related to software data processing; A first loading module 402 is used for loading the configuration file when the target printing scheme needs to be loaded, finding the target printing scheme in the configuration file as the target printing scheme, and finding two parts of configuration data of the target printing scheme; The second loading module 403 is used to load the first part of the configuration data of the target printing solution, and call the corresponding interface to send it to the arm to control the rolling device to run, and load the second part of the configuration data of the target printing solution for software data processing to realize the execution of the target printing solution.
[0037] It can be understood that the system for loading multiple printing schemes during printing provided by the present invention corresponds to the method for loading multiple printing schemes during printing provided by the aforementioned embodiments. The relevant technical features of the system for loading multiple printing schemes during printing can refer to the relevant technical features of the method for loading multiple printing schemes during printing, which will not be repeated here.
[0038] See also Figure 5 , Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520 and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented: defining a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling device, and the second part of the configuration data includes relevant data for software data processing; when it is necessary to load the target printing scheme, the configuration file is loaded, the target printing scheme is found in the configuration file as the target printing scheme, and the two parts of the configuration data of the target printing scheme are found; the first part of the configuration data of the target printing scheme is loaded, and the corresponding interface is called to be sent to the arm to control the operation of the plate rolling device, and the second part of the configuration data of the target printing scheme is loaded for software data processing to realize the execution of the target printing scheme.
[0039] See also Figure 6 , Figure 6 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 6 As shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the following steps are implemented: defining a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes relevant data for software data processing; when it is necessary to load the target printing scheme, load the configuration file, find the target printing scheme as the target printing scheme in the configuration file, and find the two parts of configuration data of the target printing scheme; load the first part of the configuration data of the target printing scheme, and call the corresponding interface to send it to the arm to control the operation of the plate rolling equipment, and load the second part of the configuration data of the target printing scheme for software data processing to realize the execution of the target printing scheme.
[0040] The embodiments of the present invention provide a method, system, electronic device and storage medium for loading multiple printing schemes during printing, which have the following beneficial effects: (1) Multiple printing schemes are stored through configuration files. Each printing scheme includes two parts of configuration data. When the target printing scheme needs to be loaded, the configuration file is loaded first, and then the configuration data of the target printing scheme is loaded, so that multiple printing methods are effectively managed and loaded in an orderly manner.
[0041] (2) Create abstract classes for different configuration data of printing solutions to achieve unified and standardized management of different configuration data.
[0042] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0043] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0044] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0045] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0046] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0047] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0048] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for loading multiple printing schemes during printing, characterized in that: include: Define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes data related to software data processing; When the target printing scheme needs to be loaded, the configuration file is loaded, the target printing scheme is found in the configuration file, and two parts of configuration data of the target printing scheme are found; The first part of the configuration data of the target printing scheme is loaded, and the corresponding interface is called to send it to the robot arm to control the operation of the plate rolling equipment, and the second part of the configuration data of the target printing scheme is loaded for software data processing to realize the execution of the target printing scheme.
2. The method for loading multiple printing schemes during printing according to claim 1, characterized in that: The defined configuration file includes multiple sets of printing schemes and further includes: Create a Map data cache and a management class cache in C++, wherein the Map data cache is used to store the configuration data of the current printing scheme, and the management class cache is used to store the configuration data of other printing schemes; The two parts of configuration data for finding the target printing solution include: The target printing scheme is used as the current printing scheme, and the first part of the configuration data of the target printing scheme is read from the Map cache. Through json parsing, a Profile structure data is obtained; and at the SDK layer, all the required data for software data processing is registered in advance, the Map cache is traversed, and the channel key reads the data content in json format to configure the second part of the target printing scheme.
3. The method for loading multiple printing schemes during printing according to claim 1 or 2, characterized in that: The first part of the configuration data in the printing scheme includes the head and bottom plate data and the nozzle data of the printing scheme, and the nozzle data includes the nozzle type and the number of nozzles. The second part of the configuration data in the printing scheme includes the motor control data of the rolling equipment.
4. The method for loading multiple printing schemes during printing according to claim 3, characterized in that: Also includes: Create corresponding abstract classes for the head plate data, nozzle data, and motor control data of the plate rolling equipment respectively; Define multiple instance objects in each abstract class and provide a unified interface for each abstract class.
5. The method for loading multiple printing schemes during printing according to claim 4, characterized in that: The first part of the configuration data of the target printing scheme is loaded, and the corresponding interface is called to send it to the robot arm to control the operation of the plate rolling device, and the second part of the configuration data of the target printing scheme is loaded for software data processing to realize the execution of the target printing scheme, including: Respectively obtain the abstract class of the vehicle head bottom plate data and the abstract class of the nozzle data; According to the vehicle bottom plate data and nozzle data of the first part of the target printing scheme configuration data, calling the unified interface provided by the abstract class of the vehicle bottom plate data to load the instance object corresponding to the vehicle bottom plate data, and calling the unified interface provided by the abstract class of the nozzle data to load the instance object corresponding to the nozzle data; According to the motor control data of the plate rolling device in the second part of the configuration data of the target printing solution, a unified interface provided by the abstract class of the motor control data is called to load an instance object corresponding to the motor control data.
6. The method for loading multiple printing schemes during printing according to claim 2, characterized in that: When the loaded printing scheme needs to be switched, the configuration data of the target printing scheme is converted into the ison format and saved in the cache; The configuration data corresponding to the switched printing scheme is extracted from the management class cache.
7. A system for loading multiple printing schemes during printing, characterized in that: include: A definition module is used to define a configuration file, wherein the configuration file includes multiple sets of printing schemes, each set of the printing scheme includes two parts of configuration data, the first part of the configuration data is control data related to the plate rolling equipment, and the second part of the configuration data includes data related to software data processing; A first loading module is used for loading the configuration file when the target printing scheme needs to be loaded, finding the target printing scheme in the configuration file as the target printing scheme, and finding two parts of configuration data of the target printing scheme; The second loading module is used to load the first part of the configuration data of the target printing plan, and call the corresponding interface to send it to the arm to control the rolling equipment to run, and load the second part of the configuration data of the target printing plan for software data processing to realize the execution of the target printing plan.
8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used for implementing the steps of a method for loading multiple printing schemes in printing when executing a computer management program stored in the memory.
9. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by the processor, the steps of the method for loading multiple printing schemes during printing are implemented.
Citation Information
Patent Citations
Cloud platform printing method and device, equipment and storage medium
CN115686388A
Printing effect quality detection method and device based on photocuring printing equipment
CN115946344A
Printing method, electronic equipment and storage medium
CN117008849A
Network printing management method, device and system, electronic equipment and storage medium
CN117193677A
Method of setting printing parameter
CN1794167A