Disclosure of Invention
The invention aims to at least solve one of the technical problems in the prior art and provide a heating control method of a printer, the printer and a computer readable storage medium, which can shorten the heating time of a heating roller without increasing the total power of a power supply.
In a first aspect, an embodiment of the present invention provides a heating control method for a printer, where a load of the printer includes a heating roller, a print head, and a plurality of motors, the heating roller is provided with a first coil and a second coil, and the method includes:
Acquiring the operation power of a printing head, the operation power of a motor and the total power of a power supply;
Obtaining current residual power according to the operating power of the printing head, the operating power of the motor and the total power of the power supply;
Controlling heating power of the first coil and the second coil according to the current residual power;
wherein:
the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all the motors is larger than the total power of the power supply, and the rated power of the heating roller is the sum of the rated power of the first coil and the rated power of the second coil.
The heating control method of the printer has the advantages that the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the first coil and the second coil, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operating power of the printing head, the operating power of the motor and the total power of the power supply, and finally the heating power of the first coil and the heating power of the second coil are controlled according to the current residual power.
In the heating control method provided in some embodiments of the present invention, the controlling the heating power of the first coil and the second coil according to the current remaining power includes:
And when the current residual power is smaller than the rated power of the first coil, controlling the first coil to heat with the current residual power through PWM driving, and controlling the second coil to stop working.
In this embodiment, the current residual power is smaller than the rated power of the first coil, which indicates that other loads except the heating roller occupy more power supply power in the current running state of the printer, and the current residual power is smaller, so that the first coil and the second coil cannot be driven to heat simultaneously, and therefore the first coil is controlled to heat with the current residual power through PWM driving, and the second coil is controlled to stop working, so that overload running of the printer power supply is avoided.
In the heating control method provided in some embodiments of the present invention, the controlling the heating power of the first coil and the second coil according to the current remaining power further includes:
And when the current residual power is larger than the rated power of the first coil and smaller than the rated power of the heating roller, the first coil and the second coil are controlled to be heated simultaneously through PWM driving, and the sum of the heating power of the first coil and the heating power of the second coil is not larger than the current residual power.
In this embodiment, the current residual power is greater than the rated power of the first coil and less than the rated power of the heating roller, which indicates that in the current running state of the printer, other loads except the heating roller occupy part of the power supply power, and the current residual power can drive the first coil and the second coil to perform heating operation at the same time, so that the heating time is shortened, but the first coil and the second coil cannot be driven to operate according to the rated power at the same time, so that the sum of the heating power of the first coil and the heating power of the second coil needs to be controlled to be not greater than the current residual power, and the overload running of the power supply of the printer is avoided.
In the heating control method provided in some embodiments of the present invention, the controlling the heating power of the first coil and the second coil according to the current remaining power further includes:
And when the current residual power is larger than the rated power of the heating roller, the first coil and the second coil are controlled to be heated simultaneously through PWM driving, and the sum of the heating power of the first coil and the heating power of the second coil is not larger than the rated power of the heating roller.
In this embodiment, the current residual power is greater than the rated power of the heating roller, which means that other loads except the heating roller occupy less power supply in the current operation state of the printer, and the current residual power is more, so that the first coil and the second coil can be driven to operate according to the rated power at the same time, thereby shortening the heating time.
In the heating control method provided by some embodiments of the present invention, the current remaining power is calculated by subtracting the printhead operating power from the total power of the power supply and subtracting the motor operating power of all the motors.
In the heating control method provided in some embodiments of the present invention, the controlling the heating power of the first coil and the second coil according to the current remaining power includes:
acquiring current heating demand power;
when the current residual power is larger than the current heating demand power, the heating power of the first coil and the heating power of the second coil are controlled according to the current heating demand power, and the sum of the heating power of the first coil and the heating power of the second coil is not larger than the current heating demand power.
In this embodiment, when the heating power of the first coil and the second coil is controlled, the current heating demand power is introduced as a control parameter, and when the current remaining power is greater than the current heating demand power, the sum of the heating power of the first coil and the heating power of the second coil is controlled to be not greater than the current heating demand power, so that the waste of energy sources and the excessive temperature of the heating roller are avoided.
In the heating control method provided in some embodiments of the present invention, the controlling the heating power of the first coil and the second coil according to the current remaining power further includes:
When the current residual power is smaller than the current heating demand power, the heating power of the first coil and the heating power of the second coil are controlled according to the current heating demand power, and the sum of the heating power of the first coil and the heating power of the second coil is not larger than the current residual power.
In this embodiment, when the current remaining power is smaller than the current heating required power, only the sum of the heating power of the first coil and the heating power of the second coil can be controlled to be not larger than the current remaining power, so that overload operation of the printer power supply is avoided.
In a second aspect, an embodiment of the present invention provides an operation control device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the heating control method according to the embodiment of the first aspect.
The printer operation control device at least has the advantages that the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the first coil and the second coil, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operation power of the printing head, the operation power of the motor and the total power of the power supply, and finally the heating power of the first coil and the heating power of the second coil are controlled according to the current residual power.
In a third aspect, embodiments of the present invention provide a printer including the operation control device according to the embodiment of the second aspect.
The printer provided by the embodiment of the invention has the advantages that the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the double coils as the first coil and the second coil, after the heating roller is increased by arranging the double coils, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the running power of the printing head, the running power of the motor and the total power of the power supply, and finally the heating power of the first coil and the heating power of the second coil are controlled according to the current residual power.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the heating control method according to the embodiments of the first aspect.
The computer readable storage medium provided by the embodiment of the invention has the advantages that the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the double coils into the first coil and the second coil, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operating power of the printing head, the operating power of the motor and the total power of the power supply, and finally the heating power of the first coil and the second coil is controlled according to the current residual power.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Detailed Description
Reference will now be made in detail to the present embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the accompanying drawings are used to supplement the description of the written description so that one can intuitively and intuitively understand each technical feature and overall technical scheme of the present invention, but not to limit the scope of the present invention.
In the description of the present invention, the description of the first and second is only for the purpose of distinguishing technical features, and should not be construed as indicating or implying relative importance or implying the number of technical features indicated or the precedence of the technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
Embodiments of the present invention provide a heating control method for a printer, and a computer-readable storage medium, capable of shortening a heating time of a heating roller without increasing a total power of a power supply.
Embodiments of the present invention will be further described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural view of a heating roller according to an embodiment of the present invention. Referring to fig. 1, the heating roller 100 includes a first coil 110, a second coil 120, and a fuse 130, one end of the fuse 130 is grounded, the other end is connected to one end of the first coil 110 and one end of the second coil 120, respectively, and the other end of the first coil 110 and the other end of the second coil 120 are connected to a heating roller driving circuit, respectively.
Referring to fig. 2, a first aspect embodiment of the present invention provides a heating control method of a printer, the load of which includes a heating roller 100, a printhead, and a plurality of motors as shown in fig. 1, the heating roller 100 being provided with a first coil 110 and a second coil 120, the method including, but not limited to, steps S210 to S230:
Step S210, acquiring the operation power of a printing head, the operation power of a motor and the total power of a power supply;
Step S220, obtaining the current residual power according to the operation power of the printing head, the operation power of the motor and the total power of the power supply;
Step S230 of controlling the heating power of the first coil 110 and the second coil 120 according to the current remaining power;
wherein:
The sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all the motors is larger than the total power of the power supply, and the rated power of the heating roller is the sum of the rated power of the first coil 110 and the rated power of the second coil 120.
According to the heating control method of the printer, the double coils are arranged in the heating roller and are the first coil 110 and the second coil 120 respectively, so that the maximum heating power of the heating roller is increased, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely, the sum of the rated power of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operation power of the printing head, the operation power of the motor and the total power of the power supply, and finally the heating power of the first coil 110 and the heating power of the second coil 120 are controlled according to the current residual power.
Referring to fig. 3, in a heating control method provided in some embodiments of the present invention, controlling heating power of the first coil 110 and the second coil 120 according to the current remaining power in step S230 of fig. 2 includes:
Step S231, when the current residual power is smaller than the rated power of the first coil 110, the first coil 110 is controlled to heat by PWM driving, and the second coil 120 is controlled to stop working.
In this embodiment, the current remaining power is smaller than the rated power of the first coil 110, which indicates that the other loads except the heating roller occupy more power supply power in the current running state of the printer, and the current remaining power is smaller, so that the first coil 110 and the second coil 120 cannot be driven to heat simultaneously, and therefore the first coil 110 is controlled to heat with the current remaining power through PWM driving, and the second coil 120 is controlled to stop working, so as to avoid overload running of the printer power supply.
Referring to fig. 3, in the heating control method provided in some embodiments of the present invention, controlling heating power of the first coil 110 and the second coil 120 according to the current remaining power in step S230 of fig. 2 further includes:
And S232, when the current residual power is larger than the rated power of the first coil 110 and smaller than the rated power of the heating roller, the first coil 110 and the second coil 120 are controlled to be heated simultaneously through PWM driving, and the sum of the heating power of the first coil 110 and the heating power of the second coil 120 is not larger than the current residual power.
In this embodiment, the current residual power is greater than the rated power of the first coil 110 and less than the rated power of the heating roller, which means that in the current operation state of the printer, other loads except the heating roller occupy part of the power supply power, and the current residual power can drive the first coil 110 and the second coil 120 to perform heating operation at the same time, so as to shorten the heating time, but cannot drive the first coil 110 and the second coil 120 to operate according to the rated power at the same time, so that the sum of the heating power of the first coil 110 and the heating power of the second coil 120 needs to be controlled to be not greater than the current residual power, and the overload operation of the power supply of the printer is avoided.
Referring to fig. 3, in the heating control method provided in some embodiments of the present invention, controlling heating power of the first coil 110 and the second coil 120 according to the current remaining power in step S230 of fig. 2 further includes:
And S233, when the current residual power is larger than the rated power of the heating roller, the first coil 110 and the second coil 120 are controlled to heat simultaneously through PWM driving, and the sum of the heating power of the first coil 110 and the heating power of the second coil 120 is not larger than the rated power of the heating roller.
In this embodiment, the current remaining power is greater than the rated power of the heating roller, which means that other loads except the heating roller occupy less power under the current running state of the printer, and the current remaining power is more, so that the first coil 110 and the second coil 120 can be driven to run according to the rated power at the same time, thereby shortening the heating time, and in addition, the sum of the heating power of the first coil 110 and the heating power of the second coil 120 needs to be controlled to be not greater than the rated power of the heating roller, so as to avoid the excessive temperature caused by the overload running of the heating roller.
In the heating control method provided by some embodiments of the present invention, the current remaining power is calculated by subtracting the printhead operating power from the total power of the power supply and subtracting the motor operating power of all the motors.
Referring to fig. 4, in a heating control method provided in some embodiments of the present invention, controlling heating power of the first coil 110 and the second coil 120 according to the current remaining power at step S230 in fig. 2 includes:
step S234, obtaining the current heating demand power;
step S235, when the current residual power is larger than the current heating demand power, controlling the heating power of the first coil 110 and the second coil 120 according to the current heating demand power, and making the sum of the heating power of the first coil 110 and the heating power of the second coil 120 not larger than the current heating demand power.
In this embodiment, when the heating power of the first coil 110 and the second coil 120 is controlled, the current heating required power is introduced as a control parameter, and when the current remaining power is greater than the current heating required power, the sum of the heating power of the first coil 110 and the heating power of the second coil 120 is controlled to be not greater than the current heating required power, so that the waste of energy sources and the excessive temperature of the heating roller are avoided.
Referring to fig. 4, in the heating control method provided in some embodiments of the present invention, controlling heating power of the first coil 110 and the second coil 120 according to the current remaining power in step S230 of fig. 2 further includes:
Step S236, when the current residual power is smaller than the current heating demand power, controlling the heating power of the first coil 110 and the second coil 120 according to the current heating demand power, and making the sum of the heating power of the first coil 110 and the heating power of the second coil 120 not larger than the current residual power.
In this embodiment, when the current remaining power is smaller than the current heating required power, only the sum of the heating power of the first coil 110 and the heating power of the second coil 120 can be controlled to be not larger than the current remaining power, so as to avoid the overload operation of the printer power supply.
The heating control method of the present invention will be described in a specific embodiment.
When the printer prints, the power required by the print head and the motor is 100W, and a conventional heating roller is provided with a heating wire, and the heating power is 100W. The total power of the general power supply is not lower than 200W, and when the printer does not print, the total power of the general power supply is 100W, and if the total power of the general power supply can be supplied to the heating roller for heating, the heating time of the heating roller can be greatly shortened. Therefore, the heating roller is designed into a structure with 2 coils, the single coil 100W is used for heating during printing, the 200W double-coil heating mode is used during non-printing, and the heating time can be shortened without increasing the power of a power supply. The specific heating control method is as follows:
The Power consumed by the printing head is determined by the printing content of a user, the printing head operation Power Power_TPH can be calculated through the printing content of the user, the Power of each Motor in operation can be calculated, the Motor operation Power is Power_Motorn (n=1, 2,3,4,5, 6.), therefore, the maximum Power that can be consumed by the heating roller is 200W-Power_TPH-Power_Motor1- & gt-Power_Motorn, and when the heating roller needs to be heated, the maximum Power that can be consumed by the heating roller can be obtained by calculating the current Power consumed by the printing head, the number of Motor operations and the Power consumed by each Motor. In the embodiment of the invention, the heating Power of the heating roller is controlled by controlling the maximum Power of the heating roller through PWM drive and does not exceed Power_Heater, and the heating Power of the heating roller is controlled by switching in 1 coil or 2 coils in 2 steps simply, but the maximum heating Power of the heating roller can be dynamically adjusted between 0W and 200W in a stepless manner according to the Power consumed by the current printing head and motor of the printer.
Referring to fig. 5, a second aspect of the embodiment of the present invention provides an operation control apparatus 500, including a memory 520, a processor 510, and a computer program stored on the memory 520 and executable on the processor 510, the processor 510 executing the program to implement the heating control method as described in the first aspect of the embodiment, for example, executing the method steps S210 to S230 in fig. 2, the method steps S210 to S233 in fig. 3, or executing the method steps S210 to S236 in fig. 4.
According to the printer operation control device 500 provided by the embodiment of the invention, the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the first coil 110 and the second coil 120 in the heating roller, after the heating roller is increased in the coil, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of the power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operation power of the printing head, the operation power of the motor and the total power of the power supply, and finally the heating power of the first coil 110 and the heating power of the second coil 120 are controlled according to the current residual power.
In addition, an embodiment of a third aspect of the present invention provides a printer including the operation control device according to the embodiment of the second aspect.
According to the printer provided by the embodiment of the invention, the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the first coil 110 and the second coil 120, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated powers of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operation power of the printing head, the operation power of the motor and the total power of the power supply by taking the operation power of the printing head, the operation power of the motor and the total power of the power supply, and finally the heating power of the first coil 110 and the second coil 120 is controlled according to the current residual power.
In addition, a fourth aspect embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the heating control method described in the first aspect embodiment, for example, performing the method steps S210 to S230 in fig. 2, the method steps S210 to S233 in fig. 3, or the method steps S210 to S236 in fig. 4.
According to the computer readable storage medium provided by the embodiment of the invention, the maximum heating power of the heating roller is increased by arranging the double coils in the heating roller and respectively arranging the double coils in the first coil 110 and the second coil 120, after the heating roller is increased, the sum of the rated power of the heating roller, the rated power of the printing head and the rated power of all motors is larger than the total power of a power supply, namely the sum of the rated powers of all loads of the printer is larger than the total power of the power supply, at the moment, the current residual power is calculated according to the operation power of the printing head, the operation power of the motor and the total power of the power supply, and finally the heating power of the first coil 110 and the second coil 120 is controlled according to the current residual power.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media or non-transitory media and communication media or transitory media. The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.