KR100292881B1 - How to Control Print Speed of Thermal Printer - Google Patents

How to Control Print Speed of Thermal Printer Download PDF

Info

Publication number
KR100292881B1
KR100292881B1 KR1019980031769A KR19980031769A KR100292881B1 KR 100292881 B1 KR100292881 B1 KR 100292881B1 KR 1019980031769 A KR1019980031769 A KR 1019980031769A KR 19980031769 A KR19980031769 A KR 19980031769A KR 100292881 B1 KR100292881 B1 KR 100292881B1
Authority
KR
South Korea
Prior art keywords
data
flag
print
speed
print speed
Prior art date
Application number
KR1019980031769A
Other languages
Korean (ko)
Other versions
KR20000013093A (en
Inventor
홍춘호
Original Assignee
윤종용
삼성전자주식회사
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 윤종용, 삼성전자주식회사 filed Critical 윤종용
Priority to KR1019980031769A priority Critical patent/KR100292881B1/en
Publication of KR20000013093A publication Critical patent/KR20000013093A/en
Application granted granted Critical
Publication of KR100292881B1 publication Critical patent/KR100292881B1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0018Constructional details, e.g. of drawer, printing means, input means
    • 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
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Electronic Switches (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

본 발명은 전송받은 데이터의 종류를 구분하여 해당 데이터에 맞게 프린트속도를 가변하여 프린트를 행함으로써, 구동 모터를 안정한 상태로 유지하고 인자화질도 개선시킬 수 있도록 한 써멀 프린터의 프린트 속도 제어 방법에 관한 것이다. 본 발명의 써멀 프린터의 프린트 속도 제어 방법은 호스트로부터 프린트할 데이터를 수신받은 경우에 수신받은 데이터가 그래픽 형태의 데이터인 지를 판단한 후 판단결과 데이터가 그래픽 형태의 데이터인 경우에는 플래그를 리셋하고 그래픽 형태의 데이터가 아닌 경우에는 플래그를 세트시키고 상기 플래그가 리셋된 경우에는 프린트 속도를 20mm/sec 내지 40mm/sec로 설정하여 프린트를 수행하고 플래그가 세트된 경우에는 프린트 속도를 60mm/sec 내지 80mm/sec로 설정하여 프린트를 수행하는 단계를 구비하여 이루어진다.The present invention relates to a method of controlling a print speed of a thermal printer in which a print speed is varied according to data corresponding to the type of data transmitted to perform printing, thereby maintaining a stable driving motor and improving print quality. will be. When the print speed control method of the thermal printer of the present invention receives data to be printed from the host, it is determined whether the received data is graphic data, and when the determination result data is graphic data, the flag is reset and the graphic data is reset. If the flag is not set, set the flag. If the flag is reset, set the print speed to 20mm / sec to 40mm / sec to print. If the flag is set, set the print speed to 60mm / sec to 80mm / sec. It is made by the step of performing a print by setting.

Description

써멀 프린터의 프린트 속도 제어 방법How to Control Print Speed of Thermal Printer

본 발명은 써멀 프린터의 프린터 제어 방법에 관한 것으로서, 더욱 상세하게는 전송받은 데이터의 종류를 구분하여 해당 데이터에 맞게 프린트 속도를 가변하여 프린트를 행함으로써, 구동 모터를 안정한 상태로 유지하고 인자 화질도 개선시킬 수 있도록 한 써멀 프린터의 프린터 제어 방법에 관한 것이다.The present invention relates to a method of controlling a printer of a thermal printer, and more particularly, to classify the received data and to perform printing by varying the print speed according to the data, thereby maintaining the driving motor in a stable state and printing quality. The present invention relates to a printer control method of a thermal printer that can be improved.

일반적으로 써멀 프린터(thermal printer)라 함은 비충격식 프린터의 일종으로 열에 반응하는 특수한 종이인 감열지를 사용하여 감열 헤드(프린트 헤드)로 열을 종이에 주어 발색시켜 문자나 그림을 나타내는 인자 장치를 일컫는 바, 감열 헤드 자체 내에 인쇄 도트에 해당하는 발열체(저항)가 있어서 이 발열체에 전압이 인가되어 전류가 흐르게 되면 발열체가 열을 받게 되어 감열지에 열을 가하여 인쇄하게 된다.In general, thermal printer is a type of non-impact printer that uses thermal paper, which is a special paper that reacts to heat, to give heat to the paper by using a thermal head (print head) to develop printing devices that display characters or pictures. In other words, there is a heating element (resistance) corresponding to a printing dot in the thermal head itself, so that when a voltage is applied to the heating element and a current flows, the heating element receives heat and heats the thermal paper to print.

이러한 써멀 프린터는 기존 FAX에 채용되었으나 근래에 들어서는 영수증 발행 프린터에도 많이 채용되고 있다. 그러나 기본적으로 FAX는 프린트 속도가 20mm/sec 정도이나 영수증 발행 프린터는 그 속도가 70mm/sec로 매우 빠르기 때문에 그 성격 및 특성은 현격하게 다르다고 할 수 있다.Such thermal printers have been employed in existing FAX, but in recent years, many printers have been used for receipt printers. But basically, FAX print speed is about 20mm / sec, but receipt printer is very fast, 70mm / sec.

전술한 바와 같은 써멀 프린터는 POS 또는 금전 등록기(Electronic CashRegister;이하, ECR이라 한다) 등의 주변기기이기 때문에 호스트로부터 데이터가 전송되어야만 비로소 프린트 할 수 있다. 때문에 호스트에서 어떤 형태의 데이터를 보내주느냐에 따라 인쇄 속도가 다르게 변한다.Since the thermal printer as described above is a peripheral device such as a POS or an electronic cash register (hereinafter referred to as an ECR), it can be printed only after data is transmitted from the host. The print speed will vary depending on what type of data the host sends.

전술한 바 있는 데이터 전송 방식으로는 두 가지가 존재하는 데, 첫 번째 방식은 ASCII(American Standard Code for Information Interchange)코드에 의한 데이터 전송 방식이고, 두 번째 방식은 그래픽(이미지) 형태의 데이터 전송 방식으로 두 번째 방식은 PC WINDOWS에서 주로 송신하는 방식이다.There are two data transmission methods described above. The first method is a data transmission method using an American Standard Code for Information Interchange (ASCII) code, and the second method is a data transmission method in a graphic (image) form. The second method is mainly transmitted from PC WINDOWS.

여기서, 두 번째 방식인 그래픽(이미지)형태의 데이터 전송 방식은 첫 번째 방식의 ASCII 코드에 의한 데이터 전송 방식에 비해 데이터 양이 이론적으로 36배가 많기 때문에 전송 시간 또한 이론적으로 36배가 걸린다. 즉, 두 번째 전송 방식으로 프린트할 시에는 프린터의 속도가 아무리 빠르다고 할 지라도 데이터 수신에 걸리는 시간이 워낙 길기 때문에 프린트 속도가 현격하게 늦어지는 문제점이 발생한다.In this case, the data transmission method in the form of graphic (image), which is the second method, requires 36 times the theoretical time since the amount of data is theoretically 36 times higher than the data transmission method using the ASCII code of the first method. In other words, even when the printer prints in the second transmission method, even if the speed of the printer is high, the time required for data reception is very long.

또한, 프린트 속도는 빠른데 반해 데이터 수신 속도가 현저히 느리기 때문에 빠른 속도를 프린트를 하다가 프린트 할 데이터가 아직 수신이 되지 않은 상태이면 어쩔 수 없이 프린트를 정지해야 하며 다시 데이터가 수신되면 그때 다시 빠른 속도로 프린트를 시작한다. 이러한 경우에는 구동 모터가 구동, 정지를 반복해야하기 때문에 구동, 정지 구간에서 모터의 불안정으로 인하여 인쇄 화질에 악영향을 미치게 되는 문제점이 발생하게 된다.In addition, although the print speed is high, the data reception speed is significantly slow. Therefore, if the data to be printed is not received yet, the printing must be stopped. If the data is received again, the printer prints again at a high speed. To start. In this case, since the driving motor must be repeatedly driven and stopped, there is a problem that adversely affects the print quality due to the instability of the motor in the driving and stopping sections.

본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 전송받은 데이터의 종류를 구분하여 해당 데이터에 맞게 프린트 속도를 가변하여 프린트를 행함으로써, 구동 모터를 안정한 상태로 유지하고 인자 화질도 개선시킬수 있도록 한 써멀 프린터의 프린트 속도 제어 방법을 제공함에 그 목적이 있다.The present invention has been made to solve the above-described problems, by classifying the type of data received and performing printing by varying the print speed according to the data, so that the drive motor can be maintained in a stable state and print quality can be improved. It is an object of the present invention to provide a method of controlling a print speed of a thermal printer.

전술한 목적을 달성하기 위한 본 발명의 써멀 프린터의 프린트 속도 제어 방법은 호스트로부터 프린트할 데이터가 수신되었는지를 판단하는 단계, 판단결과 수신된 데이터가 있는 경우에는 수신된 데이터가 그래픽 형태의 데이터인지를 판단하는 단계, 판단결과 데이터가 그래픽 형태의 데이터인 경우에는 플래그를 리셋하는 단계, 판단결과 데이터가 그래픽 형태의 데이터가 아닌경우에는 플래그를 세트하는 단계, 상기 플래그가 리셋된 경우에는 프린트 속도를 20mm/sec 내지 40mm/sec로 설정하여 프린트를 수행하는 단계, 상기 플래그가 세트된 경우에는 프린트 속도를 60mm/sec 내지 80mm/sec로 설정하는 단계 및 상기 플래그의 리셋 또는 세트 상태에 따라 프린트 구동모터를 제1속도 또는 제2속도 중 어느 하나의 속도로 가변시켜 구동시키는 단계를 구비하여 이루어진다.In accordance with another aspect of the present invention, a method of controlling a print speed of a thermal printer according to the present invention includes determining whether data to be printed is received from a host, and if the received data is data, whether the received data is graphic data. Determining, resetting the flag if the determination result data is graphic data, setting a flag if the determination result data is not graphic data, and printing speed 20 mm if the flag is reset. performing printing by setting to / sec to 40mm / sec, setting the print speed to 60mm / sec to 80mm / sec when the flag is set, and setting the print drive motor according to the reset or set state of the flag. And varying and driving at either the first speed or the second speed. Achieved.

제1도는 본 발명의 프린트 속도 제어 방법이 적용되는 써멀 프린터의 구성을 전기적으로 나타낸 시스템 블록도,1 is a system block diagram electrically showing a configuration of a thermal printer to which the print speed control method of the present invention is applied;

제2도는 본 발명에 적용되는 RAM의 메모리 영역을 예시적으로 나타내는 도,2 is a diagram showing a memory area of a RAM to be applied to the present invention.

제3도는 본 발명의 써멀 프린터의 프린트 속도 제어 방법을 설명하기 위한 플로우차트이다.3 is a flowchart for explaining a printing speed control method of the thermal printer of the present invention.

〈도면의 주요부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>

10 : 인터페이스부 20 : 키입력부10: interface unit 20: key input unit

30 : EPROM 40 : RAM30: EPROM 40: RAM

41 : 데이터 수신 버퍼부 43 : 1 도트 라인 프린트 버퍼부41: data receiving buffer section 43: 1 dot line print buffer section

45 : ESC-flag부 47 : 시스템 작업 영역부45: ESC-flag portion 47: system working area portion

50 : 프린트 헤드 구동부 60 : 모터 구동부50: print head drive unit 60: motor drive unit

70 : 표시부 80 : 종이 유무 감지부70: display unit 80: paper presence detection unit

90 : 제어부 100 : 전원부90 control unit 100 power supply unit

이하에서는 첨부한 도면을 참조하여 본 발명의 양호한 실시예에 따른 써멀 프린터의 프린트 속도 제어 방법에 대해서 상세하게 설명한다.Hereinafter, a print speed control method of a thermal printer according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 프린트 속도 제어 방법이 적용되는 써멀 프린터의 구성을 전기적으로 나타낸 시스템 블록도이다. 이 도면에 도시하는 바와 같이, 본 발명이 적용되는 써멀 프린터는 ECR, POS, 개인용 컴퓨터 등과 같은 호스트에서 출력되는 데이터를 수신하거나 프린터에서 발생하는 각종 데이터를 호스트로 전송하는 인터페이스부(10), 프린터를 동작시키기 위한 각종 키코드를 발생시키는 키 입력부(20), 프린터의 시스템 동작용 프로그램 및 본 발명의 프린트 속도 제어 방법을 구현시키기 위한 프로그램이 내장되어 있는 EPROM(Erasable Programmable Read Only Memory)(30), 호스트에서 수신된 데이터 및 호스트로부터 수신된 데이터를 인쇄하기 위해 EPROM(30)에 내장되어 있는 폰트 라이브러리(CRT 디스플레이 또는 프린터로 표시되는 글자나 활자체를 구성하는 도트의 매트릭스 데이터)의 지원을 받아 만들어진 활자체 데이터를 저장하는 RAM(40), RAM(40)에서 보낸 데이터를 프린트하는 써멀 프린트 헤드 (Thermal Print Head;이하, TPH라 한다)를 구동시키는 프린트 헤드 구동부(50), TPH에 의해 프린트된 용지를 이송시키기 위한 모터의 구동을 제어하는 모터 구동부(60), 프린터의 동작 상태를 표시하는 표시부(LED)(70), 프린터의 적소에 설치되어 종이의 유무를 감지하는 종이 유무 감지부(80), 시스템전체를 제어하는 제어부(90) 및 시스템 전체에 전원을 공급하는 전원부(100)를 구비하여 이루어진다.1 is a system block diagram electrically showing a configuration of a thermal printer to which the print speed control method of the present invention is applied. As shown in this figure, the thermal printer to which the present invention is applied includes an interface unit 10 for receiving data output from a host such as an ECR, POS, personal computer, or the like, and transmitting various data generated from the printer to the host. EPROM (Erasable Programmable Read Only Memory) 30 in which a key input unit 20 for generating various key codes for operating the controller, a program for operating the printer system, and a program for implementing the print speed control method of the present invention are embedded. , Built with the support of font libraries (matrix data of dots constituting letters or typefaces displayed on a CRT display or printer) embedded in the EPROM 30 for printing data received from the host and data received from the host. RAM 40 to store the typeface data, to print the data sent from the RAM (40) A print head drive unit 50 for driving a thermal print head (hereinafter referred to as TPH), a motor drive unit 60 for controlling driving of a motor for transporting paper printed by TPH, and an operating state of a printer Display unit (LED) 70 for displaying a, paper presence detection unit 80 to detect the presence of paper installed in place of the printer, the control unit 90 for controlling the entire system and the power supply unit for supplying power to the whole system ( 100).

전술한 구성에 있어서, 모터로는 하나의 전기 펄스(electric pulse)를 가하였을 때 한 스텝만 회전하고, 그 위치에서 일정한 정지 로크로 정지하는 전동기인 스텝 모터를 사용할 수 있다. 이 스텝 모터는 입력 펄스 수에 비례한 각도로 회전하며, 또한, 펄스의 주파수에 비례하여 회전 속도가 얻어진다. 또한, 이 스텝 모터는 극이 돌기형인 고정자와 회전자로 되어 있어서, 펄스를 준 고정자의 위치에서 정지하며 펄스를 가하는 고정자의 순서를 반대로 하면 역회전한다.In the above-described configuration, as the motor, a step motor which is an electric motor which rotates only one step when one electric pulse is applied and stops at a fixed stop lock at that position can be used. The step motor rotates at an angle proportional to the number of input pulses, and a rotation speed is obtained in proportion to the frequency of the pulses. In addition, the stepper motor is a stator and a rotor having a pole-shaped projection, and stops at the position of the stator where the pulse is given, and reverses when the reverse order of the stator is applied.

도 2는 본 발명에 적용되는 RAM의 메모리 영역을 예시적으로 나타내는 도이다. 이 도면에 도시하는 바와 같이, 본 발명에 적용되는 RAM(40)은 호스트로부터 수신받은 데이터를 저장하는 데이터 수신 버퍼부(41)와, EPROM(30)에 내장되어 있는 폰트 라이브러리의 지원을 받아 가공된 데이터를 저장하는 1 도트 라인 프린트 버퍼부(43)와, 수신받은 데이터가 ASCII 코드에 의한 데이터인지 그래픽(이미지)형태의 데이터인지를 구분해 주기 위한 ESC_flag부(45) 및 시스템 작업 영역이 저장되어 있는 시스템 작업 영역부(47)를 구비하여 이루어진다. 여기서, 전술한 ESC_flag가 리세트되어 있는 경우에는 수신받은 데이터가 그래픽(이미지)형태의 데이터이고, ESC_flag가 세트되어 있을 경우에는 수신받은 데이터가 ASCII 코드에 의해 전송된 데이터라고 정의할 수 있다.2 is a diagram exemplarily illustrating a memory area of a RAM to which the present invention is applied. As shown in this figure, the RAM 40 applied to the present invention is processed with the support of a data receiving buffer 41 for storing data received from the host and a font library embedded in the EPROM 30. 1 dot line print buffer unit 43 for storing the stored data, ESC_flag unit 45 and system work area for distinguishing whether the received data is data by ASCII code or graphic (image) form. It is provided with the system work area part 47 which is provided. Here, when the above-described ESC_flag is reset, the received data is data in graphic (image) form, and when the ESC_flag is set, the received data may be defined as data transmitted by an ASCII code.

전술한 구성의 써멀 프린터는 EPROM(30)에 내장되어 있는 프로그램의 지원을 받아 POS, ECR 등과 같은 호스트로부터 프린트할 데이터를 수신 받으면 RAM(40)의 데이터 수신 버퍼(41)에 수신받은 순서에 따라 저장하고, 어느 정도 수신이 되면 데이터 저장과 병행하여 TPH에 보내기 위한 데이터를 EPROM(30)에 내장되어 있는 폰트 라이브러리의 지원을 받아 1 도트 라인(1 dot line) 프린터할 데이터를 활자체 형식으로 가공하고, 이 가공이 끝나면 곧바로 가공된 데이터를 TPH로 전송하고 프린트 헤드 구동부(50) 및 모터 구동부(60)를 제어하여 프린트를 수행한다.When the thermal printer having the above-described configuration receives data to be printed from a host such as POS or ECR with the support of a program embedded in the EPROM 30, the thermal printer according to the order received in the data receiving buffer 41 of the RAM 40 is received. After receiving data to some extent, the data to be sent to the TPH in parallel with the data storage is processed by the font library built into the EPROM 30, and the data to be printed in one dot line is printed in a typeface format. , After the processing is completed, the processed data is immediately transmitted to the TPH, and the print head driver 50 and the motor driver 60 are controlled to perform printing.

도 3은 본 발명의 써멀 프린터의 프린트 속도 제어 방법을 설명하기 위한 플로우챠트이다. 먼저, 단계(S10)에서는 호스트로부터 수신받은 데이터가 있는 지를 판단한다. 단계(S10)의 판단결과 수신받은 데이터가 있는 경우에는 단계(S12)로 진행하여 수신받은 첫 번째 데이터가 그래픽(이미지) 형태의 데이터인지를 판단한다. 단계(S12)의 판단결과 수신받은 첫 번째 데이터가 그래픽(이미지) 형태의 데이터인 경우에는 단계(S16)로 진행하여 ESC_flag를 리세트시키고, 단계(S12)의 판단결과 수신받은 첫 번째 데이터가 그래픽(이미지) 형태의 데이터가 아닌 경우, 즉, ASCII 코드에 의해 전송받은 데이터인 경우에는 단계(S14)로 진행하여 ESC_flag를 세트시킨다. 여기서, 그래픽 형태의 데이터(또는 ASCII 코드 형태의 데이터)가 입력될 때에는 수신 데이터의 첫 번째 다음부터 수신되는 데이터는 그래픽 형태의 데이터 (또는 ASCII 코드 형태의 데이터)라는 명령어(ESC*)가 입력됨과 동시에 전송될 데이터량도 입력된다.3 is a flowchart for explaining a print speed control method of the thermal printer of the present invention. First, in step S10 it is determined whether there is data received from the host. As a result of the determination in step S10, if there is received data, the process proceeds to step S12 to determine whether the received first data is graphic (image) type data. If the first data received as a result of the determination in step S12 is data in the form of a graphic (image), the process proceeds to step S16 to reset ESC_flag, and the first data received as a result of the determination in step S12 is a graphic. If the data is not in the (image) form, i.e., the data is transmitted by the ASCII code, the flow advances to step S14 to set the ESC_flag. Here, when graphic data (or ASCII code data) is input, the data received from the first after the received data is inputted with a command (ESC *) called graphic data (or ASCII code data). The amount of data to be transmitted at the same time is also entered.

이후, 다음 단계(S18)에서는 ESC_flag가 세트되어 있는 지를 판단한다. 단계(S18)의 판단결과 ESC_flag가 세트되어 있는 경우, 즉, 수신받은 데이터가 ASCII코드에 의해 전송된 데이터인 경우에는 단계(S20)로 진행하여 계속하여 호스트로부터 프린트할 데이터를 수신받고, 수신받은 데이터를 데이터 수신 버퍼(41)에 저장시킨다. 다음 단계(S22)에서는 프린트 속도를 예를 들어, 70mm/sec 정도로 빠르게 설정하고, 이후, 단계(S24)에서는 EPROM(30)에 내장되어 있는 폰트 라이브러리의 지원을 받아 1 도트 라인 프린트할 데이터를 활자체 형식으로 가공한다. 다음 단계(S26)에서는 단계(S24)에서 가공된 데이터를 TPH로 전송하고, 단계(S28)에서는 단계(S22)에서 설정한 속도에 의거하여 모터를 구동시킨다. 이후, 단계(S30)에서는 데이터 수신이 완료되었는지를 판단하다. 단계(S30)의 판단결과 데이터 수신이 완료되었을 경우에는 단계(S32)로 진행하여 프린트 동작을 정지하고, 데이터 수신이 완료되지 않았을 경우에는 단계(S12)로 진행하여 단계(S12) 이후의 과정을 반복 수행한다. 단계(S18)의 판단결과 ESC_flag가 세트되어 있지 않은 경우, 즉, 수신받은 데이터가 그래픽(이미지) 형태의 데이터인 경우에는 단계(S34)로 진행하여 호스트로부터 프린트할 데이터를 수신받고, 수신받은 데이터를 데이터 수신 버퍼(41)에 저장시킨다. 다음 단계(S36)에서는 프린트 속도를 예를 들어, 30mm/sec 정도로 느리게 설정하고, 이후, 단계(S24)에서는 EPROM(30)에 내장되어 있는 폰트 라이브러리의 지원을 받아 수신받은 데이터를 가공한다. 다음 단계(S26)에서는 단계(S24)에서 가공된 데이터를 TPH로 전송하고, 단계(S28)에서는 단계(S36)에서 설정한 속도에 의거하여 모터를 구동시킨다. 이후, 단계(S30)에서는 데이터 수신이 완료되었는지를 판단한다. 단계(S30)의 판단결과 데이터 수신이 완료되었을 경우에는 단계(S32)로 진행하여 프린트 동작을 정지하고, 데이터 수신이 완료되지 않았을 경우에는 단계(S12)로 진행하여 단계(S12) 이후의 과정을 반복 수행한다.Thereafter, it is determined whether ESC_flag is set in the next step S18. If the result of the determination in step S18 is that ESC_flag is set, that is, the received data is data transmitted by an ASCII code, the process proceeds to step S20 to continue receiving data to be printed from the host and to receive the received data. Data is stored in the data reception buffer 41. In the next step S22, the print speed is set to a high speed, for example, about 70 mm / sec. Then, in step S24, the data to be printed for one dot line is typed with the support of the font library built into the EPROM 30. Process to form. In the next step S26, the data processed in step S24 is transmitted to TPH, and in step S28 the motor is driven based on the speed set in step S22. Thereafter, in step S30, it is determined whether data reception is completed. As a result of the determination in step S30, if data reception is completed, the flow proceeds to step S32 to stop the print operation. If the data reception is not completed, the flow proceeds to step S12 to perform the process after step S12. Repeat it. If the result of the determination in step S18 is that the ESC_flag is not set, that is, the received data is data in the form of a graphic (image), the process proceeds to step S34 to receive data to be printed from the host and to receive the received data. Is stored in the data reception buffer 41. In the next step S36, the print speed is set to be slow, for example, about 30 mm / sec, and in step S24, the received data is processed with the support of the font library embedded in the EPROM 30. In the next step S26, the data processed in step S24 is transmitted to the TPH, and in step S28 the motor is driven based on the speed set in step S36. In step S30, it is determined whether data reception is completed. As a result of the determination in step S30, if data reception is completed, the flow proceeds to step S32 to stop the print operation. If the data reception is not completed, the flow proceeds to step S12 to perform the process after step S12. Repeat it.

본 발명의 써멀 프린터의 프린트 속도 제어 방법은 전술한 실시예에 국한되지 않고 본 발명의 기술 사상이 허용하는 범위 내에서 다양하게 변형하여 실시할수 있다.The printing speed control method of the thermal printer of the present invention is not limited to the above-described embodiments, and may be variously modified and implemented within the range permitted by the technical idea of the present invention.

이상에서 설명한 바와 같은 본 발명의 써멀 프린터의 프린트 속도 제어 방법에 따르면, 전송받은 데이터의 종류를 구분하여 해당 데이터에 맞게 프린트 속도를 가변시켜 프린트를 행함으로써, 구동 모터를 안정한 상태로 유지하고 인자 화질를 개선시킬 수 있는 효과가 있다.According to the method of controlling the print speed of the thermal printer of the present invention as described above, by classifying the type of the received data and changing the print speed according to the data, the printing is performed, thereby maintaining the driving motor in a stable state and printing quality. There is an effect that can be improved.

Claims (2)

호스트로부터 프린트할 데이터가 수신되었는지를 판단하는 단계; 상기 판단결과 수신된 데이터가 있는 경우에는 상기 데이터가 그래픽 형태의 데이터인지를 판단하는 단계; 상기 판단결과 수신된 데이터가 그래픽 형태의 데이터인 경우에는 플래그를 리셋하는 단계; 상기 판단결과 수신된 데이터가 그래픽 형태의 데이터가 아닌 경우에는 플래그를 세트하는 단계; 상기 플래그가 리셋된 경우에는 프린트 속도를 제1속도로 설정하는 단계; 상기 플래그가 세트된 경우에는 프린트 속도를 상기 제1속도보다 상대적으로 빠른 제2속도로 설정하는 단계; 및 상기 플래그의 세트 상태에 따라 프린트 구동모터를 상기 제1속도 또는 제2속도 중 어느 하나의 속도로 가변시켜 구동시키는 단계를 구비하여 이루어지는 써멀 프린터의 속도 제어 방법.Determining whether data to be printed from the host has been received; Determining whether the data is graphic data when there is received data as a result of the determination; Resetting the flag if the received data is graphic data; Setting a flag if the received data is not graphic data; Setting a print speed to a first speed when the flag is reset; If the flag is set, setting a print speed to a second speed relatively faster than the first speed; And varying and driving a print driving motor to one of the first speed and the second speed according to the set state of the flag. 제1항에 있어서, 상기 제1속도는 20mm/sec 내지 40mm/sec로 설정하고, 제2속도는 60mm/sec 내지 80mm/sec로 설정함을 특징으로 하는 써멀 프린터의 속도 제어 방법.The method of claim 1, wherein the first speed is set to 20 mm / sec to 40 mm / sec, and the second speed is set to 60 mm / sec to 80 mm / sec.
KR1019980031769A 1998-08-04 1998-08-04 How to Control Print Speed of Thermal Printer KR100292881B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980031769A KR100292881B1 (en) 1998-08-04 1998-08-04 How to Control Print Speed of Thermal Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980031769A KR100292881B1 (en) 1998-08-04 1998-08-04 How to Control Print Speed of Thermal Printer

Publications (2)

Publication Number Publication Date
KR20000013093A KR20000013093A (en) 2000-03-06
KR100292881B1 true KR100292881B1 (en) 2001-06-15

Family

ID=19546421

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980031769A KR100292881B1 (en) 1998-08-04 1998-08-04 How to Control Print Speed of Thermal Printer

Country Status (1)

Country Link
KR (1) KR100292881B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930014193A (en) * 1991-12-28 1993-07-22 이헌조 How to improve the image printing speed of dot matrix printer
KR970069346A (en) * 1996-04-19 1997-11-07 김광호 Thermal sublimation printer with speed control function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930014193A (en) * 1991-12-28 1993-07-22 이헌조 How to improve the image printing speed of dot matrix printer
KR970069346A (en) * 1996-04-19 1997-11-07 김광호 Thermal sublimation printer with speed control function

Also Published As

Publication number Publication date
KR20000013093A (en) 2000-03-06

Similar Documents

Publication Publication Date Title
JP3320975B2 (en) Two axis printer
JP2629516B2 (en) Tape printer
US5395173A (en) Bar code and text printer capable of displaying bar code location
JP2979536B2 (en) Barcode printing device
JPS63122587A (en) Electronic typewriter
US4898483A (en) Electronic typewriter equipped with a personal computer
JP2859499B2 (en) Printing system and item setting method in the system
JPH061048A (en) Printer and data receiving method therein
KR100292881B1 (en) How to Control Print Speed of Thermal Printer
JP3280073B2 (en) Document processing device
JP3382299B2 (en) Character processing method and apparatus
JP3050469B2 (en) Tape printer
JP3245270B2 (en) Character processing apparatus and method
JP2003136785A (en) Printer
JP2791716B2 (en) Character printing method
EP0268470B1 (en) Character erasable printing apparatus
KR100392321B1 (en) Method of printing footer
JPH07160240A (en) Pattern generator and method for controlling it
JPH0398115A (en) Sentence processor
JPH05298464A (en) Barcode printer
KR890005312B1 (en) Printing method of dot matrix printer
JPH1191185A (en) Printing control method
JPH0353954A (en) Electrophotographic printer
JPH07195756A (en) Image recording device and its control method
JPH06293171A (en) Printing device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130305

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20140304

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee