JPH0336619A - Printer device - Google Patents

Printer device

Info

Publication number
JPH0336619A
JPH0336619A JP1172362A JP17236289A JPH0336619A JP H0336619 A JPH0336619 A JP H0336619A JP 1172362 A JP1172362 A JP 1172362A JP 17236289 A JP17236289 A JP 17236289A JP H0336619 A JPH0336619 A JP H0336619A
Authority
JP
Japan
Prior art keywords
data
operation mode
circuit
outputs
bits
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
JP1172362A
Other languages
Japanese (ja)
Inventor
Takaaki Yokoi
孝明 横井
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1172362A priority Critical patent/JPH0336619A/en
Publication of JPH0336619A publication Critical patent/JPH0336619A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To confirm the received data on a printer device side by printing and outputting external data as a character with a hexadecimal number by an operation of the printer device side as necessary in addition to a function for executing the printing in accordance with the received data. CONSTITUTION:In the case of a second operation mode, in a switch 1, '1' and '2' are brought into contact with each other, and an operation mode F/F a is '1'. When received data is written, a synchronizm control F/F 8 becomes '1', and becomes a write inhibiting state. A data selecting F/F 7 is '0', a nega tive logical output L is connected to a first data selecting circuit 4, and the circuit 4 selects the high-order 4 bits of a received data storage register 3, and outputs them to a data converting circuit 5. The circuit 5 generates the corresponding character code, when the data of 4 bits becomes hexadecimal, and outputs it to a second data selecting circuit 6. The circuit 6 outputs it as reception data 2. In the case of reading out the data 2, the F/F 7 is inverted by a signal and becomes '1', and outputs a negative logical output '0'. On the other hand, a mode signal is '1' and does not pass through an OR gate 9, and the synchronism control F/F 8 is not reset. In this state, the F/F 7 becomes '1', and the circuit 4 selects the low-order 4 bits of the register 3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムで出力装置として使用される
プリンタ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer device used as an output device in an information processing system.

〔従来の技術〕[Conventional technology]

従来からプリンタ装置はコンピュータシステムの中で処
理結果を紙面に出力するために使用される出力fCII
tであり1、プリント出力する機能は今後共変らない。
Conventionally, printer devices are output fCII used in computer systems to output processing results on paper.
t1, and the printout function will not change in the future.

しかしながら、コンピュータシステムで処理するデータ
が文字、イメージ、グラフ等種々のメデアに拡大するに
従い、プリンタ装置で出力するデータも多彩になり、プ
リンタ装置t 1tlJ御するデータも複雑になってい
る。
However, as the data processed by computer systems has expanded to include various media such as characters, images, and graphs, the data output by printers has also become more diverse, and the data controlled by printers has also become more complex.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように複雑なシステムにおいて複雑な制御を必要と
するプリンタ装置を使用する場合、システム内の他の機
器、通信網あるいは利用ソフトウェア等で問題が発生す
る確率も高くなっている。
When using a printer device that requires complicated control in such a complicated system, there is a high probability that problems will occur with other devices in the system, the communication network, or the software used.

ところがプリンタ装arc受信データに従って印字を行
なうだけであり、印字結果として期待値と異なる印字を
した場合においても、受信データが誤っているのか、受
信データは正しいがプリンタの故障のために不正印字と
なったのかを区別するにも専用の機器を接続する必要が
ある欠点があった。
However, the printer only performs printing according to the arc received data, and even if the print result differs from the expected value, it may be that the received data is incorrect, or that the received data is correct but the printer is malfunctioning, resulting in incorrect printing. There was a drawback that it was necessary to connect a special device to distinguish between the two.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は外部から受信したデータに従い印字するプリン
タ装置の従来機能に加え、必要に応じプリンタ装置側で
の操作により、外部から受信したデータを文字として1
6進数で印字出力する機能を有t/%プリンタ装置側で
受信データを確認可能&/’リンク装置を提供すること
にある。
In addition to the conventional function of a printer device that prints data according to data received from the outside, the present invention enables data received from the outside to be printed as characters by operations on the printer device side as necessary.
It is an object of the present invention to provide a link device which has a function of printing out in hexadecimal numbers and allows the received data to be confirmed on the printer device side.

〔実施例〕〔Example〕

次に図面を用いて本発明の実施例を詳細に説明する。 Next, embodiments of the present invention will be described in detail using the drawings.

第1図は本発明の実施例のプリンタ装置のデータ受信回
路を詳細に示した図であり、動作モードを変更するスイ
ッチlと、動作モードを記憶する動作モードF/F2 
と、外部からの受信データを記憶する受信データ記憶レ
ジスタ3と、受信データ記憶レジスタ3の出力の上位4
ビットあるいは下位4ビットを選択する@lのデータ選
択回路4と、第1のデータ選択回路4からの4ビットの
出力を16進数としたとき対応する文字コードを発生す
るデータ変換回路5と、動作モードによって受信データ
記憶レジスタ3の出力あるいはデータ変換回路5の出力
を選択出力する第2のデータ選択回路6と、動作モード
F/F 2が「l」のとき動作し、受信データ記憶レジ
スタ3の上位4ビットと下位4ビットの選択信号を発生
するデータ選択F/F 7と、受信データ記憶レジスタ
3に受信データが記憶されていることを表わす同期側御
F/F8と、動作モード信号と読み出し信号との論理和
をとるORゲート9と、ORゲート9の出力とデータ選
択F/F 7の負論理出力との論理項をとるANDゲー
)10とから構成されている。
FIG. 1 is a diagram showing in detail the data receiving circuit of the printer device according to the embodiment of the present invention, including a switch 1 for changing the operation mode and an operation mode F/F 2 for storing the operation mode.
, a reception data storage register 3 that stores externally received data, and the upper 4 outputs of the reception data storage register 3.
An @l data selection circuit 4 that selects a bit or lower 4 bits, a data conversion circuit 5 that generates a corresponding character code when the 4-bit output from the first data selection circuit 4 is converted into a hexadecimal number, and the operation A second data selection circuit 6 selectively outputs the output of the reception data storage register 3 or the output of the data conversion circuit 5 depending on the mode, and a second data selection circuit 6 that operates when the operation mode F/F 2 is "L" and outputs the output of the reception data storage register 3. A data selection F/F 7 that generates selection signals for the upper 4 bits and lower 4 bits, a synchronization side control F/F 8 that indicates that received data is stored in the received data storage register 3, and an operation mode signal and readout. It is composed of an OR gate 9 that takes a logical sum with a signal, and an AND gate 10 that takes a logical term between the output of the OR gate 9 and the negative logic output of the data selection F/F 7.

第1に受信データと同一データを出力する第1の動作モ
ードについて説明する。#!lの動作モードの場合スイ
ッチlは■と■が接触してかり動作モードF/F 2は
「0」である。外部から受信データが書き込まれる場合
受信データと共に、#き込み信号が発生する。臀き込み
信号は負11ii埋のパルスであυ、受信データ記憶レ
ジスタに受信データを記憶すると共に同期制御F/F 
8をセットする。
First, a first operation mode in which the same data as received data is output will be explained. #! In the case of operation mode 1, switch 1 is in contact with ■ and ■, and operation mode F/F 2 is "0". When received data is written from outside, a # write signal is generated along with the received data. The lull signal is a negative 11ii pulse, which stores the received data in the received data storage register and also controls the synchronization control F/F.
Set 8.

回期制御F/F 8の出力は外部へ送り返えされ書き込
み禁止信号となると共に内部に対しては読み出し許可信
号となる。一方第2のデータ選択回路6には動作モード
信号が接続されて>6.動作モード信号は「0」である
ため、第2のデータ選択回路6からは受信データ記憶レ
ジスタ3の出力と向−内容のデータが受信データ2とし
て出力される。
The output of the periodic control F/F 8 is sent back to the outside as a write prohibition signal, and to the inside as a read permission signal. On the other hand, an operation mode signal is connected to the second data selection circuit 6, and the operation mode signal is connected to the second data selection circuit 6. Since the operation mode signal is "0", the second data selection circuit 6 outputs the data corresponding to the output of the received data storage register 3 as received data 2.

