JPH07325703A - Data converting device/method - Google Patents

Data converting device/method

Info

Publication number
JPH07325703A
JPH07325703A JP6118767A JP11876794A JPH07325703A JP H07325703 A JPH07325703 A JP H07325703A JP 6118767 A JP6118767 A JP 6118767A JP 11876794 A JP11876794 A JP 11876794A JP H07325703 A JPH07325703 A JP H07325703A
Authority
JP
Japan
Prior art keywords
data
conversion rule
conversion
common
output device
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
JP6118767A
Other languages
Japanese (ja)
Inventor
Shinichi Egami
慎一 江上
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP6118767A priority Critical patent/JPH07325703A/en
Publication of JPH07325703A publication Critical patent/JPH07325703A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To instantaneously deal with a new output device in the case introducing a new input device by interpreting the proper conversion rules which are different between the output devices and converting the data based on a conversion rule that is produced from the interpreted rules and a common rule. CONSTITUTION:The intermediate data 101 is produced just by collecting the data to be plotted and unusable to the control of a photoplotter as it is. When the data 101 is outputted by a photoplotter, the data 101 of the converting side and the proper conversion rule data 102 are designated by the operations of a keyboard. Thus a data converter 103 interprets the data 102 at a conversion rule interpreting part 103a and secures the adjustment to the common conversion rule stored in a common conversion rule storage part 103b. Then the converter 103 restores the data 102 into a conversion rule corresponding to the photoplotter. Based on this restored conversion rule, the data 101 is converted into the photoplotter control data. This control data is inputted to the photoplotter, and the data 101 is outputted from the photoplotter.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データを出力装置に入
力可能なデータに変換するためのデータ変換装置及びデ
ータ変換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device and a data conversion method for converting data into data that can be input to an output device.

【0002】[0002]

【従来の技術】図3は、従来のデータ変換装置を説明す
る図である。図に示すように、従来のデータ変換装置3
02は変換規則部302aとデータ変換処理部302c
とからなり、異なる出力装置(303、305)ごとに
別々に設けられていた。これは、出力装置が異なると変
換規則が異なるためである。上記データ変換装置は、例
えば、コンピュータを用いた一つのシステムの中にプロ
グラムとして組み込まれることにより構成され、この場
合、所定のデータ301を所定の出力装置303にて出
力させるべく端末から指示すると、このデータ301が
システム内の変換装置302に当たる部分で出力装置3
03に対応する変換規則に基づいて変換され、出力装置
303にその変換されたデータが入力される。
2. Description of the Related Art FIG. 3 is a diagram for explaining a conventional data converter. As shown in the figure, the conventional data conversion device 3
02 is a conversion rule unit 302a and a data conversion processing unit 302c
And each of the different output devices (303, 305) is provided separately. This is because different output devices have different conversion rules. The data conversion device is configured, for example, by being installed as a program in one system using a computer, and in this case, when a terminal instructs to output the predetermined data 301 with a predetermined output device 303, This data 301 corresponds to the conversion device 302 in the system and is the output device 3
The converted data is converted based on the conversion rule corresponding to 03, and the converted data is input to the output device 303.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来のデータ変換装置では、異なる出力装置毎に異な
るデータ変換装置が必要となり、装置が増えるといった
問題や、プログラムを組む場合でも、出力装置ごとに専
用の変換プログラムを作成する手間がかかり、変換プロ
グラムのバージョンアップを行なう場合も、すべての変
換プログラムを変更しなければならないという問題があ
った。
However, in the above-mentioned conventional data conversion device, a different data conversion device is required for each different output device, and there is a problem that the number of devices increases, and even when a program is built up, each output device has a different problem. There is a problem that it takes time and effort to create a dedicated conversion program, and all conversion programs must be changed even when upgrading the version of the conversion program.

【0004】本発明は、以上の問題を解決することを目
的とする。
The present invention aims to solve the above problems.

【0005】[0005]

