JPS63184108A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS63184108A
JPS63184108A JP1517387A JP1517387A JPS63184108A JP S63184108 A JPS63184108 A JP S63184108A JP 1517387 A JP1517387 A JP 1517387A JP 1517387 A JP1517387 A JP 1517387A JP S63184108 A JPS63184108 A JP S63184108A
Authority
JP
Japan
Prior art keywords
level language
machine tool
program
numerical control
language
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
JP1517387A
Other languages
Japanese (ja)
Inventor
Tadashi Tsuboi
坪井 正
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 JP1517387A priority Critical patent/JPS63184108A/en
Publication of JPS63184108A publication Critical patent/JPS63184108A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To execute a high level language program, by providing an interface between a machine tool data storage means and a high level language control part. CONSTITUTION:A numerical controller is constituted of a system control part 1, a numerical control language control part 2, a sequence control part 4, the high level language control part 6, and a driving control part 13 which drives a machine tool 15 via a driving amplifier 14, etc. And furthermore, a machine coordinate value storing memory 23 which stores a coordinate value representing the present location of the machine tool 15, and the interface 24 between the memory and the high level language control part 6 are provided, and the stored content of the above stated memory 23 is read out via the interface 24. In such a way, the high level language program is executed, and the high level language control part 6 reads out the coordinate value of the machine tool 15 stored in the machine coordinate value storing memory 23 via the interface 24.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は高位言語プログラムにより現在勤作中の工作機
械の状態の読み出しができる数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device that is capable of reading out the status of a machine tool currently in operation using a high-level language program.

[従来の技術] 従来の数値制御装置(以下、NC装置という)としては
、第2図に示すものがあった。第2図において、(1)
はNC装置全体を制御するシステム制御部、(2)は数
値制御言語(以下、NC言語という)で記述されており
、ディスク(3)に記憶されている数値制御プログラム
(以下、NCプログラムという)の起動、停止及び解読
等を行なう数値制御言語制御部(以下、NC言語制御部
という) 、(4)はシーケンス言語で記述されており
、ディスク(5)に記憶されているシーケンスプログラ
ムの起動、停止及び解読等を行なうシーケンス制御部、
(6)は例えばBASIC言語、FORTRAN言語又
はC言語等の高位言語で記述されており、ディスク(7
)に記憶されている高位言語プログラムの起動、停止及
び解読等を行なう高位言語制御部、(8)はシステム制
御部(1)とNC言語制御部(2)とのインターフェイ
ス、(9)はシステム制御部(1)とシーケンス制御部
(4)とのインターフェイス、(20)はシステム制御
部(1)と高位言語制御部(6)とのインターフェイス
、(10)はNC言語制御部(2)とシーケンス制御部
(4)とのインターフェイス、(11)はNC言語制制
御 (2)と高位言語制御部(6)とのインターフェイ
ス、(12)はシーケンス制御部(4)と高位言語制御
部(6)とのインターフェイス、(13)は駆動増幅器
(14)を介して工作機械(15)のモータ(1B)を
駆動す・る駆動制御部、(17)はシーケンス制御部(
4)と工作機械操作盤(18)とのインターフェース、
(22)はプログラムを入力したり、NC装置の動きを
表示したりする設定表示パネルである。
[Prior Art] As a conventional numerical control device (hereinafter referred to as an NC device), there is one shown in FIG. In Figure 2, (1)
is a system control unit that controls the entire NC device, and (2) is a numerical control program (hereinafter referred to as NC program) written in a numerical control language (hereinafter referred to as NC language) and stored on disk (3). Numerical control language control unit (hereinafter referred to as NC language control unit) (4) is written in sequence language and starts, stops, and decodes the sequence program stored on disk (5). a sequence control unit that performs stopping, decoding, etc.;
(6) is written in a high-level language such as BASIC language, FORTRAN language or C language, and disk (7) is written in a high-level language such as BASIC language, FORTRAN language or C language.
), (8) is the interface between the system control unit (1) and the NC language control unit (2), (9) is the system (20) is an interface between the control unit (1) and the sequence control unit (4), (20) is an interface between the system control unit (1) and the high-level language control unit (6), and (10) is an interface between the NC language control unit (2). The interface with the sequence control unit (4), (11) is the interface between the NC language control unit (2) and the high-level language control unit (6), and (12) is the interface between the sequence control unit (4) and the high-level language control unit (6). ), (13) is a drive control unit that drives the motor (1B) of the machine tool (15) via a drive amplifier (14), and (17) is a sequence control unit (
4) and the interface with the machine tool operation panel (18),
(22) is a setting display panel for inputting programs and displaying the operation of the NC device.

