KR940003635B1 - Printer control method - Google Patents

Printer control method Download PDF

Info

Publication number
KR940003635B1
KR940003635B1 KR1019920006482A KR920006482A KR940003635B1 KR 940003635 B1 KR940003635 B1 KR 940003635B1 KR 1019920006482 A KR1019920006482 A KR 1019920006482A KR 920006482 A KR920006482 A KR 920006482A KR 940003635 B1 KR940003635 B1 KR 940003635B1
Authority
KR
South Korea
Prior art keywords
printer
paper
code
line
buffer
Prior art date
Application number
KR1019920006482A
Other languages
Korean (ko)
Other versions
KR930022242A (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 KR1019920006482A priority Critical patent/KR940003635B1/en
Publication of KR930022242A publication Critical patent/KR930022242A/en
Application granted granted Critical
Publication of KR940003635B1 publication Critical patent/KR940003635B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

By adding seperate printing mode for outputting a self diagnosis results about printer, this method improves a self diagnosis function and a function of Automatic Cut Sheet Feeder (ACSF). The method comprises: the 1st and 2nd on-line state judging steps (106),(111); the buffer value comparing judging step (112) for comparing a line feed (LF) value with the set value, and judging; the paper transportation steps (113,115); the carriage (CR) code and form feed (FF) code judging step (117) for judging CR mode only or FF code only; and the input buffer regulating step (118) for regulating a buffer pointer and processing the 2nd on-line state judging step.

Description

프린터 제어방법Printer control method

제1도는 통상의 프린터 하드웨어 구성도.1 is a conventional printer hardware configuration diagram.

제2도는 통상의 낱장용지 규격에 따른 페이지 길이 설정 표시도.2 is a diagram showing the page length setting according to a typical sheet paper standard.

제3도는 본 발명의 프린터 제어동작 흐름도.3 is a flowchart illustrating a printer control operation of the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : CPU 11~13 : 메모리10: CPU 11 ~ 13: Memory

15 : 호스트 컴퓨터 16 : 입/출력 포트15: host computer 16: input / output port

17 : 센서 18 : 패널 스위치17 sensor 18 panel switch

19 : LED 23 : 인자헤드19: LED 23: print head

25 : 플래튼25: platen

본 발명은 컴퓨터 시스템의 주변장치인 프린터 제어방법에 관한 것으로, 특히 프린터의 자기진단 기능을 향상시키고, 자동 낱장 공급장치(ACSF)의 기능을 향상시키는 프린터의 제어방법에 관한 것이다.The present invention relates to a printer control method, which is a peripheral device of a computer system, and more particularly, to a printer control method for improving a self-diagnosis function of a printer and for improving a function of an automatic sheet feeder (ACSF).

일반적으로, 도트 매트릭스 프린터의 하드웨어 구성은 제1도에 도시된 바와같다.In general, the hardware configuration of the dot matrix printer is as shown in FIG.

상기 제1도에서 중앙처리장치(CPU)(10)는 프린터 시스템의 전반적인 동작을 제어한다.In FIG. 1, the central processing unit (CPU) 10 controls the overall operation of the printer system.

상기 동작제어를 위한 제어 프로그램은 프로그램 ROM(11)에 저장되어 있다. 메모리 RAM(12)에는 일시적인 제어 프로그램과 데이타가 저장된다.The control program for the operation control is stored in the program ROM 11. The memory RAM 12 stores temporary control programs and data.

문자 발생 ROM(13)은 호스트 컴퓨터(15)로부터 받은 문자데이타에 따라 해당 문자를 발생시킨다.The character generation ROM 13 generates the character in accordance with the character data received from the host computer 15.

상기 문자발생 ROM(13)에서 발생된 문자데이타는 입/출력 포트(16)를 통하여 인자헤드(23)에 의해 플래튼(25)에 공급된 프린터 용지에 출력된다.The character data generated in the character generation ROM 13 is output to the printer sheet supplied to the platen 25 by the print head 23 through the input / output port 16.

상기 프린터 용지는 용지 공급모터(22)의 구동에 의해 플래튼(25)에 공급된다. 상기 인자헤드(23)가 고정되어 있는 캐리지는 캐리지 구동 모터(21)에 의해 동작된다. 상기 입/출력 포트(16)는 프린터의 제반 동작 상황을 검지하는 센서(17)와 패널 스위치(18)로부터 데이타를 받아 CPU(10)에 전달해 준다.The printer paper is supplied to the platen 25 by driving the paper feed motor 22. The carriage to which the print head 23 is fixed is operated by the carriage drive motor 21. The input / output port 16 receives data from the sensor 17 and the panel switch 18 that detect the general operation of the printer and transfers the data to the CPU 10.

이때, 해당 데이타는 LED표시장치(19)를 통하여 이부에 디스플레이 된다. 이와같은 프린터 시스템에서 정상적인 프린터의 기능을 수행하기 위해서 프린터는 동작중 동작상태를 정확히 체크하여 해당조건에 알맞는 동작 및 기능을 지정하여 수행되도록 하여야 한다.At this time, the corresponding data is displayed in this section through the LED display device (19). In order to perform a normal printer function in such a printer system, the printer should accurately check the operation state during operation to designate an operation and a function appropriate to the condition.

따라서 기존의 프린터는 현재의 동작상태를 체크하여 체크결과에 알맞는 동작을 실행하는 동시에 상기 체크상태를 디스플레이 패널에 표시하여 사용자에게 알려준다.Therefore, the existing printer checks the current operation state and executes an operation corresponding to the check result and simultaneously displays the check state on the display panel to inform the user.

여기에서 상기 체크는 각종 센서(17)를 이용하여 수행되며, 상기 센서중 캐리지 홈센서에 이상이 있으면 프린터의 초기화시 이상 상태가 체크되어 경고표시 LED(19)를 동작시켜 주고 프린터는 동작을 멈추어 사용자가 캐리지의 이상상태 여부를 감지하도록 한다.Here, the check is performed using various sensors 17, and if there is an abnormality in the carriage home sensor among the sensors, an abnormal state is checked at the initialization of the printer to operate the warning display LED 19, and the printer stops the operation. Allows the user to detect the abnormality of the carriage.

한편 프린터의 사용 용지에 따른 용지급지 및 배출기능을 정확히 구현하기 위해서는 용지레버의 상태를 정확히 체크하여야 한다. 상기 체크결과 용지선택 레버에 이상이 있으면 프린터는 한가지 레버 선택 상태로 감지하여 이에 일치하는 용지관련 구동만이 실행되며 프린터가 제공하는 용지관련 기능을 사용할 수 없다.On the other hand, in order to accurately implement the paper feed and discharge functions according to the paper used in the printer, it is necessary to check the state of the paper lever correctly. As a result of the check, if there is an error in the paper selection lever, the printer detects one lever selection state, and only the paper related driving corresponding thereto is executed, and the paper related function provided by the printer cannot be used.

또한, 상기 체크결과 프린터의 플래튼(25)상에 용지가 존재하지 않으면 프린터는 호스트 컴퓨터로 프린터의 상태가 오프라인(OFF Line)임을 알려주고 동시에 용지가 없음을 알려준다.In addition, if there is no paper on the platen 25 of the printer as a result of the check, the printer notifies the host computer that the state of the printer is OFF and at the same time, there is no paper.

이와같이 프린터를 사용하다 보면 세트에 이상이 발생하여 사용자는 곤란을 격게 되는바. 이때 프린터의 상태를 체크하여 사용자에게 이를 알려주어 고정상태를 확인하도록 함으로써 사용자는 적절한 조치를 취할 수 있다.If you use the printer in this way, the set will be abnormal and the user will be in trouble. At this time, the user can take appropriate measures by checking the status of the printer to inform the user to confirm the fixed state.

그리고 프린터를 사용할땐 프린터 헤드의 핀이 파손되거나 프린터 내부의 구동 트랜지스터가 고장나게 되면 핀이 동작하지 않게 되는데 이에 따라 인자상태가 불행해진다. 이러한 경우 프린터의 헤드핀 1번핀~24번핀을 모두 구동시켜 보면 일부핀이 구동되지 않음을 확인하여 이의 고장수리를 수행할 수 있다.And when using the printer, if the pin of the print head is broken or the driving transistor inside the printer is broken, the pin will not work. In this case, if all of the head pins 1 ~ 24 pins of the printer are driven, some pins may not be driven, and the troubleshooting may be performed.

이를 위해 핀구동 프로그램을 사용자가 작성하여 프린터로 전송해 보면 이러한 상태를 확인할 수 있다. 현재 프린터에 적용되고 있는 자동 낱장 공급장치(Automatic Cut Sheet Feeder)를 위한 용지관련 기능 수행은 프린팅 낱장 용지의 규격에 따라 인자기능 영역을 할당하여 이에 적합하면 용지를 배출시킨다.To do this, you can check the status by writing a pin drive program and sending it to the printer. The paper-related function for the automatic cut sheet feeder currently applied to the printer allocates a printing function area according to the printing sheet paper specification and ejects the paper if appropriate.

따라서 인자기능 영역내에 프린팅 페이지의 길이를 할당하여야만 낱장 한장 단위의 폼(Form)에 맞는 인자 결과를 얻을 수 있다. 상기 자동 낱장 공급장치를 이용하여 낱장 용지를 사용하는 경우 용지관련 페이지 길이의 제한을 제2도에 나타내었다.Therefore, the length of the printing page must be assigned in the print function area to obtain the print result that matches the form of each sheet. In the case of using the sheet by using the automatic sheet feeder, the limitation of the length of the paper page is shown in FIG.

상기 제2도에서 인가가능길이(L)내에 페이지 길이(M)가 설정되어야만 낱장 한 페이지 단위의 폼에 맞게끔 인자할 수 있다.In FIG. 2, the page length M must be set within the allowable length L so that it can be printed to fit the form of a single page unit.

여기에서 TOF는 Top Of Form의 약어이다.TOF is the abbreviation for Top Of Form.

따라서 프린터는 인자가능길이(L) 및 설정된 페이지 길이(M)와 누적 LF(Line FssD) 카운터 값을 비교하여 카운터 값이 상기 인자가능길이(L) 혹은 설정 페이지 길이(M)에 도달하면 FF(Form Feed) 코드(0CH)가 날라오지 않아도 자동으로 용지를 배출한다.Therefore, the printer compares the printable length (L) and the set page length (M) with the cumulative LF (Line FssD) counter value, and when the counter value reaches the printable length (L) or the set page length (M), FF ( Form Feed) Automatically ejects the paper even if the code (0CH) does not fly.

그러나 현재 국내에서 사용되고 있는 워드프로세서에 따르면 상기 프린터의 인자가능길이(L)와 LF카운터값의 비교에 따른 용지 배출기능이 있음에도 불구하고 FF제어코드를 날려주어 용지를 다시 배출시키는 비효율성이 있다.However, according to the word processor currently used in Korea, despite the paper discharge function according to the printable length (L) of the printer and the LF counter value, there is an inefficiency of blowing the paper again by blowing the FF control code.

또한 프린터의 페이지 길이 분할기능을 수행하면 하페이지를 넘는 LF량 설정 후 FF코드나 CR코드를 날려주는 오류를 범하고 있기 때문에 정확한 기능 수행이 어렵다.In addition, if the page length division function of the printer is executed, an error that blows the FF code or the CR code after setting the LF amount over the lower page is difficult to perform correctly.

이상에서와 같이 종래의 기술에서는 프린터의 각 센서상태를 체크하여 상기 센서에 따른 프린터의 응답을 사용자에게 알려주되, 패널 및 단순한 동작 상황으로만 나타내는 경우에 프린터의 고장 상태 원인을 파악하기 어려운 문제가 있다.As described above, in the conventional technology, the state of each sensor of the printer is checked and the user is notified of the printer's response according to the sensor. have.

또한, 프린터의 ACSF 기능 수행에 의해서는 일반 워드프로세서상의 오류에 의해 사용자가 요구하는 기능을 적절히 수행하기 어려운 문제가 있다.In addition, by performing the ACSF function of the printer, there is a problem that it is difficult to properly perform a function required by a user due to an error on a general word processor.

따라서, 본 발명은 상기한 종래의 제반 문제점들을 해결하기 위하여 창안한 것으로, 본 발명의 목적은 프린터에서 간단한 키조작에 의한 기능진단 결과 출력을 직접 사용자에게 알려주고, 워드프로세서를 사용할때는 사용자가 별도로 ACSF의 다른 동작기능을 선택하여 사용하도록 함으로써, 사용자에게 프린터의 현재 상태를 확인시켜 주며, 또한 사용자 및 워드프로세서상의 오류에 대한 별도의 ACSF 기능을 추가하여 사용자에게 다양한 프린터 기능을 제공해 주는 프린터 제어방법을 제공함에 있다.Accordingly, the present invention has been made to solve the above-mentioned conventional problems, and an object of the present invention is to directly inform the user of the function diagnosis result output by a simple key operation in the printer, and when the word processor is used, the user separately By selecting and using other operation functions of the printer, the user can check the current status of the printer and also add a separate ACSF function for errors in the user and word processor. In providing.

상기한 본 발명의 목적을 달성하기 위한 기술적인 수단은, 프린터가 초기동작 완료후 자동 낱장 공급장치(ACSF)가 장착되어 있고 별도의 용지관련 기능을 수행하는 모드이면 온-라인 상태를 판단하는 제1온-라인 상태 판단단계와, 상기 제1온-라인 상태 판단에 따라 인자할 데이타 존재하고 로드/이젝트 스위치가 온되어 있으면 용지공급지를 실행하고 재차 온-라인 상태를 판단하는 제2온-라인 상태 판단단계와, 상기 제2온-라인이 정상동작이면 누적된 LF량 저장 버퍼값에 현재의 LF량 저장버퍼값을 더한 값과 인자 가능 영역 및 페이지 길이 설정값을 비교판단하는 버퍼값 비교판단 단계와, 상기 버퍼값 비교판단에 따라 라인버퍼 데이타인자후 용지를 이송하거나 혹은 현재 존재하는 용지를 배출시키는 용지이송 단계와, 상기 용지를 이송시킨후 입력버퍼의 2바이트 데이타를 읽어서 캐리지(CR)코드만 날라온 경우와 FF코드만 날라온 경우를 분류하여 판단하는 CR코드 및 FF코드 판단단계와, 상기 CR코드 및 FF코드 판단에 따라 입력버퍼의 포인터를 조절하여 상기 제2온-라인 상태 판단단계를 루프로 처리하는 입력버퍼 조절단계를 순차적으로 실행하여 프린터 상태를 사용자에게 알려주도록 한 것을 특징한다.Technical means for achieving the above object of the present invention, if the printer is equipped with an automatic sheet feeder (ACSF) after the completion of the initial operation and performing a separate paper-related function to determine the on-line state A second on-line for executing the paper feed and again determining the on-line state if there is data to be printed according to the first on-line state determination step and the first on-line state determination and the load / eject switch is on. In the state determination step, when the second on-line is in normal operation, a buffer value comparison decision is made to compare the accumulated LF amount storage buffer value with the current LF amount storage buffer value and the printable area and page length setting values. And a paper conveying step of transferring paper after the line buffer data factor or discharging the existing paper according to the buffer value comparison judgment, and input buffer after transferring the paper. CR code and FF code determination step of classifying and determining the case where only carriage (CR) code is carried out and case where only FF code is carried out by reading 2 bytes of data, and adjusting the pointer of the input buffer according to the CR code and FF code Characterizing the printer status by sequentially executing the input buffer adjustment step of processing the second on-line state determination step in a loop.

여기에서, 상기 프린터의 제반 제어는 마이콤에 의하여 이루어지고, 상기 마이콤은 프린터의 센서상태를 체크하여 동작되며, 프린터 센서의 이상시 이를 체크하기 위하여는 용지를 급지한 상태에서 용지 감지센서에 관계없이 인자를 실행하도록 하는 것이 바람직하다.Here, the overall control of the printer is made by a microcomputer, the microcomputer is operated by checking the sensor state of the printer, and in order to check the abnormality of the printer sensor, regardless of the paper sensor in the paper feed state to check this It is desirable to have the arguments run.

그리고 상기 LF량은 워드프로세서상의 오류에 대해서 한 페이지 분량을 넘을때 CPU는 CR코드나 FF코드까지의 입력버퍼 포인터를 변경하여 한 페이지 단위의 용지기능을 센서행하도록 하는 것이 효과적이다.When the LF amount exceeds one page for the error on the word processor, it is effective for the CPU to change the input buffer pointer up to the CR code or the FF code so as to perform the paper function in units of one page.

이하 첨부된 도면에 의하여 본 발명의 바람직한 실시예를 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

제3도는 본 발명의 프린터 제어방법에 따른 제어동작 흐름도로서 프린터의 비정상적인 제어기능 워드(Word)를 적용할때의 ACSF 운용동작 흐름도이다.3 is a flowchart of a control operation according to the printer control method of the present invention, which is an ACSF operation flowchart when applying an abnormal control function word of a printer.

프린터에는 자체 사양 및 기능 또는 인자되는 문자를 확인할 수 있는 자기진단(Self-test)기능을 갖고 있다.The printer has a self-test feature that allows you to check its specifications and functions or the characters to be printed.

이러한 기능에 착안하여 프린터의 자기 진단 결과를 출력할 수 있는 별도의 인자모드를 추가함으로써 이를 사용자가 확인할 수 있도록 해준다. 또한 프린터의 패널에는 다수개의 스위치들이 있으며, 온/오프 라인 스위치, FF 스위치, 라인피드(LF)스위치, 로드/이젝트(Load/Eject)스위치 등이 있다.With this feature in mind, users can check this by adding a separate printing mode that can print out the printer's self-diagnosis results. In addition, there are a plurality of switches on the panel of the printer, and there are an on / off line switch, an FF switch, a line feed switch, and a load / eject switch.

그리고 프린터에 따라서는 채널상에서 모든 기능을 적용하므로 이를 위해 별도의 기능 선택 스위치까지 포함하는 경우가 있다.And depending on the printer, all functions are applied on the channel, so there may be a separate function selection switch for this purpose.

예를들어 프린터의 초기화시 온-라인 스위치와 로드/이젝트 스위치를 동시에 누르면, 자기진단 인자모드를 선택하여 인자하도록 할 수 있는 기능을 부가할 수 있다.For example, pressing the on-line switch and the load / eject switch at the same time during initialization of the printer can add a function to select and print the self-diagnostic print mode.

이런 경우 현재의 DLP(Dual In-Line Package)스위치 선택상태 및 센서의 현재상태를 파악하여 상기 상태들을 인자하도록 한다.In this case, the current DLP (Dual In-Line Package) switch selection state and the current state of the sensor are grasped to print the above states.

이때 센서의 타입과 내부 입출력 포트에 들어온 값을 체크하는 조건에 따라 상기 기능의 실현 여부가 결정된다.At this time, it is determined whether the function is realized according to the type of the sensor and the condition of checking the value input to the internal input / output port.

예를들면 프린팅 페이지 감지 센서가 용지를 감지할때 오픈(Open)되는 타입을 선택하면 페이퍼 센서가 오픈된 경우에 아무런 문제없이 감지되지만 쇼트된 경우에는 자기진단 기능을 수행할 수 없다.For example, if the printing page detection sensor selects a type that is open when the paper is detected, it is detected without any problem when the paper sensor is open, but the self-diagnosis function cannot be performed when it is shorted.

이런 경우 이를 방지하기 위해 자기진단 모드시에 사용자가 프린터에 용지를 급지시킨 상태에서 사용하도록 함으로써 페이퍼 센서의 상태에 관계없이 체크된 센서상태들을 인자하도록 한다. 그리고 캐리지 홈센서에 이상이 발생된 경우에는 프린터의 초기화시 카운터가 프린터 메카니즘의 내측 사이즈를 벗어난 카운터 값일때에도 캐리지가 홈센서에 닿지 않으면 동작을 실행하지 않기 때문에 상기 캐리지 홈센서의 이상상태를 바로 확인할 수 있다.In this case, in order to prevent this, the user can use the paper loaded in the printer in the self-diagnosis mode to print the checked sensor states regardless of the state of the paper sensor. In case of abnormality in the carriage home sensor, if the carriage does not touch the home sensor even when the counter is out of the inner size of the printer mechanism when the printer is initialized, it does not execute the operation. Can be.

이와같이 체크된 센서의 상태를 인자한 후에 24핀 헤드가 정상적으로 동작되고 있는가를 파악하기 위해서 비트 이미지 24핀 모드를 적용하여 각 핀만이 일정한 도트(dot)만큼씩을 인자하도록 한다.After printing the checked state of the sensor as described above, in order to determine whether the 24-pin head is operating normally, the bit image 24-pin mode is applied so that only each pin prints by a certain dot.

이를 위하여 프린터 자체내에 제어코드 및 관련 데이타를 내장시킨다. 이와같은 인자 결과를 통해 프린터 헤드의 24핀중 어느핀에 이상이 있는가를 사용자에게 확인시켜줄 수 있다.For this purpose, control codes and related data are embedded in the printer itself. The result of the printout can confirm to the user which of the 24 pins of the print head is abnormal.

이하 본 발명의 프린터 제어동작 흐름도인 제3도를 참조하여 설명한다. 프린터에 전원이 인가되고 초기화(101)되면 현재 프린터의 자동 낱장 공급장치(ACSF)에 남아 있는 용지가 배출된다. 여기에서 상기 프린터의 초기화 동작부터 그 이하 모든 제어동작은 프린터를 총괄적으로 제어 해주는 CPU(10)에 의해서 이루어진다.Hereinafter, a description will be given with reference to FIG. 3 which is a flowchart of a printer control operation of the present invention. When power is supplied to the printer and initialized (101), the paper remaining in the automatic sheet feeder (ACSF) of the current printer is discharged. Herein, all control operations from the initial operation of the printer to the following are performed by the CPU 10 which controls the printer as a whole.

상기 초기화(101) 동작 완료후 CPU(10)는 ACSF가 프린터에 장착되어 있는지를 판단(102)하여 장착되어 있지 않으면 낱장 용지나 전산용지가 선택된 경우의 해당 용지 관련 루틴(Routine)을 수행(103)하고, 상기 판단(102) 결과 ACSF가 장착되어 있으면 별도의 용지 관련 기능이 수행되는지 판단(104)하게 된다.After completion of the initialization (101) operation, the CPU 10 determines whether the ACSF is mounted in the printer (102), and if it is not mounted, executes a paper related routine when a sheet or a computer is selected (103). If it is determined that the ACSF is installed, it is determined whether a separate paper related function is performed.

상기 판단(104) 결과 별도의 용지관련 기능 수행이 아니면 정상적인 ACSF 기능을 수행하는 루틴을 수행(105)하고, 상기 판단(104) 결과 별도의 용지관련 기능 수행이면 온-라인 상태여부를 판단(106)한다.If it is determined that the paper 104 function is not performed as a result of the determination 104, a routine for performing a normal ACSF function is performed 105, and if the paper 104 function is performed as a result of the determination 104, it is determined whether it is on-line. )do.

