JPH01280825A - Data producing device - Google Patents

Data producing device

Info

Publication number
JPH01280825A
JPH01280825A JP11014188A JP11014188A JPH01280825A JP H01280825 A JPH01280825 A JP H01280825A JP 11014188 A JP11014188 A JP 11014188A JP 11014188 A JP11014188 A JP 11014188A JP H01280825 A JPH01280825 A JP H01280825A
Authority
JP
Japan
Prior art keywords
data
file
input
type
definition file
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
JP11014188A
Other languages
Japanese (ja)
Inventor
Tetsuyuki Tobiyama
飛山 哲幸
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11014188A priority Critical patent/JPH01280825A/en
Publication of JPH01280825A publication Critical patent/JPH01280825A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To realize the uniform input of data regardless of the conversion of type of the data for production by a data producer, the write address and the array of boundaries intrinsic to a device containing a data file by providing a structure definition file to a data producing device. CONSTITUTION:The structure of data is edited and decomposed by reference to a structure defining file 8 of a data producing device 10. Thus the desired data structure can be easily obtained. When plural types of data structures are required, the file 8 is prepared for each desired data structure. Then the use of a specific file 8 is instructed by a data input device 1. Thus a data producer can perform the input of data based on the type of character data regardless of the conversion of type of the data for production, the write address and the array of boundaries intrinsic to a device containing the file 8.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はデータファイルに格納するデータを生成する
データ生成装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data generation device that generates data to be stored in a data file.

[従来の技術] 計算機で処理されるデータの型は例えば文字データ、数
値データに分けられ、数値データは例えば10進形式デ
ータ、固定小数点形式データ、浮動小数点形式データに
分けられ、1o進形式データは例えばゾーン形式データ
、パック形式データに分けられる。
[Prior Art] The types of data processed by computers are divided into, for example, character data and numerical data, and numerical data is divided into, for example, decimal format data, fixed-point format data, and floating-point format data, and decimal format data. For example, the data can be divided into zone format data and pack format data.

データファイルに格納されるデータの型は、そのデータ
を使用するプログラムでファイルがら読み出した型のま
ま使用できるようなデータ構造で格納されている。これ
に対し、データ入力装置がら入力されるデータの型は文
字データであることが多い。
The data type stored in the data file is stored in a data structure that allows the program that uses the data to use the data as it is read from the file. On the other hand, the type of data input from a data input device is often character data.

第2図は従来のデータ生成装置における各部の機能の一
例を示すブロック図で、図において(1)はデータ入力
装置、(2)はデータ生成部、(3)はデータ表示部、
(4)はデータ表示装置、(5)はデータファイル、(
6)はファイル(5)に格納されたデータ、く7)はデ
ータ(6)の構造の一例である。データ生成装置(20
)は(1)。
FIG. 2 is a block diagram showing an example of the functions of each part in a conventional data generation device. In the figure, (1) is a data input device, (2) is a data generation section, (3) is a data display section,
(4) is a data display device, (5) is a data file, (
6) is data stored in file (5), and 7) is an example of the structure of data (6). Data generation device (20
) is (1).

(2)、(3)、(4)で示す機能により構成される。It is composed of the functions shown in (2), (3), and (4).

データ生成部(2)はデータ人力装置(1)から入力さ
れたデータをデータファイル(5)に書き込み、データ
表示部(3)は、データファイル(5)の内容を確認す
るために、データファイル(5)から読み出したデータ
を、データ表示装置く4)に表示する。また通常の場合
、データ入力装置(1)から入力したデータはデータ入
力装置(1)の表示装置に表示されることになる。
The data generation section (2) writes the data input from the data human-powered device (1) into the data file (5), and the data display section (3) writes the data input from the data human-powered device (1) into the data file (5). The data read from (5) is displayed on the data display device (4). Further, in a normal case, data input from the data input device (1) will be displayed on the display device of the data input device (1).

第2図に示すデータ構造(7)はREAL型デー少デー
タ4バイトNTEGER型データ2バイト、CHARA
CTER型データ6バイトの例を示している。
The data structure (7) shown in Figure 2 is REAL type data, small data 4 bytes, NTEGER type data 2 bytes, CHARA
An example of 6 bytes of CTER type data is shown.