なお、NCプログラム及び高位言語プログラムは独立に
編集され、NC装置のプログラムとして記憶されている
Note that the NC program and the high-level language program are independently edited and stored as programs for the NC device.

又、高位言語プログラムは複雑な論理演算を高速に行な
うことができるが、同じことをNCプログラムで実行し
ようとすると、プログラムが複雑になり、実行に時間が
かかってしまうので、実質的に工作機械を制御できなく
なる。そこで、高位言語プログラムにより複雑な論理演
算を行なうようにしたのである。
Also, high-level language programs can perform complex logical operations at high speed, but if you try to do the same with an NC program, the program becomes complicated and takes a long time to execute, so it is essentially a machine tool. becomes uncontrollable. Therefore, a high-level language program was used to perform complex logical operations.

次に従来の数値制御装置の動作について説明する。自動
運転時には、ディスク(3)に記憶されているNCプロ
グラムが逐次実行される。NCプログラムはシステム制
御部(1)、駆動制御部(13)及び駆動増幅器(14
)を介してモータ(1B)を駆動制御し工作機械(15
)を動かす。
Next, the operation of the conventional numerical control device will be explained. During automatic operation, the NC program stored in the disk (3) is executed sequentially. The NC program includes a system control section (1), a drive control section (13), and a drive amplifier (14).
) to drive and control the motor (1B) through the machine tool (15
) to move.

次いで、シーケンス制御部(4)は工作機械(15)及
び工作機械制御盤(18)からインターフェイス(17
)を介して工作機械(15)の動作に応じた信号、例え
ば工作機械に位置を示す信号が入力されると、入力され
た信号に応じてシーケンスプログラムを実行する。この
シーケンスプログラムにはNCプログラム又は高位言語
プログラムを起動する命令が入っている場合がある。
Next, the sequence control unit (4) connects the machine tool (15) and the machine tool control panel (18) to the interface (17).
) When a signal corresponding to the operation of the machine tool (15), for example, a signal indicating the position of the machine tool, is input to the machine tool, a sequence program is executed in accordance with the input signal. This sequence program may contain instructions for starting an NC program or a high-level language program.

その場合、シーケンスプログラムにより起動されたNC
プログラムは、NC言語制御部(2)及びインターフェ
イス(8)を介してシステム制御部(1)に信号を送る
。又、シーケンスプログラムにより起動された高位言語
プログラムは論理演算を行ない、その結果を高位言語制
御部(6)及びインターフェイス(20)を介してシス
テム制御部(1)に送る。システム制御部(1)はNC
言語制御部(2)及び高位言語制御部(8)からの信号
に基づいて、駆動側ill ali (13)及び駆動
増幅機(14)を介してモータ(1B)に制御信号を送
り、工作機械(15)を駆動制御したり、設定表示パネ
ル(22)に表示する。
In that case, the NC started by the sequence program
The program sends signals to the system control (1) via the NC language control (2) and the interface (8). Further, the high-level language program started by the sequence program performs logical operations and sends the results to the system control unit (1) via the high-level language control unit (6) and interface (20). System control section (1) is NC
Based on the signals from the language control unit (2) and the high-level language control unit (8), a control signal is sent to the motor (1B) via the drive side ill ali (13) and the drive amplifier (14), and the machine tool (15) and displays it on the setting display panel (22).

[発明が解決しようとする間通点] ところで、上記構成の従来のNC装置は、NC言語制御
部(2)及びシーケンス制御部(4)から高位言語プロ
グラムを起動するために、インターフェイス(11)及
び(12)を備えている。
[Intermediate point to be solved by the invention] By the way, the conventional NC device having the above configuration has an interface (11) in order to start a high-level language program from the NC language control unit (2) and the sequence control unit (4). and (12).

しかし、高位言語制御部(8)が現在の工作機械(15
)の状態を4諧する手段を備えていない。このため、現
在の工作機械(15)の状態に応じた判断を行なったり
、演算処理を行なったりする高位言語プログラムを作成
しても実行できないという問題があった。
However, the high-level language control section (8) is
) is not equipped with a means to divide the state into four levels. For this reason, there is a problem in that even if a high-level language program that makes decisions or performs arithmetic processing according to the current state of the machine tool (15) is created, it cannot be executed.

本発明は上記問題点を解決するためになされたもので、
現在の工作機械(15)の状態を認識でき、現在の工作
機械(15)の状態に応じた判断及び演算処理等を行な
う高位言語プログラムが実行可能な数値制御装置を提供
することを目的とする。
The present invention has been made to solve the above problems,
The purpose of the present invention is to provide a numerical control device that can recognize the current state of a machine tool (15) and can execute a high-level language program that performs judgment and arithmetic processing according to the current state of the machine tool (15). .