ここで、読み出し許可信号が出力されてるため、読み出
し動作が開始する。データを読み出す場合読み出し信号
が発生する。読み出し信号は負論理のパルス信号であυ
、データ選択F/F7>よびORゲート9に接続されて
いる。データ選択F/F7のリセット端子には動作モー
ド信号が接続されて訃D「0」であるためデータ選択F
/F 7は動作しない。また、ORゲート9にも動作モ
ード信号「0」が接続されているため、読み出し信号は
ORゲート9を通過する。一方、データ選択F/F7は
「0」であり、負論理出力は「1」でA N Dグー)
101/(:OILゲート9の出力と共に接続されてい
るためANDゲートloを読み出し信号が通過し、同期
制御F/F 8のクロック端子へ接続され、また同期制
@P/F 8のデータ入力端子にば「0」が接続されて
いるため、読み出し信号の立ち上うで同期制御F/F 
8は「0」となり、書き込み禁止信号がリセ、)される
Here, since the read permission signal has been output, the read operation starts. When reading data, a read signal is generated. The read signal is a negative logic pulse signal υ
, data selection F/F7> and OR gate 9. Since the operation mode signal is connected to the reset terminal of data selection F/F7 and D is "0", data selection F
/F7 does not work. Further, since the operation mode signal "0" is also connected to the OR gate 9, the read signal passes through the OR gate 9. On the other hand, the data selection F/F7 is "0", and the negative logic output is "1", which is A N D goo)
101/(: Since it is connected with the output of OIL gate 9, the read signal passes through AND gate lo, and is connected to the clock terminal of synchronous control F/F 8, and also the data input terminal of synchronous control @P/F 8. Since “0” is connected to
8 becomes "0" and the write inhibit signal is reset.

次に受信データを上位、下位の順に4ビフ)ずつ選択し
対応する文字コードに変換して出力する第2の動作モー
ドについて説明する。第2の動作モードの場合スイッチ
lは■と■が接触してかり、動作モードF/F21rl
Jである。外部から受信データが書き込まれる動作は第
1の動作モードの場合と同様であう、受信データが書き
込まれると同期制御F/F 8は「1」となり、書き込
み禁止状態となる。データ選択F/F 7はrOJであ
り、負論理出力rLJが第1のデータ選択回路4に接続
されてかり、第1のデータ選択回路4ti受信データ記
憶レジスタ3の上位4ビットを選択し、データ変換回路
5へ出力する。データ変換回路5は、4ビットのデータ
を16進としたとき対する文字コードを発生し、第2の
データ選択回路6へ出力する。第2のデータ選択回路6
は動作モード信号が「l」であるため、データ変換回路
5から送出されているデータを受信データ2として出力
する。ここで、受信データ2を読み出す場合、読み出し
信号が発生し、絖み出し信号の立ち上りでデータ選択F
/F 7は反転し「1」となり、負論理の出力として「
0」を出力する。−万、絖み出し信号はORグー)9に
も接続されているが動作モード信号が「l」であるため
ORゲート9は通過しない。このため、同期制御F/F
 8はリセットされない。
Next, a second operation mode will be described in which received data is selected in the order of upper and lower (4 bifs), converted into corresponding character codes, and output. In the second operation mode, switch l is in contact with ■ and ■, and operation mode F/F21rl
It is J. The operation in which received data is written from the outside is similar to that in the first operation mode. When the received data is written, the synchronous control F/F 8 becomes "1" and a write-inhibited state is established. The data selection F/F 7 is rOJ, and the negative logic output rLJ is connected to the first data selection circuit 4. The first data selection circuit 4ti selects the upper 4 bits of the received data storage register 3, and selects the upper 4 bits of the received data storage register 3. Output to conversion circuit 5. The data conversion circuit 5 generates a character code corresponding to the 4-bit data in hexadecimal notation, and outputs it to the second data selection circuit 6. Second data selection circuit 6
Since the operation mode signal is "l", the data being sent from the data conversion circuit 5 is output as received data 2. Here, when reading received data 2, a read signal is generated, and data selection F is generated at the rising edge of the start-up signal.
/F7 is inverted and becomes "1", and as a negative logic output "
0" is output. - 10,000, the alignment signal is also connected to OR gate 9, but since the operation mode signal is "l", it does not pass through OR gate 9. For this reason, synchronous control F/F
8 is not reset.

ここで、データ選択F/F 7は「l」となり、負論理
の出力が第1のデータ選択回路4に送られているため、
第1のデータ選択回路4は受信データ記憶レジスタ3の
下4ビットを選択する。このため、第2のデータ選択回
路6からは受信データ記憶レジスタ3の下4ビットを1
6進数としたときに対応する文字コードが出力される。
Here, the data selection F/F 7 is set to "L" and the negative logic output is sent to the first data selection circuit 4, so
The first data selection circuit 4 selects the lower four bits of the received data storage register 3. Therefore, the second data selection circuit 6 selects 1 from the lower 4 bits of the received data storage register 3.
When converted into a hexadecimal number, the corresponding character code is output.

同期制御F/F 8がリセットされていないため、続い
て読み出し信号が発生し、下4ビットを文字コードに変
換したデータが読み取られる。このとき、データ選択F
/F 7は再び反転してrOJ となり、第1のデータ
選択回路4は再び受信データ記憶レジスタ3の上位4ビ
ットを選択する。
Since the synchronous control F/F 8 has not been reset, a read signal is subsequently generated, and data obtained by converting the lower 4 bits into a character code is read. At this time, data selection F
/F7 is inverted again to become rOJ, and the first data selection circuit 4 selects the upper four bits of the received data storage register 3 again.

一方、データ選択F/F 7の負論理出力flANDゲ
ート10を介して同期制御F/F 8のクロック端子に
出力されてi?p、データ選択F/F 7がrOJとな
るときrOJから「l」へと変化するため1回期制御F
/F8はリセットサれ、誓き込み禁止状態が解除される
On the other hand, the negative logic output of the data selection F/F 7 is output via the flAND gate 10 to the clock terminal of the synchronous control F/F 8. When p, data selection F/F 7 becomes rOJ, it changes from rOJ to "l", so one-cycle control F
/F8 is reset and the oath prohibition state is canceled.

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

本発明は上述のように動作モードを変更するスイッチと
動作モードを記憶するF/Fと、動作モードによって受
信データと同一データを出力、あるいは受信データの上
位4ビット、下位4ビ、トの順に選択すると共に各々4
ビットを16進数としたときに対応する文字コードを出
力するデータ変換回路とから受信データ回路を構成する
ことにより、通常は受信データに従い印字を行ない、必
要に応じてプリンタ装置側で選択することにより、受信
データを16進数にf換して印字出力するプリンタ装置
を提供することができる。
As described above, the present invention includes a switch for changing the operating mode, an F/F for storing the operating mode, and depending on the operating mode, outputs the same data as the received data, or outputs the upper 4 bits of the received data, the lower 4 bits, and the 4 each with selection
By configuring the reception data circuit with a data conversion circuit that outputs the character code corresponding to when bits are converted into hexadecimal numbers, printing is normally performed according to the received data, and if necessary, by making a selection on the printer device side. , it is possible to provide a printer device that converts received data into hexadecimal numbers and prints out the converted data.

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

第1図は本発明のプリンタ装置の受信データ回路のブロ
ック図である。 l・・・・・・スイッチ、2・・・・・・動作モードF
/F、  3・・・・・・受信データ記憶レジスタ、4
・川・・第1のデータ選択回路、5・・・・・・データ
変換−路、6・・・・・・第2のデータ選択回路、7・
・・・・・データ選択F/F、  8・・・・・・同期
制御F/F、  9・・・・・・ORゲート、1o・・
・・・・ANDゲート、a・・・・・・動作モード16
号、b・・・・・・受信データ1%C・・・・・・書き
込み信号、d・・・・・・書き込み禁止信号、e・・・
・・・受信データ2、f・・・・・・読み出し信号、g
・・・・・・読み出し許可信号。
FIG. 1 is a block diagram of a receiving data circuit of a printer device according to the present invention. l...Switch, 2...Operating mode F
/F, 3...Receive data storage register, 4
- River: first data selection circuit, 5... data conversion path, 6... second data selection circuit, 7.
...Data selection F/F, 8...Synchronization control F/F, 9...OR gate, 1o...
...AND gate, a...Operating mode 16
No., b... Received data 1% C... Write signal, d... Write inhibit signal, e...
... Received data 2, f ... Read signal, g
...read permission signal.

Claims (1)

【特許請求の範囲】 動作モードを記憶する動作モードF/Fと、該動作モー
ドF/Fが第1の動作モードを表わす場合は外部から受
信した8ビットのデータと同一データを出力し、第2の
動作モードを表わす場合は外部から受信した8ビットの
データを上位4ビット、下位4ビットの順に取り出し、
4ビットを16進数として取り扱う場合に対応する文字
コードを順次出力するデータ変換回路と、 前記動作モードF/Fを変更するスイッチとから構成さ
れるデータ受信回路を有し、 第1の動作モードの場合は外部から受信したデータに従
い印字を行ない、第2の動作モードの場合は外部から受
信したデータをすべて16進数に変換して印字すること
を特徴とするプリンタ装置。
[Claims] An operation mode F/F that stores the operation mode, and when the operation mode F/F represents the first operation mode, outputs the same data as 8-bit data received from the outside, and outputs the same data as the 8-bit data received from the outside. To indicate operation mode 2, extract the 8-bit data received from the outside in the order of the upper 4 bits and the lower 4 bits,
It has a data receiving circuit consisting of a data conversion circuit that sequentially outputs a character code corresponding to when 4 bits are handled as a hexadecimal number, and a switch that changes the operation mode F/F, and the first operation mode is In the second operation mode, the printer device performs printing according to data received from the outside, and in the second operation mode, converts all the data received from the outside into hexadecimal numbers and prints.
JP1172362A 1989-07-03 1989-07-03 Printer device Pending JPH0336619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1172362A JPH0336619A (en) 1989-07-03 1989-07-03 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1172362A JPH0336619A (en) 1989-07-03 1989-07-03 Printer device

Publications (1)

Publication Number Publication Date
JPH0336619A true JPH0336619A (en) 1991-02-18

Family

ID=15940501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1172362A Pending JPH0336619A (en) 1989-07-03 1989-07-03 Printer device

Country Status (1)

Country Link
JP (1) JPH0336619A (en)

Similar Documents

Publication Publication Date Title
US5729664A (en) Image processing apparatus and method for converting an input color image signal from one color space to another
JPH0336619A (en) Printer device
EP0091124B1 (en) Video signal generating circuit
US6108101A (en) Technique for printing with different printer heads
US5426596A (en) Color signal correction circuit using a second-order correcting formula
US5148517A (en) Print data generator
JPH0224184A (en) Printer
JPH0228474B2 (en)
EP0075423B1 (en) Belt synchronous check system for a line printer
JP3189873B2 (en) Color converter
JP3427975B2 (en) Printer control circuit, printer and print system
JP2564318B2 (en) Communication processing device
KR100471136B1 (en) Line repetition print circuit
JP2698836B2 (en) Data converter
JP2679996B2 (en) Communication control system
JPS62180419A (en) Printer device
JPH01183730A (en) Printer device
JPS6016757A (en) Document transmission system
JPS63315248A (en) Printer control system
JPS6216826B2 (en)
JPS5981688A (en) Dot pattern generation circuit
JPS5846478A (en) Printer
JPS58107591A (en) Overlapping character pattern generation system
JPH0381165A (en) Emphasized character generator
JPH01255568A (en) Thermal transfer color printer