KR100349465B1 - Printing command programming method of fiscal printer - Google Patents
Printing command programming method of fiscal printer Download PDFInfo
- Publication number
- KR100349465B1 KR100349465B1 KR1019990026173A KR19990026173A KR100349465B1 KR 100349465 B1 KR100349465 B1 KR 100349465B1 KR 1019990026173 A KR1019990026173 A KR 1019990026173A KR 19990026173 A KR19990026173 A KR 19990026173A KR 100349465 B1 KR100349465 B1 KR 100349465B1
- Authority
- KR
- South Korea
- Prior art keywords
- command
- printer
- program
- physical
- data
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45516—Runtime code conversion or optimisation
- G06F9/45525—Optimisation or modification within the same instruction set architecture, e.g. HP Dynamo
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
Abstract
본 발명은 사용자가 피스컬 프린터의 프린터 명령어를 프로그램할 수 있게 함으로써 하나의 피스컬 박스로서 여러 기종의 롤 프린터를 임의로 연결하여 데이터 인쇄를 할 수 있도록 된 피스컬 프린터의 프린팅 명령어 프로그램 방법에 관한 것이다.The present invention relates to a printing command program method of a physical printer that enables a user to program a printer command of a physical printer to print data by arbitrarily connecting a plurality of roll printers as one physical box. .
본 발명은 호스트에서 전송되어 오는 명령어를 분석하여 프린터 제어 명령어를 프로그램하라는 명령인 지를 판단하는 단계; 상기 단계에서의 판단 결과, 프린터 제어 명령어 프로그램 명령이면 이후에 수신되는 프린터 제어 명령어를 기존의 프린터 제어 명령어에 덮어쓰기하는 단계; 상기 단계에서의 판단 결과, 프린터 제어 명령어 프로그램 명령이 아니면 피스컬 데이터를 처리하여 해당 기능을 수행하는 단계; 데이터 출력 명령인 지를 판단하는 단계; 및 상기 단계에서의 판단 결과, 데이터 출력 명령이면 해당 프린터 제어 명령어를 패치하여 이를 근거로 출력 포맷을 만든 후 데이터를 출력하는 단계를 포함하여 구성된다.The present invention includes the steps of analyzing a command transmitted from the host to determine whether the command to program the printer control command; As a result of the determination in the step, overwriting the printer control command received after the printer control command program command; If it is determined in the above step that the printer control command is not a program command, processing the physical data to perform a corresponding function; Determining whether the command is a data output command; And if the data output command is determined as a result of the determination in the above step, patching the corresponding printer control command to generate an output format based on this, and outputting data.
Description
본 발명은 피스컬 프린터의 프린팅 명령어 프로그램 방법에 관한 것으로, 특히 사용자가 피스컬 프린터의 프린터 명령을 프로그램할 수 있게 함으로써 하나의 피스컬 박스로서 여러 기종의 롤 프린터와 호환하여 사용이 가능하도록 된 피스컬 프린터의 프린팅 명령어 프로그램 방법에 관한 것이다.The present invention relates to a method of programming a printing command of a physical printer, and in particular, by allowing a user to program a printer command of a physical printer, a single physical box can be used to be compatible with various roll printers. It relates to a printing command program method of the skull printer.
일반적으로 피스컬 프린터라 함은 ECR, PC 또는 POS 등과 같은 호스트에 연결되어 호스트로부터 전송되어지는 데이터를 저장하거나 영수증 등의 각종 문서로 출력하는 것이다.Generally, a physical printer is connected to a host such as an ECR, a PC, or a POS, and stores data transmitted from the host or outputs various documents such as a receipt.
도 1은 일반적인 피스컬 프린터의 시스템 구성도이다. 도 1에 나타낸 바와 같이 피스컬 프린터는 PC 나 POS 등의 호스트(1)와의 데이터 송수신을 위한 피스컬 박스(10)와 이 피스컬 박스(10)의 제어하에 데이터를 인쇄하는 롤 프린터(30)로 이루어진다.1 is a system configuration diagram of a typical physical printer. As shown in FIG. 1, the physical printer includes a physical box 10 for transmitting and receiving data to and from a host 1 such as a PC and a POS, and a roll printer 30 which prints data under the control of the physical box 10. Is made of.
상기 피스컬 박스(10)는 롤 프린터(30)를 프린팅 제어하기 위한 명령어를 갖고 있게 되는 데, 호스트(1)로부터 데이터가 전송되어지면 이를 저장함과 더불어 요구되는 인쇄 양식, 예를 들어 문자의 크기율, 여백의 정도, 또는 라인 변경 유무 등에 대응되는 명령어를 메모리에서 패치하여 이 패치된 명령어를 근거로 롤 프린터(30)를 인쇄 제어하게 된다.The physical box 10 has a command for controlling the printing of the roll printer 30, the data is stored when the data is transmitted from the host 1, and the required printing form, for example, the size of the character A command corresponding to a rate, margin level, line change, etc. is patched in the memory to print control the roll printer 30 based on the patched command.
그런데, 통상적으로 종래의 피스컬 박스(10)가 메모리하고 있는 프린팅 명령어는 연결된 롤 프린터(30)에 적합하도록 제조시에 프로그램된 후 변경이 불가능하도록 되어 있다.By the way, the printing command stored in the conventional physical box 10 is conventionally programmed at the time of manufacture so as to be suitable for the connected roll printer 30 so that the change is impossible.
따라서, 타 기종간의 롤 프린터(30)와 피스컬 박스(10)에 있어서 피스컬 박스(10)에서 명령하는 제어 명령어는 제조사마다 서로 다르게 프로그램되기 때문에 롤 프린터(30)가 피스컬 박스(10)의 제어 명령어를 해독하지 못하게 됨으로써 인쇄를 수행하는 못하는 문제가 있다.Therefore, in the roll printer 30 and the physical box 10 between the different models, the control command to be commanded by the mechanical box 10 is programmed differently for each manufacturer, so that the roll printer 30 is the logical box 10. There is a problem that the printing can not be performed by being unable to decode the control command.
즉, 반드시 피스컬 박스(10)와 롤 프린터(30)가 서로 호환되는 기종으로 연결하여야 한다.That is, the piston box 10 and the roll printer 30 must be connected to the compatible model.
이에, 본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 사용자가 피스컬 프린터의 프린터 명령어를 프로그램할 수 있게 함으로써 하나의 피스컬 박스로서 여러 기종의 롤 프린터를 임의로 연결하여 데이터 인쇄가 가능하도록 된 피스컬 프린터의 프린팅 명령어 프로그램 방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been made to solve the above-described problems, so that the user can program the printer command of the physical printer to be able to print data by arbitrarily connecting a plurality of roll printers as a single physical box It is an object of the present invention to provide a printing command program method of a physical printer.
전술한 목적을 달성하기 위한 본 발명은 호스트에서 전송되어 오는 명령어를 분석하여 프린터 제어 명령어를 프로그램하라는 명령인 지를 판단하는 단계; 상기 단계에서의 판단 결과, 프린터 제어 명령어 프로그램 명령이면 이후에 수신되는 프린터 제어 명령어를 기존의 프린터 제어 명령어에 덮어쓰기하는 단계; 상기 단계에서의 판단 결과, 프린터 제어 명령어 프로그램 명령이 아니면 피스컬 데이터를 처리하여 해당 기능을 수행하는 단계; 데이터 출력 명령인 지를 판단하는 단계; 및 상기 단계에서의 판단 결과, 데이터 출력 명령이면 해당 프린터 제어 명령어를 패치하여 이를 근거로 출력 포맷을 만든 후 데이터를 출력하는 단계를 포함하여 구성된다.The present invention for achieving the above object comprises the steps of analyzing the command transmitted from the host to determine whether the command to program the printer control command; As a result of the determination in the step, overwriting the printer control command received after the printer control command program command; If it is determined in the above step that the printer control command is not a program command, processing the physical data to perform a corresponding function; Determining whether the command is a data output command; And if the data output command is determined as a result of the determination in the above step, patching the corresponding printer control command to generate an output format based on this, and outputting data.
도 1은 일반적인 피스컬 프린터의 시스템 구성도.1 is a system configuration diagram of a typical piston printer.
도 2는 본 발명이 적용되는 피스컬 박스의 전기적인 블록 구성도.Figure 2 is a block diagram of the electrical block configuration of the present invention is applied.
도 3은 롤 프린터에 사용되는 기본 명령어 및 프로그램된 명령어의 예시도.3 is an illustration of basic and programmed instructions used in a roll printer.
도 4는 본 발명에 따른 피스컬 프린터의 프린팅 명령어 프로그램 방법을 설명하기 위한 플로우 챠트.Figure 4 is a flow chart for explaining a printing command program method of a physical printer according to the present invention.
*** 도면의 주요 부분에 대한 부호의 설명 ****** Explanation of symbols for the main parts of the drawing ***
1 : PC 또는 POS 3 : 피스컬 프린터1: PC or POS 3: Physical printer
10 : 피스컬 박스 12 : 중앙처리부10: piston box 12: central processing unit
14 : PC 인터페이스부 16 : 프로그램 ROM14: PC interface unit 16: Program ROM
18 : RAM 20 : 데이터 관리 ROM18: RAM 20: Data Management ROM
22 : 프린터 인터페이스부 30 : 프린터22: printer interface unit 30: printer
이하에서는 첨부한 도면을 참조하여 본 발명의 양호한 실시예에 대해서 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.
도 2는 본 발명에 따른 프린팅 명령어 프로그램 방법이 적용되는 피스컬 프린터의 전기적인 구성을 나타낸 블록도이다.2 is a block diagram showing an electrical configuration of a physical printer to which the printing command program method according to the present invention is applied.
도 2에 도시한 바와 같이 PC 나 POS 등의 호스트(1)와 인터페이스하기 위한 호스트 인터페이스부(14), 이 호스트 인터페이스부(14)를 통해 입력되는 피스컬 데이터 또는 프린터 명령을 근거로 프린터(30)를 제어하는 중앙 처리부(12), 사용자에 의하여 프로그램되는 프린터 명령어를 저장하기 위한 프로그램 ROM(16), 호스트(1)에서 입력되는 처리 데이터를 저장하기 위한 RAM(18), 세금 관련 데이터 등의 중요 데이터를 저장하기 위한 데이터관리 ROM(20), 중앙 처리부(12)의 제어하에 프린터(30)와의 인터페이스를 수행하는 프린터 인터페이스부(22)를 포함하여 이루어진다.As shown in FIG. 2, a host interface unit 14 for interfacing with a host 1 such as a PC or a POS, and the printer 30 based on the physical data or the printer command inputted through the host interface unit 14. ), A central processing unit 12 for controlling the printer, a program ROM 16 for storing printer commands programmed by a user, a RAM 18 for storing processing data input from the host 1, tax-related data, and the like. A data management ROM 20 for storing important data and a printer interface 22 for performing interface with the printer 30 under the control of the central processing unit 12 are included.
도 3은 피스컬 박스(10)에 기설정되어 롤 프린터(30)의 제어에 사용되는 프린팅 제어 명령어와 사용자에 의하여 프로그램된 제어 명령어의 예시도이다.FIG. 3 is an exemplary view of a printing control command preset by the piston box 10 and used for control of the roll printer 30 and a control command programmed by the user.
피스컬 박스(10)는 PC나 POS 등의 호스트(1)로부터 인덱스 순서로 입력되는 제어 명령어를 프로그램 ROM(16)에 저장하여 두게 된다. 피스컬 박스(10)는 영수지 내역을 출력할 경우 프로그램 ROM(16)에 저장된 수신된 새로운 제어 명령어를 사용하여 롤 프린터(30)를 제어하여 영수지 내용을 프린팅하게 된다.The piston box 10 stores and stores in the program ROM 16 control instructions input in the index order from the host 1 such as a PC or a POS. When the physical box 10 outputs the resin bill details, it controls the roll printer 30 using the received new control command stored in the program ROM 16 to print the resin bill contents.
도 4는 본 발명에 따른 피스컬 프린터의 프린팅 명령어 프로그램 방법을 설명하기 위한 플로우 차트이다.Figure 4 is a flow chart for explaining a printing command program method of a physical printer according to the present invention.
먼저, 단계(S10)에서 피스컬 박스(10)는 호스트(1)에서 일련의 명령어가 수신되면 이 수신된 명령어를 분석하게 된다. 단계(S12)에서는 분석된 명령어가 프린팅 제어 명령어를 프로그램하라는 것인 지를 판단하게 된다. 이 단계(S12)에서의 판단 결과, 프린팅 제어 명령어를 프로그램하라는 명령어이게 되면 단계(S14)로 이행하여 호스트(10)로부터 수신된 제어 명령어를 인덱스별로 프로그램 ROM(16)에 저장하게 된다.First, in step S10, the logical box 10 analyzes the received command when a series of commands are received from the host 1. In step S12, it is determined whether the analyzed command is to program a printing control command. As a result of the determination in this step S12, if it is a command to program the printing control command, the process proceeds to step S14 to store the control command received from the host 10 in the program ROM 16 for each index.
한편, 상기 단계(S12)에서의 판단 결과, 프린팅 제어 명령어를 프로그램하라는 명령어가 아니면 단계(S16)로 이행하여 수신된 일반 피스컬 명령어를 해석함과 더불어 해당 명령어의 기능을 수행하게 된다. 이어서, 단계(S18)에서는 피스컬 데이터를 처리함과 더불어 등록기 기능을 수행하게 된다.On the other hand, as a result of the determination in step S12, if it is not a command to program the printing control command, the process proceeds to step S16 to interpret the received general physical command and perform the function of the command. Subsequently, in step S18, the physical data is processed and a register function is performed.
이어서, 단계(S20)에서는 수신된 명령어가 피스컬 데이터를 출력하라는 명령어인 지를 판단하게 된다. 이 단계(S20)에서의 판단 결과, 피스컬 데이터 출력 명령이 아니게 되면 단계(S10)로 이행하여 이하의 동작을 반복하여 수행하게 된다.Subsequently, in step S20, it is determined whether the received command is a command to output the physical data. As a result of the determination in this step S20, if it is not a physical data output command, the flow advances to step S10 to repeat the following operations.
한편, 상기 단계(S20)에서의 판단 결과, 피스컬 데이터 출력 명령이게 되면 단계(S22)로 이행하여 출력 내용의 프린팅 명령어를 선정한 후, 단계(S24)로 이행하여 명령어 리스트에서 해당 인덱스의 프로그램된 명령어를 패치하게 된다.On the other hand, as a result of the determination in step S20, when the result of the physical data output command is shifted to step S22 to select a printing command of the output content, and then proceeds to step S24 to program the index of the corresponding index in the command list. It will patch the command.
이어서, 단계(S26)에서는 상기 단계(S24)에서 패치된 명령어를 근거로 피스컬 데이터를 출력 처리하기 위한 출력 포맷을 만들게 되고, 이어서 단계(S28)에서는 피스컬 데이터의 처리된 내용을 롤 프린터(30)를 이용하여 출력하도록 제어하게 된다.Subsequently, in step S26, an output format for output processing of the physical data is generated based on the instruction patched in the step S24. Subsequently, in step S28, the processed contents of the physical data are converted into a roll printer ( 30) to control the output.
본 발명은 전술한 실시예에 국한되지 않고 본 발명의 기술 사상이 허용하는 범위 내에서 다양하게 변형하여 실시할 수 있다.The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the technical idea of the present invention.
이상에서 설명한 바와 같은 본 발명에 따르면, 피스컬 박스를 이용하여 롤 프린터에 사용되는 프린팅 제어 명령어를 프로그램 할 수 있도록 하여 여러 기종의 롤 프린터를 피스컬 박스와 호환하여 사용할 수 있는 효과가 있게 된다.According to the present invention as described above, it is possible to program the printing control command used in the roll printer using the piston box, there is an effect that can be used compatible with the roll box of various models.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990026173A KR100349465B1 (en) | 1999-06-30 | 1999-06-30 | Printing command programming method of fiscal printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990026173A KR100349465B1 (en) | 1999-06-30 | 1999-06-30 | Printing command programming method of fiscal printer |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20010005356A KR20010005356A (en) | 2001-01-15 |
KR100349465B1 true KR100349465B1 (en) | 2002-08-22 |
Family
ID=19598386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019990026173A KR100349465B1 (en) | 1999-06-30 | 1999-06-30 | Printing command programming method of fiscal printer |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100349465B1 (en) |
-
1999
- 1999-06-30 KR KR1019990026173A patent/KR100349465B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR20010005356A (en) | 2001-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5781708A (en) | Integral bar code printer and reader system and method of operation | |
US5075841A (en) | Printer control with automatic intialization of stored control data | |
US7280243B2 (en) | Printer control apparatus and method | |
US5544287A (en) | On-line barcode printer system with multi-level user printer commands | |
US5416896A (en) | Command definition dictionary handling and context declaration in a document publishing page description language (PDL) | |
CN107256134A (en) | It is virtually method and apparatus, the POS terminal of computer printer by POS terminal | |
KR100349465B1 (en) | Printing command programming method of fiscal printer | |
JPH1097393A (en) | Print control method and device and recording medium | |
US8094336B2 (en) | Printer with interpreter | |
JPH08185295A (en) | Printer and its control method | |
EP0327780B1 (en) | Bounded word replace function for an electronic typewriter | |
JPH05212944A (en) | Printer and inter set-up state output method | |
JP2846766B2 (en) | Barcode font creation control device | |
JPH079739A (en) | Printer | |
KR100349466B1 (en) | Fiscal data menagement apparatus and method | |
JP2000201275A (en) | Picture processor, its control method and picture processing system | |
KR20010019455A (en) | Method for management of history in the printer | |
JPH03189721A (en) | Printer controller | |
JPS62208176A (en) | Image processor | |
KR100224875B1 (en) | Image forming device | |
JPH09247309A (en) | Facsimile equipment | |
KR20030050978A (en) | Method and apparatus for fast converting data for printing | |
JPH068532A (en) | Printer | |
KR19990074826A (en) | How to Choose Fonts and Fonts for Your Printer | |
KR20030067326A (en) | Method for conversion document in mobile communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20080731 Year of fee payment: 7 |
|
LAPS | Lapse due to unpaid annual fee |