[問題点を解決するための手段] そこで、本発明では数値制御装置全体を制御するシステ
ム制御部と、数値制御プログラムを記憶している第1の
記憶手段と、この数値制御プログラムにより工作機械を
制御する数値制御言語制御部と、シーケンスプログラム
を記憶している第2の記憶手段と、このシーケンスプロ
グラムにより工作機械のシーケンス制御を行なうシーケ
ンス制御部と、高位言語プログラムを記憶している第3
の記憶手段と、この高位言語プログラムにより論理演算
及び工作機械の自動制御を行なう高位言語制御部と、シ
ーケンス制御部に高位言語プログラムを起動させる高位
言語プログラム制御手段と、工作機械の状態を示すデー
タを記憶する工作機械データ記憶手段と、工作機械デー
タ記憶手段と高位言語制御部との間に設けられたインタ
ーフェイスとを備えた数値制御装置を構成する。
[Means for Solving the Problems] Therefore, the present invention includes a system control section that controls the entire numerical control device, a first storage means that stores a numerical control program, and a system that operates a machine tool using the numerical control program. A numerical control language control section for controlling, a second storage means for storing a sequence program, a sequence control section for performing sequence control of the machine tool according to the sequence program, and a third storage means for storing a high-level language program.
a high-level language control unit that performs logical operations and automatic control of the machine tool using the high-level language program, a high-level language program control unit that causes the sequence control unit to start the high-level language program, and data indicating the state of the machine tool. The present invention constitutes a numerical control device comprising a machine tool data storage means for storing the information, and an interface provided between the machine tool data storage means and a high-level language control section.

[作 用] 上記構成の数値制御装置は、システム制御部が第1の記
憶手段に記憶されている数値制御プログラム、第2の記
憶手段に記憶されているシーケンスプログラム及び第3
の記憶手段に記憶されている高位言語プログラムを制御
し、数値制御言語制御部、シーケンス制御部及び高位言
語制御部がそれぞれ数値制御プログラム、シーケンスプ
ログラム及び高位言語プログラムを実行する。又、高位
 □言語プログラム制御手段がシーケンス制御部に高位
言語プログラムを起動させ、高位言語制御部がインター
フェイスを介して工作機械データ記憶手段に記憶されて
いる工作機械の状態を示すデータを読み出す。この場合
、高位言語プログラムが工作機械の状態に応じた判断及
び演算処理等を行なうことができる。
[Function] In the numerical control device having the above configuration, the system control section executes the numerical control program stored in the first storage means, the sequence program stored in the second storage means, and the third
The numerical control language control section, the sequence control section, and the high-level language control section execute the numerical control program, the sequence program, and the high-level language program, respectively. Further, the high-level □language program control means causes the sequence control section to start a high-level language program, and the high-level language control section reads out data indicating the state of the machine tool stored in the machine tool data storage means via the interface. In this case, the high-level language program can perform judgments, calculations, etc. according to the state of the machine tool.

[実施例] 以下、本発明の一実施例を添付図面を参照して、詳細に
説明する。
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明に係る数値制御装置のブロック図である
。なお、第1図において第2図と同様の機能を果たす部
分については同一の符号を付し、その説明は省略する。
FIG. 1 is a block diagram of a numerical control device according to the present invention. Note that in FIG. 1, parts that perform the same functions as those in FIG. 2 are designated by the same reference numerals, and their explanations will be omitted.

第1図において、(23)は現在の工作機械(15)の
位置を示す座標値を記憶している機械座標値格納メモリ
、(24)は高位言語制御部(6)と機械座標値格納メ
モリ(23)とのインターフェイスである。高位言語制
御部(6)はこのインターフェイス(23)を介して機
械座標値格納メモリ(23)の記憶内容を読み出すので
ある。
In Fig. 1, (23) is a machine coordinate value storage memory that stores coordinate values indicating the current position of the machine tool (15), and (24) is a high-level language control unit (6) and a machine coordinate value storage memory. (23). The high-level language control unit (6) reads out the contents of the machine coordinate value storage memory (23) via this interface (23).

次に、本発明に係る数値制御装置の動作について説明す
る。自動運転時には、ディスク(3)に憶されているN
Cプログラムが逐次実行される。NCプログラムはシス
テム制御部(1)、駆動制御部(13)及び駆動増幅器
(14)を介してモータ(16)を駆動制御し工作機械
(15)を動かす。
Next, the operation of the numerical control device according to the present invention will be explained. During automatic operation, the N stored in the disk (3)
A C program is executed sequentially. The NC program drives and controls the motor (16) via the system control section (1), drive control section (13) and drive amplifier (14) to move the machine tool (15).

