Printing optimization method and device, electronic equipment and computer readable storage medium

CN114968131BActive Publication Date: 2026-08-11TCL TECH ELECTRONICS (HUIZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]本申请的主要目的在于提供一种打印优化方法、装置、电子设备及计算机可读存储介质,旨在解决现有技术中打印效率低的技术问题

Benefits of technology

[0021]相比于现有技术采用的单面打印的方法,本申请通过当检测到将待打印物体上料至打印机后,获取各待打印数据,从而通过控制插件选取待打印数据传输至打印机,以通过控制插件自动选取待打印数据,避免了采用打印机时需要人工进行选择待打印数据的技术缺陷,从而提高了打印效率,通过打印机将待打印数据打印至待打印物体上,进而通过PLC控制模块检测单次打印是否完成,若单次打印已完成且各待打印数据未均打印至待打印物体上,则通过翻转机构控制待打印物体翻转,并返回执行步骤:通过控制插件选取待打印数据传输至打印机,通过控制待打印物体的多次翻转,以将各待打印数据打印至待打印物体上,若单次打印已完成且各待打印数据已均打印至待打印物体上,则判定本次打印流程结束,通过对单次打印流程以及各待打印数据均打印完毕的二级判断,对打印流程进行自动且精准的监控,实现了自动多面打印,克服了采用打印机时,需要人为地将待打印物体翻面,选择下一个打印图像,对打印机进行开始打印操作的技术缺陷,从而提高了打印效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968131B_ABST
    Figure CN114968131B_ABST
Patent Text Reader

Abstract

This application discloses a printing optimization method, apparatus, electronic device, and computer-readable storage medium, applied in the field of printing technology. The method includes: upon detecting that an object to be printed has been loaded onto the printer, acquiring various data to be printed; selecting data to be printed and transmitting it to the printer via a control plug-in; printing the data to be printed onto the object to be printed via the printer; detecting whether a single printing cycle is complete via a PLC control module; if the single printing cycle is complete but the data to be printed has not all been printed onto the object, controlling the object to be printed to flip via a flipping mechanism, and returning to the execution step: selecting data to be printed and transmitting it to the printer via the control plug-in; if the single printing cycle is complete and all the data to be printed has been printed onto the object, then determining that the current printing process has ended. This application solves the technical problem of low printing efficiency in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printing technology, and in particular to a printing optimization method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] With the rapid development of technology, printers can usually only print on one side. When printing requires multiple sides, it is often necessary to manually flip the object to be printed, select the next image to print, and start the printing operation to complete the multi-sided printing, which results in low printing efficiency. Summary of the Invention

[0003] The main objective of this application is to provide a printing optimization method, apparatus, electronic device, and computer-readable storage medium, which aims to solve the technical problem of low printing efficiency in the prior art.

[0004] To achieve the above objectives, this application provides a printing optimization method applied to a printing system including a printer, a PLC control module, a control plug-in, and a flipping mechanism. The method includes:

[0005] Once the printer detects that the object to be printed has been loaded onto the printer, it acquires the data to be printed.

[0006] The control plug-in selects the data to be printed and sends it to the printer;

[0007] The data to be printed is printed onto the object to be printed using a printer.

[0008] The PLC (Programmable Logic Controller) control module is used to detect whether a single printing cycle has been completed.

[0009] If a single print job is completed but not all the data to be printed has been printed onto the object to be printed, the object to be printed is flipped by the flipping mechanism, and the process returns to the following steps: the data to be printed is selected and transmitted to the printer by the control plug-in.

[0010] If a single print job is completed and all the data to be printed has been printed onto the object to be printed, then the printing process is considered to be over.

[0011] To achieve the above objectives, this application also provides a printing optimization apparatus, comprising:

[0012] The acquisition module is used to acquire the data to be printed after detecting that the object to be printed has been loaded into the printer;

[0013] The transmission module is used to select and transmit the data to be printed to the printer via a control plug-in.

