JPS6048558A - Controlling system of terminal equipment - Google Patents

Controlling system of terminal equipment

Info

Publication number
JPS6048558A
JPS6048558A JP58154829A JP15482983A JPS6048558A JP S6048558 A JPS6048558 A JP S6048558A JP 58154829 A JP58154829 A JP 58154829A JP 15482983 A JP15482983 A JP 15482983A JP S6048558 A JPS6048558 A JP S6048558A
Authority
JP
Japan
Prior art keywords
switch
turned
test
state
power source
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.)
Pending
Application number
JP58154829A
Other languages
Japanese (ja)
Inventor
Hiroaki Miyoshi
三好 浩明
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58154829A priority Critical patent/JPS6048558A/en
Publication of JPS6048558A publication Critical patent/JPS6048558A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To simplify a circuit by shifting to execution of a test program if a preparation completion display switch turns on when an electric power source switch is turned on, and executing an on-line connection by the subsequent on when said switch is not turned on. CONSTITUTION:When a switch (SW)2 of a power source 1 is turned on in a state that an on-line setting SW12 is turned on, a microprocessor 4 reads SW information from an input port 9, and decides that a simple body test is designated. A form exists and cover closed state is read from the input port 9, a test program of an ROM5 is started, a data is outputted to an output port 8, a pulse motor is driven 11, a printing head is driven by synchronizing with a rotation of the pulse motor, and a character pattern contained in the ROM5 is outputted and printed. When the power source SW2 is turned on in a state that the SW12 remains opened, and thereafter, the switch 12 is turned on, the operation is shifted to an on-line processing with an external circuit. In this way, an exclusive switch and an exclusive control part for a test are not required, and the circuit is simplified.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は端末装置の制御方式に関し、特に端末装置に基
本的に実装されているスイッチとプログラムとを用いて
端末装置の自己#所を行うことを可能とする端末装置の
制御方式に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a control method for a terminal device, and in particular to a method for controlling the terminal device using a switch and a program that are basically installed in the terminal device. This invention relates to a control method for a terminal device that enables

〔発明の背景〕[Background of the invention]

従来、データ処理システムに、I■込まれているプリン
タ等の端末装置においては、その機構部、制御部を単独
にテス1へする(以下、これを「単体テストを行う」と
いう)ためのデスト専用スイッチおよびデスト用の制御
部を別に実装することによりテストを可能にしていた。
Conventionally, in a terminal device such as a printer that is integrated into a data processing system, a dedicated device is used to test the mechanism and control section independently (hereinafter referred to as ``performing a unit test''). Testing was made possible by implementing separate control units for switches and dest.

このため、装置のコスト・が上昇するとともに、操作が
繁雑になるという問題があった。
For this reason, there are problems in that the cost of the device increases and the operation becomes complicated.

〔発明の目的〕[Purpose of the invention]

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の端末装置の制御ll′Hr方式に
おける」二連の如き問題を解消し、端末装置にテスト専
用スイッチあるいはデスト用の制御部を設けることなし
に単体テストを行うことを可能とする端末装置の制御方
式を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the two-pronged problem in the conventional terminal device control method, and to provide a terminal device with a test-only switch or a An object of the present invention is to provide a control method for a terminal device that makes it possible to perform a unit test without providing a control section.

〔発明の概要〕[Summary of the invention]