ところでデータ入力装置(1)から入力されるデータの
型は一般にCHARACTER型データであり、データ
生成装置(20)には設定するデータのデータ構造にm
集する機能を持っていないため、例えば10進数の10
を生成してデータファイル(5)に格納したい場合、1
6進の00OAを入力しなければならない。また、2.
5というREAL型の浮動小数点形式データを入力する
のはかなり面倒である9データの型を変換する機能をデ
ータ生成装置(20)側に設けたとしても、どの型から
どの型へ変換するかは、その都度データ入力装置から指
示する必要があり、更にデータ生成者がデータのアドレ
スを直接意識しながら入力を行う必要があるので、デー
タファイルが存在するハードウェアとしての機器特有の
境界整列をも考慮する必要があり、構造が複雑になる。
By the way, the type of data input from the data input device (1) is generally CHARACTER type data, and the data generation device (20) has m
For example, the decimal number 10
If you want to generate and store it in data file (5), 1
You must enter hexadecimal 00OA. Also, 2.
It is quite troublesome to input floating point format data of REAL type 5.9 Even if the data generation device (20) is provided with a function to convert the data type, it is difficult to know which type to convert from to which type. , it is necessary to give an instruction from the data input device each time, and furthermore, it is necessary for the data generator to input while being directly aware of the data address. needs to be taken into account, making the structure complex.

[発明が解決しようとする課題] 以上述べたように従来の装置では、プログラムがそのま
ま使用できるようなデータ構造のデータをデータファイ
ルに格納するためには面倒な入力操作を必要とし、これ
を解決するためにデータファイル側にデータ構造を持た
せ、データ生成装置側がそれを解釈する方法も考えられ
るが、この場合、そのデータをアクセスするプログラム
がその構造を理解する必要があり、そのため特別なアク
セスパッケージを用意しなければならないという問題が
ある。
[Problems to be Solved by the Invention] As mentioned above, in conventional devices, in order to store data in a data file in a data structure that can be used by a program as is, a troublesome input operation is required. It is conceivable that the data file side has a data structure and the data generation device side interprets it, but in this case, the program that accesses the data needs to understand the structure, so special access is required. There is a problem of having to prepare a package.

また、生成したデータを表示する場合にも、データ生成
装置側でデータ構造を持ってないために、−律に例えば
16進表示になってしまいデータの切れ目が分からずデ
ータ生成者にとって生成したデータの確認が困難である
という問題点があった。
Also, when displaying the generated data, since the data generation device does not have a data structure, the generated data is typically displayed in, for example, hexadecimal, making it difficult for the data generator to see where the data ends. There was a problem that it was difficult to confirm.

この発明は従来のものにおける上述の課題を解決するた
めになされたもので、データ生成者は例えば文字データ
の型でデータを入力し、生成するためのデータの型変換
や、書き込みアドレスや、データファイルが存在する機
器特有の境界整列を意識することなく、データ入力を行
うことができるデータ生成装置を得ることを目的として
いる。
This invention was made in order to solve the above-mentioned problems in the conventional ones, and the data generator inputs data in the character data type, converts the data type to generate it, writes the write address, and inputs the data. The object of the present invention is to obtain a data generation device that can input data without being aware of the boundary alignment specific to the device in which the file exists.

[課題を解決するための手段] この発明ではデータ生成装置に構造定義ファイルを設け
、データ生成部はこの定義ファイルを参照して入力デー
タを所定のデータ構造に編集し、データ表示部は所定の
データ構造から表示用のデータの型に変換して表示する
こととした。
[Means for Solving the Problems] In the present invention, a structure definition file is provided in the data generation device, the data generation section edits input data into a predetermined data structure by referring to this definition file, and the data display section edits input data into a predetermined data structure. We decided to convert the data structure into a display data type and display it.