[0014] The printing module is used to print data onto the object to be printed using a printer.

[0015] The detection module is used to detect whether a single printing operation has been completed via the PLC control module;

[0016] The flip module is used to flip the object to be printed if a single print job has been completed but not all the data to be printed has been printed onto the object. In this case, the flip mechanism controls the object to be printed to flip and returns to the execution step: selecting the data to be printed to be transmitted to the printer through the control plug-in.

[0017] The termination module is used to determine the end of the printing process if a single printing operation has been completed and all the data to be printed has been printed onto the object to be printed.

[0018] This application also provides an electronic device, which includes a processor, a memory, and a print optimization program stored in the memory and executable on the processor. When the processor executes the print optimization program, it implements the steps of the print optimization method described above.

[0019] This application also provides a computer-readable storage medium storing a printing optimization program, which, when executed by a processor, implements the steps of the printing optimization method described above.

[0020] This application also provides a print optimization program product, which includes a print optimization program that, when executed by a processor, implements the steps of the print optimization method described above.

[0021] Compared to the single-sided printing method used in existing technologies, this application acquires the data to be printed after detecting that the object to be printed has been loaded into the printer. The control module then selects the data to be printed and transmits it to the printer automatically, avoiding the technical drawback of manual data selection required when using a printer. This improves printing efficiency. The printer prints the data onto the object. The PLC control module then detects whether a single print cycle is complete. If the single print cycle is complete but the data has not been evenly printed onto the object, a flipping mechanism controls the object to be printed to flip over. Return to execution steps: The control plug-in selects the data to be printed and transmits it to the printer. By controlling the multiple flipping of the object to be printed, each piece of data is printed onto the object. If a single print is completed and all the data has been printed onto the object, the printing process is considered complete. Through the two-level judgment of the single print process and the completion of printing of all the data, the printing process is automatically and accurately monitored, realizing automatic multi-sided printing. This overcomes the technical defects of using a printer, which requires manually flipping the object to be printed, selecting the next print image, and starting the printing operation, thereby improving printing efficiency. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart illustrating the first embodiment of the printing optimization method of this application;

[0025] Figure 2 This is a schematic diagram illustrating one possible implementation scenario of the printing optimization method of this application;

[0026] Figure 3 This is a schematic diagram of the printing process of the first embodiment of the printing optimization method of this application;

[0027] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the printing optimization method in this application embodiment;

[0028] Figure 5 This is a schematic diagram of the computer-readable storage medium involved in the printing optimization method in the embodiments of this application.

[0029] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0030] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0031] Example 1

[0032] This application provides a printing optimization method. In the first embodiment of the printing optimization method of this application, refer to... Figure 1 The printing optimization method is applied to printing systems that include printers, PLC control modules, control plug-ins, and flipping mechanisms. The method includes:

[0033] As an example, refer to Figure 2 The product flipping structure in the figure is the flipping mechanism in this embodiment; the PC-side control plug-in is the control plug-in in this embodiment; the PLC control system, IO and servo motor control are the PLC control module in this embodiment; IO (Input / Output) is used to control the printer to start printing, and the servo motor is used to control the flipping mechanism to flip the object to be printed.

[0034] Step S10: After detecting that the object to be printed has been loaded into the printer, acquire the data to be printed.

[0035] In this embodiment, it should be noted that the data to be printed is the data to be printed onto the object to be printed. The data to be printed can be an image or a file. The content of the data to be printed can be image content, text content, or a combination of image and text content.

[0036] For example, step S10 includes: manually loading the object to be printed onto the printer; and after detecting that the object to be printed has been loaded, acquiring the printing data through the PLC control module.

[0037] Furthermore, the step of detecting whether the object to be printed is fed into the printer can be as follows: detect whether the object to be printed is tightly engaged with the clamping tool configured on the flipping mechanism. If the object to be printed is tightly engaged with the clamping tool configured on the flipping mechanism, it is determined that the feeding of the object to be printed into the printer is completed. If the object to be printed is not tightly engaged with the clamping tool configured on the flipping mechanism, it is determined that the feeding of the object to be printed into the printer is not completed.