상기 온-라인 판단(106) 결과 온-라인이면 인자데이타 유무를 판단(107)하여 인자데이타가 있을 경우에만 용지급지를 실행(108)하고, 상기 온-라인 판단(106) 결과 오프-라인이면 로드/이젝트 스위치가 온되었을 경우에만 용지급지를 실행(110)한 다음 온-라인을 재차 판단(111)한다.If the result of the on-line determination 106 is on-line, it is determined whether printing data exists (107) to execute paper feeding only when there is printing data, and if the result of the on-line determination 106 is off-line, Only when the load / eject switch is turned on, the paper feeding is executed 110 and the on-line is determined again 111.

상기 제2의 온-라인 판단(111) 결과 온-라인 일때에만 버퍼값을 비교판단(112)한다. 여기에서 F버퍼는 설정된 FF(Form Feed)량이 저장된 버퍼이고, L1버퍼는 현재의 설정된 LF(Line Feed)량이 저장된 버퍼이면, L2버퍼는 누적된 LF량이 저장된 버퍼이다.The buffer value is compared 112 only when the second on-line determination 111 results on-line. Here, the F buffer is a buffer in which the set FF (Form Feed) amount is stored, and the L 1 buffer is a buffer in which the currently set LF (Line Feed) amount is stored, and the L 2 buffer is a buffer in which the accumulated LF amount is stored.