[作用] この発明においては、構造定義ファイルを参照してデー
タ構造を編集し、またこれを分解するので、所望のデー
タ構造を生成することが容易になり、複数種類のデータ
構造を必要とするときは、必要なデータ構造ごとに構造
定義ファイルを備え、どの定義ファイルを使用するかを
データ入力装置から指示すればよいことになる。
[Operation] In this invention, a data structure is edited by referring to a structure definition file, and it is also decomposed, so it is easy to generate a desired data structure, which eliminates the need for multiple types of data structures. In such cases, it is sufficient to provide a structure definition file for each required data structure, and to instruct which definition file to use from a data input device.

[実施例] 以下、この発明の実施例を図面を用いて説明する。第1
図はこの発明の一実施例を示すブロック図で、図におい
て第2図と同一符号は同一または相当部分を示し、(8
)は構造定義ファイル、(10)はこの発明によるデー
タ生成装置である。
[Examples] Examples of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing an embodiment of the present invention. In the figure, the same reference numerals as in FIG. 2 indicate the same or corresponding parts.
) is a structure definition file, and (10) is a data generation device according to the present invention.

第1図の装置において第2図の装置と同一符号の部分は
同様に動作するので重複した説明は省略する。
In the apparatus shown in FIG. 1, parts having the same reference numerals as those in the apparatus shown in FIG. 2 operate in the same manner, and therefore, redundant explanation will be omitted.

データ生成部(2)はyi造定義ファイル(8)により
生成すべきデータの構造を理解し、データ入力装置(1
)から入力されたデータをデータ構造(7)に合わせて
編集し、データファイル(5)のデータ(6)として書
き込む。また、データ表示部(3)は生成されたデータ
(6)を構造定義ファイル(8)によりデータI?Ia
を理解し、データの型に合わせてデータ表示装置(4)
に表示する。
The data generation unit (2) understands the structure of the data to be generated using the yi construction definition file (8), and the data input device (1)
) is edited to match the data structure (7) and written as data (6) in the data file (5). Further, the data display section (3) displays the generated data (6) as data I? by the structure definition file (8). Ia
Understand the data display device (4) according to the data type.
to be displayed.

データ生成者から見ると、例えばデータ構造く7)のデ
ータを生成する場合、−律に文字データとして2.5,
10.ABCDEFと入力すれば、データ構造(7)に
編集されたデータ(6)が生成され、又、データ表示部
(3)よりデータく6)がその構造に合わせて、例えば
2.5,10.ABCDEFと表示されるため理解が容
易になり、また途中のデータ、例えばデータ構造(7)
で示すI NTEGER*2にデータを生成する場合に
も、「2番目のデータの10を」というような指示をデ
ータ入力装置(1)から与えることができ、そのデータ
のアドレスや境界整列といったものを意識することなく
入力することができる。
From the perspective of a data generator, for example, when generating data with data structure 7), it is generally assumed that character data is 2.5,
10. If you input ABCDEF, the data (6) edited in the data structure (7) will be generated, and the data (6) from the data display section (3) will be changed to 2.5, 10, etc. according to the structure, for example. It is easy to understand because it is displayed as ABCDEF, and intermediate data, such as data structure (7)
When generating data in I NTEGER*2 shown in , it is possible to give an instruction such as "10 of the second data" from the data input device (1), and to input information such as the address and boundary alignment of the data. can be entered without being conscious of it.

さらに、色々な構造を持ったデータが複数存在する場合
でも、構造定義ファイルを複数種類持ち、何番目の構造
定義であるかを指定すればよく、データ構造(7)がデ
ータの中に繰り返し存在するような場合でも、何番目の
データ構造であるかを指定すればよい。
Furthermore, even if there are multiple types of data with various structures, it is sufficient to have multiple types of structure definition files and specify the number of structure definitions. Even in such cases, you only need to specify the number of the data structure.