[0038] Furthermore, the step of detecting whether the object to be printed is fed into the printer can also be: detecting whether the object to be printed is connected to the magnetic suction tool configured on the flipping mechanism. If the object to be printed is connected to the magnetic suction tool configured on the flipping mechanism, it is determined that the feeding of the object to be printed into the printer is completed. If the object to be printed is not connected to the magnetic suction tool configured on the flipping mechanism, it is determined that the feeding of the object to be printed into the printer is not completed.

[0039] Step S20: Select the data to be printed and send it to the printer via the control plug-in;

[0040] For example, step S20 includes: selecting data to be printed and transmitting it to the printer via the control plug-in, and sending a selection completion signal to the PLC control module; when the PLC control module receives the selection completion signal, it sends a start printing signal to the printer via control I / O.

[0041] In step S20, the process of selecting data to be printed and transmitting it to the printer via the control plug-in includes:

[0042] Step S21: Obtain the data number corresponding to the data to be printed, and send the data number to the control plug-in through the PLC control module;

[0043] Step S22: Select the data to be printed corresponding to the data number through the control plug-in and send it to the printer.

[0044] For example, steps S21 to S22 include: obtaining the data number corresponding to the data to be printed, sending the data number corresponding to the data to be printed to the control plug-in through the PLC control module; selecting the data to be printed corresponding to the data number from each data to be printed through the control plug-in, and sending the data to be printed to the printer.

[0045] Step S30: Print the data to be printed onto the object to be printed using a printer;

[0046] For example, step S30 includes: after detecting that a start printing signal has been received, printing the data to be printed onto the object to be printed using a printer.

[0047] In step S30, printing the data to be printed onto the object to be printed using a printer includes:

[0048] Step S31: Detect whether the PLC control module sends an abnormal warning signal to the printer;

[0049] Step S32: If yes, then perform abnormal repair according to the abnormal warning signal;

[0050] Step S33: If not, print the data to be printed onto the object to be printed using a printer.

[0051] In this embodiment, it should be noted that the abnormal warning signal can be a warning signal indicating an abnormality in the printing system. The abnormal warning signal can be a printer abnormality warning signal, a PLC control module abnormality warning signal, or an abnormality warning signal of any module or mechanism in the printing system.

[0052] For example, steps S31 to S33 include: detecting whether the PLC control module sends an abnormal warning signal to the printer; if the PLC control module sends an abnormal warning signal to the printer, then performing abnormal repair according to the abnormal warning signal; if the PLC control module does not send an abnormal warning signal to the printer, then triggering the printer to print the data to be printed onto the object to be printed.

[0053] The method further includes, after printing the data to be printed onto the object using a printer:

[0054] Step A10: Perform a cleaning operation on the inkjet head of the printer;

[0055] Step A20: When the inkjet head cleaning is detected to be complete, control the flipping mechanism to carry the object to be printed back to the preset position coordinates, and execute the following step: detect whether a single printing is completed through the PLC control module.

[0056] In this embodiment, it should be noted that the preset position coordinates are the pre-set position coordinates of the flipping mechanism.

[0057] For example, steps A10 to A20 include: when it is detected that the printer has printed the data to be printed onto the object to be printed, a cleaning operation is performed on the inkjet head on the printer; when it is detected that the inkjet head cleaning is completed, the flipping mechanism is controlled to carry the object to be printed back to the preset position coordinates, and the following step is performed: the PLC control module detects whether a single printing is completed.

[0058] Step S40: The PLC control module checks whether a single printing operation has been completed.

[0059] For example, step S40 includes: detecting whether a single printing is completed through the PLC control module; if the single printing is completed, determining whether all data to be printed has been printed onto the object to be printed; if the single printing is not completed, waiting for the single printing to be completed.

[0060] In step S40, the PLC control module detects whether a single printing operation is complete, including:

[0061] Step S41: When the flipping mechanism is detected to be at the preset position coordinate, a single print completion signal is sent to the PLC control module through the printer.

[0062] Step S42: If the PLC control module receives a single print completion signal, it determines that the single print has been completed; or,

[0063] Step S43: If the PLC control module does not receive a single print completion signal, it is determined that the single print is not completed.

[0064] For example, steps S41 to S43 include: when the printer detects that the flipping mechanism is at a preset position coordinate, it sends a single print completion signal to the PLC control module and determines whether the PLC control module receives the single print completion signal; if the PLC control module receives the single print completion signal, it determines that the single print has been completed and controls the printer platform to carry the object to be printed back to the initial position so that the flipping mechanism is at the preset position coordinate; or if the PLC control module does not receive the single print completion signal, it determines that the single print has not been completed.

[0065] Furthermore, the single print completion signal can be a change of the indicator light configured on the printer from a first color to a second color, or it can be a continuous illumination state for the indicator light configured on the printer. Further, the step of determining whether the indicator light is in a continuous illumination state can be: obtaining the illumination duration of the indicator light, determining whether the illumination duration is greater than a preset illumination duration threshold; if the illumination duration is greater than the preset illumination duration threshold, then the indicator light is determined to be in a continuous illumination state; if the illumination duration is not greater than the preset illumination duration threshold, then the indicator light is determined not to be in a continuous illumination state. Here, the preset illumination duration threshold is a critical value for the illumination duration used to determine whether the indicator light is in a continuous illumination state.

[0066] The method, after detecting whether a single printing cycle is complete via the PLC control module, also includes:

[0067] Step B10: If the data number corresponding to the data to be printed is less than the number of data to be printed, then it is determined that the data to be printed has not been printed evenly onto the object to be printed; or,

[0068] Step B20: If the data number corresponding to the data to be printed is not less than the number of data to be printed, then it is determined that all the data to be printed has been printed onto the object to be printed.

[0069] For example, steps B10 to B20 include: determining whether the data number corresponding to the data to be printed is less than the number of data to be printed; if the data number corresponding to the data to be printed is less than the number of data to be printed, then it is determined that each piece of data to be printed has not been printed onto the object to be printed; or if the data number corresponding to the data to be printed is not less than the number of data to be printed, then it is determined that each piece of data to be printed has been printed onto the object to be printed.

[0070] Step S50: If a single print job has been completed and all the data to be printed has not been printed onto the object to be printed, then the object to be printed is flipped by the flipping mechanism, and the process returns to step S50: Select the data to be printed and transmit it to the printer by the control plug-in.

[0071] For example, step S50 includes: if a single print has been completed and all the data to be printed has not been printed onto the object to be printed, when the flipping mechanism is detected to be at a preset position coordinate, the object to be printed is flipped by the flipping mechanism, and the process returns to step: select the data to be printed to be transmitted to the printer by the control plug-in.

[0072] In step S50, the object to be printed is flipped by a flipping mechanism, including:

[0073] Step C10: Obtain the number of data items for each data item to be printed;

[0074] Step C20: Determine the flip angle corresponding to the data to be printed based on the amount of data.

[0075] Step C30: Based on the flip angle, the object to be printed is flipped using the flip structure.

[0076] As an example, steps C10 to C20 include: obtaining the number of data to be printed; obtaining the flip angle corresponding to the data to be printed based on the number of data; and controlling the object to be printed to flip to the flip angle through the flipping mechanism based on the flip angle, for example, when the number of data is 2, controlling the object to be printed to flip to 180°.

[0077] As an example, steps C10 to C20 include: obtaining the number of data to be printed; obtaining the flip angle corresponding to the data to be printed based on the number of data; and controlling the object to be printed to flip by the flipping mechanism based on the flipping angle, for example, when the number of data is 2, controlling the object to be printed to flip by 180°.