次いで、シーケンス制御部(4)は工作機械(15)及
び工作機械制御盤(18)からインターフェイス(17
)を介して工作機械(15)の動作に応じた信号、例え
ば工作機械に位置を示す信号が入力されると、人力され
た信号に応じてシーケンスプログラムを実行する。シー
ケンスプログラムがインターフェイス(12)を介して
高位言語プログラムを起動すると、高位言語プログラム
が実行される。この場合高位言語プログラムが現在の工
作機械(15)の位置を示す座標値に応じた判断及び演
算処理等を行なおうとすると、高位言語制御部(6〉は
インターフェイス(24)を介して機械座標値格納メモ
リ(23)に記憶されている工作機械(15)の座標値
を読み出す。
Next, the sequence control unit (4) connects the machine tool (15) and the machine tool control panel (18) to the interface (17).
) When a signal corresponding to the operation of the machine tool (15), for example a signal indicating a position, is input to the machine tool, a sequence program is executed in accordance with the manually input signal. When the sequence program starts the high-level language program via the interface (12), the high-level language program is executed. In this case, when the high-level language program attempts to perform judgment and arithmetic processing according to the coordinate values indicating the current position of the machine tool (15), the high-level language control unit (6>) communicates the machine coordinates via the interface (24). The coordinate values of the machine tool (15) stored in the value storage memory (23) are read.

工作機械(15)の座標値を読み出すことにより、例え
ば実行する高位言語プログラムを変えてもよい。
By reading the coordinate values of the machine tool (15), for example, the high-level language program to be executed may be changed.

なお、本実施例では工作機械(15)の座標値について
説明したが、工作機械(15)を駆動制御するモータの
出力電圧値をメモリに記憶するようにしてもよい。
Although the coordinate values of the machine tool (15) have been described in this embodiment, the output voltage value of the motor that drives and controls the machine tool (15) may be stored in the memory.

[発明の効果] 以上説明したように本発明によれば、工作機械の状態を
示すデータを記憶している工作機械データ記憶手段と、
高位言語制御部と工作機械データ記憶手段とのインター
フェイスとを備えることにより、現在勤作中の工作機械
の状態に応じた判断を行なったり、演算処理を行なった
りする高位言語プログラムを実行可能な数値制御装置が
得られる。
[Effects of the Invention] As explained above, according to the present invention, a machine tool data storage means that stores data indicating the state of the machine tool;
Equipped with an interface between a high-level language control unit and a machine tool data storage means, it is possible to execute high-level language programs that make judgments and perform arithmetic processing according to the state of the machine tool currently in operation. A control device is obtained.

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

第1図は本発明に係る数値制御装置のブロック図、第2
図は従来の数値制御装置のブロック図である。 各図中、1はシステム制御部、2はNC言語制御部、3
.5.7はディスク、4はシーケンス制御部、6は高位
言語制御部、8.9.1O111,12,20,24は
インターフェイス、13は駆動制御部、14は駆動増幅
器、15は工作機械、■8はモータ、1Bは工作機械操
作盤、22は設定表示パネル、23は機械座標値格納メ
モリである。 なお、各図中同一符号は同−又は相当部分を示すもので
ある。
FIG. 1 is a block diagram of a numerical control device according to the present invention, and FIG.
The figure is a block diagram of a conventional numerical control device. In each figure, 1 is the system control unit, 2 is the NC language control unit, and 3
.. 5.7 is a disk, 4 is a sequence control unit, 6 is a high-level language control unit, 8.9.1O111, 12, 20, 24 is an interface, 13 is a drive control unit, 14 is a drive amplifier, 15 is a machine tool, ■ 8 is a motor, 1B is a machine tool operation panel, 22 is a setting display panel, and 23 is a machine coordinate value storage memory. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (7)