상기 버퍼값 비교판단(112) 결과 F>L1+L2이면 라인 버퍼에 저장된 데이타를 인자한 후 용지를 이송(113)하고, 다시 라인버퍼값을 산출(114)한 다음 상기 단계(111)로 루프를 돌아 반복 실행한다.If the result of the buffer comparison comparison 112 is F> L 1 + L 2, after printing the data stored in the line buffer, the paper is fed (113), and the line buffer value is calculated (114) again. Iterates over the loop and loops through it.

상기 버퍼값 비교판단(112) 결과 FL1+L2이면 현재 존재하고 있는 용지를 배출(115)시키고 입력버퍼의 내용을 스캐링(116)한 다음 CR(캐리지)코드만 날라온 경우와 FF코드가 날라온 경우를 분류 판단(117)하여 어느 한 코드가 날라왔으면 입력버퍼의 포인터를 증가(118)시키고 상기 단계(111)로 점프하여 루프를 돌아 반복 처리한다.Result of the buffer value comparison decision 112 If L 1 + L 2, the existing paper is discharged (115), the contents of the input buffer are scanned (116), and the classification judgment is performed (117) when only the CR (carriage) code is carried and when the FF code is taken. If either code has been taken, the pointer of the input buffer is incremented 118 and jumped to step 111 to loop through the loop.

