Thermal transfer coder electric-control system based on STM32 microcomputer developments
Technical field
The invention belongs to packet printing apparatus field, be related in industrial automation control system, in particular to based on
The thermal transfer coder electric-control system of STM32 microcomputer developments.
Background technology
The research and development of Thermal-printing Technology, industry/manufacturing industry and other traditional fields for China have very
Important effect and help.Wherein topmost is exactly to apply on bar code printing apparatus.China exists huge to bar code printer
Big demand, and with international trade come and go increasingly frequently, this market growth never has decrease.Traditional heat turns
Print coder needs well in advance mould, it is impossible to arbitrarily repair type information, and the operation of the bar code printer of import is slow, and equipment is high
It is expensive, therefore the threshold that Chinese Enterprises are set up IT managerial system is improved, the information-based speed of enterprise is slow down, enterprise is weakened
The international competitiveness of industry, especially for most medium-sized and small enterprises.
The content of the invention
The purpose of the present invention is in order to solve existing thermal transfer coder operation slowly, high cost, and can not arbitrarily change printing
The weak point of information, the invention provides a kind of thermal transfer coder electric-control system based on STM32 microcomputer developments.
The purpose of the present invention can be realized by following technical method:
Thermal transfer coder electric-control system based on STM32 microcomputer developments, include power supply, control device and
STM32F103 processor systems, the information data input/output port of described STM32F103 processor systems passes through data
The information data input/output end port of line access control equipment, it is characterized in that:Described STM32F103 processor systems include
There are STM32F103 main processor systems and STM32F103 from processor system, described STM32F103 main processor systems are
Control the control operation system of control device operation;STM32F103 is from processor system for control device operation information data
The processing system of collection, storage and monitoring, described STM32F103 main processor systems with control device by setting up two-way number
According to transmission, collected data message is sent to STM32F103 from processor system, STM32F103 connects from processor system
Preserved after receiving data message, while being monitored and being fed back in real time STM32F103 primary processors to collecting data message
System, the operation of control device is controlled by STM32F103 main processor systems.
The purpose of the present invention can also be realized by following technical method:
Further, described STM32F103 main processor systems are connected to current type information collector, heat
Quick print head controller, printhead temperature collector, the collector of packaging bag speed, colour band speed acquisition device, printhead stepping
Electric machine controller, colour band control stepper motor main motor controller and colour band control stepper motor from electric machine controller.
Further, described STM32F103 main processor systems are also associated with current printing picture information-storing device.
Further, described STM32F103 includes from processor system to the collection of control device operation information data
Color band control stepper motor main motor feedback collection system, colour band control stepper motor from motor feedback acquisition system, printing
Head stepper motor data collecting system and print head position acquisition system;Described STM32F103 is from processor system to control
The storage of equipment operation information data includes the holder and SD card pictorial information holder of EEPROM configuration informations;Described
STM32F103 is that the data of collection are analyzed to the monitoring of control device operation information data from processor system, will be divided
The data feedback of analysis is to STM32F103 main processor systems.
Further, described STM32F103 is connected to ethernet communication interface from processor system.
Further, described STM32F103 is also associated with a serial communication interface from processor system.
It is compared with the prior art, the present invention has technical characterstic following prominent:
1st, the speed of service is fast, using STM32F103 main processor systems and STM32F103 from the dual processors of processor system
Connected applications, so that being greatly improved it controls speed, effectively improve producing efficiency.There is the effect of low cost.
2nd, can real time modifying type information, in the processing system provided with Ethernet and serial communication can be connected, with computer
Effectively combine, realization can real time modifying type information purpose, using simpler, convenient.
3rd, low cost, using the various thermal transfer stamp Electrical Control application systems of STM32 microcomputer developments, compared with the prior art
Greatly reduce cost of manufacture.
Brief description of the drawings
Fig. 1 is frame principle figure of the invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
The thermal transfer coder electric-control system based on STM32 microcomputer developments shown in reference picture 1, includes power supply, control
Control equipment and STM32F103 processor systems, the information data input/output port of described STM32F103 processor systems
By the information data input/output end port of data wire access control equipment, it is characterized in that:Described STM32F103 processors
System includes STM32F103 main processor systems 1 and STM32F103 from processor system 2, the main places of described STM32F103
Manage control operation system of the device system 1 for control control device operation;STM32F103 is transported from processor system 2 for control device
The processing system of the collections of row information data, storage and monitoring, described STM32F103 main processor systems 1 by with control
Equipment sets up bi-directional data transmission, and collected data message is sent to STM32F103 from processor system 2, STM32F103
Preserved after receiving data message from processor system 2, while monitored and fed back in real time to collecting data message
STM32F103 main processor systems 1, the operation of control device is controlled by STM32F103 main processor systems 1.
In embodiment, described STM32F103 main processor systems 1 are connected to current type information collector
11st, thermal printing head controller 12, printhead temperature collector 13, the collector 14 of packaging bag speed, colour band speed acquisition device
15th, printhead controllor for step-by-step motor 16, colour band control stepper motor main motor controller 17 and colour band control stepper motor from
Electric machine controller 18;Described STM32F103 includes coloured from processor system 2 to the collection of control device operation information data
Band control stepper motor main motor feedback collection system 21, colour band control stepper motor from motor feedback acquisition system 22, printing
Head stepper motor data collecting system 25 and print head position acquisition system 26;Described STM32F103 is from 2 pairs of processor system
The storage of control device operation information data includes the holder 23 and SD card pictorial information holder of EEPROM configuration informations
24;Described STM32F103 is that the data of collection are carried out to the monitoring of control device operation information data from processor system 2
Analysis, by the data feedback of analysis to STM32F103 main processor systems 1.
In order to accelerate to be also associated with the control operation speed of control device operation, STM32F103 main processor systems 1 to work as
Preceding printing picture information Store 19.Make it in current operation, STM32F103 main processor systems 1, which can be recalled rapidly, beats
Print pictorial information is printed.
In use, described STM32F103 is provided with from processor system 2 and is connected to the He of ethernet communication interface 27
Serial communication interface 28, computer, or ether can be connected by serial communication interface 28 by making the control system of thermal transfer coder
The net of Netcom's communication interface 27 is connected to internet, realizes remote control, to equipment run debugged and real-time monitoring equipment operation
Situation, and modification of the computer to type information can be utilized in real time.
Each control operation principle of the present invention is as follows:
STM32F103VF main processor systems 1 by thermal printing head controller 12 control thermal printing head startup with
Close realization the carbon dust on heat-transferring printing paper is transferred in the packaging bag printed;STM32F103VF host processing systems 1 are by beating
Print head controllor for step-by-step motor 16 controls printhead stepper motor to realize when batch (-type) or continous way are printed and realizes that printhead is beaten
Print the displacement moved required for complete one secondary picture;STM32F103VF host processing systems 1 are gathered by colour band data acquisition unit 15
The coil diameter value of current color band operation;STM32F103VF host processing systems 1 gather packaging bag by packaging bag speed acquisition device 14 and worked as
Preceding real-time linear velocity;STM32F103VF host processing systems 1 control stepper motor main motor controller 17 and colour band by colour band
Control stepper motor realizes the control of colour band operation from electric machine controller 18;STM32F103VF host processing systems 1 pass through printhead
Temperature sampler 13 gathers the heated in real-time temperature of printhead;STM32F103VF host processing systems pass through outside type information control
The acquisition system of device 11 processed realizes the print control of whole system;STM32F103VF passes through ethernet communication interface from processing system 2
Realize and external communication;STM32F103VF controls stepper motor main motor feedback collection system 21 from processing system by colour band
Stepper motor is controlled from the running status of the real-time collection stepper motor of motor feedback acquisition system 22 with colour band;STM32F103VF
The real time position of printhead is monitored by printhead stepper motor data collecting system 25 from processing system 2;STM32F103VF from
Processing system 2 stores the various type informations for needing to print by SD card pictorial information memory 24;STM32F103VF is from processing
System 2 stores whole system parameters configuration information by EEPROM holders 23;STM32F103VF is logical from processing system 2
Cross serial communication interface 28 and realize debugging and monitoring to system operation;Power supply 3 provides power supply for whole system.
Thermal transfer coder system of the invention based on STM32 microcomputer developments, with reference to hardware circuit board and software, passes through
Three stepper motors of STM32F103VF Single-chip Controllings (printhead stepper motor, colour band control stepper motor main motor and colour band
Stepper motor is controlled from motor) coordinate operation, in time start the related position of thermal printhead heats heat-transferring printing paper, make it
The information such as different words, figure, bar code are printed in commodity bundle pack.