CN115339251A - Motor stepping control method for self-adaptive linkage logic heating - Google Patents

Motor stepping control method for self-adaptive linkage logic heating Download PDF

Info

Publication number
CN115339251A
CN115339251A CN202211025590.4A CN202211025590A CN115339251A CN 115339251 A CN115339251 A CN 115339251A CN 202211025590 A CN202211025590 A CN 202211025590A CN 115339251 A CN115339251 A CN 115339251A
Authority
CN
China
Prior art keywords
heating
motor
data
time
heating time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211025590.4A
Other languages
Chinese (zh)
Other versions
CN115339251B (en
Inventor
于得刚
郭晋鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Seal Interest Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN202211025590.4A priority Critical patent/CN115339251B/en
Publication of CN115339251A publication Critical patent/CN115339251A/en
Application granted granted Critical
Publication of CN115339251B publication Critical patent/CN115339251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/14Arrangements for controlling speed or speed and torque
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/22Control of step size; Intermediate stepping, e.g. microstepping

Abstract

The embodiment of the application discloses a motor stepping control method for self-adaptive linkage logic heating, which comprises the following steps: pre-receiving data in a first time period, and acquiring the transmission speed of the Bluetooth data in the first time period; carrying out equipartition processing according to the data volume received by each line, wherein each N point is evenly divided, and insufficient backups are also evenly divided according to 1; a motor timer of the printer generates a PWM signal, a slow speed is set at first, and the motor is controlled to rotate at a constant frequency and a constant speed; and (3) filling data, starting a heating timer, heating the data points, heating for M times in each row, controlling the heating time according to the heating effect, determining the heating time parameter, and calculating the heating time of one row in a reverse mode, wherein the heating time of one row corresponds to the PWM period of the motor with 4 step angles, so that the rotation speed of the motor is determined. The invention realizes the function of automatically matching the motor speed only by controlling the heating time, thereby achieving the best processing mode for controlling the printer.

Description

Motor stepping control method for self-adaptive linkage logic heating
Technical Field
The invention relates to the technical field of heating and motor control in a printer, in particular to a motor stepping control method for self-adaptive linkage logic heating.
Background
The printing effect of the current printer always has the problems, because the relation problem of the printing heating time and the printing speed is considered, the printing speed is difficult to be greatly improved, the heating time and the printing speed are controlled at present by continuously trying to verify by giving fixed motor stepping speed and heating time, but the method is time-consuming and labor-consuming, cannot achieve accurate control, and cannot achieve the optimal developing effect and the optimal stepping speed.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a motor stepping control method for adaptive linkage logic heating, and solves the problem that the printing speed cannot be optimized under the condition of optimizing the printing effect in the prior art.
In order to solve the problems, the technical scheme adopted by the invention is as follows:
a motor step control method of self-adaptive linkage logic heating is characterized by comprising the following steps:
pre-receiving data in a first time period, and acquiring the transmission speed of the Bluetooth data in the first time period;
carrying out equipartition processing according to the data quantity received by each line, wherein each N point is evenly divided, and insufficient backup is also processed according to 1 evenly divided;
a motor timer of the printer generates a PWM signal, a slow speed is set at first, and the motor is controlled to rotate at a constant frequency and a constant speed;
sending the data to a memory area of the thermosensitive plate, starting a heating timer, heating the data points, controlling the heating time, and controlling the heating time according to the heating effect;
and determining the control time of the heating timer according to the heating effect requirement, namely the heating time length, and calculating the heating time of one line of data volume by a back-stepping algorithm after the heating time length is determined, wherein the heating time of one line of data volume corresponds to the PWM period of the motor with 4 step angles, so that the rotation speed of the motor can be determined.
Further, the heating time period = ((variable parameter × number of heating points + R) ave ) V)/(variable parameter x number of heating points + R com ) Wherein the variable parameter is the actual development time and V is the battery voltage.
Further, the said back-stepping algorithm includes:
the heating time length of one line data amount = the number of heating times × the heating time length × the number of average divisions × 4.
Furthermore, the method also comprises the step of adjusting the relation between the motor change and the heating time through a state machine to ensure that the motor change and the heating time change are accurate and stable.
Further, the time of the first time period is not more than 1 second.
Further, the value of N should satisfy:
w is less than or equal to the maximum current output M of the battery, N is less than or equal to the number P of the heat sensitive sheets which are heated simultaneously, wherein W is the heating power required by each heating point.
Further, W is more than or equal to 8mA and less than or equal to 10mA.
The beneficial effects of the above technical scheme are: on the premise of ensuring the optimal printing effect, the printing speed is increased to the fastest speed, so that the printing time is shortened, the user experience is enhanced, and the cruising ability of the machine is increased, thereby realizing the automatic matching function of the motor speed when only heating needs to be controlled, and achieving the best processing mode for controlling the printer.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention.
Detailed Description
The invention is based on the heating work formula of the thermal sensitive sheet of the printer:
P0=I2*Rave=(VH2*Rave)/(Rcom*N+Rave+Ric)2
and bluetooth transmission speed, and maximum data amount of 96/8=12 bytes per line, and maximum output power of battery 1200mAh, stepping motor rotation principle: the Pulse Width Modulation (PWM) control (2 pulses rotate by 1 step angle), and the principles of structural design that 2 step angles rotate by one line by 0.125mm, etc., provide a motor stepping control method of adaptive linkage logic heating, the steps of the method are shown in fig. 1, and mainly include:
the method comprises the following steps of S1, receiving data in a first time period in advance, wherein the data come from an upper computer (a Bluetooth mobile terminal such as a mobile phone), receiving and storing the data through a printer main control MCU (microprogrammed control Unit), and acquiring the Bluetooth data transmission speed in the first time period, wherein the time of the first time period is not more than 1 second, 1 second is taken as unit time, 1 second is that human body sense capture cannot be delayed, and the too long time can influence quick response experience;
s2, equally dividing the data according to the data volume received by each line, equally dividing every N points, equally dividing insufficient backups according to 1, equally dividing the heating points according to the requirement of the maximum output current of the battery and the simultaneous heating points of the thermosensitive plate, wherein the value of N is satisfied: w N ≦ maximum current output M of the battery, and N ≦ number of simultaneous heating points P of the thermal sheet, where W is a heating power required for each heating point of 8mA ≦ W ≦ 10mA, such as, for example, one point power consumption of 10mA × N (number of points) ≦ 1A (maximum current output of the battery), while N (number of points) ≦ number of simultaneous heating points of the thermal sheet (refer to the thermal sheet data manual used); in addition, by means of the equal division, the phenomenon that the power consumption is too large to cause battery overload shutdown protection can be avoided, and meanwhile, the best heating effect can be achieved at each point.
S3, enabling a motor timer of the printer to generate a PWM signal, setting a slow speed, and controlling the motor to rotate at a constant frequency and a constant speed;
s4, filling data, sending the data to a memory area of the thermosensitive plate, starting a heating timer, heating the data points, controlling the heating times and the heating time, and controlling the heating time according to the heating effect, wherein the heating time is = ((variable parameter is multiplied by the number of heating points + R) ave ) X V)/(variable parameter x number of heating points + R com ) Wherein, the variable parameter is actual developing time, and V is battery voltage; when the timer is started, the IO port of the MCU is controlled to supply power and heat, the data filling is to control the MCU (host) to transmit data to the memory area (slave) of the thermal sensitive sheet in an SPI communication mode to carry out heating action, wherein the heating times depend on the developing formation degree of the thermal sensitive paper and the developing temperature requirement, and the times have no specific range and are subject to the actual effect standard.
S5, determining the control time of the heating timer according to the heating effect requirement, namely the heating time, and calculating the heating time of a line of data volume by a back-stepping algorithm after the heating time is determined, wherein the heating time of the line of data volume corresponds to the PWM period of the motor with 4 step angles, so that the rotation speed of the motor can be determined, and the back-stepping algorithm comprises the following steps: the heating time length of one line data amount = the number of heating times × the heating time length × the number of average divisions × 4.
In addition, the heating time is changed along with the change of the data volume and the data transmission speed, and in order to ensure the accuracy and stability of the change of the motor and the change of the heating time, in some realizable embodiments, a state machine can be added to ensure linkage processing. Thereby realize only need the automatic matching function of motor speed when the control heating, the state machine can pass through, and the state machine can be realized through the software of operation in master control MCU, and the global control variable, the purpose is exactly guaranteeing the linkage, and it leads to waiting for when avoiding the motor control length to be less than the heating length to influence consumptive material development effect and motor rotation continuity.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (6)