[0078] Step S60: If a single print job has been completed and all the data to be printed has been printed onto the object to be printed, then the current printing process is considered to be over.

[0079] For example, step S60 includes: if a single print job has been completed and all the data to be printed has been printed onto the object to be printed, then the current printing process is determined to be over, and the object to be printed is removed from the printer.

[0080] As an example, when there are three data items to be printed, refer to the printing flowchart. Figure 3 First, the printer platform is controlled to return to its original position. The PLC control module checks if the previous print job is complete. Once completed, the object to be printed is manually loaded onto the printer. The first print data is selected and transmitted to the printer via a control plug-in. The printer prints the first print data onto the object. A cleaning operation is performed on the inkjet head. The printer platform is then controlled to return to its original position. The PLC control module checks if the first print job is complete. Once completed, the object to be printed is flipped using a flipping mechanism. The second print data is selected and transmitted to the printer via a control plug-in. The printer prints the second print data onto the object. A cleaning operation is performed on the inkjet head. The printer platform is then controlled to return to its original position. The PLC control module checks if the second print job is complete. Once completed, the object to be printed is flipped using a flipping mechanism. The third print data is selected and transmitted to the printer via a control plug-in. The printer prints the third print data onto the object. A cleaning operation is performed on the inkjet head. The printer platform is then controlled to return to its original position. The PLC control module checks if the third print job is complete. Once completed, the object to be printed is manually unloaded from the printer.

[0081] Compared to the single-sided printing method used in existing technologies, this application acquires the data to be printed after detecting that the object to be printed has been loaded into the printer. The control module then selects the data to be printed and transmits it to the printer automatically, avoiding the technical drawback of manual data selection required when using a printer. This improves printing efficiency. The printer prints the data onto the object. The PLC control module then detects whether a single print cycle is complete. If the single print cycle is complete but the data has not been evenly printed onto the object, a flipping mechanism controls the object to be printed to flip over. Return to execution steps: The control plug-in selects the data to be printed and transmits it to the printer. By controlling the multiple flipping of the object to be printed, each piece of data is printed onto the object. If a single print is completed and all the data has been printed onto the object, the printing process is considered complete. Through the two-level judgment of the single print process and the completion of printing of all the data, the printing process is automatically and accurately monitored, realizing automatic multi-sided printing. This overcomes the technical defects of using a printer, which requires manually flipping the object to be printed, selecting the next print image, and starting the printing operation, thereby improving printing efficiency.

[0082] Example 2

[0083] This application embodiment also provides a printing optimization apparatus, including:

[0084] The acquisition module is used to acquire the data to be printed after detecting that the object to be printed has been loaded into the printer;

[0085] The transmission module is used to select and transmit the data to be printed to the printer via a control plug-in.

[0086] The printing module is used to print data onto the object to be printed using a printer.

[0087] The detection module is used to detect whether a single printing cycle has been completed via the PLC control module.

[0088] The flip module is used to flip the object to be printed if a single print job has been completed but not all the data to be printed has been printed onto the object. In this case, the flip mechanism controls the object to be printed to flip and returns to the execution step: selecting the data to be printed to be transmitted to the printer through the control plug-in.

[0089] The termination module is used to determine the end of the printing process if a single printing operation has been completed and all the data to be printed has been printed onto the object to be printed.

[0090] Optionally, the control plug-in selects the data to be printed and sends it to the printer. The transmission module is also used for:

[0091] Obtain the data number corresponding to the data to be printed, and send the data number to the control plug-in through the PLC control module;

[0092] The control plugin selects the data to be printed corresponding to the data number and sends it to the printer.

[0093] Optionally, the PLC control module detects whether a single printing cycle has been completed. The detection module is also used for:

[0094] When the flipping mechanism is detected to be at the preset position coordinates, a single print completion signal is sent from the printer to the PLC control module.

[0095] If the PLC control module receives a single print completion signal, it determines that the single print has been completed; or,