이와같이 자동 낱장 공급장치(ACSF) 탑재시에 워드프로세서의 용지관련 오류 데이타에 대처하기 위해서는 용지 A4규격에 관련하여 설정한 초기 인자가능 영역 값이나 또는 페이지 길이 설정값과 누적 LF 카운터값을 비교하여 용지 이송 데이타를 산출함으로써 프린터 자체의 동작 및 기능을 수행한다.Thus by comparing the auto sheet feeder (ACSF) set with respect to the paper A 4 standard in order to deal with the media-specific error data from the word processor when mounted cold-printable area value or or the page length setting value and the cumulative LF counter value By calculating the paper feed data, it performs the operation and function of the printer itself.

상기 누적 LF 카운터값에 현재의 LF량을 더한 값과 인자가능영역 및 페이지 길이 설정값을 비교하여 이에따라 용지를 배출하고 급지 동작을 실행한다. 그리고 용지와 관련한 오류가 없는 워드프로세서를 사용할때는 이를 구분하기 위하여 해당기능을 지정하기 위해 별도의 설정방안을 강구해야 한다. 예를들면 프린터 초기화시 로드/이젝트 스위치를 누르면 해당기능을 수행할 수 있다.The paper is discharged according to the accumulated LF counter value plus the current LF amount, and the printable area and page length setting value are discharged accordingly. And when using a word processor that does not have errors related to paper, a separate setting method should be devised to designate the corresponding function to distinguish it. For example, pressing the load / eject switch during printer initialization can perform this function.