【特許請求の範囲】[Claims] (1)数値制御装置全体を制御するシステム制御部と、
数値制御言語で記述された数値制御プログラムを記憶し
ている第1の記憶手段と、前記数値制御言語で記述され
た数値制御プログラムにより工作機械の自動制御を行な
う数値制御言語制御部と、シーケンス言語で記述された
シーケンスプログラムを記憶している第2の記憶手段と
、前記シーケンスプログラムにより前記工作機械のシー
ケンス制御を行なうシーケンス制御部と、高位言語で記
述された高位言語プログラムを記憶している第3の記憶
手段と、前記高位言語で記述された高位言語プログラム
により論理演算及び前記工作機械の自動制御を行なう高
位言語制御部と、前記シーケンス制御部に前記高位言語
プログラムを起動させる高位言語プログラム制御手段と
を備えた数値制御装置において、前記工作機械の状態を
示すデータを記憶する工作機械データ記憶手段と、前記
工作機械データ記憶手段と前記高位言語制御部との間に
設けられたインターフェイスとを備え、前記高位言語プ
ログラムにより、前記座標値記憶手段が記憶している工
作機械の状態を示すデータを読み出せるようにしたこと
を特徴とする数値制御装置。
(1) A system control unit that controls the entire numerical control device;
a first storage means that stores a numerical control program written in a numerical control language; a numerical control language control section that automatically controls a machine tool by the numerical control program written in the numerical control language; and a sequence language. a second storage means that stores a sequence program written in a high-level language; a sequence control section that performs sequence control of the machine tool according to the sequence program; and a second storage means that stores a high-level language program written in a high-level language. 3, a high-level language control unit that performs logical operations and automatic control of the machine tool using a high-level language program written in the high-level language, and a high-level language program control that causes the sequence control unit to start the high-level language program. a numerical control device comprising: machine tool data storage means for storing data indicating a state of the machine tool; and an interface provided between the machine tool data storage means and the high-level language control unit. A numerical control device, characterized in that the high-level language program can read data indicating the state of the machine tool stored in the coordinate value storage means.
(2)高位言語プログラムはBASIC言語である特許
請求の範囲第1項記載の数値制御装置。
(2) The numerical control device according to claim 1, wherein the high-level language program is a BASIC language.
(3)高位言語プログラムはFORTRAN言語である
特許請求の範囲第1項記載の数値制御装置。
(3) The numerical control device according to claim 1, wherein the high-level language program is a FORTRAN language.
(4)高位言語プログラムはC言語である特許請求の範
囲第1項記載の数値制御装置。
(4) The numerical control device according to claim 1, wherein the high-level language program is C language.
(5)高位言語プログラム制御手段は、前記シーケンス
プログラムの命令であり、前記シーケンス制御部と前記
高位言語制御部との間に設けられたインターフェイスを
介して、前記高位言語プログラムを起動する特許請求の
範囲第1項記載の数値制御装置。
(5) The high-level language program control means is a command of the sequence program, and starts the high-level language program via an interface provided between the sequence control section and the high-level language control section. Numerical control device according to scope 1.
(6)工作機械の状態を示すデータは、該工作機械の位
置を示す座標値である特許請求の範囲第1項記載の数値
制御装置。
(6) The numerical control device according to claim 1, wherein the data indicating the state of the machine tool are coordinate values indicating the position of the machine tool.
(7)工作機械の状態を示すデータは、該工作機械を駆
動制御する駆動制御手段のデータである特許請求の範囲
第1項記載の数値制御装置。
(7) The numerical control device according to claim 1, wherein the data indicating the state of the machine tool is data of a drive control means for controlling the drive of the machine tool.
JP1517387A 1987-01-27 1987-01-27 Numerical controller Pending JPS63184108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1517387A JPS63184108A (en) 1987-01-27 1987-01-27 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1517387A JPS63184108A (en) 1987-01-27 1987-01-27 Numerical controller

Publications (1)

Publication Number Publication Date
JPS63184108A true JPS63184108A (en) 1988-07-29

Family

ID=11881417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1517387A Pending JPS63184108A (en) 1987-01-27 1987-01-27 Numerical controller

Country Status (1)

Country Link
JP (1) JPS63184108A (en)

Similar Documents

Publication Publication Date Title
JPH046006B2 (en)
JP3211422B2 (en) Robot controller
JPH01134605A (en) Numerical controller
JPS62121511A (en) Numerical controller
JPS59172009A (en) Numerical controller
JPS63184108A (en) Numerical controller
JPS63184109A (en) Numerical controller
JPH07319511A (en) Monitoring method
JPS60168206A (en) Numerical control device
JPH04217009A (en) Method for teaching work program
JP3460747B2 (en) Numerical control unit
JPS62210508A (en) Numerical controller
JPS63184106A (en) Numerical controller
JPS59189413A (en) Numerical control device provided with graphic display device
JPS626245B2 (en)
JPH01181104A (en) Numerical controller
JPS63184107A (en) Numerical controller
JPH1078812A (en) Method for transferring data and device for controlling data transfer
JPS6129909A (en) Numerical controller
JPH0452832A (en) Arithmetic control system
JPS61168008A (en) Numerical control device
JPS61260304A (en) Numerical controller
JPH03144806A (en) Composite controller
JPS6051955A (en) Numerical control device
JPS5827206A (en) Numerical compensation method in numerical control