[0096] If the PLC control module does not receive a single print completion signal, it determines that the single print is not completed.

[0097] Optionally, the object to be printed is flipped via a flipping mechanism, and the flipping module is also used for:

[0098] Get the number of data items to be printed;

[0099] Determine the flip angle corresponding to the data to be printed based on the amount of data;

[0100] The object to be printed is flipped according to the flipping angle, and the flipping structure controls the flipping of the object.

[0101] Optionally, after the data to be printed is printed onto the object by the printer, the printing module is also used for:

[0102] Perform a cleaning operation on the inkjet head of the printer;

[0103] When the inkjet head cleaning is detected to be complete, the control flipping mechanism carries the object to be printed back to the preset position coordinates and executes the following steps: the PLC control module detects whether a single printing is completed.

[0104] Optionally, the printing module is also used to print the data to be printed onto the object using a printer.

[0105] The printer is monitored to see if the PLC control module sends an abnormal warning signal.

[0106] If so, then perform abnormal repairs based on the abnormal warning signal;

[0107] If not, the data to be printed will be printed onto the object to be printed via a printer.

[0108] Optionally, after the PLC control module detects whether a single printing cycle is complete, the detection module is also used for:

[0109] If the data number corresponding to the data to be printed is less than the number of data to be printed, then it is determined that not all the data to be printed has been printed onto the object to be printed; or

[0110] If the data number corresponding to the data to be printed is not less than the number of data to be printed, then it is determined that all the data to be printed has been printed onto the object to be printed.

[0111] Example 3

[0112] This invention provides an electronic device, which includes a processor, a memory, and a printing optimization program stored in the memory and executable on the processor. When the processor executes the printing optimization program, it implements the steps of the printing optimization method as described in the above embodiments.

[0113] The following is for reference. Figure 4 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0114] like Figure 4 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.) that can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0115] Typically, the following systems can be connected to the I / O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0116] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a print optimization program product comprising a print optimization program carried on a computer-readable medium, the print optimization program containing program code for performing the methods shown in the flowcharts. In such embodiments, the print optimization program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the print optimization program is executed by a processing device, it performs the functions defined above in the methods of embodiments of this disclosure.

[0117] The electronic device provided by this invention, employing the printing optimization method in the above embodiments, solves the technical problem of low printing efficiency. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiments of this invention are the same as those of the printing optimization method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0118] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0119] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

[0120] Example 4

[0121] This embodiment provides a computer-readable storage medium, see reference. Figure 5 A computer-readable storage medium stores a printing optimization program, which, when executed by a processor, implements the printing optimization method as described in the above embodiments.

[0122] The computer-readable storage medium provided in this embodiment of the invention may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0123] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0124] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device causes the following: upon detecting that an object to be printed has been loaded onto the printer, it acquires each piece of data to be printed; selects the data to be printed and transmits it to the printer via a control plug-in; prints the data to be printed onto the object to be printed via the printer; detects whether a single print is complete via a PLC control module; if a single print is complete but the data to be printed has not all been printed onto the object to be printed, it controls the object to be printed to flip via a flipping mechanism and returns to the execution step: selecting the data to be printed and transmitting it to the printer via a control plug-in; if a single print is complete and the data to be printed has all been printed onto the object to be printed, it determines that the current printing process has ended.

[0125] Printing-optimized program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0126] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and print optimization program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0127] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0128] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the above-described printing optimization method, thus solving the technical problem of low printing efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this embodiment are the same as those of the printing optimization method provided in the above-described embodiment, and will not be repeated here.

[0129] Example 5

[0130] This application also provides a print optimization program product, including a print optimization program that, when executed by a processor, implements the steps of the print optimization method described above.

[0131] The printing optimization program product provided in this application solves the technical problem of low printing efficiency. Compared with the prior art, the beneficial effects of the printing optimization program product provided in this embodiment are the same as the beneficial effects of the printing optimization method provided in the above embodiments, and will not be repeated here.

