A kind of temperature control system and method for image printer
Technical field
Present invention relates particularly to a kind of temperature control system of image printer and methods.
Background technique
With the continuous development of medical technology, medical imaging printer becomes the essential instrument of hospital, currently, city
The medical imaging printer occurred on field not will do it preheating generally in printing, or have preheating, but temperature control is not
It is good, so that very big color difference or preheating time occur too long for the picture printed, when preheating time is too long, meeting
So that print head longevity greatly shortens, it is therefore desirable to which a kind of temprature control method of image printer can guarantee to print
Picture quality, and the service life of print head will not be shortened.
The working principle of thermal printer is: being equipped with print head (temperature-sensitive head assembly) heating of semiconductor heating element simultaneously
The pattern of needs is printed after contact thermal printing paper, principle is similar with heat-sensitive type facsimile machine.Image is by heating, in film
It is middle generate chemical reaction and generate.This thermal printer chemical reaction carries out at a certain temperature.It is needed before printing
The preheating temperature of print head to certain temperature.Main there are two key control unit on thermal printer, MCU control is mechanical
Operating, FPGA control image printing.
Summary of the invention
It, can in view of the above-mentioned problems, the present invention proposes the temperature control system and method for a kind of image printer
The effectively preheating time of control image printer, while being able to extend the service life of print head.
It realizes above-mentioned technical purpose, reaches above-mentioned technical effect, the invention is realized by the following technical scheme:
A kind of temperature control system of image printer, including microprocessor chip, fpga chip, thermal printing head, set
In heating device and temperature measuring equipment on thermal printing head;The output end of the microprocessor chip is connected to by fpga chip
Thermal printing head exports thermal control signals to the heating device on thermal printing head;Thermometric dress on thermal printing head
The temperature of real-time detection thermal printing head is set, and outputs signal to microprocessor chip.
As a further improvement of the present invention, the heating device is heating semiconductor element, and temperature measuring equipment is thermocouple.
A kind of temprature control method of image printer, comprising:
Step 1: being located at the output of the temperature measuring equipment on the thermal printing head of image printer according to the frequency collection of setting
Then the output signal of temperature measuring equipment is converted to corresponding actual temperature value by signal;
Step 2: actual temperature value obtained in step 1 and preset temperature are compared, when preset temperature is greater than
Actual temperature value, and the difference between preset temperature and actual temperature value be greater than given threshold when, microprocessor chip output control
Signal CT1 processed is to fpga chip;When actual temperature value be greater than preset temperature when, microprocessor chip export control signal CT2 to
Fpga chip;When preset temperature be greater than actual temperature value, and the difference between preset temperature and actual temperature value be less than setting threshold
When value, microprocessor chip exports pwm control signal CT3 to fpga chip;
Step 3: when fpga chip detects control signal CT1 and pwm control signal CT3, the control of fpga chip output
The conducting of signal CT4 control heating device processed;When fpga chip detects control signal CT2, the control of fpga chip output
Signal CT4 makes heating device not work.
As a further improvement of the present invention, the heating device is heating semiconductor element, and temperature measuring equipment is thermocouple.
As a further improvement of the present invention, the given threshold is 0.4 DEG C~0.6 DEG C.
As a further improvement of the present invention, the given threshold is 0.5 DEG C.
As a further improvement of the present invention, the frequency described in step 1 set is every 150ms-250ms
Monitoring is primary.
As a further improvement of the present invention, the frequency described in step 1 set is monitors one every 200ms
Secondary, the control signal CT4 of the fpga chip output is period 100ms, the pulse signal of duty ratio 50%.
As a further improvement of the present invention, the control signal CT1 is high level signal, duty ratio=100%;Control letter
Number CT2 is low level signal, duty ratio=0%.
Beneficial effects of the present invention:
The temperature control system and method for image printer of the invention, utilize microprocessor ready-made on image printer
Chip and fpga chip can prevent the heating device constant conduction on print head from heating while shortening preheating time, from
And it is able to extend the head service life of printing, and the temprature control method in the present invention can be realized high-precision temperature control.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of an embodiment of the present invention;
Fig. 2 is control signal CT1-CT3 waveform diagram corresponding with control signal CT4 in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to
Limit the present invention.
Application principle of the invention is explained in detail with reference to the accompanying drawing.
As shown in Figure 1, a kind of temperature control system of image printer, including microprocessor chip, fpga chip, temperature-sensitive
Print head, heating device and temperature measuring equipment on thermal printing head;The output end of the microprocessor chip passes through FPGA
Chip is connected to thermal printing head, exports thermal control signals to thermal printing head, the heating device on thermal printing head according to
The control signal received work or do not work;Temperature measuring equipment is set on heating device, monitors the real-time of heating device
Temperature, and output signal to microprocessor chip.
In an embodiment of the present invention, the heating device is heating semiconductor element;Shown temperature measuring equipment is heat
Galvanic couple.
A kind of temprature control method of image printer, comprising:
Step 1: the output for the temperature measuring equipment being located on the print head of image printer according to the frequency collection of setting is believed
Number, the output signal of temperature measuring equipment is then converted into corresponding actual temperature value;
Step 2: Step 2: actual temperature value obtained in step 1 and preset temperature are compared, when default temperature
Degree be greater than actual temperature value, and the difference between preset temperature and actual temperature value be greater than given threshold when, microprocessor chip
Control signal CT1 is exported to fpga chip;When actual temperature value is greater than preset temperature, microprocessor chip output control signal
CT2 is to fpga chip;When preset temperature be greater than actual temperature value, and the difference between preset temperature and actual temperature value be less than set
When determining threshold value, microprocessor chip exports pwm control signal CT3 to fpga chip;
Step 3: when fpga chip detects control signal CT1 and pwm control signal CT3, the control of fpga chip output
The conducting of signal CT4 control heating device processed;When fpga chip detects control signal CT2, the control of fpga chip output
Signal CT4 makes heating device not work.
In an embodiment of the present invention, the heating device is heating semiconductor element;Shown temperature measuring equipment is heat
Galvanic couple.
In an embodiment of the present invention, the given threshold is 0.4 DEG C~0.6 DEG C.
As shown in Fig. 2, in an embodiment of the present invention, the given threshold is 0.5 DEG C, then when preset temperature-reality
Border temperature > 0.5 DEG C, microprocessor chip output control signal CT1(high level), duty ratio=100%;Work as actual temperature > pre-
If temperature, microprocessor chip output control signal CT2(low level), duty ratio=0%;Work as preset temperature > actual temperature and
Preset temperature-actual temperature < 0.5 DEG C, microprocessor chip export pwm control signal CT3, duty ratio=(preset temperature-reality
Temperature)/0.5.
In the present invention, the frequency set in the step 1 is primary to monitor every 200ms-250ms.
In an embodiment of the present invention, the frequency set in the step 1 is primary to monitor every 200ms;Institute
The control signal CT4 for stating fpga chip output is period 100ms, the pulse signal of duty ratio 50%.
As a further improvement of the present invention, the control signal CT1 is high level signal, and control signal CT2 is low electricity
Ordinary mail number, when control signal is high level signal, to heat enable signal.
In summary:
The temperature control system and method for image printer of the invention, utilize microprocessor ready-made on image printer
Chip and fpga chip can prevent the heating device constant conduction on print head from heating while shortening preheating time, from
And it is able to extend the head service life of printing, and the temprature control method in the present invention can be realized high-precision temperature control.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this
The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.