[発明の効果] 以上のようにこの発明によれば、データ生成装置に構造
定義ファイルを備えたので、データ生成者が生成するた
めのデータの型変換や、書き込みアドレスや、データフ
ァイルが存在する装置固有の境界整列を意識することな
く、−律に、例えば文字データという型のデータで、デ
ータの生成や読み取りを行うことができるという効果が
ある。
[Effects of the Invention] As described above, according to the present invention, since the data generation device is equipped with a structure definition file, data type conversion, write addresses, and data files for data generation by a data generator can be performed. This has the advantage of being able to generate and read data, for example, character data, without being aware of device-specific boundary alignment.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は従来の装置の機能を示すブロック図。 (1)はデータ入力装置、(2)はデータ生成部、(3
)はデータ表示部、(4)はデータ表示装置、(5)は
データファイル、(6)はデータ、(7)はデータ構造
、(8)は構造定義ファイル、(10)はデータ生成装
置。 なお、各図中同一符号は同一または相当部分を示すもの
とする。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing the functions of a conventional device. (1) is a data input device, (2) is a data generation unit, (3
) is a data display unit, (4) is a data display device, (5) is a data file, (6) is data, (7) is a data structure, (8) is a structure definition file, and (10) is a data generation device. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 データ入力装置から入力されたデータをデータファイル
に書き込むためのデータ生成部と、上記データファイル
の内容をデータ表示装置に表示するためのデータ表示部
とを有するデータ生成装置において、 上記データファイルに記憶されるデータの構造を定義し
た構造定義ファイルを、必要とするデータの構造ごとに
作成して記憶する手段、 上記データ入力装置から入力した型のデータを、上記デ
ータ生成部が上記構造定義ファイルを参照して上記デー
タファイルに書き込むデータ構造に変換して上記データ
ファイルに書き込む手段、上記データファイルから読み
出されたデータを上記データ表示部が上記構造定義ファ
イルを参照して上記データ入力装置から入力した型のデ
ータに変換して上記データ表示装置に表示する手段、を
備えたことを特徴とするデータ生成装置。
[Claims] A data generation device comprising a data generation section for writing data input from a data input device into a data file, and a data display section for displaying the contents of the data file on a data display device. , means for creating and storing a structure definition file defining the structure of data to be stored in the data file for each required data structure; refers to the structure definition file and converts it into a data structure to be written to the data file, and the data display section refers to the structure definition file to convert the data read from the data file. A data generation device characterized by comprising means for converting into data of a type input from the data input device and displaying the converted data on the data display device.
JP11014188A 1988-05-06 1988-05-06 Data producing device Pending JPH01280825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11014188A JPH01280825A (en) 1988-05-06 1988-05-06 Data producing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11014188A JPH01280825A (en) 1988-05-06 1988-05-06 Data producing device

Publications (1)

Publication Number Publication Date
JPH01280825A true JPH01280825A (en) 1989-11-13

Family

ID=14528073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11014188A Pending JPH01280825A (en) 1988-05-06 1988-05-06 Data producing device

Country Status (1)

Country Link
JP (1) JPH01280825A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015075917A (en) * 2013-10-09 2015-04-20 ファナック株式会社 Control device executing control program including floating-point arithmetic instruction for controlling machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015075917A (en) * 2013-10-09 2015-04-20 ファナック株式会社 Control device executing control program including floating-point arithmetic instruction for controlling machine
US9405505B2 (en) 2013-10-09 2016-08-02 Fanuc Corporation Control device for executing control program including floating point operation command for controlling machine and method of converting floating point parameter in control program

Similar Documents

Publication Publication Date Title
JPS6145299A (en) Waveform display device
JPS6290753A (en) Documentation device
JPH01280825A (en) Data producing device
JP2000250909A (en) Device and method for displaying structured document
JPS5687155A (en) Software assembling system
JPS60134282A (en) System screen display system
JP3663840B2 (en) Graph processing device
JPH0259818A (en) Simple production system for tree structure
JPS6275497A (en) tone split device
JPS6051950A (en) Program outputting system
JP3422863B2 (en) CAD equipment
JPS6184721A (en) System information input system
JP3461052B2 (en) Information processing system
JPH03137727A (en) Editor with program explanation file generator function
JPH04205347A (en) Graph generator
JPS62203245A (en) Error message output system
JPH02304674A (en) Business form generating method
Savadovsky Object Oriented Programming in C++
JPH04373053A (en) Input/output device for computer
JPS6255729A (en) Designing device for processing procedure
JPH11184688A (en) Operation screen production data conversion device and method therefor and recording medium recording operation screen production data conversion program
JPH08314909A (en) Document processor
JPS5955506A (en) Sequence controller
JPH05233255A (en) Editor
JPH03116192A (en) Avd editing system