【課題を解決するための手段】本発明のデータ変換装置
は、データを所定の出力装置から出力するために、該出
力装置に入力できる形に前記データを変換するためのデ
ータ変換装置であって、 所定の複数の出力装置に共通
しているデータ変換規則を記憶している共通変換規則記
憶部と、外部から入力される上記複数の出力装置間で異
なっている固有変換規則を解釈する変換規則解釈部と、
該変換規則解釈部で解釈された固有変換規則と前記共通
変換規則部に記憶されている共通変換規則とを合わせて
外部から入力された変換規則に対応する出力装置のため
の完全なデータ変換規則を作り、これに基づいてデータ
を変換するデータ変換処理部とを有してなることを特徴
とする。
A data conversion device of the present invention is a data conversion device for converting data into a form that can be input to a predetermined output device in order to output the data from the predetermined output device. , A common conversion rule storage unit that stores data conversion rules that are common to a plurality of predetermined output devices, and a conversion rule that interprets unique conversion rules that differ between the plurality of output devices that are input from the outside. Interpretation department,
A complete data conversion rule for an output device corresponding to a conversion rule input from the outside by combining the unique conversion rule interpreted by the conversion rule interpretation unit and the common conversion rule stored in the common conversion rule unit. And a data conversion processing unit for converting data based on the above.

【0006】また、本発明のデータ変換方法は、データ
を所定の出力装置から出力するために、該出力装置に入
力できる形に前記データを変換するためのデータ変換方
法であって、所定の複数の出力装置にそれぞれ対応する
変換規則を、すべてに共通している共通変換規則部と互
いに異なる固有変換規則部とにわけ、固有変換規則部を
解釈する変換規則解釈部と共通変換規則部と前記変換規
則解釈部で解釈された固有変換規則部と前記共通変換規
則部とから特定の出力装置に対応する変換規則を復元
し、これに基づいてデータを変換する所定の複数の装置
に共通の変換手段を設け、特定の出力装置に入力できる
形にデータを変換する場合にはその出力装置に固有の固
有変換規則部を上記変換手段に入力することを特徴とす
る。
The data conversion method of the present invention is a data conversion method for converting the data into a form that can be input to the output device in order to output the data from the predetermined output device. The conversion rules corresponding to the respective output devices are divided into a common conversion rule part that is common to all and a unique conversion rule part different from each other, and a conversion rule interpretation part that interprets the unique conversion rule part, a common conversion rule part, and A conversion rule common to a plurality of predetermined devices that restores a conversion rule corresponding to a specific output device from the unique conversion rule part interpreted by the conversion rule interpretation part and the common conversion rule part, and converts data based on this. When converting the data into a form that can be input to a specific output device, a unique conversion rule part specific to the output device is input to the conversion device.

【0007】[0007]

【作用】本発明は、データを出力する装置が複数存在す
る場合、異なる出力装置においても一般に変換規則は類
似しており、さらに、各装置間で異なる規則である固有
変換規則は簡略なものとできるということに着目するこ
とでなされたものである。 本発明のデータ変換装置に
よれば、特定の出力装置によりデータを出力しようとす
る場合、該特定の出力装置に対応した固有変換規則をデ
ータ変換装置に入力する。すると、変換規則解釈部によ
りこの固有変換規則が内部の共通変換規則と整合性が取
れるように処理され、データ変換処理部により共通変換
規則と前記処理された固有変換規則とから特定の出力装
置に対応する変換規則が作られ、これに基づいてデータ
が変換されて上記特定の出力装置に入力可能データが作
成される。
According to the present invention, when there are a plurality of devices that output data, the conversion rules are generally similar even in different output devices, and the unique conversion rules, which are different rules between the devices, are simple. It was made by focusing on the fact that it can be done. According to the data converter of the present invention, when data is to be output by a specific output device, a unique conversion rule corresponding to the specific output device is input to the data converter. Then, the conversion rule interpretation unit processes this unique conversion rule so as to be consistent with the internal common conversion rule, and the data conversion processing unit outputs the common conversion rule and the processed unique conversion rule to a specific output device. Corresponding conversion rules are created and the data is converted based on this to create inputtable data for the particular output device.

【0008】また、本発明のデータ変換方法によれば、
固有変換規則部を抽出したのち復元するので、変換機能
を損なうことがなく共通の変換手段により複数の出力装
置に対応できる。
According to the data conversion method of the present invention,
Since the unique conversion rule part is extracted and then restored, the common conversion means can be applied to a plurality of output devices without impairing the conversion function.

【0009】[0009]

【実施例】以下、図面を参照して実施例を説明する。Embodiments Embodiments will be described below with reference to the drawings.