本発明の上記目的は、電源をオンオフするだめの第1の
スイッチと、外部装置に文1するf4(B l+ili
完了を示す第2のスイッチとを有する端末装置において
、前記第1のスイッチがオンになった時点において前記
第2のスイッチがオン状態であった場合には所定のテス
トプログラムを実行し、前記第1のスイッチがオンにな
った時点において前記第2のスイッチがオフ状態で、そ
の後オンになった場合には外部装置とのオ〉′ライン接
続を行うことを特徴とする端末装置の制御方式によって
達成さhる。
The above-mentioned object of the present invention is to provide a first switch for turning on and off the power, and f4 (B l+ili
In the terminal device having a second switch indicating completion, if the second switch is in the on state at the time the first switch is turned on, a predetermined test program is executed, According to a control method of a terminal device, the second switch is in an off state when the first switch is turned on, and when the second switch is turned on afterwards, an on-line connection with an external device is established. Achieved.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面に基づいて詳細に説明する
。なお、以下の説明においては、端末装置の一例として
単票プリンタ(以下、単に「プリンタ」という)を挙げ
るが、本発明はこれに限られるものではない。
Embodiments of the present invention will be described in detail below with reference to the drawings. In the following description, a cut printer (hereinafter simply referred to as a "printer") will be cited as an example of a terminal device, but the present invention is not limited to this.

第1図は本発明の一実施例であるプリンタ制御機構のハ
ード構成図である。図において、4はプリンタのすべて
の動作を指令するマイクロプロセッサ、5はプリンタの
テストプログラム、文字パターンを記憶しているり−1
くオンリメモリ、6はデータを格納するランダムアクセ
スメモリ、7ば印字ヘッド制御信号を出力する出カポ−
1−18はパルスモータ・コン1〜ロール信号を出力す
る出力ボート、9はスイッチ情報を読込む入カポ−1−
110は印字ヘッドを駆動する駆動回路、]Jはパルス
モータを駆動するパルスモーク駆動回路、12はオンラ
イン設定スイッチ、]3はセンサ増幅回路そし7て3は
上記各手段に電源を供給する電源回路を示している。な
お、1は交流電源、2は電源スイッチである。
FIG. 1 is a hardware configuration diagram of a printer control mechanism that is an embodiment of the present invention. In the figure, 4 is a microprocessor that commands all operations of the printer, 5 is a test program for the printer, and stores character patterns.
6 is a random access memory for storing data, and 7 is an output port for outputting print head control signals.
1-18 is an output port that outputs the pulse motor control 1 to roll signal, and 9 is an input port 1- that reads switch information.
110 is a drive circuit that drives the print head, J is a pulse smoke drive circuit that drives a pulse motor, 12 is an online setting switch, ] 3 is a sensor amplifier circuit, and 7 is a power supply circuit that supplies power to each of the above means. It shows. Note that 1 is an AC power source and 2 is a power switch.

本実施例においては、オンライン設定スイッチ】2をオ
ンにした状態で電源スィッチ2をオンにすると、マイク
ロプロセッサ4が入カポ−1−9からスイッチ情報を読
取り単体テストが指定されていることを認知する。次に
マイタロプロセッサ4は入力ボート9から用紙の有焦、
カバーの開閉の状態等のスイッチ情報を読取り、用紙有
り、カバー閉状態であればリードオンリメモリ5に内蔵
されているテス]へプログラムを起動する。起動後、テ
ストプログラムにより進相データを出カポ−1−8に出
力し、パルスモータ駆動回路11を介してパルスモータ
を回転させる。また、上記パルスモータの回転に同期し
て、印字ヘッド駆動回路10に前記ツー1−オンリメモ
リ5に内蔵している文字パターンを出力することにより
、印字ヘッドを駆動して印字を行う。
In this embodiment, when the power switch 2 is turned on with the online setting switch 2 turned on, the microprocessor 4 reads the switch information from the input ports 1-9 and recognizes that a unit test is specified. . Next, the Mytalo processor 4 receives the paper from the input boat 9,
The switch information such as the open/close state of the cover is read, and if there is paper and the cover is closed, a program is started for the test stored in the read-only memory 5. After startup, the test program outputs advanced phase data to the output capacitor 1-8, and the pulse motor is rotated via the pulse motor drive circuit 11. Further, in synchronization with the rotation of the pulse motor, the character pattern stored in the two-one-only memory 5 is outputted to the print head drive circuit 10, thereby driving the print head to perform printing.

第2図は上述のプリンタ単体テス1への処理フローチャ
ー1へである。以下、本実施例の動作を第2図に示した
フローチャー1−に基づいて説明する。
FIG. 2 shows processing flowchart 1 for printer unit test 1 described above. The operation of this embodiment will be explained below based on the flowchart 1- shown in FIG.