이상에서와 같이 본 발명에 따르면 사용자가 직접 프린터의 동작상태를 인자결과로서 확인할 수 있고 특히 프린터의 헤드핀 파손여부를 명확히 알 수 있음으로써 이에따른 적절한 대책을 신속히 마련할 수 있으며, 프린터의 각종 센서상태를 정확히 파악할 수 있는 유익한 장점이 있다.As described above, according to the present invention, the user can directly check the operation state of the printer as a print result, and in particular, it is possible to clearly know whether the headpin of the printer is damaged, and thus, appropriate measures can be promptly prepared. This has the benefit of being able to pinpoint the state.

또한 프린터의 자동 낱장 공급장치를 탑재시 비정상적인 용지관련 데이타를 전송하는 워드프로세서에도 적절히 대처함으로써 낱장 단위의 인자를 효율적으로 실행할 수 있다.In addition, by appropriately coping with a word processor that transmits abnormal paper-related data when the printer's automatic sheet feeder is mounted, the printing of the sheet unit can be efficiently executed.

Claims (3)

프린터가 초기동작 완료후 자동 낱장 공급장치(ACSF)가 장착되어 있고 별도의 용지관련 기능을 수행하는 모드이면 온-라인 상태를 판단하는 제1온-라인 상태 판단단계(106)와, 상기 제1온-라인 상태 판단에 따라 인자할 데이타가 존재하고 로드/이젝트 스위치가 온되어 있으면 용지급지를 실행하고 재차 온-라인 상태를 판단하는 제2온-라인 상태 판단단계(111)와, 상기 제2온-라인이 정상동작이면 누적된 LF량 저장 버퍼값에 현재의 LF량 저장버퍼값을 더한 값과 인자 가능영역 및 페이지 길이 설정값을 비교판단하는 버퍼값 비교판단 단계(112)와, 상기 버퍼값 비교판단에 따라 라인버퍼 데이타인자 후 용지를 이송하거나 혹은 현재 존재하는 용지를 배출시키는 용지이송단계(113), (115)와, 상기 용지를 이송시킨후 입력버퍼의 2바이트 데이타를 읽어서 캐리지(CR)코드만 날라온 경우와 FF코드만 날라온 경우를 분류하여 판단하는 CR코드 및 FF코드 판단단계(117)와, 상기 CR코드 및 FF코드 판단에 따라 입력버퍼의 포인터를 조절하여 상기 제2온-라인 상태 판단단계를 루프로 처리하는 입력버퍼 조절단계(118)를 순차적으로 실행하여 프린터상태를 사용자에게 알려주도록 한 것을 특징으로 하는 프린터 제어방법.A first on-line state determination step 106 of determining an on-line state if the printer is equipped with an automatic sheet feeder (ACSF) after the initial operation is completed and performs a separate paper-related function; A second on-line state determination step 111 of executing paper feeding and determining the on-line state again when data to be printed is present and the load / eject switch is turned on according to the on-line state determination; In the normal operation of the on-line, a buffer value comparison step 112 of comparing the accumulated LF amount storage buffer value with the current LF amount storage buffer value and the printable area and page length setting value is performed. According to the value comparison, paper conveying steps 113 and 115 for conveying paper after the line buffer data argument or discharging the existing paper, and reading two-byte data of the input buffer after conveying the paper, CR) CR code and FF code determination step (117) for classifying the case when the demaneuhan and FF code only flying, and the second on-line state determination by adjusting the pointer of the input buffer according to the CR code and FF code determination Printer control method, characterized in that to inform the user of the printer status by sequentially executing the input buffer adjustment step 118 to process the step in a loop. 제1항에 있어서, 상기 프린터의 제반 제어는 마이콤에 의하여 이루어지고, 상기 마이콤은 프린터의 센서상태를 체크하여 동작되며, 프린터 센서의 이상시 이를 체크하기 위하여는 용지를 급지한 상태에서 용지 감지센서에 관계없이 인자를 실행하도록 한 것을 특징으로 하는 프린터 제어방법.According to claim 1, wherein the overall control of the printer is made by a microcomputer, the microcomputer is operated by checking the sensor state of the printer, the paper sensor in the paper feed state in order to check the abnormality of the printer sensor A printer control method characterized in that the printing is executed regardless of the printing factor. 제1항에 있어서, 상기 LF량은 워드프로세서상의 오류에 대해서 한페이지 분량을 넘을때 CPU는 CR코드나 FF코드까지의 입력버퍼 포인터를 변경하여 한페이지 단위를 용지기능을 수행하도록 한 것을 특징으로 하는 프린터 제어방법.The method of claim 1, wherein when the LF amount exceeds one page for an error in a word processor, the CPU changes the input buffer pointer up to the CR code or the FF code to perform a paper function in units of one page. Printer control method.
KR1019920006482A 1992-04-17 1992-04-17 Printer control method KR940003635B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920006482A KR940003635B1 (en) 1992-04-17 1992-04-17 Printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920006482A KR940003635B1 (en) 1992-04-17 1992-04-17 Printer control method