[0132] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A printing optimization method, characterized in that, A printing system including a printer, PLC control module, control plug-in, and flipping mechanism, wherein the object to be printed is an object having multiple surfaces to be printed, the method includes: Once the printer detects that an object to be printed has been loaded onto the printer, it acquires the data to be printed. The control plug-in selects data to be printed and sends it to the printer. The step of selecting data to be printed and sending it to the printer through the control plug-in includes: obtaining the data number corresponding to each data to be printed; sending the data number corresponding to each data to be printed to the control plug-in through the PLC control module; and sequentially selecting the data to be printed corresponding to the data number from each data to be printed through the control plug-in, and sending the data to be printed to the printer. The printer prints the data to be printed onto the object to be printed. The PLC control module detects whether the flipping mechanism is at a preset position coordinate to determine whether a single printing operation is complete. If a single print job is completed, the PLC control module compares the currently printed data number with the total number of data to be printed to determine whether all the data to be printed has been printed onto the object to be printed. If the data to be printed is not all printed onto the object to be printed, then the number of each data to be printed is obtained, the flip angle is determined according to the number of data, and the object to be printed is flipped according to the flip angle by the flip mechanism, and the process returns to the execution step: select the data to be printed and transmit it to the printer through the control plug-in; If a single print job is completed and all the data to be printed has been printed onto the object to be printed, then the printing process is considered to be over.

2. The method as described in claim 1, characterized in that, After printing the data to be printed onto the object to be printed using the printer, the method further includes: Perform a cleaning operation on the inkjet head of the printer; When the inkjet head is detected to be cleaned, the flipping mechanism is controlled to carry the object to be printed back to the preset position coordinates, and the following steps are executed: the PLC control module detects whether a single printing is completed.

3. The method as described in claim 1, characterized in that, The step of printing the data to be printed onto the object to be printed using the printer includes: The printer is monitored to determine whether the PLC control module sends an abnormal warning signal. If so, then perform anomaly repair based on the aforementioned anomaly warning signal; If not, the data to be printed is printed onto the object to be printed using the printer.

4. A printing optimization device, characterized in that, This technology is applied to printing systems that include printers, PLC control modules, control plug-ins, and flipping mechanisms. The object to be printed is an object with multiple surfaces to be printed, including: The acquisition module is used to acquire each piece of data to be printed after detecting that an object to be printed has been fed into the printer; The transmission module is used to select data to be printed and transmit it to the printer via the control plug-in; The transmission module is further configured to obtain the data number corresponding to each of the data to be printed, send the data number corresponding to each of the data to be printed to the control plug-in through the PLC control module; and select the data to be printed corresponding to the data number in each of the data to be printed in sequence through the control plug-in, and send the data to be printed to the printer. A printing module is used to print the data to be printed onto the object to be printed using the printer. The detection module is used to detect whether the flipping mechanism is at a preset position coordinate through the PLC control module, so as to determine whether a single printing is completed; If a single print job is completed, the PLC control module compares the currently printed data number with the total number of data to be printed to determine whether all the data to be printed has been printed onto the object to be printed. The flipping module is used to obtain the number of each piece of data to be printed if the data to be printed is not printed on the object to be printed. It determines the flipping angle based on the number of data, controls the object to be printed to flip according to the flipping angle through the flipping mechanism, and returns to the execution step: selects the data to be printed to be transmitted to the printer through the control plug-in. The termination module is used to determine that the printing process ends if a single printing operation has been completed and all the data to be printed has been printed onto the object to be printed.

5. An electronic device, characterized in that, The electronic device includes a processor, a memory, and a print optimization program stored in the memory and executable on the processor. When the processor executes the print optimization program, it implements the steps of the print optimization method as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a printing optimization program, which, when executed by a processor, implements the steps of the printing optimization method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Digital flat panel printer

    CN106004046A

  • Printer and duplex printing mode controlling method thereof

    CN1892465A