ステップ】:プリンタの電源スィッチ2がオンになった
場合、オンライン設定スイッチ12が一定時間オンされ
ているか否かをチェックする。
Step]: When the power switch 2 of the printer is turned on, it is checked whether the online setting switch 12 has been turned on for a certain period of time.

このチェックはラフ1−タイマによる時間監視により行
い、オンライン設定スイッチ12が一定時間オン状態で
あれば単体テストと判断する。なお、上記時間監視を行
うことで、電源スィッチ2がオンされた直後にオンライ
ン設定スイッチ12がオンされた場合と区別することが
でき、誤指定を防止することができる。
This check is performed by time monitoring using a rough 1-timer, and if the online setting switch 12 is on for a certain period of time, it is determined that it is a unit test. Note that by performing the above-mentioned time monitoring, it is possible to distinguish from the case where the online setting switch 12 is turned on immediately after the power switch 2 is turned on, and erroneous designation can be prevented.

ステップ2:単体テストと判断した場合には、次に、用
紙の有無をチェックする。これは、前述の如く、本実施
例が本発明を単票プリンタに適用した場合を示している
ためである。用紙有を検知した場合には、単票用紙を印
字位置まで吸入し、印字、改行動作を行う。所定の印字
、改行動作が終了すると、」二記単票用紙を排出し、抜
取り待ちとなる。単票用紙が抜取られると再度用紙待ち
となり、単体テストを繰り返し行うことが可能である。
Step 2: If it is determined that it is a unit test, next check whether there is paper. This is because, as mentioned above, this embodiment shows the case where the present invention is applied to a cut-sheet printer. When the presence of paper is detected, the cut paper is sucked up to the printing position, and printing and reversing operations are performed. When the predetermined printing and editing operations are completed, the two-marked cut sheet is discharged and waits for sampling. When the cut sheet is extracted, the system waits for the paper again, and it is possible to repeat the unit test.

ステップ3ニステツプ1で単体テス(−ではなし\と判
断された場合には、オンライン設定スイッチ12がオン
された時点において、オンライン処理に移る。
Step 3 If it is determined in step 1 that the unit test (- is not \), the process moves to online processing when the online setting switch 12 is turned on.

上記実施例においては、本発明をプリンタに適用した例
を示したが、前述の如く、本発明はこれに限られるもの
ではなく、他の単体テストを必要とする端末装置全般に
適用可能であることは言うまでもないことである。他の
端末装置に適用する場合のナストプログラムは、該当す
る端末装置に固有のものを用いることが可能であること
も言うまでもないことである。
In the above embodiment, an example was shown in which the present invention was applied to a printer, but as mentioned above, the present invention is not limited to this, and can be applied to other terminal devices in general that require unit testing. It goes without saying. It goes without saying that when applied to other terminal devices, it is possible to use a Nast program specific to the terminal device.

〔発明の効果〕〔Effect of the invention〕

以上述へた如く、本発明によ九は、電;原をオンオフす
るだめの第1のスイッチと、外部装置に対する準備完了
を示す第2のスイッチとを有する端末装置において、前
記第1のスイッチがオンになった時点において前記第2
のスイッチがオン状態であった場合には所定のテストプ
ログラムを実行し、前記第1のスイッチがオンになった
時点において前記第2のスイッチがオフ状態で、その後
オンになった場合には外部装置とのオンライン接続を行
うようにし・だので、端末装置にテスト専用スイッチあ
るいはテスI−用の制御部を設けることなしに単体テス
トを行うことを可能とする端末装置の制御方式を実現で
きるという顕著な効果を奏するものである。
As described above, the present invention provides a terminal device including a first switch for turning on and off a power supply, and a second switch for indicating completion of preparation for an external device, in which the first switch When the second
If the first switch was in the on state, a predetermined test program is executed, and if the second switch was in the off state at the time the first switch was turned on and then turned on, the external It is remarkable that it is possible to realize a terminal device control method that enables unit testing without providing a test-dedicated switch or test I-control unit on the terminal device, since online connection with the device is established. This has the following effects.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例であるプリンタ制御様溝のハ
ード構成図、第2図は単体テストの処理フローチャー(
−である。 1−交流電源、2:電源スィッチ、3:電源回路、4:
マイクロプロセッサ、5:1ノー1〜A゛ン1ツメモリ
、6:ランダムアクセスメモ1)、7.8:I+Jsカ
ポ−I−19:入カポ−I〜、10:印字ヘノI−゛ル
区!FIJ[r+1路、11:パルスモータ駆動回路、
12:オンライン設定スイッチ。 第 ]、 図 第2図
Figure 1 is a hardware configuration diagram of a printer control groove that is an embodiment of the present invention, and Figure 2 is a unit test processing flowchart (
− is. 1-AC power supply, 2: Power switch, 3: Power supply circuit, 4:
Microprocessor, 5:1 memory, 6: Random access memo 1), 7.8: I+Js capo-I-19: Input capo-I~, 10: Printing heno I-1 area! FIJ[r+1 path, 11: Pulse motor drive circuit,
12: Online setting switch. ], Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)電源をオンオフするための第1のスイッチと、外
部装置に苅する準備完了を示す第2のスイッチとを有す
る端末装置において、前記第1のスイッチがオンになっ
た時点において前記第2のスイッチがオン状態であった
場合には所定のテストプログラムを実行し、前記第1の
スイッチがオンになった時点において前記第2のスイッ
チがオフ状態で、その後オンになった場合には外部’!
Jaとのオンライン接続を行うことを特徴とする端末装
置のjclJ御方式。
(1) In a terminal device having a first switch for turning on and off the power supply and a second switch indicating completion of preparation for feeding to an external device, when the first switch is turned on, the second switch If the first switch was in the on state, a predetermined test program is executed, and if the second switch was in the off state at the time the first switch was turned on and then turned on, the external '!
A jclJ control method for a terminal device characterized by online connection with Ja.
JP58154829A 1983-08-26 1983-08-26 Controlling system of terminal equipment Pending JPS6048558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58154829A JPS6048558A (en) 1983-08-26 1983-08-26 Controlling system of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58154829A JPS6048558A (en) 1983-08-26 1983-08-26 Controlling system of terminal equipment

Publications (1)

Publication Number Publication Date
JPS6048558A true JPS6048558A (en) 1985-03-16

Family

ID=15592788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58154829A Pending JPS6048558A (en) 1983-08-26 1983-08-26 Controlling system of terminal equipment

Country Status (1)

Country Link
JP (1) JPS6048558A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54142037A (en) * 1978-04-27 1979-11-05 Fujitsu Ltd Test program starting system for terminal unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54142037A (en) * 1978-04-27 1979-11-05 Fujitsu Ltd Test program starting system for terminal unit

Similar Documents

Publication Publication Date Title
JPS6048558A (en) Controlling system of terminal equipment
JPH0422708B2 (en)
JPS5839325B2 (en) Power cutoff method for electronic equipment
JPH1078812A (en) Method for transferring data and device for controlling data transfer
US5499381A (en) Electronic apparatus with interchangeable peripheral device and a processor interrupt feature
JPS6057382A (en) Character processor
JPH06161613A (en) Document processor
JPH01298420A (en) Power off system for information processor
KR100280453B1 (en) Flash memory device
JPH11175228A (en) Information terminal equipment
JPH01136251A (en) Self-diagnosing system
JP3703502B2 (en) Voice input operation device
JPH10287017A (en) Image-forming apparatus
JPH03276322A (en) Electronic equipment
JP2990111B2 (en) Timer circuit
JPS60204004A (en) Sequence controller
JP3017363B2 (en) Printing equipment
JP2002103741A (en) Printer
JPH0828005B2 (en) Voice input operation device
JPH05254219A (en) Printer controlling apparatus
JPS6364136A (en) Bus supervising device for information processor
JPH0592855U (en) Information processing equipment
JPS6297172A (en) Floppy disk device
JPS6297171A (en) Floppy disk device
JPS6217844A (en) Information processor