【0010】図1は、本実施例のデータ変換装置の概略
構成図である。本例は表示装置とキーボードからなる入
力装置と演算及び記憶を行う本体を備えてなる電気系C
AD装置に関し、出力装置はフォトプロッタである。図
において、データ変換装置103は、変換規則解釈部1
03aと共通変換規則記憶部103bとデータ変換処理
部103cとからなっている。本実施例では、これら各
部の機能がプログラム化されてCAD装置内部に組み込
まれることで、上記本体内部にデータ変換装置が構成さ
れている。また、変換元となるデータは、そのままでは
フォトプロッタ制御には使用できない単にプロットする
データをまとめただけの中間データ101であり、変換
後のデータは、フォトプロッタ用制御データ104であ
る。尚、本実施例では本発明のデータ変換方法が用いら
れている。
FIG. 1 is a schematic block diagram of a data conversion apparatus of this embodiment. This example is an electric system C including an input device including a display device and a keyboard, and a main body for performing calculation and storage.
Regarding the AD device, the output device is a photoplotter. In the figure, a data conversion device 103 is a conversion rule interpretation unit 1
03a, a common conversion rule storage unit 103b, and a data conversion processing unit 103c. In this embodiment, the functions of each of these units are programmed and incorporated into the CAD device to form a data conversion device inside the main body. Further, the data to be converted is intermediate data 101 which is a collection of data to be plotted, which cannot be used for photoplotter control as it is, and the converted data is photoplotter control data 104. In this embodiment, the data conversion method of the present invention is used.

【0011】本実施例の装置を用いた場合の操作につい
て説明する。中間データ101を第1のフォトプロッタ
で出力する場合、まずキーボード操作によりデータ変換
プログラムの実行を指示する。このプログラムはデータ
変換装置103と等価であり、上記変換規則解釈部10
3aと共通変換規則記憶部103bとデータ変換処理部
103cの機能をプログラム化したプログラムから構成
されるものである。データ変換プログラムを実行する
と、変換元のデータ101、使用する固有変換規則デー
タ102を指定するように表示装置上で促してくるの
で、キーボード操作によりこれらを指定し入力する。
The operation when the apparatus of this embodiment is used will be described. When outputting the intermediate data 101 with the first photoplotter, first, the execution of the data conversion program is instructed by the keyboard operation. This program is equivalent to the data conversion device 103, and the conversion rule interpretation unit 10 is used.
3a, the common conversion rule storage unit 103b, and the data conversion processing unit 103c. When the data conversion program is executed, the data 101 of the conversion source and the unique conversion rule data 102 to be used are prompted on the display device, so these are specified and input by the keyboard operation.

【0012】これによって、データ変換装置103内部
おいて、変換規則解釈部103aで指定された固有変換
規則102が解釈されて、共通変換規則記憶部103b
に記憶されている共通変換規則との整合性が取られ、デ
ータ変換処理部103によってフォトプロッタに対応す
る変換規則が復元され、この規則に基づいて変換元デー
タ101がフォトプロッタ用制御データ104に変換さ
れる。これが、フォトプロッタに入力されてフォトプロ
ッタにより中間データが出力される。
As a result, inside the data conversion device 103, the unique conversion rule 102 designated by the conversion rule interpretation unit 103a is interpreted, and the common conversion rule storage unit 103b.
The data conversion processing unit 103 restores the conversion rule corresponding to the photo plotter, and the conversion source data 101 is converted into the photo plotter control data 104 based on this rule. To be converted. This is input to the photo plotter, and the intermediate data is output by the photo plotter.

【0013】異なる種類の第2のフォトプロッタに上記
中間データを出力させる場合には、上記の操作中の使用
する固有変換規則データを指定するように表示装置上で
促してきた際に、上記固有変換規則データとは別のこの
フォトプロッタ固有の固有変換規則データを入力する。
これによって、同様に第2のフォトプロッタから中間デ
ータ101が出力される。
When the intermediate data is output to a different type of second photoplotter, when the user is prompted on the display device to specify the unique conversion rule data to be used during the above operation, the unique data is displayed. The unique conversion rule data unique to this photo plotter other than the conversion rule data is input.
Thereby, the intermediate data 101 is similarly output from the second photo plotter.

【0014】次に、上記で用いた固有変換規則データに
ついて説明する。図2は、上記フォトプロッタに対応す
る固有変換規則データを示す図である。図中、aは第1
のフォトプロッタに対応する固有変換規則データ、bは
第2のフォトプロッタに対応する固有変換規則データを
示す。固有変換規則データはテキストファイルであっ
て、1行に変換規則項目とその設定値を並べて記述して
あり、約50行からなる。aでは、1行目から順に、文
字コードはASCIIコード、座標系は絶対座標系、単
位系はミリメートル単位系、小数点を省略しない、整数
部は5桁、少数部は3桁であることをデータ化したもの
であり、bでは、1行目から順に、文字コードはEBC
DICコード、座標系は相対座標系、単位系はインチ単
位系、小数点を省略する、整数部は3桁、少数部は6桁
であることをデータ化したものである。
Next, the unique conversion rule data used above will be described. FIG. 2 is a diagram showing unique conversion rule data corresponding to the photo plotter. In the figure, a is the first
The unique conversion rule data corresponding to the photo plotter, and the unique conversion rule data b corresponding to the second photo plotter. The unique conversion rule data is a text file, and conversion rule items and their setting values are described side by side in one line, and consist of about 50 lines. In a, in order from the first line, character code is ASCII code, coordinate system is absolute coordinate system, unit system is millimeter unit system, decimal point is not omitted, integer part is 5 digits, decimal part is 3 digits In b, the character code is EBC in order from the first line.
The DIC code, the coordinate system is a relative coordinate system, the unit system is an inch unit system, the decimal point is omitted, the integer part has 3 digits, and the decimal part has 6 digits.

【0015】このように、固有変換規則データ102に
は、フォトプロッタ用制御データにおける座標系、単位
系等の規則が記述される。異なるフォトプロッタにそれ
ぞれ対応する変換規則を共通変換規則と固有変換規則に
わけても、異なる部分は少ししか異なっていないため
に、このような変換規則データは上記のような任意のテ
キストエディタにより容易に作成できるものとなり、操
作性を低下させる事なく複数のフォトプロッタに対応で
きるデータ変換装置を作製できる。尚、本発明は、複数
の出力装置間で変換規則は異なるが、その相違点がわず
かであり変換規則が類似している場合に特に有効であ
る。
As described above, the unique conversion rule data 102 describes rules such as the coordinate system and the unit system in the photoplotter control data. Even if the conversion rules corresponding to different photoplotters are divided into common conversion rules and unique conversion rules, the different parts are slightly different, so such conversion rule data can be easily created by any text editor as described above. As a result, it is possible to manufacture a data conversion device that can handle a plurality of photoplotters without deteriorating operability. The present invention is particularly effective when a plurality of output devices have different conversion rules, but the differences are slight and the conversion rules are similar.

【0016】[0016]

【発明の効果】本発明によれば、異なる固有変換規則を
用いるだけで複数の出力装置に対応できるデータ変換装
置及びデータ変換方法を提供できる。また、固有変換規
則は使用者によって容易に作成可能であるので、新しい
出力装置を導入しても、即座に対応できる。また、変換
装置の機能向上を行なう場合も、一つのデータ変換装置
を変更するだけで複数の出力装置に対応できるので、短
期間に行なうことができる。
According to the present invention, it is possible to provide a data conversion device and a data conversion method capable of supporting a plurality of output devices only by using different unique conversion rules. Further, since the unique conversion rule can be easily created by the user, even if a new output device is introduced, it can be immediately dealt with. Further, even when the function of the conversion device is improved, it is possible to deal with a plurality of output devices by changing only one data conversion device, so that it can be performed in a short period of time.

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

【図1】図1は、本実施例のデータ変換装置の概略構成
図である。
FIG. 1 is a schematic configuration diagram of a data conversion apparatus of this embodiment.

【図2】図2は、上記フォトプロッタに対応する固有変
換規則データを示す図である。
FIG. 2 is a diagram showing unique conversion rule data corresponding to the photo plotter.

【図3】図3は、従来のデータ変換装置を説明する図で
ある。
FIG. 3 is a diagram illustrating a conventional data conversion device.

【符号の説明】[Explanation of symbols]

101 中間データ 102 固有変換規則データ 103 データ変換装置 103a 変換規則解釈部 103b 共通変換規則記憶部 103c データ変換処理部 101 intermediate data 102 unique conversion rule data 103 data conversion device 103a conversion rule interpretation unit 103b common conversion rule storage unit 103c data conversion processing unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データを所定の出力装置から出力するた
めに、該出力装置に入力できる形に前記データを変換す
るためのデータ変換装置であって、 所定の複数の出力装置に共通しているデータ変換規則を
記憶している共通変換規則記憶部と、 外部から入力される上記複数の出力装置間で異なってい
る固有変換規則を解釈する変換規則解釈部と、 該変換規則解釈部で解釈された固有変換規則と前記共通
変換規則部に記憶されている共通変換規則とを合わせて
外部から入力された変換規則に対応する出力装置のため
の完全なデータ変換規則を作り、これに基づいてデータ
を変換するデータ変換処理部とを有してなることを特徴
とするデータ変換装置。
1. A data converter for converting the data into a form that can be input to the output device in order to output the data from the predetermined output device, which is common to a plurality of predetermined output devices. A common conversion rule storage unit that stores data conversion rules, a conversion rule interpretation unit that interprets unique conversion rules that differ between the plurality of output devices that are input from the outside, and a conversion rule interpretation unit that interprets the conversion rules. The specific conversion rule and the common conversion rule stored in the common conversion rule section are combined to form a complete data conversion rule for the output device corresponding to the conversion rule input from the outside, and the data is converted based on this. And a data conversion processing unit for converting the data.
【請求項2】 データを所定の出力装置から出力するた
めに、該出力装置に入力できる形に前記データを変換す
るためのデータ変換方法であって、 所定の複数の出力装置にそれぞれ対応する変換規則を、
すべてに共通している共通変換規則部と互いに異なる固
有変換規則部とにわけ、 固有変換規則部を解釈する変換規則解釈部と共通変換規
則部と前記変換規則解釈部で解釈された固有変換規則部
と前記共通変換規則部とから特定の出力装置に対応する
変換規則を復元し、これに基づいてデータを変換する所
定の複数の装置に共通の変換手段を設け、 特定の出力装置に入力できる形にデータを変換する場合
にはその出力装置に固有の固有変換規則部を上記変換手
段に入力することを特徴とするデータ変換方法。
2. A data conversion method for converting the data into a form that can be input to the output device in order to output the data from the predetermined output device, the conversion method corresponding to each of the plurality of predetermined output devices. The rules
A common conversion rule part that is common to all and a unique conversion rule part that is different from each other are divided into a conversion rule interpretation part that interprets the unique conversion rule part, a common conversion rule part, and a unique conversion rule interpreted by the conversion rule interpretation part. Section and the common conversion rule section, restores a conversion rule corresponding to a specific output device, and based on this, a predetermined plurality of devices are provided with a common conversion means and can be input to a specific output device. A data conversion method characterized in that, when converting data into a form, a specific conversion rule part specific to the output device is input to the conversion means.
JP6118767A 1994-05-31 1994-05-31 Data converting device/method Pending JPH07325703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6118767A JPH07325703A (en) 1994-05-31 1994-05-31 Data converting device/method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6118767A JPH07325703A (en) 1994-05-31 1994-05-31 Data converting device/method

Publications (1)

Publication Number Publication Date
JPH07325703A true JPH07325703A (en) 1995-12-12

Family

ID=14744568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6118767A Pending JPH07325703A (en) 1994-05-31 1994-05-31 Data converting device/method

Country Status (1)

Country Link
JP (1) JPH07325703A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209562A (en) * 2000-01-27 2001-08-03 Hitachi Ltd System of deducing conversion rules
JP2017004139A (en) * 2015-06-08 2017-01-05 株式会社日立製作所 Format conversion management device and format conversion management method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209562A (en) * 2000-01-27 2001-08-03 Hitachi Ltd System of deducing conversion rules
JP2017004139A (en) * 2015-06-08 2017-01-05 株式会社日立製作所 Format conversion management device and format conversion management method

Similar Documents

Publication Publication Date Title
JPS5816341A (en) Editing device of sentence
JPH07325703A (en) Data converting device/method
JPH09230915A (en) Programming device
JP2900071B2 (en) Programming device for programmable controller
JP2744528B2 (en) Keyboard input device
JPH0194417A (en) Code input device
JPH05274077A (en) Keyboard
JPH01273091A (en) Scroll display system for terminal screen
JPH01237816A (en) Method for controlling keyboard device
JPH07121479A (en) Processor for facilitating system operation
JPH04353933A (en) Program execution control language conversation device
JP2010117930A (en) Fraction display device
JPH04130571A (en) Numerical arithmetic system
JPS60196835A (en) Keyboard device
JPH03113566A (en) Character converter
JPH03147127A (en) Job design supporting system
JPS62214423A (en) Document editing device
JPH02105279A (en) Input system for assembler source program
JPH05135016A (en) Device for incorporating dictionary exclusive to user in document preparing device and method therefor
JPH05216822A (en) Command input system in computer
JPH04290103A (en) Numerical controller
JPH07244550A (en) Key sequence setting device
JPS62266650A (en) External character generating system for document preparing device
JPH0357064A (en) Documentation device
JPS63290762A (en) Character processor