Publications (2)

Publication Number Publication Date
KR930022242A KR930022242A (en) 1993-11-23
KR940003635B1 true KR940003635B1 (en) 1994-04-25

Family

ID=19331955

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920006482A KR940003635B1 (en) 1992-04-17 1992-04-17 Printer control method

Country Status (1)

Country Link
KR (1) KR940003635B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074998C (en) * 1996-03-12 2001-11-21 精工爱普生株式会社 printer and manufacture thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074998C (en) * 1996-03-12 2001-11-21 精工爱普生株式会社 printer and manufacture thereof

Also Published As

Publication number Publication date
KR930022242A (en) 1993-11-23

Similar Documents

Publication Publication Date Title
US7869063B2 (en) Printing apparatus, printer control method, printer control program, and printing system
US6975423B2 (en) Printing apparatus and a control method therefor
EP0685818B1 (en) Error control system and method for a printer
EP0834828B1 (en) Hybrid printer equipped with a plurality of printing mechanisms and method of controlling it
US6457884B1 (en) Printing apparatus and a control method therefor
KR0171545B1 (en) Printing system by paper lenght automatic sensing and controlling method thereof
JPH09323463A (en) Communication terminal and control method thereof
US6752548B2 (en) Printer and print system
EP0862109B1 (en) Information output apparatus and method
US20060017972A1 (en) Printer apparatus, control method and control program therefor, and computer-readable storage medium containing the control program
JPH01226374A (en) Electronic type typewriter
US7255501B2 (en) Printing device
CA1244134A (en) Diagnostic control keyboard for a mailing machine
KR940003635B1 (en) Printer control method
EP0583891B1 (en) Output method and apparatus
JPH03153376A (en) Paper feed device of printer
EP0597600B1 (en) Printer status indicating device
JPH0224183A (en) Printer
JP2001310538A (en) Apparatus for printing
JP2000020274A (en) Printer, print instruction generating device, and print system
JPH11139668A (en) Printing control device, printing control method of printing control device and memory medium storing program computer can read
JP3049685B2 (en) Information output device and information output method
JPH08192553A (en) Printer
JPH05270114A (en) Detecting system for depletion of sheet feeding in printer
JPH1049314A (en) Printer system and its control method

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19971229

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee