JPS6246015B2 - - Google Patents
Info
- Publication number
- JPS6246015B2 JPS6246015B2 JP56213667A JP21366781A JPS6246015B2 JP S6246015 B2 JPS6246015 B2 JP S6246015B2 JP 56213667 A JP56213667 A JP 56213667A JP 21366781 A JP21366781 A JP 21366781A JP S6246015 B2 JPS6246015 B2 JP S6246015B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- setting means
- signal
- replacement
- sending
- 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.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/02—Comparing digital values
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Input From Keyboards Or The Like (AREA)
- Computer And Data Communications (AREA)
Description
【発明の詳細な説明】
(i) 発明の技術分野
本発明は電子計算機システムのコード変換装
置、特に、総称としての通貨記号を指定するコー
ドを現地の通貨記号に対応するコードに変換する
コード変換装置に関するものである。[Detailed Description of the Invention] (i) Technical Field of the Invention The present invention relates to a code conversion device for a computer system, and particularly to a code conversion device for converting a code specifying a general currency symbol into a code corresponding to a local currency symbol. It is related to the device.
(ii) 技術の背景
電子計算機システムで、CPUを介してデータ
処理を行ない、プリンタで出力する場合、たとえ
ば貨幣計算結果を出力することを考えてみる。貨
幣における数字の計算は各国共通であつても、そ
こに付随する通貨記号に着目すると、日本での通
貨記号は“¥”、アメリカにおいての通貨記号は
“$”等という違いがある。(ii) Technical background In an electronic computer system, consider the case where data is processed through the CPU and outputted to a printer, for example, the result of a monetary calculation. Even though the calculation of numbers in money is common in each country, when we look at the currency symbols that accompany them, there are differences, such as the currency symbol in Japan being "¥" and the currency symbol in America being "$".
(iii) 従来技術と問題点
上述のとおり、通貨記号“¥”“$”などを出
力するにはプログラムはそれぞれに対応した専用
コードを用いて処理を行なうようにしている。(iii) Prior Art and Problems As mentioned above, in order to output currency symbols such as "¥" and "$", the program uses dedicated codes corresponding to each symbol.
通貨の違う国においての出力を考えると、プロ
グラムは国別ごとに作成しなければならなかつ
た。 Considering the output in countries with different currencies, the program had to be created for each country.
また、別の解決方法としては、プリンタ装置に
おいて各国ごと、同一コードに対して、異なつた
プリントヘツドをつけなければならなかつた。 Another solution is to install different print heads for the same code in each country in the printer device.
したがつて、通貨記号取り扱いの変更は、ソフ
ト的には変更ごとに組みかえるわずらわしさがあ
り、またプリンタ装置を変更しようとするとプリ
ンタヘツドを交換する等の労力を必要としてい
た。 Therefore, when changing the handling of currency symbols, it is troublesome to change the software for each change, and changing the printer requires labor such as replacing the printer head.
(iv) 本発明の目的
本発明は上記欠点をなくし、コード変換装置を
変えずに国別(通貨別)に異なつた装置を提供す
るという要望に、簡易な変更で対処できるように
することを目的としている。(iv) Purpose of the present invention The present invention aims to eliminate the above-mentioned drawbacks and to make it possible to meet the demand for providing different devices for each country (by currency) without changing the code conversion device by a simple modification. The purpose is
(v) 本発明の構成
置換の対象となるコードを設定する被置換コー
ド設定手段、置換コードを設定するための置換コ
ード設定手段、上記コード送出部からのコード送
出信号と被置換コード設定手段からの信号とを比
較し、比較結果信号を出力する比較器、さらに該
比較器からの比較信号が不一致を示しているなら
ばコード送出部からのコード信号を、一致を示し
ているならば置換コード設定手段からのコード信
号をコード受信部に供給するセレクト器とを設け
たことによつて達成される。(v) Configuration of the present invention A replaced code setting means for setting a code to be replaced, a replacement code setting means for setting a replacement code, a code sending signal from the code sending section and a replaced code setting means. A comparator that compares the signals with the signals of This is achieved by providing a selector for supplying the code signal from the setting means to the code receiving section.
(vi) 本発明の実施例 以下、本発明実施例を図面によつて詳述する。(vi) Examples of the present invention Embodiments of the present invention will be described in detail below with reference to the drawings.
図は本発明実施例である。図において、1はコ
ード送出部、2は送出部1からのコードを別のコ
ードに変換するコード変換装置、3はコード変換
装置2からのコードを受信するコード受信部、4
は変換の対象となるコードを設定する被置換コー
ド設定手段、5は置換コードを置換するための置
換コード設定手段、6はコード送出部1からのコ
ード送出信号と被置換コード設定手段4からの信
号を比較し、比較信号を出力する比較器、7は比
較器6からの比較信号が不一致を示しているなら
ば被置換コードを、一致なら置換コードをコード
受信部3に供給するセレクト器であり、上記被置
換コード設定手段4、置換コード設定手段5、比
較器6、セレクト器7はコード変換装置2内にあ
る。では、総称としての通貨記号を“$”に変換
する方法について説明する。まず、被置換コード
設定手段4には実在する各通貨のすべてを対象と
する総称としての通貨記号に対応するコード(こ
こでは“0001”とする)が設定される。 The figure shows an embodiment of the present invention. In the figure, 1 is a code sending unit, 2 is a code conversion device that converts the code from the sending unit 1 into another code, 3 is a code receiving unit that receives the code from the code conversion device 2, and 4
5 is a replacement code setting means for setting a code to be converted; 5 is a replacement code setting means for replacing a replacement code; 6 is a code sending signal from the code sending section 1 and a code sending signal from the replacement code setting means 4; A comparator 7 compares the signals and outputs a comparison signal, and 7 is a selector that supplies the replaced code to the code receiving section 3 if the comparison signal from the comparator 6 indicates a mismatch, and a replacement code if they match. The replaced code setting means 4, replacement code setting means 5, comparator 6, and selector 7 are provided in the code conversion device 2. Now, we will explain how to convert the currency symbol as a generic term into "$". First, a code (here, "0001") corresponding to a currency symbol as a generic name for all existing currencies is set in the replacement code setting means 4.
置換コード設定手段5には実在する通貨記号に
対応するコード(この場合は通貨記号“$”のコ
ード“0100”)が設定される。 A code corresponding to an existing currency symbol (in this case, the code "0100" for the currency symbol "$") is set in the replacement code setting means 5.
次に動作を説明する。コード送出部1からは、
総称される通貨記号だけでなくいろいろなデータ
を含むコードも送出される。さて、通貨すべてを
対象とする総称としての通貨記号“0001”がコー
ド送出信号として送出されたとする。比較器6は
該コード送出信号とあらかじめ設定されている被
置換コード設定手段4からの信号“0001”を比較
する。このとき両信号は同りなので比較器6は一
致を示している比較結果信号をセレクト器7に出
す。一致を示していることによつて、セレクト器
7は置換コード設定手段4に設定されているコー
ド“0100”をコード受信部3に送出する。 Next, the operation will be explained. From the code sending unit 1,
In addition to the generic currency symbol, codes containing various data are also sent. Now, suppose that the currency symbol "0001", which is a general term for all currencies, is sent as a code sending signal. The comparator 6 compares the code sending signal with a preset signal "0001" from the replaced code setting means 4. At this time, since both signals are the same, the comparator 6 outputs a comparison result signal indicating a match to the selector 7. By indicating a match, the selector 7 sends the code "0100" set in the replacement code setting means 4 to the code receiving section 3.
尚、コード受信部3はプリンタに接続されてお
り、コード“0100”に対応する通貨記号“$”を
出力する。次にコード送出部1から出力されたコ
ード送出信号が、“0001”以外のコード、たとえ
ば“1111”を示していたとする。 Note that the code receiving section 3 is connected to a printer and outputs the currency symbol "$" corresponding to the code "0100". Next, assume that the code sending signal output from the code sending unit 1 indicates a code other than "0001", for example, "1111".
比較器6は該コード送出信号と、被置換コード
設定手段4からの信号を比較し、不一致であるこ
とを示す比較結果信号をセレクト器7へ送出す
る。セレクト器7では、上記コード送出部1のコ
ードと被置換設定手段4からのコードとが一致し
ないという信号を受けたから、コード送出部1か
らのコードすなわち“1111”をそのままコード受
信部3へ送出する。 The comparator 6 compares the code sending signal with the signal from the replaced code setting means 4, and sends a comparison result signal indicating a mismatch to the selector 7. Since the selector 7 receives a signal that the code from the code sending section 1 does not match the code from the replaced setting means 4, it sends the code from the code sending section 1, that is, "1111" as it is to the code receiving section 3. do.
したがつて、被置換コード設定手段4に設定さ
れたコード以外がコード送出部から送出されたと
きには、コード受信部3へそのまま送り出される
ことになる。 Therefore, when a code other than the code set in the replaced code setting means 4 is sent from the code sending section, it will be sent as is to the code receiving section 3.
(vii) 発明の効果
以上、詳細に説明したように、本発明のコード
変換装置を用いれば、通貨コードを扱うプログラ
ムをコードが変わるごとに変えることもなくな
る。(vii) Effects of the Invention As explained above in detail, by using the code conversion device of the present invention, it is no longer necessary to change the program that handles currency codes every time the code changes.
すなわち、プログラマからみれば国別に意識す
ることなく、単に総称の通貨コードのプログラム
を組んでおけばよいので、国別にそれぞれ組む必
要がなくなりプログラム作成が容易になる。尚、
本発明は、通貨記号のすべてを対象とする総象コ
ードを用いているが、特別な総象コードのかわり
に通貨記号たとえば“¥”のコードを仮りに使用
しても何らさしつかえない。さらに、本発明によ
れば国内向け(通貨記号“¥”扱いのプログラ
ム)を簡単に各国向け装置とすることが可能とな
る。 In other words, from the programmer's point of view, it is sufficient to simply create a program for the generic currency code without being aware of each country, which simplifies program creation since there is no need to program each country individually. still,
Although the present invention uses a generic code covering all currency symbols, there is no harm in using a code for a currency symbol, such as "\", instead of a special generic code. Further, according to the present invention, it is possible to easily convert a program for domestic use (a program that handles the currency symbol "¥") into a device for use in other countries.
図は本発明実施例である。図において、1はコ
ード送出部、2はコード変換装置、3はコード受
信部、4は被置換コード設定手段、5は置換コー
ド設定手段、6は比較器、7はセレクト器であ
る。
The figure shows an embodiment of the present invention. In the figure, 1 is a code sending section, 2 is a code conversion device, 3 is a code receiving section, 4 is a replaced code setting means, 5 is a replacement code setting means, 6 is a comparator, and 7 is a selector.
Claims (1)
送出されたコード送出信号を受信するコード受信
部との間に設けられるコード変換装置において、
置換の対象となるコードを設定する被置換コード
設定手段、置換コードを設定するための置換コー
ド設定手段、上記コード送出部からのコード送出
信号と被置換コード設定手段からの信号とを比較
し、比較結果信号を出力する比較器、さらに該比
較器からの比較結果信号が不一致を示しているな
らばコード送出部からのコード信号を、一致を示
しているならば置換コード設定手段からのコード
信号を前記コード受信部に供給するセレクト器と
を設けたことを特徴とするコード変換装置。 2 上記置換コード設定手段に実在する通貨の1
つに対応する任意通貨記号を示すコードを設定
し、被置換コード設定手段に実在する各通貨のす
べてを対象とする総称としての通貨記号に対応す
るコードを設定するようにしたことを特徴とする
特許請求の範囲第1項記載のコード変換装置。[Scope of Claims] 1. A code conversion device provided between a sending section that sends out a code signal and a code receiving section that receives a code sending signal sent out from the sending section,
Replacement code setting means for setting a code to be replaced, replacement code setting means for setting a replacement code, comparing a code sending signal from the code sending section with a signal from the replaced code setting means, A comparator that outputs a comparison result signal, and if the comparison result signal from the comparator indicates a mismatch, a code signal from the code sending unit, and if it indicates a match, a code signal from the replacement code setting means. a selector for supplying the code to the code receiving section. 2. 1 of the currencies that actually exist in the replacement code setting means above.
A code indicating an arbitrary currency symbol corresponding to the currency symbol is set, and a code corresponding to the currency symbol as a generic term covering all of the existing currencies is set in the replaced code setting means. A code conversion device according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21366781A JPS58115542A (en) | 1981-12-29 | 1981-12-29 | Code converting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21366781A JPS58115542A (en) | 1981-12-29 | 1981-12-29 | Code converting device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58115542A JPS58115542A (en) | 1983-07-09 |
| JPS6246015B2 true JPS6246015B2 (en) | 1987-09-30 |
Family
ID=16642959
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21366781A Granted JPS58115542A (en) | 1981-12-29 | 1981-12-29 | Code converting device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58115542A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0427809U (en) * | 1990-07-02 | 1992-03-05 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4953343A (en) * | 1972-09-26 | 1974-05-23 | ||
| JPS5667427U (en) * | 1979-10-30 | 1981-06-04 |
-
1981
- 1981-12-29 JP JP21366781A patent/JPS58115542A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0427809U (en) * | 1990-07-02 | 1992-03-05 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58115542A (en) | 1983-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8566806B2 (en) | Command-line data-type discovery and conversion | |
| US4680732A (en) | Interface circuit for connecting peripheral equipment to a computer terminal | |
| JPS6246015B2 (en) | ||
| US5838971A (en) | Process for implementing dynamic data types in distributed computing networks using an OSF/DCE platform | |
| US5625843A (en) | Audio data input device for multi-media computer | |
| US6430631B1 (en) | Electronic circuit for the conversion of data | |
| JPH0561745A (en) | Transforming device for format | |
| JP3113146B2 (en) | Key switch control device | |
| JPH0746335B2 (en) | Command data processing method | |
| JPS5864529A (en) | Computer system input/output control device | |
| JP3211625B2 (en) | Circuit device with built-in digital-analog converter | |
| JP2803519B2 (en) | Electronic funds transfer transaction system | |
| JPH0351005B2 (en) | ||
| JPH0567008A (en) | Integrated office automation system | |
| JP2528132B2 (en) | Data input method | |
| JPH04216123A (en) | Printing control system for network system | |
| JPS60167561A (en) | Facsimile device | |
| JPH03136141A (en) | Multiple interrupting device | |
| JPH0476725A (en) | Printing device | |
| JPH0314064A (en) | Code conversion processing system | |
| JPH04246754A (en) | Peripheral equipment identification system | |
| KR20010011682A (en) | data communication method with different processor | |
| JPH0561616A (en) | Printer control system | |
| JPH02114721A (en) | Digital-to-analog converter | |
| JPH0410020A (en) | Keyboard system |