1. A motor step control method of self-adaptive linkage logic heating is characterized by comprising the following steps:
pre-receiving data in a first time period, and acquiring the transmission speed of the Bluetooth data in the first time period;
carrying out equipartition processing according to the data volume received by each line, wherein each N point is evenly divided, and insufficient backups are also evenly divided according to 1;
a motor timer of the printer generates a PWM signal to control the motor to rotate at a constant frequency and a constant speed;
sending the data to a memory area of the thermosensitive plate, starting a heating timer, heating the data points, controlling the heating time, and controlling the heating time according to the heating effect;
and determining the control time of the heating timer according to the heating effect requirement, namely the heating time length, and calculating the heating time of one line of data volume by a back-stepping algorithm after the heating time length is determined, wherein the heating time of one line of data volume corresponds to the PWM period of the motor with 4 step angles, so that the rotation speed of the motor can be determined.
2. The motor step control method of adaptive linkage logic heating according to claim 1, wherein a heating time period = ((variable parameter x number of heating points + R) ave ) V)/(variable parameter x number of heating points + R com ) Wherein the variable parameter is the actual development time and V is the battery voltage.
3. The method of adaptive linkage logic heating motor stepper control as defined in claim 1, wherein said back-stepping algorithm comprises:
the heating time length of one line data amount = the number of heating times × the heating time length × the number of averages × 4.
4. The method of adaptive linked logic heated motor stepper control of claim 1, wherein the first time period is no more than 1 second.
5. The motor stepping control method of adaptive linkage logic heating according to claim 1, wherein the value of N is such that:
w is less than or equal to the maximum current output M of the battery, N is less than or equal to the number P of the heat sensitive sheets which are heated simultaneously, wherein W is the heating power required by each heating point.
6. The motor step control method of adaptive linkage logic heating according to claim 5, characterized in that: w is more than or equal to 8mA and less than or equal to 10mA.
CN202211025590.4A 2022-08-25 2022-08-25 Self-adaptive linkage logic heating motor stepping control method Active CN115339251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211025590.4A CN115339251B (en) 2022-08-25 2022-08-25 Self-adaptive linkage logic heating motor stepping control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211025590.4A CN115339251B (en) 2022-08-25 2022-08-25 Self-adaptive linkage logic heating motor stepping control method

Publications (2)

Publication Number Publication Date
CN115339251A true CN115339251A (en) 2022-11-15
CN115339251B CN115339251B (en) 2024-02-09

Family

ID=83953145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211025590.4A Active CN115339251B (en) 2022-08-25 2022-08-25 Self-adaptive linkage logic heating motor stepping control method

Country Status (1)

Country Link
CN (1) CN115339251B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116604954A (en) * 2023-04-25 2023-08-18 珠海芯烨电子科技有限公司 Control method for stepping motor of thermal printer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104309339A (en) * 2014-10-23 2015-01-28 福建联迪商用设备有限公司 Print control method and device of thermal printer
CN105984241A (en) * 2015-02-02 2016-10-05 深圳市科曼医疗设备有限公司 Thermal printer and thermal printing method
CN109016890A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 A kind of memory, thermal printer and its print control program
CN112099740A (en) * 2020-11-12 2020-12-18 虎丘影像(苏州)有限公司 Image output method and device and image output equipment
CN112406333A (en) * 2020-11-20 2021-02-26 厦门喵宝科技有限公司 Control method of miniature thermal printer
CN112440584A (en) * 2020-11-24 2021-03-05 厦门喵宝科技有限公司 Circuit device and method for improving consistency of thermal printing density
CN114889347A (en) * 2022-04-29 2022-08-12 珠海趣印科技有限公司 Printer heating operation processing method based on reverse order logic control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104309339A (en) * 2014-10-23 2015-01-28 福建联迪商用设备有限公司 Print control method and device of thermal printer
CN105984241A (en) * 2015-02-02 2016-10-05 深圳市科曼医疗设备有限公司 Thermal printer and thermal printing method
CN109016890A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 A kind of memory, thermal printer and its print control program
CN112099740A (en) * 2020-11-12 2020-12-18 虎丘影像(苏州)有限公司 Image output method and device and image output equipment
CN112406333A (en) * 2020-11-20 2021-02-26 厦门喵宝科技有限公司 Control method of miniature thermal printer
CN112440584A (en) * 2020-11-24 2021-03-05 厦门喵宝科技有限公司 Circuit device and method for improving consistency of thermal printing density
CN114889347A (en) * 2022-04-29 2022-08-12 珠海趣印科技有限公司 Printer heating operation processing method based on reverse order logic control

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116604954A (en) * 2023-04-25 2023-08-18 珠海芯烨电子科技有限公司 Control method for stepping motor of thermal printer
CN116604954B (en) * 2023-04-25 2024-02-23 珠海芯烨电子科技有限公司 Control method for stepping motor of thermal printer

Also Published As

Publication number Publication date
CN115339251B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN115339251A (en) Motor stepping control method for self-adaptive linkage logic heating
CN113829769B (en) Printing speed optimization method and device for Bluetooth printer
JP2019502145A5 (en)
CN102419628A (en) Communication device and communication system
CN112904751B (en) Heating logic control method of thermal print head
CN109144161B (en) Field device charging power regulation
CN112633031A (en) Electronic price tag awakening method, electronic price tag and computer readable storage medium
CN115296448B (en) Control method for automatic alignment of wireless charging coil and electronic equipment
CN102779489B (en) Method and device for controlling voltage of LCD (liquid crystal display) based on ladder resistance network
CN102468990B (en) Method and device for obtaining data rate
US9207737B2 (en) Information processing apparatus, control method thereof, and storage medium
CN209969827U (en) Arc rotating speed control system
CN111844761A (en) 3D printer control system
JP2002225395A (en) Imaging apparatus
CN218536018U (en) Thermal transfer printer and heating control device thereof
CN220732425U (en) Control system applied to wireless charging of electric bicycle
JP4439026B2 (en) Thermal printer
JP3175727B2 (en) Recording control device
CN117793962B (en) Method and device for adjusting radio frequency receiving window of low-power consumption Bluetooth system
CN114157045B (en) Wireless charging device and electrical equipment
CN110502465B (en) Communication method of first-line bus
CN115208794B (en) Timer adjustment method, device, equipment and medium of Profibus-DP protocol
JPH10250130A (en) Printing control unit for thermal line printer, printing control method for thermal line printer, and printing unit
CN215729654U (en) Mbus communication current automatic compensation circuit
CN209784841U (en) Temperature controller based on intelligent control technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant